]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - crypto/heimdal/configure
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / crypto / heimdal / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.331.2.8 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for Heimdal 0.6.3.
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
16 if 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+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for 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
46 do
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
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo 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.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if 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
100 fi
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
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
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
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
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
155 done
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
190 case `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= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if 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
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_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.
234 as_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.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
250
251 case X$ECHO in
252 X*--fallback-echo)
253   # Remove one level of quotation (which was required for Make).
254   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255   ;;
256 esac
257
258 echo=${ECHO-echo}
259 if test "X$1" = X--no-reexec; then
260   # Discard the --no-reexec flag, and continue.
261   shift
262 elif test "X$1" = X--fallback-echo; then
263   # Avoid inline document here, it may be left over
264   :
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266   # Yippee, $echo works!
267   :
268 else
269   # Restart under the correct shell.
270   exec $SHELL "$0" --no-reexec ${1+"$@"}
271 fi
272
273 if test "X$1" = X--fallback-echo; then
274   # used as fallback echo
275   shift
276   cat <<EOF
277 $*
278 EOF
279   exit 0
280 fi
281
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 # if CDPATH is set.
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
286 if test -z "$ECHO"; then
287 if 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
298 fi
299
300 if 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   :
304 else
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
384 fi
385 fi
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.
389 ECHO=$echo
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392 fi
393
394
395
396
397 tagnames=${tagnames+${tagnames},}CXX
398
399 tagnames=${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.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406 exec 6>&1
407
408 #
409 # Initializations.
410 #
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
413 cross_compiling=no
414 subdirs=
415 MFLAGS=
416 MAKEFLAGS=
417 SHELL=${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.
425 PACKAGE_NAME='Heimdal'
426 PACKAGE_TARNAME='heimdal'
427 PACKAGE_VERSION='0.6.3'
428 PACKAGE_STRING='Heimdal 0.6.3'
429 PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se'
430
431 ac_unique_file="kuser/kinit.c"
432 ac_default_prefix=/usr/heimdal
433 # Factoring default headers for most tests.
434 ac_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
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 mkdir_p 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'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_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.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
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
785 Try \`$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
808 done
809
810 if 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; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
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
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
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
837 done
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.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if 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
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if 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 ||
873 echo 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
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if 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
894 fi
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; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
912 ac_env_CC_value=$CC
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931 ac_env_CXX_set=${CXX+set}
932 ac_env_CXX_value=$CXX
933 ac_cv_env_CXX_set=${CXX+set}
934 ac_cv_env_CXX_value=$CXX
935 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_env_CXXFLAGS_value=$CXXFLAGS
937 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if 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.3 to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
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
982 Installation 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
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine 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
1012 Program 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
1017 X features:
1018   --x-includes=DIR    X include files are in DIR
1019   --x-libraries=DIR   X library files are in DIR
1020
1021 System 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
1025 fi
1026
1027 if test -n "$ac_init_help"; then
1028   case $ac_init_help in
1029      short | recursive ) echo "Configuration of Heimdal 0.6.3:";;
1030    esac
1031   cat <<\_ACEOF
1032
1033 Optional 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
1056 Optional 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
1094 Some 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
1108 Use these variables to override the choices made by `configure' or to help
1109 it to find libraries and programs with nonstandard names/locations.
1110
1111 Report bugs to <heimdal-bugs@pdc.kth.se>.
1112 _ACEOF
1113 fi
1114
1115 if 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
1122 if 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'`
1126 else
1127   ac_dir_suffix= ac_top_builddir=
1128 fi
1129
1130 case $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 ;;
1144 esac
1145
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1148 case `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;;
1156 esac
1157 case $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;;
1165 esac
1166 case $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;;
1174 esac
1175 case $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;;
1183 esac
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
1202 fi
1203
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1206   cat <<\_ACEOF
1207 Heimdal configure 0.6.3
1208 generated by GNU Autoconf 2.59
1209
1210 Copyright (C) 2003 Free Software Foundation, Inc.
1211 This configure script is free software; the Free Software Foundation
1212 gives unlimited permission to copy, distribute and modify it.
1213 _ACEOF
1214   exit 0
1215 fi
1216 exec 5>config.log
1217 cat >&5 <<_ACEOF
1218 This file contains any messages produced by compilers while
1219 running configure, to aid debugging if configure makes a mistake.
1220
1221 It was created by Heimdal $as_me 0.6.3, which was
1222 generated by GNU Autoconf 2.59.  Invocation command line was
1223
1224   $ $0 $@
1225
1226 _ACEOF
1227 {
1228 cat <<_ASUNAME
1229 ## --------- ##
1230 ## Platform. ##
1231 ## --------- ##
1232
1233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237 uname -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`
1245 hostinfo               = `(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
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253 for as_dir in $PATH
1254 do
1255   IFS=$as_save_IFS
1256   test -z "$as_dir" && as_dir=.
1257   echo "PATH: $as_dir"
1258 done
1259
1260 } >&5
1261
1262 cat >&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.
1277 ac_configure_args=
1278 ac_configure_args0=
1279 ac_configure_args1=
1280 ac_sep=
1281 ac_must_keep_next=false
1282 for ac_pass in 1 2
1283 do
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
1319 done
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.
1328 trap '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
1402 for ac_signal in 1 2 13 15; do
1403   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404 done
1405 ac_signal=0
1406
1407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408 rm -rf conftest* confdefs.h
1409 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410 echo >confdefs.h
1411
1412 # Predefined preprocessor variables.
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1416 _ACEOF
1417
1418
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421 _ACEOF
1422
1423
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1426 _ACEOF
1427
1428
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1431 _ACEOF
1432
1433
1434 cat >>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.
1441 if 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
1447 fi
1448 for 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
1451 echo "$as_me: loading site script $ac_site_file" >&6;}
1452     sed 's/^/| /' "$ac_site_file" >&5
1453     . "$ac_site_file"
1454   fi
1455 done
1456
1457 if 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
1462 echo "$as_me: loading cache $cache_file" >&6;}
1463     case $cache_file in
1464       [\\/]* | ?:[\\/]* ) . $cache_file;;
1465       *)                      . ./$cache_file;;
1466     esac
1467   fi
1468 else
1469   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1470 echo "$as_me: creating cache $cache_file" >&6;}
1471   >$cache_file
1472 fi
1473
1474 # Check that the precious variables saved in the cache have kept the same
1475 # value.
1476 ac_cache_corrupted=false
1477 for 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
1486 echo "$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
1490 echo "$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
1496 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1497         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1498 echo "$as_me:   former value:  $ac_old_val" >&2;}
1499         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1500 echo "$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
1516 done
1517 if $ac_cache_corrupted; then
1518   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1519 echo "$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
1521 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1522    { (exit 1); exit 1; }; }
1523 fi
1524
1525 ac_ext=c
1526 ac_cpp='$CPP $CPPFLAGS'
1527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1529 ac_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
1561 ac_ext=c
1562 ac_cpp='$CPP $CPPFLAGS'
1563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1566 if 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.
1568 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_CC+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   if test -n "$CC"; then
1575   ac_cv_prog_CC="$CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
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
1588 done
1589 done
1590
1591 fi
1592 fi
1593 CC=$ac_cv_prog_CC
1594 if test -n "$CC"; then
1595   echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602 fi
1603 if 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.
1606 set dummy gcc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$ac_ct_CC"; then
1613   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
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
1626 done
1627 done
1628
1629 fi
1630 fi
1631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632 if test -n "$ac_ct_CC"; then
1633   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1634 echo "${ECHO_T}$ac_ct_CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640   CC=$ac_ct_CC
1641 else
1642   CC="$ac_cv_prog_CC"
1643 fi
1644
1645 if 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.
1648 set dummy ${ac_tool_prefix}cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$CC"; then
1655   ac_cv_prog_CC="$CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
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
1668 done
1669 done
1670
1671 fi
1672 fi
1673 CC=$ac_cv_prog_CC
1674 if test -n "$CC"; then
1675   echo "$as_me:$LINENO: result: $CC" >&5
1676 echo "${ECHO_T}$CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682 fi
1683 if 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.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$ac_ct_CC"; then
1693   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
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
1706 done
1707 done
1708
1709 fi
1710 fi
1711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1712 if test -n "$ac_ct_CC"; then
1713   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1714 echo "${ECHO_T}$ac_ct_CC" >&6
1715 else
1716   echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1718 fi
1719
1720   CC=$ac_ct_CC
1721 else
1722   CC="$ac_cv_prog_CC"
1723 fi
1724
1725 fi
1726 if test -z "$CC"; then
1727   # Extract the first word of "cc", so it can be a program name with args.
1728 set dummy cc; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_CC+set}" = set; then
1732   echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734   if test -n "$CC"; then
1735   ac_cv_prog_CC="$CC" # Let the user override the test.
1736 else
1737   ac_prog_rejected=no
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741   IFS=$as_save_IFS
1742   test -z "$as_dir" && as_dir=.
1743   for ac_exec_ext in '' $ac_executable_extensions; do
1744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745     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
1753 done
1754 done
1755
1756 if 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
1767 fi
1768 fi
1769 fi
1770 CC=$ac_cv_prog_CC
1771 if test -n "$CC"; then
1772   echo "$as_me:$LINENO: result: $CC" >&5
1773 echo "${ECHO_T}$CC" >&6
1774 else
1775   echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777 fi
1778
1779 fi
1780 if 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.
1785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$CC"; then
1792   ac_cv_prog_CC="$CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
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
1805 done
1806 done
1807
1808 fi
1809 fi
1810 CC=$ac_cv_prog_CC
1811 if test -n "$CC"; then
1812   echo "$as_me:$LINENO: result: $CC" >&5
1813 echo "${ECHO_T}$CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819     test -n "$CC" && break
1820   done
1821 fi
1822 if test -z "$CC"; then
1823   ac_ct_CC=$CC
1824   for ac_prog in cl
1825 do
1826   # Extract the first word of "$ac_prog", so it can be a program name with args.
1827 set dummy $ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$ac_ct_CC"; then
1834   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
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
1847 done
1848 done
1849
1850 fi
1851 fi
1852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861   test -n "$ac_ct_CC" && break
1862 done
1863
1864   CC=$ac_ct_CC
1865 fi
1866
1867 fi
1868
1869
1870 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1871 See \`config.log' for more details." >&5
1872 echo "$as_me: error: no acceptable C compiler found in \$PATH
1873 See \`config.log' for more details." >&2;}
1874    { (exit 1); exit 1; }; }
1875
1876 # Provide some information about the compiler.
1877 echo "$as_me:$LINENO:" \
1878      "checking for C compiler version" >&5
1879 ac_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
1896 cat >conftest.$ac_ext <<_ACEOF
1897 /* confdefs.h.  */
1898 _ACEOF
1899 cat confdefs.h >>conftest.$ac_ext
1900 cat >>conftest.$ac_ext <<_ACEOF
1901 /* end confdefs.h.  */
1902
1903 int
1904 main ()
1905 {
1906
1907   ;
1908   return 0;
1909 }
1910 _ACEOF
1911 ac_clean_files_save=$ac_clean_files
1912 ac_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.
1916 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1917 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1918 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1919 if { (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.
1930 ac_cv_exeext=
1931 # b.out is created by i960 compilers.
1932 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1933 do
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
1955 done
1956 else
1957   echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1959
1960 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1961 See \`config.log' for more details." >&5
1962 echo "$as_me: error: C compiler cannot create executables
1963 See \`config.log' for more details." >&2;}
1964    { (exit 77); exit 77; }; }
1965 fi
1966
1967 ac_exeext=$ac_cv_exeext
1968 echo "$as_me:$LINENO: result: $ac_file" >&5
1969 echo "${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.
1973 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1974 echo $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.
1977 if 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.
1990 If you meant to cross compile, use \`--host'.
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot run C compiled programs.
1993 If you meant to cross compile, use \`--host'.
1994 See \`config.log' for more details." >&2;}
1995    { (exit 1); exit 1; }; }
1996     fi
1997   fi
1998 fi
1999 echo "$as_me:$LINENO: result: yes" >&5
2000 echo "${ECHO_T}yes" >&6
2001
2002 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2003 ac_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.
2006 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2007 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2008 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2009 echo "${ECHO_T}$cross_compiling" >&6
2010
2011 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2012 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2013 if { (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'.
2022 for 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
2031 done
2032 else
2033   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2036 See \`config.log' for more details." >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 rm -f conftest$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2042 echo "${ECHO_T}$ac_cv_exeext" >&6
2043
2044 rm -f conftest.$ac_ext
2045 EXEEXT=$ac_cv_exeext
2046 ac_exeext=$EXEEXT
2047 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2048 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2049 if test "${ac_cv_objext+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   cat >conftest.$ac_ext <<_ACEOF
2053 /* confdefs.h.  */
2054 _ACEOF
2055 cat confdefs.h >>conftest.$ac_ext
2056 cat >>conftest.$ac_ext <<_ACEOF
2057 /* end confdefs.h.  */
2058
2059 int
2060 main ()
2061 {
2062
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 rm -f conftest.o conftest.obj
2068 if { (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
2079 done
2080 else
2081   echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2083
2084 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2087 See \`config.log' for more details." >&2;}
2088    { (exit 1); exit 1; }; }
2089 fi
2090
2091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2092 fi
2093 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2094 echo "${ECHO_T}$ac_cv_objext" >&6
2095 OBJEXT=$ac_cv_objext
2096 ac_objext=$OBJEXT
2097 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2098 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2099 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h.  */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h.  */
2108
2109 int
2110 main ()
2111 {
2112 #ifndef __GNUC__
2113        choke me
2114 #endif
2115
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 rm -f conftest.$ac_objext
2121 if { (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
2143 else
2144   echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_compiler_gnu=no
2148 fi
2149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2150 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2151
2152 fi
2153 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2154 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2155 GCC=`test $ac_compiler_gnu = yes && echo yes`
2156 ac_test_CFLAGS=${CFLAGS+set}
2157 ac_save_CFLAGS=$CFLAGS
2158 CFLAGS="-g"
2159 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2160 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2161 if test "${ac_cv_prog_cc_g+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   cat >conftest.$ac_ext <<_ACEOF
2165 /* confdefs.h.  */
2166 _ACEOF
2167 cat confdefs.h >>conftest.$ac_ext
2168 cat >>conftest.$ac_ext <<_ACEOF
2169 /* end confdefs.h.  */
2170
2171 int
2172 main ()
2173 {
2174
2175   ;
2176   return 0;
2177 }
2178 _ACEOF
2179 rm -f conftest.$ac_objext
2180 if { (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
2202 else
2203   echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_cv_prog_cc_g=no
2207 fi
2208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2212 if test "$ac_test_CFLAGS" = set; then
2213   CFLAGS=$ac_save_CFLAGS
2214 elif 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
2220 else
2221   if test "$GCC" = yes; then
2222     CFLAGS="-O2"
2223   else
2224     CFLAGS=
2225   fi
2226 fi
2227 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2228 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2229 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   ac_cv_prog_cc_stdc=no
2233 ac_save_CC=$CC
2234 cat >conftest.$ac_ext <<_ACEOF
2235 /* confdefs.h.  */
2236 _ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>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.  */
2245 struct buf { int x; };
2246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2247 static char *e (p, i)
2248      char **p;
2249      int i;
2250 {
2251   return p[i];
2252 }
2253 static 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.  */
2270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2271
2272 int test (int i, double x);
2273 struct s1 {int (*f) (int a);};
2274 struct s2 {int (*f) (double a);};
2275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2276 int argc;
2277 char **argv;
2278 int
2279 main ()
2280 {
2281 return 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__
2293 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2294 do
2295   CC="$ac_save_CC $ac_arg"
2296   rm -f conftest.$ac_objext
2297 if { (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
2319 break
2320 else
2321   echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 fi
2325 rm -f conftest.err conftest.$ac_objext
2326 done
2327 rm -f conftest.$ac_ext conftest.$ac_objext
2328 CC=$ac_save_CC
2329
2330 fi
2331
2332 case "x$ac_cv_prog_cc_stdc" in
2333   x|xno)
2334     echo "$as_me:$LINENO: result: none needed" >&5
2335 echo "${ECHO_T}none needed" >&6 ;;
2336   *)
2337     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2338 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2339     CC="$CC $ac_cv_prog_cc_stdc" ;;
2340 esac
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.
2346 cat >conftest.$ac_ext <<_ACEOF
2347 #ifndef __cplusplus
2348   choke me
2349 #endif
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (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);'
2380 do
2381   cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h.  */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h.  */
2387 $ac_declaration
2388 #include <stdlib.h>
2389 int
2390 main ()
2391 {
2392 exit (42);
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (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   :
2420 else
2421   echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 continue
2425 fi
2426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427   cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h.  */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h.  */
2433 $ac_declaration
2434 int
2435 main ()
2436 {
2437 exit (42);
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (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
2465 else
2466   echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2468
2469 fi
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 done
2472 rm -f conftest*
2473 if test -n "$ac_declaration"; then
2474   echo '#ifdef __cplusplus' >>confdefs.h
2475   echo $ac_declaration      >>confdefs.h
2476   echo '#endif'             >>confdefs.h
2477 fi
2478
2479 else
2480   echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 fi
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 ac_ext=c
2486 ac_cpp='$CPP $CPPFLAGS'
2487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490
2491 ac_ext=c
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2498 # On Suns, sometimes $CPP names a directory.
2499 if test -n "$CPP" && test -d "$CPP"; then
2500   CPP=
2501 fi
2502 if test -z "$CPP"; then
2503   if test "${ac_cv_prog_CPP+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
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
2510 for ac_c_preproc_warn_flag in '' yes
2511 do
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
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>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
2531 if { (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
2545 else
2546   ac_cpp_err=yes
2547 fi
2548 if test -z "$ac_cpp_err"; then
2549   :
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554   # Broken: fails on valid input.
2555 continue
2556 fi
2557 rm -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
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567 #include <ac_nonexistent.h>
2568 _ACEOF
2569 if { (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
2583 else
2584   ac_cpp_err=yes
2585 fi
2586 if test -z "$ac_cpp_err"; then
2587   # Broken: success on invalid input.
2588 continue
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593   # Passes both tests.
2594 ac_preproc_ok=:
2595 break
2596 fi
2597 rm -f conftest.err conftest.$ac_ext
2598
2599 done
2600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2601 rm -f conftest.err conftest.$ac_ext
2602 if $ac_preproc_ok; then
2603   break
2604 fi
2605
2606     done
2607     ac_cv_prog_CPP=$CPP
2608
2609 fi
2610   CPP=$ac_cv_prog_CPP
2611 else
2612   ac_cv_prog_CPP=$CPP
2613 fi
2614 echo "$as_me:$LINENO: result: $CPP" >&5
2615 echo "${ECHO_T}$CPP" >&6
2616 ac_preproc_ok=false
2617 for ac_c_preproc_warn_flag in '' yes
2618 do
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
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>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
2638 if { (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
2652 else
2653   ac_cpp_err=yes
2654 fi
2655 if test -z "$ac_cpp_err"; then
2656   :
2657 else
2658   echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661   # Broken: fails on valid input.
2662 continue
2663 fi
2664 rm -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
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674 #include <ac_nonexistent.h>
2675 _ACEOF
2676 if { (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
2690 else
2691   ac_cpp_err=yes
2692 fi
2693 if test -z "$ac_cpp_err"; then
2694   # Broken: success on invalid input.
2695 continue
2696 else
2697   echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700   # Passes both tests.
2701 ac_preproc_ok=:
2702 break
2703 fi
2704 rm -f conftest.err conftest.$ac_ext
2705
2706 done
2707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2708 rm -f conftest.err conftest.$ac_ext
2709 if $ac_preproc_ok; then
2710   :
2711 else
2712   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2713 See \`config.log' for more details." >&5
2714 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2715 See \`config.log' for more details." >&2;}
2716    { (exit 1); exit 1; }; }
2717 fi
2718
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724
2725
2726
2727 am__api_version="1.8"
2728 ac_aux_dir=
2729 for 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
2743 done
2744 if test -z "$ac_aux_dir"; then
2745   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2746 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2747    { (exit 1); exit 1; }; }
2748 fi
2749 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2750 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2751 ac_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.
2766 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2767 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2768 if test -z "$INSTALL"; then
2769 if test "${ac_cv_path_install+set}" = set; then
2770   echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775   IFS=$as_save_IFS
2776   test -z "$as_dir" && as_dir=.
2777   # Account for people who put trailing slashes in PATH elements.
2778 case $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     ;;
2806 esac
2807 done
2808
2809
2810 fi
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
2820 fi
2821 echo "$as_me:$LINENO: result: $INSTALL" >&5
2822 echo "${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.
2826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2827
2828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2829
2830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2831
2832 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2833 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2834 # Just in case
2835 sleep 1
2836 echo 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).
2842 if (
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
2857 alias in your environment" >&5
2858 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2859 alias in your environment" >&2;}
2860    { (exit 1); exit 1; }; }
2861    fi
2862
2863    test "$2" = conftest.file
2864    )
2865 then
2866    # Ok.
2867    :
2868 else
2869    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2870 Check your system clock" >&5
2871 echo "$as_me: error: newly created file is older than distributed files!
2872 Check your system clock" >&2;}
2873    { (exit 1); exit 1; }; }
2874 fi
2875 echo "$as_me:$LINENO: result: yes" >&5
2876 echo "${ECHO_T}yes" >&6
2877 test "$program_prefix" != NONE &&
2878   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2879 # Use a double $ so make ignores it.
2880 test "$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.
2884 cat <<\_ACEOF >conftest.sed
2885 s/[\\$]/&&/g;s/;s,x,x,$//
2886 _ACEOF
2887 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2888 rm conftest.sed
2889
2890 # expand $ac_aux_dir to an absolute path
2891 am_aux_dir=`cd $ac_aux_dir && pwd`
2892
2893 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2894 # Use eval to expand $SHELL
2895 if eval "$MISSING --run true"; then
2896   am_missing_run="$MISSING --run "
2897 else
2898   am_missing_run=
2899   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2900 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2901 fi
2902
2903 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2904   # Keeping the `.' argument allows $(mkdir_p) to be used without
2905   # argument.  Indeed, we sometimes output rules like
2906   #   $(mkdir_p) $(somedir)
2907   # where $(somedir) is conditionally defined.
2908   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2909   # expensive solution, as it forces Make to start a sub-shell.)
2910   mkdir_p='mkdir -p -- .'
2911 else
2912   # On NextStep and OpenStep, the `mkdir' command does not
2913   # recognize any option.  It will interpret all options as
2914   # directories to create, and then abort because `.' already
2915   # exists.
2916   for d in ./-p ./--version;
2917   do
2918     test -d $d && rmdir $d
2919   done
2920   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2921   if test -f "$ac_aux_dir/mkinstalldirs"; then
2922     mkdir_p='$(mkinstalldirs)'
2923   else
2924     mkdir_p='$(install_sh) -d'
2925   fi
2926 fi
2927
2928 for ac_prog in gawk mawk nawk awk
2929 do
2930   # Extract the first word of "$ac_prog", so it can be a program name with args.
2931 set dummy $ac_prog; ac_word=$2
2932 echo "$as_me:$LINENO: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934 if test "${ac_cv_prog_AWK+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   if test -n "$AWK"; then
2938   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945   for ac_exec_ext in '' $ac_executable_extensions; do
2946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947     ac_cv_prog_AWK="$ac_prog"
2948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952 done
2953
2954 fi
2955 fi
2956 AWK=$ac_cv_prog_AWK
2957 if test -n "$AWK"; then
2958   echo "$as_me:$LINENO: result: $AWK" >&5
2959 echo "${ECHO_T}$AWK" >&6
2960 else
2961   echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2963 fi
2964
2965   test -n "$AWK" && break
2966 done
2967
2968 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2969 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2970 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2971 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   cat >conftest.make <<\_ACEOF
2975 all:
2976         @echo 'ac_maketemp="$(MAKE)"'
2977 _ACEOF
2978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2979 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2980 if test -n "$ac_maketemp"; then
2981   eval ac_cv_prog_make_${ac_make}_set=yes
2982 else
2983   eval ac_cv_prog_make_${ac_make}_set=no
2984 fi
2985 rm -f conftest.make
2986 fi
2987 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2988   echo "$as_me:$LINENO: result: yes" >&5
2989 echo "${ECHO_T}yes" >&6
2990   SET_MAKE=
2991 else
2992   echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6
2994   SET_MAKE="MAKE=${MAKE-make}"
2995 fi
2996
2997 rm -rf .tst 2>/dev/null
2998 mkdir .tst 2>/dev/null
2999 if test -d .tst; then
3000   am__leading_dot=.
3001 else
3002   am__leading_dot=_
3003 fi
3004 rmdir .tst 2>/dev/null
3005
3006 # test to see if srcdir already configured
3007 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3008    test -f $srcdir/config.status; then
3009   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3010 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3011    { (exit 1); exit 1; }; }
3012 fi
3013
3014 # test whether we have cygpath
3015 if test -z "$CYGPATH_W"; then
3016   if (cygpath --version) >/dev/null 2>/dev/null; then
3017     CYGPATH_W='cygpath -w'
3018   else
3019     CYGPATH_W=echo
3020   fi
3021 fi
3022
3023
3024 # Define the identity of the package.
3025  PACKAGE='heimdal'
3026  VERSION='0.6.3'
3027
3028
3029 cat >>confdefs.h <<_ACEOF
3030 #define PACKAGE "$PACKAGE"
3031 _ACEOF
3032
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define VERSION "$VERSION"
3036 _ACEOF
3037
3038 # Some tools Automake needs.
3039
3040 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3041
3042
3043 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3044
3045
3046 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3047
3048
3049 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3050
3051
3052 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3053
3054
3055 AMTAR=${AMTAR-"${am_missing_run}tar"}
3056
3057 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3058
3059 # Installed binaries are usually stripped using `strip' when the user
3060 # run `make install-strip'.  However `strip' might not be the right
3061 # tool to use in cross-compilation environments, therefore Automake
3062 # will honor the `STRIP' environment variable to overrule this program.
3063 if test "$cross_compiling" != no; then
3064   if test -n "$ac_tool_prefix"; then
3065   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}strip; ac_word=$2
3067 echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069 if test "${ac_cv_prog_STRIP+set}" = set; then
3070   echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072   if test -n "$STRIP"; then
3073   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   for ac_exec_ext in '' $ac_executable_extensions; do
3081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087 done
3088
3089 fi
3090 fi
3091 STRIP=$ac_cv_prog_STRIP
3092 if test -n "$STRIP"; then
3093   echo "$as_me:$LINENO: result: $STRIP" >&5
3094 echo "${ECHO_T}$STRIP" >&6
3095 else
3096   echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3098 fi
3099
3100 fi
3101 if test -z "$ac_cv_prog_STRIP"; then
3102   ac_ct_STRIP=$STRIP
3103   # Extract the first word of "strip", so it can be a program name with args.
3104 set dummy strip; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3108   echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110   if test -n "$ac_ct_STRIP"; then
3111   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116   IFS=$as_save_IFS
3117   test -z "$as_dir" && as_dir=.
3118   for ac_exec_ext in '' $ac_executable_extensions; do
3119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120     ac_cv_prog_ac_ct_STRIP="strip"
3121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122     break 2
3123   fi
3124 done
3125 done
3126
3127   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3128 fi
3129 fi
3130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3131 if test -n "$ac_ct_STRIP"; then
3132   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3133 echo "${ECHO_T}$ac_ct_STRIP" >&6
3134 else
3135   echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3137 fi
3138
3139   STRIP=$ac_ct_STRIP
3140 else
3141   STRIP="$ac_cv_prog_STRIP"
3142 fi
3143
3144 fi
3145 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3146
3147 # We need awk for the "check" target.  The system "awk" is bad on
3148 # some platforms.
3149
3150
3151
3152 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3153 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3154     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3155 if test "${enable_maintainer_mode+set}" = set; then
3156   enableval="$enable_maintainer_mode"
3157   USE_MAINTAINER_MODE=$enableval
3158 else
3159   USE_MAINTAINER_MODE=no
3160 fi;
3161   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3162 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3163
3164
3165 if test $USE_MAINTAINER_MODE = yes; then
3166   MAINTAINER_MODE_TRUE=
3167   MAINTAINER_MODE_FALSE='#'
3168 else
3169   MAINTAINER_MODE_TRUE='#'
3170   MAINTAINER_MODE_FALSE=
3171 fi
3172
3173   MAINT=$MAINTAINER_MODE_TRUE
3174
3175
3176
3177
3178
3179 test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3180 test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3181
3182 # Make sure we can run config.sub.
3183 $ac_config_sub sun4 >/dev/null 2>&1 ||
3184   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3185 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3186    { (exit 1); exit 1; }; }
3187
3188 echo "$as_me:$LINENO: checking build system type" >&5
3189 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3190 if test "${ac_cv_build+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   ac_cv_build_alias=$build_alias
3194 test -z "$ac_cv_build_alias" &&
3195   ac_cv_build_alias=`$ac_config_guess`
3196 test -z "$ac_cv_build_alias" &&
3197   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3198 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3199    { (exit 1); exit 1; }; }
3200 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3201   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3202 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3203    { (exit 1); exit 1; }; }
3204
3205 fi
3206 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3207 echo "${ECHO_T}$ac_cv_build" >&6
3208 build=$ac_cv_build
3209 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3210 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3211 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3212
3213
3214 echo "$as_me:$LINENO: checking host system type" >&5
3215 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3216 if test "${ac_cv_host+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   ac_cv_host_alias=$host_alias
3220 test -z "$ac_cv_host_alias" &&
3221   ac_cv_host_alias=$ac_cv_build_alias
3222 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3223   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3224 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3225    { (exit 1); exit 1; }; }
3226
3227 fi
3228 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3229 echo "${ECHO_T}$ac_cv_host" >&6
3230 host=$ac_cv_host
3231 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3232 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3233 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3234
3235
3236 CANONICAL_HOST=$host
3237
3238
3239
3240 # Check whether --enable-largefile or --disable-largefile was given.
3241 if test "${enable_largefile+set}" = set; then
3242   enableval="$enable_largefile"
3243
3244 fi;
3245 if test "$enable_largefile" != no; then
3246
3247   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3248 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3249 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3250   echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252   ac_cv_sys_largefile_CC=no
3253      if test "$GCC" != yes; then
3254        ac_save_CC=$CC
3255        while :; do
3256          # IRIX 6.2 and later do not support large files by default,
3257          # so use the C compiler's -n32 option if that helps.
3258          cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 #include <sys/types.h>
3265  /* Check that off_t can represent 2**63 - 1 correctly.
3266     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3267     since some C++ compilers masquerading as C compilers
3268     incorrectly reject 9223372036854775807.  */
3269 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3270   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3271                        && LARGE_OFF_T % 2147483647 == 1)
3272                       ? 1 : -1];
3273 int
3274 main ()
3275 {
3276
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281          rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283   (eval $ac_compile) 2>conftest.er1
3284   ac_status=$?
3285   grep -v '^ *+' conftest.er1 >conftest.err
3286   rm -f conftest.er1
3287   cat conftest.err >&5
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); } &&
3290          { ac_try='test -z "$ac_c_werror_flag"
3291                          || test ! -s conftest.err'
3292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293   (eval $ac_try) 2>&5
3294   ac_status=$?
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); }; } &&
3297          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3303   break
3304 else
3305   echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 fi
3309 rm -f conftest.err conftest.$ac_objext
3310          CC="$CC -n32"
3311          rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313   (eval $ac_compile) 2>conftest.er1
3314   ac_status=$?
3315   grep -v '^ *+' conftest.er1 >conftest.err
3316   rm -f conftest.er1
3317   cat conftest.err >&5
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); } &&
3320          { ac_try='test -z "$ac_c_werror_flag"
3321                          || test ! -s conftest.err'
3322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323   (eval $ac_try) 2>&5
3324   ac_status=$?
3325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); }; } &&
3327          { ac_try='test -s conftest.$ac_objext'
3328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329   (eval $ac_try) 2>&5
3330   ac_status=$?
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); }; }; then
3333   ac_cv_sys_largefile_CC=' -n32'; break
3334 else
3335   echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 fi
3339 rm -f conftest.err conftest.$ac_objext
3340          break
3341        done
3342        CC=$ac_save_CC
3343        rm -f conftest.$ac_ext
3344     fi
3345 fi
3346 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3347 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3348   if test "$ac_cv_sys_largefile_CC" != no; then
3349     CC=$CC$ac_cv_sys_largefile_CC
3350   fi
3351
3352   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3353 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3354 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   while :; do
3358   ac_cv_sys_file_offset_bits=no
3359   cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365 #include <sys/types.h>
3366  /* Check that off_t can represent 2**63 - 1 correctly.
3367     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3368     since some C++ compilers masquerading as C compilers
3369     incorrectly reject 9223372036854775807.  */
3370 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3371   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3372                        && LARGE_OFF_T % 2147483647 == 1)
3373                       ? 1 : -1];
3374 int
3375 main ()
3376 {
3377
3378   ;
3379   return 0;
3380 }
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384   (eval $ac_compile) 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } &&
3391          { ac_try='test -z "$ac_c_werror_flag"
3392                          || test ! -s conftest.err'
3393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394   (eval $ac_try) 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }; } &&
3398          { ac_try='test -s conftest.$ac_objext'
3399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400   (eval $ac_try) 2>&5
3401   ac_status=$?
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); }; }; then
3404   break
3405 else
3406   echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 fi
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411   cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h.  */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h.  */
3417 #define _FILE_OFFSET_BITS 64
3418 #include <sys/types.h>
3419  /* Check that off_t can represent 2**63 - 1 correctly.
3420     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3421     since some C++ compilers masquerading as C compilers
3422     incorrectly reject 9223372036854775807.  */
3423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3424   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3425                        && LARGE_OFF_T % 2147483647 == 1)
3426                       ? 1 : -1];
3427 int
3428 main ()
3429 {
3430
3431   ;
3432   return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437   (eval $ac_compile) 2>conftest.er1
3438   ac_status=$?
3439   grep -v '^ *+' conftest.er1 >conftest.err
3440   rm -f conftest.er1
3441   cat conftest.err >&5
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); } &&
3444          { ac_try='test -z "$ac_c_werror_flag"
3445                          || test ! -s conftest.err'
3446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447   (eval $ac_try) 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }; } &&
3451          { ac_try='test -s conftest.$ac_objext'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; }; then
3457   ac_cv_sys_file_offset_bits=64; break
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 fi
3463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3464   break
3465 done
3466 fi
3467 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3468 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3469 if test "$ac_cv_sys_file_offset_bits" != no; then
3470
3471 cat >>confdefs.h <<_ACEOF
3472 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3473 _ACEOF
3474
3475 fi
3476 rm -f conftest*
3477   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3478 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3479 if test "${ac_cv_sys_large_files+set}" = set; then
3480   echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482   while :; do
3483   ac_cv_sys_large_files=no
3484   cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490 #include <sys/types.h>
3491  /* Check that off_t can represent 2**63 - 1 correctly.
3492     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3493     since some C++ compilers masquerading as C compilers
3494     incorrectly reject 9223372036854775807.  */
3495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3496   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3497                        && LARGE_OFF_T % 2147483647 == 1)
3498                       ? 1 : -1];
3499 int
3500 main ()
3501 {
3502
3503   ;
3504   return 0;
3505 }
3506 _ACEOF
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509   (eval $ac_compile) 2>conftest.er1
3510   ac_status=$?
3511   grep -v '^ *+' conftest.er1 >conftest.err
3512   rm -f conftest.er1
3513   cat conftest.err >&5
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); } &&
3516          { ac_try='test -z "$ac_c_werror_flag"
3517                          || test ! -s conftest.err'
3518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519   (eval $ac_try) 2>&5
3520   ac_status=$?
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); }; } &&
3523          { ac_try='test -s conftest.$ac_objext'
3524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525   (eval $ac_try) 2>&5
3526   ac_status=$?
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); }; }; then
3529   break
3530 else
3531   echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 fi
3535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 #define _LARGE_FILES 1
3543 #include <sys/types.h>
3544  /* Check that off_t can represent 2**63 - 1 correctly.
3545     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3546     since some C++ compilers masquerading as C compilers
3547     incorrectly reject 9223372036854775807.  */
3548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3549   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3550                        && LARGE_OFF_T % 2147483647 == 1)
3551                       ? 1 : -1];
3552 int
3553 main ()
3554 {
3555
3556   ;
3557   return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562   (eval $ac_compile) 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } &&
3569          { ac_try='test -z "$ac_c_werror_flag"
3570                          || test ! -s conftest.err'
3571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572   (eval $ac_try) 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; } &&
3576          { ac_try='test -s conftest.$ac_objext'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; }; then
3582   ac_cv_sys_large_files=1; break
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 fi
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589   break
3590 done
3591 fi
3592 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3593 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3594 if test "$ac_cv_sys_large_files" != no; then
3595
3596 cat >>confdefs.h <<_ACEOF
3597 #define _LARGE_FILES $ac_cv_sys_large_files
3598 _ACEOF
3599
3600 fi
3601 rm -f conftest*
3602 fi
3603
3604 if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
3605         CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
3606 fi
3607
3608
3609 cat >>confdefs.h <<\_ACEOF
3610 #define _GNU_SOURCE 1
3611 _ACEOF
3612
3613
3614
3615
3616
3617 for ac_prog in 'bison -y' byacc
3618 do
3619   # Extract the first word of "$ac_prog", so it can be a program name with args.
3620 set dummy $ac_prog; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_prog_YACC+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   if test -n "$YACC"; then
3627   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3631 do
3632   IFS=$as_save_IFS
3633   test -z "$as_dir" && as_dir=.
3634   for ac_exec_ext in '' $ac_executable_extensions; do
3635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636     ac_cv_prog_YACC="$ac_prog"
3637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3638     break 2
3639   fi
3640 done
3641 done
3642
3643 fi
3644 fi
3645 YACC=$ac_cv_prog_YACC
3646 if test -n "$YACC"; then
3647   echo "$as_me:$LINENO: result: $YACC" >&5
3648 echo "${ECHO_T}$YACC" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654   test -n "$YACC" && break
3655 done
3656 test -n "$YACC" || YACC="yacc"
3657
3658 for ac_prog in flex lex
3659 do
3660   # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy $ac_prog; ac_word=$2
3662 echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_prog_LEX+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   if test -n "$LEX"; then
3668   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_prog_LEX="$ac_prog"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684 fi
3685 fi
3686 LEX=$ac_cv_prog_LEX
3687 if test -n "$LEX"; then
3688   echo "$as_me:$LINENO: result: $LEX" >&5
3689 echo "${ECHO_T}$LEX" >&6
3690 else
3691   echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3693 fi
3694
3695   test -n "$LEX" && break
3696 done
3697 test -n "$LEX" || LEX=":"
3698
3699 if test -z "$LEXLIB"
3700 then
3701   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3702 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3703 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   ac_check_lib_save_LIBS=$LIBS
3707 LIBS="-lfl  $LIBS"
3708 cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h.  */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h.  */
3714
3715 /* Override any gcc2 internal prototype to avoid an error.  */
3716 #ifdef __cplusplus
3717 extern "C"
3718 #endif
3719 /* We use char because int might match the return type of a gcc2
3720    builtin and then its argument prototype would still apply.  */
3721 char yywrap ();
3722 int
3723 main ()
3724 {
3725 yywrap ();
3726   ;
3727   return 0;
3728 }
3729 _ACEOF
3730 rm -f conftest.$ac_objext conftest$ac_exeext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732   (eval $ac_link) 2>conftest.er1
3733   ac_status=$?
3734   grep -v '^ *+' conftest.er1 >conftest.err
3735   rm -f conftest.er1
3736   cat conftest.err >&5
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); } &&
3739          { ac_try='test -z "$ac_c_werror_flag"
3740                          || test ! -s conftest.err'
3741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742   (eval $ac_try) 2>&5
3743   ac_status=$?
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); }; } &&
3746          { ac_try='test -s conftest$ac_exeext'
3747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748   (eval $ac_try) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }; }; then
3752   ac_cv_lib_fl_yywrap=yes
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 ac_cv_lib_fl_yywrap=no
3758 fi
3759 rm -f conftest.err conftest.$ac_objext \
3760       conftest$ac_exeext conftest.$ac_ext
3761 LIBS=$ac_check_lib_save_LIBS
3762 fi
3763 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3764 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3765 if test $ac_cv_lib_fl_yywrap = yes; then
3766   LEXLIB="-lfl"
3767 else
3768   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3769 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3770 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   ac_check_lib_save_LIBS=$LIBS
3774 LIBS="-ll  $LIBS"
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781
3782 /* Override any gcc2 internal prototype to avoid an error.  */
3783 #ifdef __cplusplus
3784 extern "C"
3785 #endif
3786 /* We use char because int might match the return type of a gcc2
3787    builtin and then its argument prototype would still apply.  */
3788 char yywrap ();
3789 int
3790 main ()
3791 {
3792 yywrap ();
3793   ;
3794   return 0;
3795 }
3796 _ACEOF
3797 rm -f conftest.$ac_objext conftest$ac_exeext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799   (eval $ac_link) 2>conftest.er1
3800   ac_status=$?
3801   grep -v '^ *+' conftest.er1 >conftest.err
3802   rm -f conftest.er1
3803   cat conftest.err >&5
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } &&
3806          { ac_try='test -z "$ac_c_werror_flag"
3807                          || test ! -s conftest.err'
3808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809   (eval $ac_try) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); }; } &&
3813          { ac_try='test -s conftest$ac_exeext'
3814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815   (eval $ac_try) 2>&5
3816   ac_status=$?
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); }; }; then
3819   ac_cv_lib_l_yywrap=yes
3820 else
3821   echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 ac_cv_lib_l_yywrap=no
3825 fi
3826 rm -f conftest.err conftest.$ac_objext \
3827       conftest$ac_exeext conftest.$ac_ext
3828 LIBS=$ac_check_lib_save_LIBS
3829 fi
3830 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3831 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3832 if test $ac_cv_lib_l_yywrap = yes; then
3833   LEXLIB="-ll"
3834 fi
3835
3836 fi
3837
3838 fi
3839
3840 if test "x$LEX" != "x:"; then
3841   echo "$as_me:$LINENO: checking lex output file root" >&5
3842 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3843 if test "${ac_cv_prog_lex_root+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   # The minimal lex program is just a single line: %%.  But some broken lexes
3847 # (Solaris, I think it was) want two %% lines, so accommodate them.
3848 cat >conftest.l <<_ACEOF
3849 %%
3850 %%
3851 _ACEOF
3852 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3853   (eval $LEX conftest.l) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }
3857 if test -f lex.yy.c; then
3858   ac_cv_prog_lex_root=lex.yy
3859 elif test -f lexyy.c; then
3860   ac_cv_prog_lex_root=lexyy
3861 else
3862   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3863 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3864    { (exit 1); exit 1; }; }
3865 fi
3866 fi
3867 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3868 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3869 rm -f conftest.l
3870 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3871
3872 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3873 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3874 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877   # POSIX says lex can declare yytext either as a pointer or an array; the
3878 # default is implementation-dependent. Figure out which it is, since
3879 # not all implementations provide the %pointer and %array declarations.
3880 ac_cv_prog_lex_yytext_pointer=no
3881 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3882 ac_save_LIBS=$LIBS
3883 LIBS="$LIBS $LEXLIB"
3884 cat >conftest.$ac_ext <<_ACEOF
3885 `cat $LEX_OUTPUT_ROOT.c`
3886 _ACEOF
3887 rm -f conftest.$ac_objext conftest$ac_exeext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3889   (eval $ac_link) 2>conftest.er1
3890   ac_status=$?
3891   grep -v '^ *+' conftest.er1 >conftest.err
3892   rm -f conftest.er1
3893   cat conftest.err >&5
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); } &&
3896          { ac_try='test -z "$ac_c_werror_flag"
3897                          || test ! -s conftest.err'
3898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899   (eval $ac_try) 2>&5
3900   ac_status=$?
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); }; } &&
3903          { ac_try='test -s conftest$ac_exeext'
3904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905   (eval $ac_try) 2>&5
3906   ac_status=$?
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); }; }; then
3909   ac_cv_prog_lex_yytext_pointer=yes
3910 else
3911   echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914 fi
3915 rm -f conftest.err conftest.$ac_objext \
3916       conftest$ac_exeext conftest.$ac_ext
3917 LIBS=$ac_save_LIBS
3918 rm -f "${LEX_OUTPUT_ROOT}.c"
3919
3920 fi
3921 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3922 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3923 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3924
3925 cat >>confdefs.h <<\_ACEOF
3926 #define YYTEXT_POINTER 1
3927 _ACEOF
3928
3929 fi
3930
3931 fi
3932 if test "$LEX" = :; then
3933   LEX=${am_missing_run}flex
3934 fi
3935 for ac_prog in gawk mawk nawk awk
3936 do
3937   # Extract the first word of "$ac_prog", so it can be a program name with args.
3938 set dummy $ac_prog; ac_word=$2
3939 echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 if test "${ac_cv_prog_AWK+set}" = set; then
3942   echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944   if test -n "$AWK"; then
3945   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950   IFS=$as_save_IFS
3951   test -z "$as_dir" && as_dir=.
3952   for ac_exec_ext in '' $ac_executable_extensions; do
3953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954     ac_cv_prog_AWK="$ac_prog"
3955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956     break 2
3957   fi
3958 done
3959 done
3960
3961 fi
3962 fi
3963 AWK=$ac_cv_prog_AWK
3964 if test -n "$AWK"; then
3965   echo "$as_me:$LINENO: result: $AWK" >&5
3966 echo "${ECHO_T}$AWK" >&6
3967 else
3968   echo "$as_me:$LINENO: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3970 fi
3971
3972   test -n "$AWK" && break
3973 done
3974
3975 echo "$as_me:$LINENO: checking for ln -s or something else" >&5
3976 echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
3977 if test "${ac_cv_prog_LN_S+set}" = set; then
3978   echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980   rm -f conftestdata
3981 if ln -s X conftestdata 2>/dev/null
3982 then
3983   rm -f conftestdata
3984   ac_cv_prog_LN_S="ln -s"
3985 else
3986   touch conftestdata1
3987   if ln conftestdata1 conftestdata2; then
3988     rm -f conftestdata*
3989     ac_cv_prog_LN_S=ln
3990   else
3991     ac_cv_prog_LN_S=cp
3992   fi
3993 fi
3994 fi
3995 LN_S="$ac_cv_prog_LN_S"
3996 echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
3997 echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
3998
3999
4000
4001
4002 # Check whether --with-mips_abi or --without-mips_abi was given.
4003 if test "${with_mips_abi+set}" = set; then
4004   withval="$with_mips_abi"
4005
4006 fi;
4007
4008 case "$host_os" in
4009 irix*)
4010 with_mips_abi="${with_mips_abi:-yes}"
4011 if test -n "$GCC"; then
4012
4013 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
4014 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
4015 #
4016 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
4017 # GCC and revert back to O32. The same goes if O32 is asked for - old
4018 # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
4019 #
4020 # Don't you just love *all* the different SGI ABIs?
4021
4022 case "${with_mips_abi}" in
4023         32|o32) abi='-mabi=32';  abilibdirext=''     ;;
4024        n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
4025         64) abi='-mabi=64';  abilibdirext='64'   ;;
4026         no) abi=''; abilibdirext='';;
4027          *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4028 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4029    { (exit 1); exit 1; }; } ;;
4030 esac
4031 if test -n "$abi" ; then
4032 ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
4033 echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
4034 echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
4035 if eval "test \"\${$ac_foo+set}\" = set"; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038
4039 save_CFLAGS="$CFLAGS"
4040 CFLAGS="$CFLAGS $abi"
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047
4048 int
4049 main ()
4050 {
4051 int x;
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058   (eval $ac_compile) 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } &&
4065          { ac_try='test -z "$ac_c_werror_flag"
4066                          || test ! -s conftest.err'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; } &&
4072          { ac_try='test -s conftest.$ac_objext'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; }; then
4078   eval $ac_foo=yes
4079 else
4080   echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 eval $ac_foo=no
4084 fi
4085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086 CFLAGS="$save_CFLAGS"
4087
4088 fi
4089
4090 ac_res=`eval echo \\\$$ac_foo`
4091 echo "$as_me:$LINENO: result: $ac_res" >&5
4092 echo "${ECHO_T}$ac_res" >&6
4093 if test $ac_res = no; then
4094 # Try to figure out why that failed...
4095 case $abi in
4096         -mabi=32)
4097         save_CFLAGS="$CFLAGS"
4098         CFLAGS="$CFLAGS -mabi=n32"
4099         cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h.  */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h.  */
4105
4106 int
4107 main ()
4108 {
4109 int x;
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116   (eval $ac_compile) 2>conftest.er1
4117   ac_status=$?
4118   grep -v '^ *+' conftest.er1 >conftest.err
4119   rm -f conftest.er1
4120   cat conftest.err >&5
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } &&
4123          { ac_try='test -z "$ac_c_werror_flag"
4124                          || test ! -s conftest.err'
4125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126   (eval $ac_try) 2>&5
4127   ac_status=$?
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); }; } &&
4130          { ac_try='test -s conftest.$ac_objext'
4131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132   (eval $ac_try) 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; }; then
4136   ac_res=yes
4137 else
4138   echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4140
4141 ac_res=no
4142 fi
4143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4144         CLAGS="$save_CFLAGS"
4145         if test $ac_res = yes; then
4146                 # New GCC
4147                 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4148 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4149    { (exit 1); exit 1; }; }
4150         fi
4151         # Old GCC
4152         abi=''
4153         abilibdirext=''
4154         ;;
4155         -mabi=n32|-mabi=64)
4156                 if test $with_mips_abi = yes; then
4157                         # Old GCC, default to O32
4158                         abi=''
4159                         abilibdirext=''
4160                 else
4161                         # Some broken GCC
4162                         { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4163 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4164    { (exit 1); exit 1; }; }
4165                 fi
4166         ;;
4167 esac
4168 fi #if test $ac_res = no; then
4169 fi #if test -n "$abi" ; then
4170 else
4171 case "${with_mips_abi}" in
4172         32|o32) abi='-32'; abilibdirext=''     ;;
4173        n32|yes) abi='-n32'; abilibdirext='32'  ;;
4174         64) abi='-64'; abilibdirext='64'   ;;
4175         no) abi=''; abilibdirext='';;
4176          *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4177 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4178    { (exit 1); exit 1; }; } ;;
4179 esac
4180 fi #if test -n "$GCC"; then
4181 ;;
4182 esac
4183
4184 CC="$CC $abi"
4185 libdir="$libdir$abilibdirext"
4186
4187
4188 echo "$as_me:$LINENO: checking for __attribute__" >&5
4189 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
4190 if test "${ac_cv___attribute__+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200
4201 #include <stdlib.h>
4202
4203 int
4204 main ()
4205 {
4206
4207 static void foo(void) __attribute__ ((noreturn));
4208
4209 static void
4210 foo(void)
4211 {
4212   exit(1);
4213 }
4214
4215   ;
4216   return 0;
4217 }
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221   (eval $ac_compile) 2>conftest.er1
4222   ac_status=$?
4223   grep -v '^ *+' conftest.er1 >conftest.err
4224   rm -f conftest.er1
4225   cat conftest.err >&5
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } &&
4228          { ac_try='test -z "$ac_c_werror_flag"
4229                          || test ! -s conftest.err'
4230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231   (eval $ac_try) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; } &&
4235          { ac_try='test -s conftest.$ac_objext'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   ac_cv___attribute__=yes
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246 ac_cv___attribute__=no
4247 fi
4248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4249 fi
4250
4251 if test "$ac_cv___attribute__" = "yes"; then
4252
4253 cat >>confdefs.h <<\_ACEOF
4254 #define HAVE___ATTRIBUTE__ 1
4255 _ACEOF
4256
4257 fi
4258 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4259 echo "${ECHO_T}$ac_cv___attribute__" >&6
4260
4261
4262 # Check whether --enable-shared or --disable-shared was given.
4263 if test "${enable_shared+set}" = set; then
4264   enableval="$enable_shared"
4265   p=${PACKAGE-default}
4266     case $enableval in
4267     yes) enable_shared=yes ;;
4268     no) enable_shared=no ;;
4269     *)
4270       enable_shared=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_shared=yes
4277         fi
4278       done
4279       IFS="$lt_save_ifs"
4280       ;;
4281     esac
4282 else
4283   enable_shared=no
4284 fi;
4285
4286 # Check whether --enable-static or --disable-static was given.
4287 if test "${enable_static+set}" = set; then
4288   enableval="$enable_static"
4289   p=${PACKAGE-default}
4290     case $enableval in
4291     yes) enable_static=yes ;;
4292     no) enable_static=no ;;
4293     *)
4294      enable_static=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_static=yes
4301         fi
4302       done
4303       IFS="$lt_save_ifs"
4304       ;;
4305     esac
4306 else
4307   enable_static=yes
4308 fi;
4309
4310 # Check whether --enable-fast-install or --disable-fast-install was given.
4311 if test "${enable_fast_install+set}" = set; then
4312   enableval="$enable_fast_install"
4313   p=${PACKAGE-default}
4314     case $enableval in
4315     yes) enable_fast_install=yes ;;
4316     no) enable_fast_install=no ;;
4317     *)
4318       enable_fast_install=no
4319       # Look at the argument we got.  We use all the common list separators.
4320       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4321       for pkg in $enableval; do
4322         IFS="$lt_save_ifs"
4323         if test "X$pkg" = "X$p"; then
4324           enable_fast_install=yes
4325         fi
4326       done
4327       IFS="$lt_save_ifs"
4328       ;;
4329     esac
4330 else
4331   enable_fast_install=yes
4332 fi;
4333
4334 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4335 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4336 if test "${lt_cv_path_SED+set}" = set; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   # Loop through the user's path and test for sed and gsed.
4340 # Then use that list of sed's as ones to test for truncation.
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4343 do
4344   IFS=$as_save_IFS
4345   test -z "$as_dir" && as_dir=.
4346   for lt_ac_prog in sed gsed; do
4347     for ac_exec_ext in '' $ac_executable_extensions; do
4348       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4349         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4350       fi
4351     done
4352   done
4353 done
4354 lt_ac_max=0
4355 lt_ac_count=0
4356 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4357 # along with /bin/sed that truncates output.
4358 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4359   test ! -f $lt_ac_sed && break
4360   cat /dev/null > conftest.in
4361   lt_ac_count=0
4362   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4363   # Check for GNU sed and select it if it is found.
4364   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4365     lt_cv_path_SED=$lt_ac_sed
4366     break
4367   fi
4368   while true; do
4369     cat conftest.in conftest.in >conftest.tmp
4370     mv conftest.tmp conftest.in
4371     cp conftest.in conftest.nl
4372     echo >>conftest.nl
4373     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4374     cmp -s conftest.out conftest.nl || break
4375     # 10000 chars as input seems more than enough
4376     test $lt_ac_count -gt 10 && break
4377     lt_ac_count=`expr $lt_ac_count + 1`
4378     if test $lt_ac_count -gt $lt_ac_max; then
4379       lt_ac_max=$lt_ac_count
4380       lt_cv_path_SED=$lt_ac_sed
4381     fi
4382   done
4383 done
4384 SED=$lt_cv_path_SED
4385
4386 fi
4387
4388 echo "$as_me:$LINENO: result: $SED" >&5
4389 echo "${ECHO_T}$SED" >&6
4390
4391 echo "$as_me:$LINENO: checking for egrep" >&5
4392 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4393 if test "${ac_cv_prog_egrep+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4397     then ac_cv_prog_egrep='grep -E'
4398     else ac_cv_prog_egrep='egrep'
4399     fi
4400 fi
4401 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4402 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4403  EGREP=$ac_cv_prog_egrep
4404
4405
4406
4407 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4408 if test "${with_gnu_ld+set}" = set; then
4409   withval="$with_gnu_ld"
4410   test "$withval" = no || with_gnu_ld=yes
4411 else
4412   with_gnu_ld=no
4413 fi;
4414 ac_prog=ld
4415 if test "$GCC" = yes; then
4416   # Check if gcc -print-prog-name=ld gives a path.
4417   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4418 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4419   case $host in
4420   *-*-mingw*)
4421     # gcc leaves a trailing carriage return which upsets mingw
4422     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4423   *)
4424     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4425   esac
4426   case $ac_prog in
4427     # Accept absolute paths.
4428     [\\/]* | ?:[\\/]*)
4429       re_direlt='/[^/][^/]*/\.\./'
4430       # Canonicalize the pathname of ld
4431       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4432       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4433         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4434       done
4435       test -z "$LD" && LD="$ac_prog"
4436       ;;
4437   "")
4438     # If it fails, then pretend we aren't using GCC.
4439     ac_prog=ld
4440     ;;
4441   *)
4442     # If it is relative, then search for the first ld in PATH.
4443     with_gnu_ld=unknown
4444     ;;
4445   esac
4446 elif test "$with_gnu_ld" = yes; then
4447   echo "$as_me:$LINENO: checking for GNU ld" >&5
4448 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4449 else
4450   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4451 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4452 fi
4453 if test "${lt_cv_path_LD+set}" = set; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   if test -z "$LD"; then
4457   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4458   for ac_dir in $PATH; do
4459     IFS="$lt_save_ifs"
4460     test -z "$ac_dir" && ac_dir=.
4461     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4462       lt_cv_path_LD="$ac_dir/$ac_prog"
4463       # Check to see if the program is GNU ld.  I'd rather use --version,
4464       # but apparently some GNU ld's only accept -v.
4465       # Break only if it was the GNU/non-GNU ld that we prefer.
4466       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4467       *GNU* | *'with BFD'*)
4468         test "$with_gnu_ld" != no && break
4469         ;;
4470       *)
4471         test "$with_gnu_ld" != yes && break
4472         ;;
4473       esac
4474     fi
4475   done
4476   IFS="$lt_save_ifs"
4477 else
4478   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4479 fi
4480 fi
4481
4482 LD="$lt_cv_path_LD"
4483 if test -n "$LD"; then
4484   echo "$as_me:$LINENO: result: $LD" >&5
4485 echo "${ECHO_T}$LD" >&6
4486 else
4487   echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6
4489 fi
4490 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4491 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4492    { (exit 1); exit 1; }; }
4493 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4494 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4495 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4499 case `$LD -v 2>&1 </dev/null` in
4500 *GNU* | *'with BFD'*)
4501   lt_cv_prog_gnu_ld=yes
4502   ;;
4503 *)
4504   lt_cv_prog_gnu_ld=no
4505   ;;
4506 esac
4507 fi
4508 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4509 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4510 with_gnu_ld=$lt_cv_prog_gnu_ld
4511
4512
4513 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4514 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4515 if test "${lt_cv_ld_reload_flag+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   lt_cv_ld_reload_flag='-r'
4519 fi
4520 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4521 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4522 reload_flag=$lt_cv_ld_reload_flag
4523 case $reload_flag in
4524 "" | " "*) ;;
4525 *) reload_flag=" $reload_flag" ;;
4526 esac
4527 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4528
4529 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4530 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4531 if test "${lt_cv_path_NM+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534   if test -n "$NM"; then
4535   # Let the user override the test.
4536   lt_cv_path_NM="$NM"
4537 else
4538   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4539   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4540     IFS="$lt_save_ifs"
4541     test -z "$ac_dir" && ac_dir=.
4542     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4543     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4544       # Check to see if the nm accepts a BSD-compat flag.
4545       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4546       #   nm: unknown option "B" ignored
4547       # Tru64's nm complains that /dev/null is an invalid object file
4548       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4549       */dev/null* | *'Invalid file or object type'*)
4550         lt_cv_path_NM="$tmp_nm -B"
4551         break
4552         ;;
4553       *)
4554         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4555         */dev/null*)
4556           lt_cv_path_NM="$tmp_nm -p"
4557           break
4558           ;;
4559         *)
4560           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4561           continue # so that we can try to find one that supports BSD flags
4562           ;;
4563         esac
4564       esac
4565     fi
4566   done
4567   IFS="$lt_save_ifs"
4568   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4569 fi
4570 fi
4571 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4572 echo "${ECHO_T}$lt_cv_path_NM" >&6
4573 NM="$lt_cv_path_NM"
4574
4575 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4576 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4577 LN_S=$as_ln_s
4578 if test "$LN_S" = "ln -s"; then
4579   echo "$as_me:$LINENO: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6
4581 else
4582   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4583 echo "${ECHO_T}no, using $LN_S" >&6
4584 fi
4585
4586 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4587 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4588 if test "${lt_cv_deplibs_check_method+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591   lt_cv_file_magic_cmd='$MAGIC_CMD'
4592 lt_cv_file_magic_test_file=
4593 lt_cv_deplibs_check_method='unknown'
4594 # Need to set the preceding variable on all platforms that support
4595 # interlibrary dependencies.
4596 # 'none' -- dependencies not supported.
4597 # `unknown' -- same as none, but documents that we really don't know.
4598 # 'pass_all' -- all dependencies passed with no checks.
4599 # 'test_compile' -- check by making test program.
4600 # 'file_magic [[regex]]' -- check by looking for files in library path
4601 # which responds to the $file_magic_cmd with a given extended regex.
4602 # If you have `file' or equivalent on your system and you're not sure
4603 # whether `pass_all' will *always* work, you probably want this one.
4604
4605 case $host_os in
4606 aix4* | aix5*)
4607   lt_cv_deplibs_check_method=pass_all
4608   ;;
4609
4610 beos*)
4611   lt_cv_deplibs_check_method=pass_all
4612   ;;
4613
4614 bsdi4*)
4615   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4616   lt_cv_file_magic_cmd='/usr/bin/file -L'
4617   lt_cv_file_magic_test_file=/shlib/libc.so
4618   ;;
4619
4620 cygwin*)
4621   # win32_libid is a shell function defined in ltmain.sh
4622   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4623   lt_cv_file_magic_cmd='win32_libid'
4624   ;;
4625
4626 mingw* | pw32*)
4627   # Base MSYS/MinGW do not provide the 'file' command needed by
4628   # win32_libid shell function, so use a weaker test based on 'objdump'.
4629   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4630   lt_cv_file_magic_cmd='$OBJDUMP -f'
4631   ;;
4632
4633 darwin* | rhapsody*)
4634   lt_cv_deplibs_check_method=pass_all
4635   ;;
4636
4637 freebsd* | kfreebsd*-gnu)
4638   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4639     case $host_cpu in
4640     i*86 )
4641       # Not sure whether the presence of OpenBSD here was a mistake.
4642       # Let's accept both of them until this is cleared up.
4643       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4644       lt_cv_file_magic_cmd=/usr/bin/file
4645       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4646       ;;
4647     esac
4648   else
4649     lt_cv_deplibs_check_method=pass_all
4650   fi
4651   ;;
4652
4653 gnu*)
4654   lt_cv_deplibs_check_method=pass_all
4655   ;;
4656
4657 hpux10.20* | hpux11*)
4658   lt_cv_file_magic_cmd=/usr/bin/file
4659   case "$host_cpu" in
4660   ia64*)
4661     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4662     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4663     ;;
4664   hppa*64*)
4665     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]'
4666     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4667     ;;
4668   *)
4669     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4670     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4671     ;;
4672   esac
4673   ;;
4674
4675 irix5* | irix6* | nonstopux*)
4676   case $LD in
4677   *-32|*"-32 ") libmagic=32-bit;;
4678   *-n32|*"-n32 ") libmagic=N32;;
4679   *-64|*"-64 ") libmagic=64-bit;;
4680   *) libmagic=never-match;;
4681   esac
4682   lt_cv_deplibs_check_method=pass_all
4683   ;;
4684
4685 # This must be Linux ELF.
4686 linux*)
4687   case $host_cpu in
4688   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
4689     lt_cv_deplibs_check_method=pass_all ;;
4690   *)
4691     # glibc up to 2.1.1 does not perform some relocations on ARM
4692     # this will be overridden with pass_all, but let us keep it just in case
4693     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4694   esac
4695   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4696   lt_cv_deplibs_check_method=pass_all
4697   ;;
4698
4699 netbsd*)
4700   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4701     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4702   else
4703     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4704   fi
4705   ;;
4706
4707 newos6*)
4708   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4709   lt_cv_file_magic_cmd=/usr/bin/file
4710   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4711   ;;
4712
4713 nto-qnx*)
4714   lt_cv_deplibs_check_method=unknown
4715   ;;
4716
4717 openbsd*)
4718   lt_cv_file_magic_cmd=/usr/bin/file
4719   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4720   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4721     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4722   else
4723     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4724   fi
4725   ;;
4726
4727 osf3* | osf4* | osf5*)
4728   lt_cv_deplibs_check_method=pass_all
4729   ;;
4730
4731 sco3.2v5*)
4732   lt_cv_deplibs_check_method=pass_all
4733   ;;
4734
4735 solaris*)
4736   lt_cv_deplibs_check_method=pass_all
4737   ;;
4738
4739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4740   case $host_vendor in
4741   motorola)
4742     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]'
4743     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4744     ;;
4745   ncr)
4746     lt_cv_deplibs_check_method=pass_all
4747     ;;
4748   sequent)
4749     lt_cv_file_magic_cmd='/bin/file'
4750     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4751     ;;
4752   sni)
4753     lt_cv_file_magic_cmd='/bin/file'
4754     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4755     lt_cv_file_magic_test_file=/lib/libc.so
4756     ;;
4757   siemens)
4758     lt_cv_deplibs_check_method=pass_all
4759     ;;
4760   esac
4761   ;;
4762
4763 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4764   lt_cv_deplibs_check_method=pass_all
4765   ;;
4766 esac
4767
4768 fi
4769 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4770 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4771 file_magic_cmd=$lt_cv_file_magic_cmd
4772 deplibs_check_method=$lt_cv_deplibs_check_method
4773 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4774
4775
4776 # If no C compiler was specified, use CC.
4777 LTCC=${LTCC-"$CC"}
4778
4779 # Allow CC to be a program name with arguments.
4780 compiler=$CC
4781
4782 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4783 if test "${enable_libtool_lock+set}" = set; then
4784   enableval="$enable_libtool_lock"
4785
4786 fi;
4787 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4788
4789 # Some flags need to be propagated to the compiler or linker for good
4790 # libtool support.
4791 case $host in
4792 ia64-*-hpux*)
4793   # Find out which ABI we are using.
4794   echo 'int i;' > conftest.$ac_ext
4795   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796   (eval $ac_compile) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; then
4800     case `/usr/bin/file conftest.$ac_objext` in
4801     *ELF-32*)
4802       HPUX_IA64_MODE="32"
4803       ;;
4804     *ELF-64*)
4805       HPUX_IA64_MODE="64"
4806       ;;
4807     esac
4808   fi
4809   rm -rf conftest*
4810   ;;
4811 *-*-irix6*)
4812   # Find out which ABI we are using.
4813   echo '#line 4813 "configure"' > conftest.$ac_ext
4814   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815   (eval $ac_compile) 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); }; then
4819    if test "$lt_cv_prog_gnu_ld" = yes; then
4820     case `/usr/bin/file conftest.$ac_objext` in
4821     *32-bit*)
4822       LD="${LD-ld} -melf32bsmip"
4823       ;;
4824     *N32*)
4825       LD="${LD-ld} -melf32bmipn32"
4826       ;;
4827     *64-bit*)
4828       LD="${LD-ld} -melf64bmip"
4829       ;;
4830     esac
4831    else
4832     case `/usr/bin/file conftest.$ac_objext` in
4833     *32-bit*)
4834       LD="${LD-ld} -32"
4835       ;;
4836     *N32*)
4837       LD="${LD-ld} -n32"
4838       ;;
4839     *64-bit*)
4840       LD="${LD-ld} -64"
4841       ;;
4842     esac
4843    fi
4844   fi
4845   rm -rf conftest*
4846   ;;
4847
4848 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4849   # Find out which ABI we are using.
4850   echo 'int i;' > conftest.$ac_ext
4851   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852   (eval $ac_compile) 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); }; then
4856     case "`/usr/bin/file conftest.o`" in
4857     *32-bit*)
4858       case $host in
4859         x86_64-*linux*)
4860           LD="${LD-ld} -m elf_i386"
4861           ;;
4862         ppc64-*linux*|powerpc64-*linux*)
4863           LD="${LD-ld} -m elf32ppclinux"
4864           ;;
4865         s390x-*linux*)
4866           LD="${LD-ld} -m elf_s390"
4867           ;;
4868         sparc64-*linux*)
4869           LD="${LD-ld} -m elf32_sparc"
4870           ;;
4871       esac
4872       ;;
4873     *64-bit*)
4874       case $host in
4875         x86_64-*linux*)
4876           LD="${LD-ld} -m elf_x86_64"
4877           ;;
4878         ppc*-*linux*|powerpc*-*linux*)
4879           LD="${LD-ld} -m elf64ppc"
4880           ;;
4881         s390*-*linux*)
4882           LD="${LD-ld} -m elf64_s390"
4883           ;;
4884         sparc*-*linux*)
4885           LD="${LD-ld} -m elf64_sparc"
4886           ;;
4887       esac
4888       ;;
4889     esac
4890   fi
4891   rm -rf conftest*
4892   ;;
4893
4894 *-*-sco3.2v5*)
4895   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4896   SAVE_CFLAGS="$CFLAGS"
4897   CFLAGS="$CFLAGS -belf"
4898   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4899 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4900 if test "${lt_cv_cc_needs_belf+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909      cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h.  */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h.  */
4915
4916 int
4917 main ()
4918 {
4919
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext conftest$ac_exeext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4926   (eval $ac_link) 2>conftest.er1
4927   ac_status=$?
4928   grep -v '^ *+' conftest.er1 >conftest.err
4929   rm -f conftest.er1
4930   cat conftest.err >&5
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); } &&
4933          { ac_try='test -z "$ac_c_werror_flag"
4934                          || test ! -s conftest.err'
4935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936   (eval $ac_try) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; } &&
4940          { ac_try='test -s conftest$ac_exeext'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; }; then
4946   lt_cv_cc_needs_belf=yes
4947 else
4948   echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4950
4951 lt_cv_cc_needs_belf=no
4952 fi
4953 rm -f conftest.err conftest.$ac_objext \
4954       conftest$ac_exeext conftest.$ac_ext
4955      ac_ext=c
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960
4961 fi
4962 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4963 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4964   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4965     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4966     CFLAGS="$SAVE_CFLAGS"
4967   fi
4968   ;;
4969
4970 esac
4971
4972 need_locks="$enable_libtool_lock"
4973
4974
4975
4976 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4977 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4978 if test "${ac_cv_header_stdc+set}" = set; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981   cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h.  */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h.  */
4987 #include <stdlib.h>
4988 #include <stdarg.h>
4989 #include <string.h>
4990 #include <float.h>
4991
4992 int
4993 main ()
4994 {
4995
4996   ;
4997   return 0;
4998 }
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002   (eval $ac_compile) 2>conftest.er1
5003   ac_status=$?
5004   grep -v '^ *+' conftest.er1 >conftest.err
5005   rm -f conftest.er1
5006   cat conftest.err >&5
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); } &&
5009          { ac_try='test -z "$ac_c_werror_flag"
5010                          || test ! -s conftest.err'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; } &&
5016          { ac_try='test -s conftest.$ac_objext'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; }; then
5022   ac_cv_header_stdc=yes
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 ac_cv_header_stdc=no
5028 fi
5029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030
5031 if test $ac_cv_header_stdc = yes; then
5032   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 #include <string.h>
5040
5041 _ACEOF
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043   $EGREP "memchr" >/dev/null 2>&1; then
5044   :
5045 else
5046   ac_cv_header_stdc=no
5047 fi
5048 rm -f conftest*
5049
5050 fi
5051
5052 if test $ac_cv_header_stdc = yes; then
5053   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <stdlib.h>
5061
5062 _ACEOF
5063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064   $EGREP "free" >/dev/null 2>&1; then
5065   :
5066 else
5067   ac_cv_header_stdc=no
5068 fi
5069 rm -f conftest*
5070
5071 fi
5072
5073 if test $ac_cv_header_stdc = yes; then
5074   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5075   if test "$cross_compiling" = yes; then
5076   :
5077 else
5078   cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h.  */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h.  */
5084 #include <ctype.h>
5085 #if ((' ' & 0x0FF) == 0x020)
5086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5088 #else
5089 # define ISLOWER(c) \
5090                    (('a' <= (c) && (c) <= 'i') \
5091                      || ('j' <= (c) && (c) <= 'r') \
5092                      || ('s' <= (c) && (c) <= 'z'))
5093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5094 #endif
5095
5096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5097 int
5098 main ()
5099 {
5100   int i;
5101   for (i = 0; i < 256; i++)
5102     if (XOR (islower (i), ISLOWER (i))
5103         || toupper (i) != TOUPPER (i))
5104       exit(2);
5105   exit (0);
5106 }
5107 _ACEOF
5108 rm -f conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110   (eval $ac_link) 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115   (eval $ac_try) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; }; then
5119   :
5120 else
5121   echo "$as_me: program exited with status $ac_status" >&5
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125 ( exit $ac_status )
5126 ac_cv_header_stdc=no
5127 fi
5128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5129 fi
5130 fi
5131 fi
5132 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5133 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5134 if test $ac_cv_header_stdc = yes; then
5135
5136 cat >>confdefs.h <<\_ACEOF
5137 #define STDC_HEADERS 1
5138 _ACEOF
5139
5140 fi
5141
5142 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5153                   inttypes.h stdint.h unistd.h
5154 do
5155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5156 echo "$as_me:$LINENO: checking for $ac_header" >&5
5157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5159   echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161   cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167 $ac_includes_default
5168
5169 #include <$ac_header>
5170 _ACEOF
5171 rm -f conftest.$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173   (eval $ac_compile) 2>conftest.er1
5174   ac_status=$?
5175   grep -v '^ *+' conftest.er1 >conftest.err
5176   rm -f conftest.er1
5177   cat conftest.err >&5
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); } &&
5180          { ac_try='test -z "$ac_c_werror_flag"
5181                          || test ! -s conftest.err'
5182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183   (eval $ac_try) 2>&5
5184   ac_status=$?
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); }; } &&
5187          { ac_try='test -s conftest.$ac_objext'
5188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189   (eval $ac_try) 2>&5
5190   ac_status=$?
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); }; }; then
5193   eval "$as_ac_Header=yes"
5194 else
5195   echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5197
5198 eval "$as_ac_Header=no"
5199 fi
5200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5201 fi
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5205   cat >>confdefs.h <<_ACEOF
5206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5207 _ACEOF
5208
5209 fi
5210
5211 done
5212
5213
5214
5215 for ac_header in dlfcn.h
5216 do
5217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5219   echo "$as_me:$LINENO: checking for $ac_header" >&5
5220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 fi
5224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5226 else
5227   # Is the header compilable?
5228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h.  */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h.  */
5236 $ac_includes_default
5237 #include <$ac_header>
5238 _ACEOF
5239 rm -f conftest.$ac_objext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241   (eval $ac_compile) 2>conftest.er1
5242   ac_status=$?
5243   grep -v '^ *+' conftest.er1 >conftest.err
5244   rm -f conftest.er1
5245   cat conftest.err >&5
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); } &&
5248          { ac_try='test -z "$ac_c_werror_flag"
5249                          || test ! -s conftest.err'
5250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251   (eval $ac_try) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; } &&
5255          { ac_try='test -s conftest.$ac_objext'
5256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257   (eval $ac_try) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }; }; then
5261   ac_header_compiler=yes
5262 else
5263   echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266 ac_header_compiler=no
5267 fi
5268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5270 echo "${ECHO_T}$ac_header_compiler" >&6
5271
5272 # Is the header present?
5273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h.  */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h.  */
5281 #include <$ac_header>
5282 _ACEOF
5283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5285   ac_status=$?
5286   grep -v '^ *+' conftest.er1 >conftest.err
5287   rm -f conftest.er1
5288   cat conftest.err >&5
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); } >/dev/null; then
5291   if test -s conftest.err; then
5292     ac_cpp_err=$ac_c_preproc_warn_flag
5293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5294   else
5295     ac_cpp_err=
5296   fi
5297 else
5298   ac_cpp_err=yes
5299 fi
5300 if test -z "$ac_cpp_err"; then
5301   ac_header_preproc=yes
5302 else
5303   echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306   ac_header_preproc=no
5307 fi
5308 rm -f conftest.err conftest.$ac_ext
5309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5310 echo "${ECHO_T}$ac_header_preproc" >&6
5311
5312 # So?  What about this header?
5313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5314   yes:no: )
5315     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5319     ac_header_preproc=yes
5320     ;;
5321   no:yes:* )
5322     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5324     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5325 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5326     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5328     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5329 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5332     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5334     (
5335       cat <<\_ASBOX
5336 ## -------------------------------------- ##
5337 ## Report this to heimdal-bugs@pdc.kth.se ##
5338 ## -------------------------------------- ##
5339 _ASBOX
5340     ) |
5341       sed "s/^/$as_me: WARNING:     /" >&2
5342     ;;
5343 esac
5344 echo "$as_me:$LINENO: checking for $ac_header" >&5
5345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   eval "$as_ac_Header=\$ac_header_preproc"
5350 fi
5351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5353
5354 fi
5355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356   cat >>confdefs.h <<_ACEOF
5357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358 _ACEOF
5359
5360 fi
5361
5362 done
5363
5364 ac_ext=cc
5365 ac_cpp='$CXXCPP $CPPFLAGS'
5366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5369 if test -n "$ac_tool_prefix"; then
5370   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5371   do
5372     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5374 echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5376 if test "${ac_cv_prog_CXX+set}" = set; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379   if test -n "$CXX"; then
5380   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385   IFS=$as_save_IFS
5386   test -z "$as_dir" && as_dir=.
5387   for ac_exec_ext in '' $ac_executable_extensions; do
5388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391     break 2
5392   fi
5393 done
5394 done
5395
5396 fi
5397 fi
5398 CXX=$ac_cv_prog_CXX
5399 if test -n "$CXX"; then
5400   echo "$as_me:$LINENO: result: $CXX" >&5
5401 echo "${ECHO_T}$CXX" >&6
5402 else
5403   echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5405 fi
5406
5407     test -n "$CXX" && break
5408   done
5409 fi
5410 if test -z "$CXX"; then
5411   ac_ct_CXX=$CXX
5412   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5413 do
5414   # Extract the first word of "$ac_prog", so it can be a program name with args.
5415 set dummy $ac_prog; ac_word=$2
5416 echo "$as_me:$LINENO: checking for $ac_word" >&5
5417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5418 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421   if test -n "$ac_ct_CXX"; then
5422   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427   IFS=$as_save_IFS
5428   test -z "$as_dir" && as_dir=.
5429   for ac_exec_ext in '' $ac_executable_extensions; do
5430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431     ac_cv_prog_ac_ct_CXX="$ac_prog"
5432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433     break 2
5434   fi
5435 done
5436 done
5437
5438 fi
5439 fi
5440 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5441 if test -n "$ac_ct_CXX"; then
5442   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5443 echo "${ECHO_T}$ac_ct_CXX" >&6
5444 else
5445   echo "$as_me:$LINENO: result: no" >&5
5446 echo "${ECHO_T}no" >&6
5447 fi
5448
5449   test -n "$ac_ct_CXX" && break
5450 done
5451 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5452
5453   CXX=$ac_ct_CXX
5454 fi
5455
5456
5457 # Provide some information about the compiler.
5458 echo "$as_me:$LINENO:" \
5459      "checking for C++ compiler version" >&5
5460 ac_compiler=`set X $ac_compile; echo $2`
5461 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5462   (eval $ac_compiler --version </dev/null >&5) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); }
5466 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5467   (eval $ac_compiler -v </dev/null >&5) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); }
5471 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5472   (eval $ac_compiler -V </dev/null >&5) 2>&5
5473   ac_status=$?
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); }
5476
5477 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5478 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5479 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5480   echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482   cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h.  */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h.  */
5488
5489 int
5490 main ()
5491 {
5492 #ifndef __GNUC__
5493        choke me
5494 #endif
5495
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502   (eval $ac_compile) 2>conftest.er1
5503   ac_status=$?
5504   grep -v '^ *+' conftest.er1 >conftest.err
5505   rm -f conftest.er1
5506   cat conftest.err >&5
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); } &&
5509          { ac_try='test -z "$ac_cxx_werror_flag"
5510                          || test ! -s conftest.err'
5511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512   (eval $ac_try) 2>&5
5513   ac_status=$?
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); }; } &&
5516          { ac_try='test -s conftest.$ac_objext'
5517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518   (eval $ac_try) 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); }; }; then
5522   ac_compiler_gnu=yes
5523 else
5524   echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5526
5527 ac_compiler_gnu=no
5528 fi
5529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5530 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5531
5532 fi
5533 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5534 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5535 GXX=`test $ac_compiler_gnu = yes && echo yes`
5536 ac_test_CXXFLAGS=${CXXFLAGS+set}
5537 ac_save_CXXFLAGS=$CXXFLAGS
5538 CXXFLAGS="-g"
5539 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5540 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5541 if test "${ac_cv_prog_cxx_g+set}" = set; then
5542   echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544   cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550
5551 int
5552 main ()
5553 {
5554
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561   (eval $ac_compile) 2>conftest.er1
5562   ac_status=$?
5563   grep -v '^ *+' conftest.er1 >conftest.err
5564   rm -f conftest.er1
5565   cat conftest.err >&5
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); } &&
5568          { ac_try='test -z "$ac_cxx_werror_flag"
5569                          || test ! -s conftest.err'
5570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571   (eval $ac_try) 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }; } &&
5575          { ac_try='test -s conftest.$ac_objext'
5576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577   (eval $ac_try) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; }; then
5581   ac_cv_prog_cxx_g=yes
5582 else
5583   echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 ac_cv_prog_cxx_g=no
5587 fi
5588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589 fi
5590 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5591 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5592 if test "$ac_test_CXXFLAGS" = set; then
5593   CXXFLAGS=$ac_save_CXXFLAGS
5594 elif test $ac_cv_prog_cxx_g = yes; then
5595   if test "$GXX" = yes; then
5596     CXXFLAGS="-g -O2"
5597   else
5598     CXXFLAGS="-g"
5599   fi
5600 else
5601   if test "$GXX" = yes; then
5602     CXXFLAGS="-O2"
5603   else
5604     CXXFLAGS=
5605   fi
5606 fi
5607 for ac_declaration in \
5608    '' \
5609    'extern "C" void std::exit (int) throw (); using std::exit;' \
5610    'extern "C" void std::exit (int); using std::exit;' \
5611    'extern "C" void exit (int) throw ();' \
5612    'extern "C" void exit (int);' \
5613    'void exit (int);'
5614 do
5615   cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 $ac_declaration
5622 #include <stdlib.h>
5623 int
5624 main ()
5625 {
5626 exit (42);
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633   (eval $ac_compile) 2>conftest.er1
5634   ac_status=$?
5635   grep -v '^ *+' conftest.er1 >conftest.err
5636   rm -f conftest.er1
5637   cat conftest.err >&5
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); } &&
5640          { ac_try='test -z "$ac_cxx_werror_flag"
5641                          || test ! -s conftest.err'
5642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643   (eval $ac_try) 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); }; } &&
5647          { ac_try='test -s conftest.$ac_objext'
5648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649   (eval $ac_try) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }; }; then
5653   :
5654 else
5655   echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5657
5658 continue
5659 fi
5660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5661   cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h.  */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h.  */
5667 $ac_declaration
5668 int
5669 main ()
5670 {
5671 exit (42);
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678   (eval $ac_compile) 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } &&
5685          { ac_try='test -z "$ac_cxx_werror_flag"
5686                          || test ! -s conftest.err'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; } &&
5692          { ac_try='test -s conftest.$ac_objext'
5693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694   (eval $ac_try) 2>&5
5695   ac_status=$?
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); }; }; then
5698   break
5699 else
5700   echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 fi
5704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5705 done
5706 rm -f conftest*
5707 if test -n "$ac_declaration"; then
5708   echo '#ifdef __cplusplus' >>confdefs.h
5709   echo $ac_declaration      >>confdefs.h
5710   echo '#endif'             >>confdefs.h
5711 fi
5712
5713 ac_ext=cc
5714 ac_cpp='$CXXCPP $CPPFLAGS'
5715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5718
5719 ac_ext=cc
5720 ac_cpp='$CXXCPP $CPPFLAGS'
5721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5724 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5725 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5726 if test -z "$CXXCPP"; then
5727   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730       # Double quotes because CXXCPP needs to be expanded
5731     for CXXCPP in "$CXX -E" "/lib/cpp"
5732     do
5733       ac_preproc_ok=false
5734 for ac_cxx_preproc_warn_flag in '' yes
5735 do
5736   # Use a header file that comes with gcc, so configuring glibc
5737   # with a fresh cross-compiler works.
5738   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739   # <limits.h> exists even on freestanding compilers.
5740   # On the NeXT, cc -E runs the code through the compiler's parser,
5741   # not just through cpp. "Syntax error" is here to catch this case.
5742   cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h.  */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h.  */
5748 #ifdef __STDC__
5749 # include <limits.h>
5750 #else
5751 # include <assert.h>
5752 #endif
5753                      Syntax error
5754 _ACEOF
5755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5757   ac_status=$?
5758   grep -v '^ *+' conftest.er1 >conftest.err
5759   rm -f conftest.er1
5760   cat conftest.err >&5
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); } >/dev/null; then
5763   if test -s conftest.err; then
5764     ac_cpp_err=$ac_cxx_preproc_warn_flag
5765     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5766   else
5767     ac_cpp_err=
5768   fi
5769 else
5770   ac_cpp_err=yes
5771 fi
5772 if test -z "$ac_cpp_err"; then
5773   :
5774 else
5775   echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778   # Broken: fails on valid input.
5779 continue
5780 fi
5781 rm -f conftest.err conftest.$ac_ext
5782
5783   # OK, works on sane cases.  Now check whether non-existent headers
5784   # can be detected and how.
5785   cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791 #include <ac_nonexistent.h>
5792 _ACEOF
5793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5795   ac_status=$?
5796   grep -v '^ *+' conftest.er1 >conftest.err
5797   rm -f conftest.er1
5798   cat conftest.err >&5
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } >/dev/null; then
5801   if test -s conftest.err; then
5802     ac_cpp_err=$ac_cxx_preproc_warn_flag
5803     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5804   else
5805     ac_cpp_err=
5806   fi
5807 else
5808   ac_cpp_err=yes
5809 fi
5810 if test -z "$ac_cpp_err"; then
5811   # Broken: success on invalid input.
5812 continue
5813 else
5814   echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817   # Passes both tests.
5818 ac_preproc_ok=:
5819 break
5820 fi
5821 rm -f conftest.err conftest.$ac_ext
5822
5823 done
5824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5825 rm -f conftest.err conftest.$ac_ext
5826 if $ac_preproc_ok; then
5827   break
5828 fi
5829
5830     done
5831     ac_cv_prog_CXXCPP=$CXXCPP
5832
5833 fi
5834   CXXCPP=$ac_cv_prog_CXXCPP
5835 else
5836   ac_cv_prog_CXXCPP=$CXXCPP
5837 fi
5838 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5839 echo "${ECHO_T}$CXXCPP" >&6
5840 ac_preproc_ok=false
5841 for ac_cxx_preproc_warn_flag in '' yes
5842 do
5843   # Use a header file that comes with gcc, so configuring glibc
5844   # with a fresh cross-compiler works.
5845   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5846   # <limits.h> exists even on freestanding compilers.
5847   # On the NeXT, cc -E runs the code through the compiler's parser,
5848   # not just through cpp. "Syntax error" is here to catch this case.
5849   cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855 #ifdef __STDC__
5856 # include <limits.h>
5857 #else
5858 # include <assert.h>
5859 #endif
5860                      Syntax error
5861 _ACEOF
5862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5864   ac_status=$?
5865   grep -v '^ *+' conftest.er1 >conftest.err
5866   rm -f conftest.er1
5867   cat conftest.err >&5
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); } >/dev/null; then
5870   if test -s conftest.err; then
5871     ac_cpp_err=$ac_cxx_preproc_warn_flag
5872     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5873   else
5874     ac_cpp_err=
5875   fi
5876 else
5877   ac_cpp_err=yes
5878 fi
5879 if test -z "$ac_cpp_err"; then
5880   :
5881 else
5882   echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885   # Broken: fails on valid input.
5886 continue
5887 fi
5888 rm -f conftest.err conftest.$ac_ext
5889
5890   # OK, works on sane cases.  Now check whether non-existent headers
5891   # can be detected and how.
5892   cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898 #include <ac_nonexistent.h>
5899 _ACEOF
5900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5902   ac_status=$?
5903   grep -v '^ *+' conftest.er1 >conftest.err
5904   rm -f conftest.er1
5905   cat conftest.err >&5
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); } >/dev/null; then
5908   if test -s conftest.err; then
5909     ac_cpp_err=$ac_cxx_preproc_warn_flag
5910     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5911   else
5912     ac_cpp_err=
5913   fi
5914 else
5915   ac_cpp_err=yes
5916 fi
5917 if test -z "$ac_cpp_err"; then
5918   # Broken: success on invalid input.
5919 continue
5920 else
5921   echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924   # Passes both tests.
5925 ac_preproc_ok=:
5926 break
5927 fi
5928 rm -f conftest.err conftest.$ac_ext
5929
5930 done
5931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5932 rm -f conftest.err conftest.$ac_ext
5933 if $ac_preproc_ok; then
5934   :
5935 else
5936   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5937 See \`config.log' for more details." >&5
5938 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5939 See \`config.log' for more details." >&2;}
5940    { (exit 1); exit 1; }; }
5941 fi
5942
5943 ac_ext=cc
5944 ac_cpp='$CXXCPP $CPPFLAGS'
5945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5948
5949
5950 ac_ext=f
5951 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5952 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5954 if test -n "$ac_tool_prefix"; then
5955   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5956   do
5957     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5959 echo "$as_me:$LINENO: checking for $ac_word" >&5
5960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5961 if test "${ac_cv_prog_F77+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   if test -n "$F77"; then
5965   ac_cv_prog_F77="$F77" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970   IFS=$as_save_IFS
5971   test -z "$as_dir" && as_dir=.
5972   for ac_exec_ext in '' $ac_executable_extensions; do
5973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976     break 2
5977   fi
5978 done
5979 done
5980
5981 fi
5982 fi
5983 F77=$ac_cv_prog_F77
5984 if test -n "$F77"; then
5985   echo "$as_me:$LINENO: result: $F77" >&5
5986 echo "${ECHO_T}$F77" >&6
5987 else
5988   echo "$as_me:$LINENO: result: no" >&5
5989 echo "${ECHO_T}no" >&6
5990 fi
5991
5992     test -n "$F77" && break
5993   done
5994 fi
5995 if test -z "$F77"; then
5996   ac_ct_F77=$F77
5997   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5998 do
5999   # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   if test -n "$ac_ct_F77"; then
6007   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016     ac_cv_prog_ac_ct_F77="$ac_prog"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022
6023 fi
6024 fi
6025 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6026 if test -n "$ac_ct_F77"; then
6027   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6028 echo "${ECHO_T}$ac_ct_F77" >&6
6029 else
6030   echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6
6032 fi
6033
6034   test -n "$ac_ct_F77" && break
6035 done
6036
6037   F77=$ac_ct_F77
6038 fi
6039
6040
6041 # Provide some information about the compiler.
6042 echo "$as_me:6042:" \
6043      "checking for Fortran 77 compiler version" >&5
6044 ac_compiler=`set X $ac_compile; echo $2`
6045 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6046   (eval $ac_compiler --version </dev/null >&5) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }
6050 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6051   (eval $ac_compiler -v </dev/null >&5) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }
6055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6056   (eval $ac_compiler -V </dev/null >&5) 2>&5
6057   ac_status=$?
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); }
6060 rm -f a.out
6061
6062 # If we don't use `.F' as extension, the preprocessor is not run on the
6063 # input file.  (Note that this only needs to work for GNU compilers.)
6064 ac_save_ext=$ac_ext
6065 ac_ext=F
6066 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6067 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6068 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   cat >conftest.$ac_ext <<_ACEOF
6072       program main
6073 #ifndef __GNUC__
6074        choke me
6075 #endif
6076
6077       end
6078 _ACEOF
6079 rm -f conftest.$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081   (eval $ac_compile) 2>conftest.er1
6082   ac_status=$?
6083   grep -v '^ *+' conftest.er1 >conftest.err
6084   rm -f conftest.er1
6085   cat conftest.err >&5
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); } &&
6088          { ac_try='test -z "$ac_f77_werror_flag"
6089                          || test ! -s conftest.err'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; } &&
6095          { ac_try='test -s conftest.$ac_objext'
6096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097   (eval $ac_try) 2>&5
6098   ac_status=$?
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); }; }; then
6101   ac_compiler_gnu=yes
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 ac_compiler_gnu=no
6107 fi
6108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6109 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6110
6111 fi
6112 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6113 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6114 ac_ext=$ac_save_ext
6115 ac_test_FFLAGS=${FFLAGS+set}
6116 ac_save_FFLAGS=$FFLAGS
6117 FFLAGS=
6118 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6119 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6120 if test "${ac_cv_prog_f77_g+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   FFLAGS=-g
6124 cat >conftest.$ac_ext <<_ACEOF
6125       program main
6126
6127       end
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131   (eval $ac_compile) 2>conftest.er1
6132   ac_status=$?
6133   grep -v '^ *+' conftest.er1 >conftest.err
6134   rm -f conftest.er1
6135   cat conftest.err >&5
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); } &&
6138          { ac_try='test -z "$ac_f77_werror_flag"
6139                          || test ! -s conftest.err'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; } &&
6145          { ac_try='test -s conftest.$ac_objext'
6146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; }; then
6151   ac_cv_prog_f77_g=yes
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156 ac_cv_prog_f77_g=no
6157 fi
6158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159
6160 fi
6161 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6162 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6163 if test "$ac_test_FFLAGS" = set; then
6164   FFLAGS=$ac_save_FFLAGS
6165 elif test $ac_cv_prog_f77_g = yes; then
6166   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6167     FFLAGS="-g -O2"
6168   else
6169     FFLAGS="-g"
6170   fi
6171 else
6172   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6173     FFLAGS="-O2"
6174   else
6175     FFLAGS=
6176   fi
6177 fi
6178
6179 G77=`test $ac_compiler_gnu = yes && echo yes`
6180 ac_ext=c
6181 ac_cpp='$CPP $CPPFLAGS'
6182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6185
6186
6187
6188 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6189
6190 # find the maximum length of command line arguments
6191 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6192 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6193 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196     i=0
6197   testring="ABCD"
6198
6199   case $build_os in
6200   msdosdjgpp*)
6201     # On DJGPP, this test can blow up pretty badly due to problems in libc
6202     # (any single argument exceeding 2000 bytes causes a buffer overrun
6203     # during glob expansion).  Even if it were fixed, the result of this
6204     # check would be larger than it should be.
6205     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6206     ;;
6207
6208   gnu*)
6209     # Under GNU Hurd, this test is not required because there is
6210     # no limit to the length of command line arguments.
6211     # Libtool will interpret -1 as no limit whatsoever
6212     lt_cv_sys_max_cmd_len=-1;
6213     ;;
6214
6215   cygwin* | mingw*)
6216     # On Win9x/ME, this test blows up -- it succeeds, but takes
6217     # about 5 minutes as the teststring grows exponentially.
6218     # Worse, since 9x/ME are not pre-emptively multitasking,
6219     # you end up with a "frozen" computer, even though with patience
6220     # the test eventually succeeds (with a max line length of 256k).
6221     # Instead, let's just punt: use the minimum linelength reported by
6222     # all of the supported platforms: 8192 (on NT/2K/XP).
6223     lt_cv_sys_max_cmd_len=8192;
6224     ;;
6225
6226   amigaos*)
6227     # On AmigaOS with pdksh, this test takes hours, literally.
6228     # So we just punt and use a minimum line length of 8192.
6229     lt_cv_sys_max_cmd_len=8192;
6230     ;;
6231
6232  *)
6233     # If test is not a shell built-in, we'll probably end up computing a
6234     # maximum length that is only half of the actual maximum length, but
6235     # we can't tell.
6236     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6237                = "XX$testring") >/dev/null 2>&1 &&
6238             new_result=`expr "X$testring" : ".*" 2>&1` &&
6239             lt_cv_sys_max_cmd_len=$new_result &&
6240             test $i != 17 # 1/2 MB should be enough
6241     do
6242       i=`expr $i + 1`
6243       testring=$testring$testring
6244     done
6245     testring=
6246     # Add a significant safety factor because C++ compilers can tack on massive
6247     # amounts of additional arguments before passing them to the linker.
6248     # It appears as though 1/2 is a usable value.
6249     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6250     ;;
6251   esac
6252
6253 fi
6254
6255 if test -n $lt_cv_sys_max_cmd_len ; then
6256   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6257 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6258 else
6259   echo "$as_me:$LINENO: result: none" >&5
6260 echo "${ECHO_T}none" >&6
6261 fi
6262
6263
6264
6265
6266 # Check for command to grab the raw symbol name followed by C symbol from nm.
6267 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6268 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6269 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6270   echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272
6273 # These are sane defaults that work on at least a few old systems.
6274 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6275
6276 # Character class describing NM global symbol codes.
6277 symcode='[BCDEGRST]'
6278
6279 # Regexp to match symbols that can be accessed directly from C.
6280 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6281
6282 # Transform the above into a raw symbol and a C symbol.
6283 symxfrm='\1 \2\3 \3'
6284
6285 # Transform an extracted symbol line into a proper C declaration
6286 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6287
6288 # Transform an extracted symbol line into symbol name and symbol address
6289 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'"
6290
6291 # Define system-specific variables.
6292 case $host_os in
6293 aix*)
6294   symcode='[BCDT]'
6295   ;;
6296 cygwin* | mingw* | pw32*)
6297   symcode='[ABCDGISTW]'
6298   ;;
6299 hpux*) # Its linker distinguishes data from code symbols
6300   if test "$host_cpu" = ia64; then
6301     symcode='[ABCDEGRST]'
6302   fi
6303   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6304   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'"
6305   ;;
6306 irix* | nonstopux*)
6307   symcode='[BCDEGRST]'
6308   ;;
6309 osf*)
6310   symcode='[BCDEGQRST]'
6311   ;;
6312 solaris* | sysv5*)
6313   symcode='[BDRT]'
6314   ;;
6315 sysv4)
6316   symcode='[DFNSTU]'
6317   ;;
6318 esac
6319
6320 # Handle CRLF in mingw tool chain
6321 opt_cr=
6322 case $build_os in
6323 mingw*)
6324   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6325   ;;
6326 esac
6327
6328 # If we're using GNU nm, then use its standard symbol codes.
6329 case `$NM -V 2>&1` in
6330 *GNU* | *'with BFD'*)
6331   symcode='[ABCDGIRSTW]' ;;
6332 esac
6333
6334 # Try without a prefix undercore, then with it.
6335 for ac_symprfx in "" "_"; do
6336
6337   # Write the raw and C identifiers.
6338   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6339
6340   # Check to see that the pipe works correctly.
6341   pipe_works=no
6342
6343   rm -f conftest*
6344   cat > conftest.$ac_ext <<EOF
6345 #ifdef __cplusplus
6346 extern "C" {
6347 #endif
6348 char nm_test_var;
6349 void nm_test_func(){}
6350 #ifdef __cplusplus
6351 }
6352 #endif
6353 int main(){nm_test_var='a';nm_test_func();return(0);}
6354 EOF
6355
6356   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357   (eval $ac_compile) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); }; then
6361     # Now try to grab the symbols.
6362     nlist=conftest.nm
6363     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6364   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } && test -s "$nlist"; then
6368       # Try sorting and uniquifying the output.
6369       if sort "$nlist" | uniq > "$nlist"T; then
6370         mv -f "$nlist"T "$nlist"
6371       else
6372         rm -f "$nlist"T
6373       fi
6374
6375       # Make sure that we snagged all the symbols we need.
6376       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6377         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6378           cat <<EOF > conftest.$ac_ext
6379 #ifdef __cplusplus
6380 extern "C" {
6381 #endif
6382
6383 EOF
6384           # Now generate the symbol file.
6385           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6386
6387           cat <<EOF >> conftest.$ac_ext
6388 #if defined (__STDC__) && __STDC__
6389 # define lt_ptr_t void *
6390 #else
6391 # define lt_ptr_t char *
6392 # define const
6393 #endif
6394
6395 /* The mapping between symbol names and symbols. */
6396 const struct {
6397   const char *name;
6398   lt_ptr_t address;
6399 }
6400 lt_preloaded_symbols[] =
6401 {
6402 EOF
6403           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6404           cat <<\EOF >> conftest.$ac_ext
6405   {0, (lt_ptr_t) 0}
6406 };
6407
6408 #ifdef __cplusplus
6409 }
6410 #endif
6411 EOF
6412           # Now try linking the two files.
6413           mv conftest.$ac_objext conftstm.$ac_objext
6414           lt_save_LIBS="$LIBS"
6415           lt_save_CFLAGS="$CFLAGS"
6416           LIBS="conftstm.$ac_objext"
6417           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6418           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6419   (eval $ac_link) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6423             pipe_works=yes
6424           fi
6425           LIBS="$lt_save_LIBS"
6426           CFLAGS="$lt_save_CFLAGS"
6427         else
6428           echo "cannot find nm_test_func in $nlist" >&5
6429         fi
6430       else
6431         echo "cannot find nm_test_var in $nlist" >&5
6432       fi
6433     else
6434       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6435     fi
6436   else
6437     echo "$progname: failed program was:" >&5
6438     cat conftest.$ac_ext >&5
6439   fi
6440   rm -f conftest* conftst*
6441
6442   # Do not use the global_symbol_pipe unless it works.
6443   if test "$pipe_works" = yes; then
6444     break
6445   else
6446     lt_cv_sys_global_symbol_pipe=
6447   fi
6448 done
6449
6450 fi
6451
6452 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6453   lt_cv_sys_global_symbol_to_cdecl=
6454 fi
6455 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6456   echo "$as_me:$LINENO: result: failed" >&5
6457 echo "${ECHO_T}failed" >&6
6458 else
6459   echo "$as_me:$LINENO: result: ok" >&5
6460 echo "${ECHO_T}ok" >&6
6461 fi
6462
6463 echo "$as_me:$LINENO: checking for objdir" >&5
6464 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6465 if test "${lt_cv_objdir+set}" = set; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468   rm -f .libs 2>/dev/null
6469 mkdir .libs 2>/dev/null
6470 if test -d .libs; then
6471   lt_cv_objdir=.libs
6472 else
6473   # MS-DOS does not allow filenames that begin with a dot.
6474   lt_cv_objdir=_libs
6475 fi
6476 rmdir .libs 2>/dev/null
6477 fi
6478 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6479 echo "${ECHO_T}$lt_cv_objdir" >&6
6480 objdir=$lt_cv_objdir
6481
6482
6483
6484
6485
6486 case $host_os in
6487 aix3*)
6488   # AIX sometimes has problems with the GCC collect2 program.  For some
6489   # reason, if we set the COLLECT_NAMES environment variable, the problems
6490   # vanish in a puff of smoke.
6491   if test "X${COLLECT_NAMES+set}" != Xset; then
6492     COLLECT_NAMES=
6493     export COLLECT_NAMES
6494   fi
6495   ;;
6496 esac
6497
6498 # Sed substitution that helps us do robust quoting.  It backslashifies
6499 # metacharacters that are still active within double-quoted strings.
6500 Xsed='sed -e s/^X//'
6501 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6502
6503 # Same as above, but do not quote variable references.
6504 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6505
6506 # Sed substitution to delay expansion of an escaped shell variable in a
6507 # double_quote_subst'ed string.
6508 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6509
6510 # Sed substitution to avoid accidental globbing in evaled expressions
6511 no_glob_subst='s/\*/\\\*/g'
6512
6513 # Constants:
6514 rm="rm -f"
6515
6516 # Global variables:
6517 default_ofile=libtool
6518 can_build_shared=yes
6519
6520 # All known linkers require a `.a' archive for static linking (except M$VC,
6521 # which needs '.lib').
6522 libext=a
6523 ltmain="$ac_aux_dir/ltmain.sh"
6524 ofile="$default_ofile"
6525 with_gnu_ld="$lt_cv_prog_gnu_ld"
6526
6527 if test -n "$ac_tool_prefix"; then
6528   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}ar; ac_word=$2
6530 echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6532 if test "${ac_cv_prog_AR+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   if test -n "$AR"; then
6536   ac_cv_prog_AR="$AR" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543   for ac_exec_ext in '' $ac_executable_extensions; do
6544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545     ac_cv_prog_AR="${ac_tool_prefix}ar"
6546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550 done
6551
6552 fi
6553 fi
6554 AR=$ac_cv_prog_AR
6555 if test -n "$AR"; then
6556   echo "$as_me:$LINENO: result: $AR" >&5
6557 echo "${ECHO_T}$AR" >&6
6558 else
6559   echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6
6561 fi
6562
6563 fi
6564 if test -z "$ac_cv_prog_AR"; then
6565   ac_ct_AR=$AR
6566   # Extract the first word of "ar", so it can be a program name with args.
6567 set dummy ar; ac_word=$2
6568 echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6570 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   if test -n "$ac_ct_AR"; then
6574   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581   for ac_exec_ext in '' $ac_executable_extensions; do
6582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583     ac_cv_prog_ac_ct_AR="ar"
6584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588 done
6589
6590   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6591 fi
6592 fi
6593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6594 if test -n "$ac_ct_AR"; then
6595   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6596 echo "${ECHO_T}$ac_ct_AR" >&6
6597 else
6598   echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6
6600 fi
6601
6602   AR=$ac_ct_AR
6603 else
6604   AR="$ac_cv_prog_AR"
6605 fi
6606
6607 if test -n "$ac_tool_prefix"; then
6608   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6610 echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6612 if test "${ac_cv_prog_RANLIB+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   if test -n "$RANLIB"; then
6616   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623   for ac_exec_ext in '' $ac_executable_extensions; do
6624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630 done
6631
6632 fi
6633 fi
6634 RANLIB=$ac_cv_prog_RANLIB
6635 if test -n "$RANLIB"; then
6636   echo "$as_me:$LINENO: result: $RANLIB" >&5
6637 echo "${ECHO_T}$RANLIB" >&6
6638 else
6639   echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6
6641 fi
6642
6643 fi
6644 if test -z "$ac_cv_prog_RANLIB"; then
6645   ac_ct_RANLIB=$RANLIB
6646   # Extract the first word of "ranlib", so it can be a program name with args.
6647 set dummy ranlib; ac_word=$2
6648 echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6650 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   if test -n "$ac_ct_RANLIB"; then
6654   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659   IFS=$as_save_IFS
6660   test -z "$as_dir" && as_dir=.
6661   for ac_exec_ext in '' $ac_executable_extensions; do
6662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6663     ac_cv_prog_ac_ct_RANLIB="ranlib"
6664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665     break 2
6666   fi
6667 done
6668 done
6669
6670   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6671 fi
6672 fi
6673 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6674 if test -n "$ac_ct_RANLIB"; then
6675   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6676 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6677 else
6678   echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6680 fi
6681
6682   RANLIB=$ac_ct_RANLIB
6683 else
6684   RANLIB="$ac_cv_prog_RANLIB"
6685 fi
6686
6687 if test -n "$ac_tool_prefix"; then
6688   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}strip; ac_word=$2
6690 echo "$as_me:$LINENO: checking for $ac_word" >&5
6691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6692 if test "${ac_cv_prog_STRIP+set}" = set; then
6693   echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695   if test -n "$STRIP"; then
6696   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703   for ac_exec_ext in '' $ac_executable_extensions; do
6704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710 done
6711
6712 fi
6713 fi
6714 STRIP=$ac_cv_prog_STRIP
6715 if test -n "$STRIP"; then
6716   echo "$as_me:$LINENO: result: $STRIP" >&5
6717 echo "${ECHO_T}$STRIP" >&6
6718 else
6719   echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6
6721 fi
6722
6723 fi
6724 if test -z "$ac_cv_prog_STRIP"; then
6725   ac_ct_STRIP=$STRIP
6726   # Extract the first word of "strip", so it can be a program name with args.
6727 set dummy strip; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   if test -n "$ac_ct_STRIP"; then
6734   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739   IFS=$as_save_IFS
6740   test -z "$as_dir" && as_dir=.
6741   for ac_exec_ext in '' $ac_executable_extensions; do
6742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743     ac_cv_prog_ac_ct_STRIP="strip"
6744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745     break 2
6746   fi
6747 done
6748 done
6749
6750   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6751 fi
6752 fi
6753 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6754 if test -n "$ac_ct_STRIP"; then
6755   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6756 echo "${ECHO_T}$ac_ct_STRIP" >&6
6757 else
6758   echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6760 fi
6761
6762   STRIP=$ac_ct_STRIP
6763 else
6764   STRIP="$ac_cv_prog_STRIP"
6765 fi
6766
6767
6768 old_CC="$CC"
6769 old_CFLAGS="$CFLAGS"
6770
6771 # Set sane defaults for various variables
6772 test -z "$AR" && AR=ar
6773 test -z "$AR_FLAGS" && AR_FLAGS=cru
6774 test -z "$AS" && AS=as
6775 test -z "$CC" && CC=cc
6776 test -z "$LTCC" && LTCC=$CC
6777 test -z "$DLLTOOL" && DLLTOOL=dlltool
6778 test -z "$LD" && LD=ld
6779 test -z "$LN_S" && LN_S="ln -s"
6780 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6781 test -z "$NM" && NM=nm
6782 test -z "$SED" && SED=sed
6783 test -z "$OBJDUMP" && OBJDUMP=objdump
6784 test -z "$RANLIB" && RANLIB=:
6785 test -z "$STRIP" && STRIP=:
6786 test -z "$ac_objext" && ac_objext=o
6787
6788 # Determine commands to create old-style static archives.
6789 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6790 old_postinstall_cmds='chmod 644 $oldlib'
6791 old_postuninstall_cmds=
6792
6793 if test -n "$RANLIB"; then
6794   case $host_os in
6795   openbsd*)
6796     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6797     ;;
6798   *)
6799     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6800     ;;
6801   esac
6802   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6803 fi
6804
6805 # Only perform the check for file, if the check method requires it
6806 case $deplibs_check_method in
6807 file_magic*)
6808   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6809     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6810 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6811 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   case $MAGIC_CMD in
6815 [\\/*] |  ?:[\\/]*)
6816   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6817   ;;
6818 *)
6819   lt_save_MAGIC_CMD="$MAGIC_CMD"
6820   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6821   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6822   for ac_dir in $ac_dummy; do
6823     IFS="$lt_save_ifs"
6824     test -z "$ac_dir" && ac_dir=.
6825     if test -f $ac_dir/${ac_tool_prefix}file; then
6826       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6827       if test -n "$file_magic_test_file"; then
6828         case $deplibs_check_method in
6829         "file_magic "*)
6830           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6831           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6832           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6833             $EGREP "$file_magic_regex" > /dev/null; then
6834             :
6835           else
6836             cat <<EOF 1>&2
6837
6838 *** Warning: the command libtool uses to detect shared libraries,
6839 *** $file_magic_cmd, produces output that libtool cannot recognize.
6840 *** The result is that libtool may fail to recognize shared libraries
6841 *** as such.  This will affect the creation of libtool libraries that
6842 *** depend on shared libraries, but programs linked with such libtool
6843 *** libraries will work regardless of this problem.  Nevertheless, you
6844 *** may want to report the problem to your system manager and/or to
6845 *** bug-libtool@gnu.org
6846
6847 EOF
6848           fi ;;
6849         esac
6850       fi
6851       break
6852     fi
6853   done
6854   IFS="$lt_save_ifs"
6855   MAGIC_CMD="$lt_save_MAGIC_CMD"
6856   ;;
6857 esac
6858 fi
6859
6860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6861 if test -n "$MAGIC_CMD"; then
6862   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6863 echo "${ECHO_T}$MAGIC_CMD" >&6
6864 else
6865   echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6
6867 fi
6868
6869 if test -z "$lt_cv_path_MAGIC_CMD"; then
6870   if test -n "$ac_tool_prefix"; then
6871     echo "$as_me:$LINENO: checking for file" >&5
6872 echo $ECHO_N "checking for file... $ECHO_C" >&6
6873 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6874   echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876   case $MAGIC_CMD in
6877 [\\/*] |  ?:[\\/]*)
6878   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6879   ;;
6880 *)
6881   lt_save_MAGIC_CMD="$MAGIC_CMD"
6882   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6883   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6884   for ac_dir in $ac_dummy; do
6885     IFS="$lt_save_ifs"
6886     test -z "$ac_dir" && ac_dir=.
6887     if test -f $ac_dir/file; then
6888       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6889       if test -n "$file_magic_test_file"; then
6890         case $deplibs_check_method in
6891         "file_magic "*)
6892           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6893           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6894           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6895             $EGREP "$file_magic_regex" > /dev/null; then
6896             :
6897           else
6898             cat <<EOF 1>&2
6899
6900 *** Warning: the command libtool uses to detect shared libraries,
6901 *** $file_magic_cmd, produces output that libtool cannot recognize.
6902 *** The result is that libtool may fail to recognize shared libraries
6903 *** as such.  This will affect the creation of libtool libraries that
6904 *** depend on shared libraries, but programs linked with such libtool
6905 *** libraries will work regardless of this problem.  Nevertheless, you
6906 *** may want to report the problem to your system manager and/or to
6907 *** bug-libtool@gnu.org
6908
6909 EOF
6910           fi ;;
6911         esac
6912       fi
6913       break
6914     fi
6915   done
6916   IFS="$lt_save_ifs"
6917   MAGIC_CMD="$lt_save_MAGIC_CMD"
6918   ;;
6919 esac
6920 fi
6921
6922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6923 if test -n "$MAGIC_CMD"; then
6924   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6925 echo "${ECHO_T}$MAGIC_CMD" >&6
6926 else
6927   echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6
6929 fi
6930
6931   else
6932     MAGIC_CMD=:
6933   fi
6934 fi
6935
6936   fi
6937   ;;
6938 esac
6939
6940 enable_dlopen=no
6941 enable_win32_dll=no
6942
6943 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6944 if test "${enable_libtool_lock+set}" = set; then
6945   enableval="$enable_libtool_lock"
6946
6947 fi;
6948 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6949
6950
6951 # Check whether --with-pic or --without-pic was given.
6952 if test "${with_pic+set}" = set; then
6953   withval="$with_pic"
6954   pic_mode="$withval"
6955 else
6956   pic_mode=default
6957 fi;
6958 test -z "$pic_mode" && pic_mode=default
6959
6960 # Use C for the default configuration in the libtool script
6961 tagname=
6962 lt_save_CC="$CC"
6963 ac_ext=c
6964 ac_cpp='$CPP $CPPFLAGS'
6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969
6970 # Source file extension for C test sources.
6971 ac_ext=c
6972
6973 # Object file extension for compiled C test sources.
6974 objext=o
6975 objext=$objext
6976
6977 # Code to be used in simple compile tests
6978 lt_simple_compile_test_code="int some_variable = 0;\n"
6979
6980 # Code to be used in simple link tests
6981 lt_simple_link_test_code='int main(){return(0);}\n'
6982
6983
6984 # If no C compiler was specified, use CC.
6985 LTCC=${LTCC-"$CC"}
6986
6987 # Allow CC to be a program name with arguments.
6988 compiler=$CC
6989
6990
6991 #
6992 # Check for any special shared library compilation flags.
6993 #
6994 lt_prog_cc_shlib=
6995 if test "$GCC" = no; then
6996   case $host_os in
6997   sco3.2v5*)
6998     lt_prog_cc_shlib='-belf'
6999     ;;
7000   esac
7001 fi
7002 if test -n "$lt_prog_cc_shlib"; then
7003   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7004 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7005   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7006   else
7007     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7008 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7009     lt_cv_prog_cc_can_build_shared=no
7010   fi
7011 fi
7012
7013
7014 #
7015 # Check to make sure the static flag actually works.
7016 #
7017 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7018 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7019 if test "${lt_prog_compiler_static_works+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   lt_prog_compiler_static_works=no
7023    save_LDFLAGS="$LDFLAGS"
7024    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7025    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7026    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7027      # The compiler can only warn and ignore the option if not recognized
7028      # So say no if there are warnings
7029      if test -s conftest.err; then
7030        # Append any errors to the config.log.
7031        cat conftest.err 1>&5
7032      else
7033        lt_prog_compiler_static_works=yes
7034      fi
7035    fi
7036    $rm conftest*
7037    LDFLAGS="$save_LDFLAGS"
7038
7039 fi
7040 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7041 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7042
7043 if test x"$lt_prog_compiler_static_works" = xyes; then
7044     :
7045 else
7046     lt_prog_compiler_static=
7047 fi
7048
7049
7050
7051
7052 lt_prog_compiler_no_builtin_flag=
7053
7054 if test "$GCC" = yes; then
7055   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7056
7057
7058 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7059 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7060 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   lt_cv_prog_compiler_rtti_exceptions=no
7064   ac_outfile=conftest.$ac_objext
7065    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7066    lt_compiler_flag="-fno-rtti -fno-exceptions"
7067    # Insert the option either (1) after the last *FLAGS variable, or
7068    # (2) before a word containing "conftest.", or (3) at the end.
7069    # Note that $ac_compile itself does not contain backslashes and begins
7070    # with a dollar sign (not a hyphen), so the echo should work correctly.
7071    # The option is referenced via a variable to avoid confusing sed.
7072    lt_compile=`echo "$ac_compile" | $SED \
7073    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7074    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7075    -e 's:$: $lt_compiler_flag:'`
7076    (eval echo "\"\$as_me:7076: $lt_compile\"" >&5)
7077    (eval "$lt_compile" 2>conftest.err)
7078    ac_status=$?
7079    cat conftest.err >&5
7080    echo "$as_me:7080: \$? = $ac_status" >&5
7081    if (exit $ac_status) && test -s "$ac_outfile"; then
7082      # The compiler can only warn and ignore the option if not recognized
7083      # So say no if there are warnings
7084      if test ! -s conftest.err; then
7085        lt_cv_prog_compiler_rtti_exceptions=yes
7086      fi
7087    fi
7088    $rm conftest*
7089
7090 fi
7091 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7092 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7093
7094 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7095     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7096 else
7097     :
7098 fi
7099
7100 fi
7101
7102 lt_prog_compiler_wl=
7103 lt_prog_compiler_pic=
7104 lt_prog_compiler_static=
7105
7106 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7107 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7108
7109   if test "$GCC" = yes; then
7110     lt_prog_compiler_wl='-Wl,'
7111     lt_prog_compiler_static='-static'
7112
7113     case $host_os in
7114       aix*)
7115       # All AIX code is PIC.
7116       if test "$host_cpu" = ia64; then
7117         # AIX 5 now supports IA64 processor
7118         lt_prog_compiler_static='-Bstatic'
7119       fi
7120       ;;
7121
7122     amigaos*)
7123       # FIXME: we need at least 68020 code to build shared libraries, but
7124       # adding the `-m68020' flag to GCC prevents building anything better,
7125       # like `-m68040'.
7126       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7127       ;;
7128
7129     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7130       # PIC is the default for these OSes.
7131       ;;
7132
7133     mingw* | pw32* | os2*)
7134       # This hack is so that the source file can tell whether it is being
7135       # built for inclusion in a dll (and should export symbols for example).
7136       lt_prog_compiler_pic='-DDLL_EXPORT'
7137       ;;
7138
7139     darwin* | rhapsody*)
7140       # PIC is the default on this platform
7141       # Common symbols not allowed in MH_DYLIB files
7142       lt_prog_compiler_pic='-fno-common'
7143       ;;
7144
7145     msdosdjgpp*)
7146       # Just because we use GCC doesn't mean we suddenly get shared libraries
7147       # on systems that don't support them.
7148       lt_prog_compiler_can_build_shared=no
7149       enable_shared=no
7150       ;;
7151
7152     sysv4*MP*)
7153       if test -d /usr/nec; then
7154         lt_prog_compiler_pic=-Kconform_pic
7155       fi
7156       ;;
7157
7158     hpux*)
7159       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7160       # not for PA HP-UX.
7161       case "$host_cpu" in
7162       hppa*64*|ia64*)
7163         # +Z the default
7164         ;;
7165       *)
7166         lt_prog_compiler_pic='-fPIC'
7167         ;;
7168       esac
7169       ;;
7170
7171     *)
7172       lt_prog_compiler_pic='-fPIC'
7173       ;;
7174     esac
7175   else
7176     # PORTME Check for flag to pass linker flags through the system compiler.
7177     case $host_os in
7178     aix*)
7179       lt_prog_compiler_wl='-Wl,'
7180       if test "$host_cpu" = ia64; then
7181         # AIX 5 now supports IA64 processor
7182         lt_prog_compiler_static='-Bstatic'
7183       else
7184         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7185       fi
7186       ;;
7187
7188     mingw* | pw32* | os2*)
7189       # This hack is so that the source file can tell whether it is being
7190       # built for inclusion in a dll (and should export symbols for example).
7191       lt_prog_compiler_pic='-DDLL_EXPORT'
7192       ;;
7193
7194     hpux9* | hpux10* | hpux11*)
7195       lt_prog_compiler_wl='-Wl,'
7196       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7197       # not for PA HP-UX.
7198       case "$host_cpu" in
7199       hppa*64*|ia64*)
7200         # +Z the default
7201         ;;
7202       *)
7203         lt_prog_compiler_pic='+Z'
7204         ;;
7205       esac
7206       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7207       lt_prog_compiler_static='${wl}-a ${wl}archive'
7208       ;;
7209
7210     irix5* | irix6* | nonstopux*)
7211       lt_prog_compiler_wl='-Wl,'
7212       # PIC (with -KPIC) is the default.
7213       lt_prog_compiler_static='-non_shared'
7214       ;;
7215
7216     newsos6)
7217       lt_prog_compiler_pic='-KPIC'
7218       lt_prog_compiler_static='-Bstatic'
7219       ;;
7220
7221     linux*)
7222       case $CC in
7223       icc* | ecc*)
7224         lt_prog_compiler_wl='-Wl,'
7225         lt_prog_compiler_pic='-KPIC'
7226         lt_prog_compiler_static='-static'
7227         ;;
7228       ccc*)
7229         lt_prog_compiler_wl='-Wl,'
7230         # All Alpha code is PIC.
7231         lt_prog_compiler_static='-non_shared'
7232         ;;
7233       esac
7234       ;;
7235
7236     osf3* | osf4* | osf5*)
7237       lt_prog_compiler_wl='-Wl,'
7238       # All OSF/1 code is PIC.
7239       lt_prog_compiler_static='-non_shared'
7240       ;;
7241
7242     sco3.2v5*)
7243       lt_prog_compiler_pic='-Kpic'
7244       lt_prog_compiler_static='-dn'
7245       ;;
7246
7247     solaris*)
7248       lt_prog_compiler_wl='-Wl,'
7249       lt_prog_compiler_pic='-KPIC'
7250       lt_prog_compiler_static='-Bstatic'
7251       ;;
7252
7253     sunos4*)
7254       lt_prog_compiler_wl='-Qoption ld '
7255       lt_prog_compiler_pic='-PIC'
7256       lt_prog_compiler_static='-Bstatic'
7257       ;;
7258
7259     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7260       lt_prog_compiler_wl='-Wl,'
7261       lt_prog_compiler_pic='-KPIC'
7262       lt_prog_compiler_static='-Bstatic'
7263       ;;
7264
7265     sysv4*MP*)
7266       if test -d /usr/nec ;then
7267         lt_prog_compiler_pic='-Kconform_pic'
7268         lt_prog_compiler_static='-Bstatic'
7269       fi
7270       ;;
7271
7272     uts4*)
7273       lt_prog_compiler_pic='-pic'
7274       lt_prog_compiler_static='-Bstatic'
7275       ;;
7276
7277     *)
7278       lt_prog_compiler_can_build_shared=no
7279       ;;
7280     esac
7281   fi
7282
7283 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7284 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7285
7286 #
7287 # Check to make sure the PIC flag actually works.
7288 #
7289 if test -n "$lt_prog_compiler_pic"; then
7290
7291 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7292 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7293 if test "${lt_prog_compiler_pic_works+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   lt_prog_compiler_pic_works=no
7297   ac_outfile=conftest.$ac_objext
7298    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7299    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7300    # Insert the option either (1) after the last *FLAGS variable, or
7301    # (2) before a word containing "conftest.", or (3) at the end.
7302    # Note that $ac_compile itself does not contain backslashes and begins
7303    # with a dollar sign (not a hyphen), so the echo should work correctly.
7304    # The option is referenced via a variable to avoid confusing sed.
7305    lt_compile=`echo "$ac_compile" | $SED \
7306    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7308    -e 's:$: $lt_compiler_flag:'`
7309    (eval echo "\"\$as_me:7309: $lt_compile\"" >&5)
7310    (eval "$lt_compile" 2>conftest.err)
7311    ac_status=$?
7312    cat conftest.err >&5
7313    echo "$as_me:7313: \$? = $ac_status" >&5
7314    if (exit $ac_status) && test -s "$ac_outfile"; then
7315      # The compiler can only warn and ignore the option if not recognized
7316      # So say no if there are warnings
7317      if test ! -s conftest.err; then
7318        lt_prog_compiler_pic_works=yes
7319      fi
7320    fi
7321    $rm conftest*
7322
7323 fi
7324 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7325 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7326
7327 if test x"$lt_prog_compiler_pic_works" = xyes; then
7328     case $lt_prog_compiler_pic in
7329      "" | " "*) ;;
7330      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7331      esac
7332 else
7333     lt_prog_compiler_pic=
7334      lt_prog_compiler_can_build_shared=no
7335 fi
7336
7337 fi
7338 case "$host_os" in
7339   # For platforms which do not support PIC, -DPIC is meaningless:
7340   *djgpp*)
7341     lt_prog_compiler_pic=
7342     ;;
7343   *)
7344     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7345     ;;
7346 esac
7347
7348 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7350 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353   lt_cv_prog_compiler_c_o=no
7354    $rm -r conftest 2>/dev/null
7355    mkdir conftest
7356    cd conftest
7357    mkdir out
7358    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7359
7360    lt_compiler_flag="-o out/conftest2.$ac_objext"
7361    # Insert the option either (1) after the last *FLAGS variable, or
7362    # (2) before a word containing "conftest.", or (3) at the end.
7363    # Note that $ac_compile itself does not contain backslashes and begins
7364    # with a dollar sign (not a hyphen), so the echo should work correctly.
7365    lt_compile=`echo "$ac_compile" | $SED \
7366    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368    -e 's:$: $lt_compiler_flag:'`
7369    (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370    (eval "$lt_compile" 2>out/conftest.err)
7371    ac_status=$?
7372    cat out/conftest.err >&5
7373    echo "$as_me:7373: \$? = $ac_status" >&5
7374    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7375    then
7376      # The compiler can only warn and ignore the option if not recognized
7377      # So say no if there are warnings
7378      if test ! -s out/conftest.err; then
7379        lt_cv_prog_compiler_c_o=yes
7380      fi
7381    fi
7382    chmod u+w .
7383    $rm conftest*
7384    # SGI C++ compiler will create directory out/ii_files/ for
7385    # template instantiation
7386    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7387    $rm out/* && rmdir out
7388    cd ..
7389    rmdir conftest
7390    $rm conftest*
7391
7392 fi
7393 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7394 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7395
7396
7397 hard_links="nottested"
7398 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7399   # do not overwrite the value of need_locks provided by the user
7400   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7401 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7402   hard_links=yes
7403   $rm conftest*
7404   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7405   touch conftest.a
7406   ln conftest.a conftest.b 2>&5 || hard_links=no
7407   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7408   echo "$as_me:$LINENO: result: $hard_links" >&5
7409 echo "${ECHO_T}$hard_links" >&6
7410   if test "$hard_links" = no; then
7411     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7412 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7413     need_locks=warn
7414   fi
7415 else
7416   need_locks=no
7417 fi
7418
7419 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7420 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7421
7422   runpath_var=
7423   allow_undefined_flag=
7424   enable_shared_with_static_runtimes=no
7425   archive_cmds=
7426   archive_expsym_cmds=
7427   old_archive_From_new_cmds=
7428   old_archive_from_expsyms_cmds=
7429   export_dynamic_flag_spec=
7430   whole_archive_flag_spec=
7431   thread_safe_flag_spec=
7432   hardcode_libdir_flag_spec=
7433   hardcode_libdir_flag_spec_ld=
7434   hardcode_libdir_separator=
7435   hardcode_direct=no
7436   hardcode_minus_L=no
7437   hardcode_shlibpath_var=unsupported
7438   link_all_deplibs=unknown
7439   hardcode_automatic=no
7440   module_cmds=
7441   module_expsym_cmds=
7442   always_export_symbols=no
7443   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7444   # include_expsyms should be a list of space-separated symbols to be *always*
7445   # included in the symbol list
7446   include_expsyms=
7447   # exclude_expsyms can be an extended regexp of symbols to exclude
7448   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7449   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7450   # as well as any symbol that contains `d'.
7451   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7452   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7453   # platforms (ab)use it in PIC code, but their linkers get confused if
7454   # the symbol is explicitly referenced.  Since portable code cannot
7455   # rely on this symbol name, it's probably fine to never include it in
7456   # preloaded symbol tables.
7457   extract_expsyms_cmds=
7458
7459   case $host_os in
7460   cygwin* | mingw* | pw32*)
7461     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7462     # When not using gcc, we currently assume that we are using
7463     # Microsoft Visual C++.
7464     if test "$GCC" != yes; then
7465       with_gnu_ld=no
7466     fi
7467     ;;
7468   openbsd*)
7469     with_gnu_ld=no
7470     ;;
7471   esac
7472
7473   ld_shlibs=yes
7474   if test "$with_gnu_ld" = yes; then
7475     # If archive_cmds runs LD, not CC, wlarc should be empty
7476     wlarc='${wl}'
7477
7478     # See if GNU ld supports shared libraries.
7479     case $host_os in
7480     aix3* | aix4* | aix5*)
7481       # On AIX/PPC, the GNU linker is very broken
7482       if test "$host_cpu" != ia64; then
7483         ld_shlibs=no
7484         cat <<EOF 1>&2
7485
7486 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7487 *** to be unable to reliably create shared libraries on AIX.
7488 *** Therefore, libtool is disabling shared libraries support.  If you
7489 *** really care for shared libraries, you may want to modify your PATH
7490 *** so that a non-GNU linker is found, and then restart.
7491
7492 EOF
7493       fi
7494       ;;
7495
7496     amigaos*)
7497       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)'
7498       hardcode_libdir_flag_spec='-L$libdir'
7499       hardcode_minus_L=yes
7500
7501       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7502       # that the semantics of dynamic libraries on AmigaOS, at least up
7503       # to version 4, is to share data among multiple programs linked
7504       # with the same dynamic library.  Since this doesn't match the
7505       # behavior of shared libraries on other platforms, we can't use
7506       # them.
7507       ld_shlibs=no
7508       ;;
7509
7510     beos*)
7511       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7512         allow_undefined_flag=unsupported
7513         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7514         # support --undefined.  This deserves some investigation.  FIXME
7515         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7516       else
7517         ld_shlibs=no
7518       fi
7519       ;;
7520
7521     cygwin* | mingw* | pw32*)
7522       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7523       # as there is no search path for DLLs.
7524       hardcode_libdir_flag_spec='-L$libdir'
7525       allow_undefined_flag=unsupported
7526       always_export_symbols=no
7527       enable_shared_with_static_runtimes=yes
7528       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7529
7530       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7531         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7532         # If the export-symbols file already is a .def file (1st line
7533         # is EXPORTS), use it as is; otherwise, prepend...
7534         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7535           cp $export_symbols $output_objdir/$soname.def;
7536         else
7537           echo EXPORTS > $output_objdir/$soname.def;
7538           cat $export_symbols >> $output_objdir/$soname.def;
7539         fi~
7540         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7541       else
7542         ld_shlibs=no
7543       fi
7544       ;;
7545
7546     netbsd*)
7547       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7548         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7549         wlarc=
7550       else
7551         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7552         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7553       fi
7554       ;;
7555
7556     solaris* | sysv5*)
7557       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7558         ld_shlibs=no
7559         cat <<EOF 1>&2
7560
7561 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7562 *** create shared libraries on Solaris systems.  Therefore, libtool
7563 *** is disabling shared libraries support.  We urge you to upgrade GNU
7564 *** binutils to release 2.9.1 or newer.  Another option is to modify
7565 *** your PATH or compiler configuration so that the native linker is
7566 *** used, and then restart.
7567
7568 EOF
7569       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7570         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7571         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7572       else
7573         ld_shlibs=no
7574       fi
7575       ;;
7576
7577     sunos4*)
7578       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7579       wlarc=
7580       hardcode_direct=yes
7581       hardcode_shlibpath_var=no
7582       ;;
7583
7584   linux*)
7585     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7586         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7587         archive_cmds="$tmp_archive_cmds"
7588       supports_anon_versioning=no
7589       case `$LD -v 2>/dev/null` in
7590         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7591         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7592         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7593         *\ 2.11.*) ;; # other 2.11 versions
7594         *) supports_anon_versioning=yes ;;
7595       esac
7596       if test $supports_anon_versioning = yes; then
7597         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7599 $echo "local: *; };" >> $output_objdir/$libname.ver~
7600         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7601       else
7602         archive_expsym_cmds="$tmp_archive_cmds"
7603       fi
7604     else
7605       ld_shlibs=no
7606     fi
7607     ;;
7608
7609     *)
7610       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7611         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7612         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7613       else
7614         ld_shlibs=no
7615       fi
7616       ;;
7617     esac
7618
7619     if test "$ld_shlibs" = yes; then
7620       runpath_var=LD_RUN_PATH
7621       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7622       export_dynamic_flag_spec='${wl}--export-dynamic'
7623       # ancient GNU ld didn't support --whole-archive et. al.
7624       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7625         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7626       else
7627         whole_archive_flag_spec=
7628       fi
7629     fi
7630   else
7631     # PORTME fill in a description of your system's linker (not GNU ld)
7632     case $host_os in
7633     aix3*)
7634       allow_undefined_flag=unsupported
7635       always_export_symbols=yes
7636       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'
7637       # Note: this linker hardcodes the directories in LIBPATH if there
7638       # are no directories specified by -L.
7639       hardcode_minus_L=yes
7640       if test "$GCC" = yes && test -z "$link_static_flag"; then
7641         # Neither direct hardcoding nor static linking is supported with a
7642         # broken collect2.
7643         hardcode_direct=unsupported
7644       fi
7645       ;;
7646
7647     aix4* | aix5*)
7648       if test "$host_cpu" = ia64; then
7649         # On IA64, the linker does run time linking by default, so we don't
7650         # have to do anything special.
7651         aix_use_runtimelinking=no
7652         exp_sym_flag='-Bexport'
7653         no_entry_flag=""
7654       else
7655         # If we're using GNU nm, then we don't want the "-C" option.
7656         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7657         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7658           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'
7659         else
7660           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'
7661         fi
7662         aix_use_runtimelinking=no
7663
7664         # Test if we are trying to use run time linking or normal
7665         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7666         # need to do runtime linking.
7667         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7668           for ld_flag in $LDFLAGS; do
7669           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7670             aix_use_runtimelinking=yes
7671             break
7672           fi
7673           done
7674         esac
7675
7676         exp_sym_flag='-bexport'
7677         no_entry_flag='-bnoentry'
7678       fi
7679
7680       # When large executables or shared objects are built, AIX ld can
7681       # have problems creating the table of contents.  If linking a library
7682       # or program results in "error TOC overflow" add -mminimal-toc to
7683       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7684       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7685
7686       archive_cmds=''
7687       hardcode_direct=yes
7688       hardcode_libdir_separator=':'
7689       link_all_deplibs=yes
7690
7691       if test "$GCC" = yes; then
7692         case $host_os in aix4.012|aix4.012.*)
7693         # We only want to do this on AIX 4.2 and lower, the check
7694         # below for broken collect2 doesn't work under 4.3+
7695           collect2name=`${CC} -print-prog-name=collect2`
7696           if test -f "$collect2name" && \
7697            strings "$collect2name" | grep resolve_lib_name >/dev/null
7698           then
7699           # We have reworked collect2
7700           hardcode_direct=yes
7701           else
7702           # We have old collect2
7703           hardcode_direct=unsupported
7704           # It fails to find uninstalled libraries when the uninstalled
7705           # path is not listed in the libpath.  Setting hardcode_minus_L
7706           # to unsupported forces relinking
7707           hardcode_minus_L=yes
7708           hardcode_libdir_flag_spec='-L$libdir'
7709           hardcode_libdir_separator=
7710           fi
7711         esac
7712         shared_flag='-shared'
7713       else
7714         # not using gcc
7715         if test "$host_cpu" = ia64; then
7716         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7717         # chokes on -Wl,-G. The following line is correct:
7718           shared_flag='-G'
7719         else
7720         if test "$aix_use_runtimelinking" = yes; then
7721             shared_flag='${wl}-G'
7722           else
7723             shared_flag='${wl}-bM:SRE'
7724         fi
7725         fi
7726       fi
7727
7728       # It seems that -bexpall does not export symbols beginning with
7729       # underscore (_), so it is better to generate a list of symbols to export.
7730       always_export_symbols=yes
7731       if test "$aix_use_runtimelinking" = yes; then
7732         # Warning - without using the other runtime loading flags (-brtl),
7733         # -berok will link without error, but may produce a broken library.
7734         allow_undefined_flag='-berok'
7735        # Determine the default libpath from the value encoded in an empty executable.
7736        cat >conftest.$ac_ext <<_ACEOF
7737 /* confdefs.h.  */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h.  */
7742
7743 int
7744 main ()
7745 {
7746
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753   (eval $ac_link) 2>conftest.er1
7754   ac_status=$?
7755   grep -v '^ *+' conftest.er1 >conftest.err
7756   rm -f conftest.er1
7757   cat conftest.err >&5
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); } &&
7760          { ac_try='test -z "$ac_c_werror_flag"
7761                          || test ! -s conftest.err'
7762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763   (eval $ac_try) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); }; } &&
7767          { ac_try='test -s conftest$ac_exeext'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773
7774 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7775 }'`
7776 # Check for a 64-bit object if we didn't find anything.
7777 if 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; }
7778 }'`; fi
7779 else
7780   echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783 fi
7784 rm -f conftest.err conftest.$ac_objext \
7785       conftest$ac_exeext conftest.$ac_ext
7786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7787
7788        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7789         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"
7790        else
7791         if test "$host_cpu" = ia64; then
7792           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7793           allow_undefined_flag="-z nodefs"
7794           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"
7795         else
7796          # Determine the default libpath from the value encoded in an empty executable.
7797          cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h.  */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h.  */
7803
7804 int
7805 main ()
7806 {
7807
7808   ;
7809   return 0;
7810 }
7811 _ACEOF
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814   (eval $ac_link) 2>conftest.er1
7815   ac_status=$?
7816   grep -v '^ *+' conftest.er1 >conftest.err
7817   rm -f conftest.er1
7818   cat conftest.err >&5
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); } &&
7821          { ac_try='test -z "$ac_c_werror_flag"
7822                          || test ! -s conftest.err'
7823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824   (eval $ac_try) 2>&5
7825   ac_status=$?
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); }; } &&
7828          { ac_try='test -s conftest$ac_exeext'
7829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830   (eval $ac_try) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; }; then
7834
7835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7836 }'`
7837 # Check for a 64-bit object if we didn't find anything.
7838 if 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; }
7839 }'`; fi
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 fi
7845 rm -f conftest.err conftest.$ac_objext \
7846       conftest$ac_exeext conftest.$ac_ext
7847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7848
7849          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7850           # Warning - without using the other run time loading flags,
7851           # -berok will link without error, but may produce a broken library.
7852           no_undefined_flag=' ${wl}-bernotok'
7853           allow_undefined_flag=' ${wl}-berok'
7854           # -bexpall does not export symbols beginning with underscore (_)
7855           always_export_symbols=yes
7856           # Exported symbols can be pulled into shared objects from archives
7857           whole_archive_flag_spec=' '
7858           archive_cmds_need_lc=yes
7859           # This is similar to how AIX traditionally builds it's shared libraries.
7860           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'
7861         fi
7862       fi
7863       ;;
7864
7865     amigaos*)
7866       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)'
7867       hardcode_libdir_flag_spec='-L$libdir'
7868       hardcode_minus_L=yes
7869       # see comment about different semantics on the GNU ld section
7870       ld_shlibs=no
7871       ;;
7872
7873     bsdi4*)
7874       export_dynamic_flag_spec=-rdynamic
7875       ;;
7876
7877     cygwin* | mingw* | pw32*)
7878       # When not using gcc, we currently assume that we are using
7879       # Microsoft Visual C++.
7880       # hardcode_libdir_flag_spec is actually meaningless, as there is
7881       # no search path for DLLs.
7882       hardcode_libdir_flag_spec=' '
7883       allow_undefined_flag=unsupported
7884       # Tell ltmain to make .lib files, not .a files.
7885       libext=lib
7886       # Tell ltmain to make .dll files, not .so files.
7887       shrext=".dll"
7888       # FIXME: Setting linknames here is a bad hack.
7889       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7890       # The linker will automatically build a .lib file if we build a DLL.
7891       old_archive_From_new_cmds='true'
7892       # FIXME: Should let the user specify the lib program.
7893       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7894       fix_srcfile_path='`cygpath -w "$srcfile"`'
7895       enable_shared_with_static_runtimes=yes
7896       ;;
7897
7898     darwin* | rhapsody*)
7899     if test "$GXX" = yes ; then
7900       archive_cmds_need_lc=no
7901       case "$host_os" in
7902       rhapsody* | darwin1.[012])
7903         allow_undefined_flag='-undefined suppress'
7904         ;;
7905       *) # Darwin 1.3 on
7906       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7907         allow_undefined_flag='-flat_namespace -undefined suppress'
7908       else
7909         case ${MACOSX_DEPLOYMENT_TARGET} in
7910           10.[012])
7911             allow_undefined_flag='-flat_namespace -undefined suppress'
7912             ;;
7913           10.*)
7914             allow_undefined_flag='-undefined dynamic_lookup'
7915             ;;
7916         esac
7917       fi
7918         ;;
7919       esac
7920         lt_int_apple_cc_single_mod=no
7921         output_verbose_link_cmd='echo'
7922         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7923           lt_int_apple_cc_single_mod=yes
7924         fi
7925         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7926           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7927         else
7928         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'
7929       fi
7930       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7931       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7932         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7933           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}'
7934         else
7935           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}'
7936         fi
7937           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}'
7938       hardcode_direct=no
7939       hardcode_automatic=yes
7940       hardcode_shlibpath_var=unsupported
7941       whole_archive_flag_spec='-all_load $convenience'
7942       link_all_deplibs=yes
7943     else
7944       ld_shlibs=no
7945     fi
7946       ;;
7947
7948     dgux*)
7949       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7950       hardcode_libdir_flag_spec='-L$libdir'
7951       hardcode_shlibpath_var=no
7952       ;;
7953
7954     freebsd1*)
7955       ld_shlibs=no
7956       ;;
7957
7958     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7959     # support.  Future versions do this automatically, but an explicit c++rt0.o
7960     # does not break anything, and helps significantly (at the cost of a little
7961     # extra space).
7962     freebsd2.2*)
7963       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7964       hardcode_libdir_flag_spec='-R$libdir'
7965       hardcode_direct=yes
7966       hardcode_shlibpath_var=no
7967       ;;
7968
7969     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7970     freebsd2*)
7971       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7972       hardcode_direct=yes
7973       hardcode_minus_L=yes
7974       hardcode_shlibpath_var=no
7975       ;;
7976
7977     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7978     freebsd* | kfreebsd*-gnu)
7979       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7980       hardcode_libdir_flag_spec='-R$libdir'
7981       hardcode_direct=yes
7982       hardcode_shlibpath_var=no
7983       ;;
7984
7985     hpux9*)
7986       if test "$GCC" = yes; then
7987         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'
7988       else
7989         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'
7990       fi
7991       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7992       hardcode_libdir_separator=:
7993       hardcode_direct=yes
7994
7995       # hardcode_minus_L: Not really in the search PATH,
7996       # but as the default location of the library.
7997       hardcode_minus_L=yes
7998       export_dynamic_flag_spec='${wl}-E'
7999       ;;
8000
8001     hpux10* | hpux11*)
8002       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8003         case "$host_cpu" in
8004         hppa*64*|ia64*)
8005           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8006           ;;
8007         *)
8008           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8009           ;;
8010         esac
8011       else
8012         case "$host_cpu" in
8013         hppa*64*|ia64*)
8014           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8015           ;;
8016         *)
8017           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8018           ;;
8019         esac
8020       fi
8021       if test "$with_gnu_ld" = no; then
8022         case "$host_cpu" in
8023         hppa*64*)
8024           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8025           hardcode_libdir_flag_spec_ld='+b $libdir'
8026           hardcode_libdir_separator=:
8027           hardcode_direct=no
8028           hardcode_shlibpath_var=no
8029           ;;
8030         ia64*)
8031           hardcode_libdir_flag_spec='-L$libdir'
8032           hardcode_direct=no
8033           hardcode_shlibpath_var=no
8034
8035           # hardcode_minus_L: Not really in the search PATH,
8036           # but as the default location of the library.
8037           hardcode_minus_L=yes
8038           ;;
8039         *)
8040           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8041           hardcode_libdir_separator=:
8042           hardcode_direct=yes
8043           export_dynamic_flag_spec='${wl}-E'
8044
8045           # hardcode_minus_L: Not really in the search PATH,
8046           # but as the default location of the library.
8047           hardcode_minus_L=yes
8048           ;;
8049         esac
8050       fi
8051       ;;
8052
8053     irix5* | irix6* | nonstopux*)
8054       if test "$GCC" = yes; then
8055         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'
8056       else
8057         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'
8058         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8059       fi
8060       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8061       hardcode_libdir_separator=:
8062       link_all_deplibs=yes
8063       ;;
8064
8065     netbsd*)
8066       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8067         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8068       else
8069         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8070       fi
8071       hardcode_libdir_flag_spec='-R$libdir'
8072       hardcode_direct=yes
8073       hardcode_shlibpath_var=no
8074       ;;
8075
8076     newsos6)
8077       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8078       hardcode_direct=yes
8079       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8080       hardcode_libdir_separator=:
8081       hardcode_shlibpath_var=no
8082       ;;
8083
8084     openbsd*)
8085       hardcode_direct=yes
8086       hardcode_shlibpath_var=no
8087       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8088         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8089         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8090         export_dynamic_flag_spec='${wl}-E'
8091       else
8092        case $host_os in
8093          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8094            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8095            hardcode_libdir_flag_spec='-R$libdir'
8096            ;;
8097          *)
8098            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8099            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8100            ;;
8101        esac
8102       fi
8103       ;;
8104
8105     os2*)
8106       hardcode_libdir_flag_spec='-L$libdir'
8107       hardcode_minus_L=yes
8108       allow_undefined_flag=unsupported
8109       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'
8110       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8111       ;;
8112
8113     osf3*)
8114       if test "$GCC" = yes; then
8115         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8116         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'
8117       else
8118         allow_undefined_flag=' -expect_unresolved \*'
8119         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'
8120       fi
8121       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8122       hardcode_libdir_separator=:
8123       ;;
8124
8125     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8126       if test "$GCC" = yes; then
8127         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8128         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'
8129         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8130       else
8131         allow_undefined_flag=' -expect_unresolved \*'
8132         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'
8133         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8134         $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'
8135
8136         # Both c and cxx compiler support -rpath directly
8137         hardcode_libdir_flag_spec='-rpath $libdir'
8138       fi
8139       hardcode_libdir_separator=:
8140       ;;
8141
8142     sco3.2v5*)
8143       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8144       hardcode_shlibpath_var=no
8145       export_dynamic_flag_spec='${wl}-Bexport'
8146       runpath_var=LD_RUN_PATH
8147       hardcode_runpath_var=yes
8148       ;;
8149
8150     solaris*)
8151       no_undefined_flag=' -z text'
8152       if test "$GCC" = yes; then
8153         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8154         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8155           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8156       else
8157         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8158         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8159         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8160       fi
8161       hardcode_libdir_flag_spec='-R$libdir'
8162       hardcode_shlibpath_var=no
8163       case $host_os in
8164       solaris2.[0-5] | solaris2.[0-5].*) ;;
8165       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8166         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8167       esac
8168       link_all_deplibs=yes
8169       ;;
8170
8171     sunos4*)
8172       if test "x$host_vendor" = xsequent; then
8173         # Use $CC to link under sequent, because it throws in some extra .o
8174         # files that make .init and .fini sections work.
8175         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8176       else
8177         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8178       fi
8179       hardcode_libdir_flag_spec='-L$libdir'
8180       hardcode_direct=yes
8181       hardcode_minus_L=yes
8182       hardcode_shlibpath_var=no
8183       ;;
8184
8185     sysv4)
8186       case $host_vendor in
8187         sni)
8188           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189           hardcode_direct=yes # is this really true???
8190         ;;
8191         siemens)
8192           ## LD is ld it makes a PLAMLIB
8193           ## CC just makes a GrossModule.
8194           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8195           reload_cmds='$CC -r -o $output$reload_objs'
8196           hardcode_direct=no
8197         ;;
8198         motorola)
8199           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8200           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8201         ;;
8202       esac
8203       runpath_var='LD_RUN_PATH'
8204       hardcode_shlibpath_var=no
8205       ;;
8206
8207     sysv4.3*)
8208       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8209       hardcode_shlibpath_var=no
8210       export_dynamic_flag_spec='-Bexport'
8211       ;;
8212
8213     sysv4*MP*)
8214       if test -d /usr/nec; then
8215         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216         hardcode_shlibpath_var=no
8217         runpath_var=LD_RUN_PATH
8218         hardcode_runpath_var=yes
8219         ld_shlibs=yes
8220       fi
8221       ;;
8222
8223     sysv4.2uw2*)
8224       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8225       hardcode_direct=yes
8226       hardcode_minus_L=no
8227       hardcode_shlibpath_var=no
8228       hardcode_runpath_var=yes
8229       runpath_var=LD_RUN_PATH
8230       ;;
8231
8232    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8233       no_undefined_flag='${wl}-z ${wl}text'
8234       if test "$GCC" = yes; then
8235         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8236       else
8237         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8238       fi
8239       runpath_var='LD_RUN_PATH'
8240       hardcode_shlibpath_var=no
8241       ;;
8242
8243     sysv5*)
8244       no_undefined_flag=' -z text'
8245       # $CC -shared without GNU ld will not create a library from C++
8246       # object files and a static libstdc++, better avoid it by now
8247       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8248       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8249                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8250       hardcode_libdir_flag_spec=
8251       hardcode_shlibpath_var=no
8252       runpath_var='LD_RUN_PATH'
8253       ;;
8254
8255     uts4*)
8256       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8257       hardcode_libdir_flag_spec='-L$libdir'
8258       hardcode_shlibpath_var=no
8259       ;;
8260
8261     *)
8262       ld_shlibs=no
8263       ;;
8264     esac
8265   fi
8266
8267 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8268 echo "${ECHO_T}$ld_shlibs" >&6
8269 test "$ld_shlibs" = no && can_build_shared=no
8270
8271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8272 if test "$GCC" = yes; then
8273   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8274 fi
8275
8276 #
8277 # Do we need to explicitly link libc?
8278 #
8279 case "x$archive_cmds_need_lc" in
8280 x|xyes)
8281   # Assume -lc should be added
8282   archive_cmds_need_lc=yes
8283
8284   if test "$enable_shared" = yes && test "$GCC" = yes; then
8285     case $archive_cmds in
8286     *'~'*)
8287       # FIXME: we may have to deal with multi-command sequences.
8288       ;;
8289     '$CC '*)
8290       # Test whether the compiler implicitly links with -lc since on some
8291       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8292       # to ld, don't add -lc before -lgcc.
8293       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8294 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8295       $rm conftest*
8296       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8297
8298       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8299   (eval $ac_compile) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } 2>conftest.err; then
8303         soname=conftest
8304         lib=conftest
8305         libobjs=conftest.$ac_objext
8306         deplibs=
8307         wl=$lt_prog_compiler_wl
8308         compiler_flags=-v
8309         linker_flags=-v
8310         verstring=
8311         output_objdir=.
8312         libname=conftest
8313         lt_save_allow_undefined_flag=$allow_undefined_flag
8314         allow_undefined_flag=
8315         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8316   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }
8320         then
8321           archive_cmds_need_lc=no
8322         else
8323           archive_cmds_need_lc=yes
8324         fi
8325         allow_undefined_flag=$lt_save_allow_undefined_flag
8326       else
8327         cat conftest.err 1>&5
8328       fi
8329       $rm conftest*
8330       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8331 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8332       ;;
8333     esac
8334   fi
8335   ;;
8336 esac
8337
8338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8339 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8340 library_names_spec=
8341 libname_spec='lib$name'
8342 soname_spec=
8343 shrext=".so"
8344 postinstall_cmds=
8345 postuninstall_cmds=
8346 finish_cmds=
8347 finish_eval=
8348 shlibpath_var=
8349 shlibpath_overrides_runpath=unknown
8350 version_type=none
8351 dynamic_linker="$host_os ld.so"
8352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8353 if test "$GCC" = yes; then
8354   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8355   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8356     # if the path contains ";" then we assume it to be the separator
8357     # otherwise default to the standard path separator (i.e. ":") - it is
8358     # assumed that no part of a normal pathname contains ";" but that should
8359     # okay in the real world where ";" in dirpaths is itself problematic.
8360     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8361   else
8362     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8363   fi
8364 else
8365   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8366 fi
8367 need_lib_prefix=unknown
8368 hardcode_into_libs=no
8369
8370 # when you set need_version to no, make sure it does not cause -set_version
8371 # flags to be left without arguments
8372 need_version=unknown
8373
8374 case $host_os in
8375 aix3*)
8376   version_type=linux
8377   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8378   shlibpath_var=LIBPATH
8379
8380   # AIX 3 has no versioning support, so we append a major version to the name.
8381   soname_spec='${libname}${release}${shared_ext}$major'
8382   ;;
8383
8384 aix4* | aix5*)
8385   version_type=linux
8386   need_lib_prefix=no
8387   need_version=no
8388   hardcode_into_libs=yes
8389   if test "$host_cpu" = ia64; then
8390     # AIX 5 supports IA64
8391     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8392     shlibpath_var=LD_LIBRARY_PATH
8393   else
8394     # With GCC up to 2.95.x, collect2 would create an import file
8395     # for dependence libraries.  The import file would start with
8396     # the line `#! .'.  This would cause the generated library to
8397     # depend on `.', always an invalid library.  This was fixed in
8398     # development snapshots of GCC prior to 3.0.
8399     case $host_os in
8400       aix4 | aix4.[01] | aix4.[01].*)
8401       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8402            echo ' yes '
8403            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8404         :
8405       else
8406         can_build_shared=no
8407       fi
8408       ;;
8409     esac
8410     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8411     # soname into executable. Probably we can add versioning support to
8412     # collect2, so additional links can be useful in future.
8413     if test "$aix_use_runtimelinking" = yes; then
8414       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8415       # instead of lib<name>.a to let people know that these are not
8416       # typical AIX shared libraries.
8417       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418     else
8419       # We preserve .a as extension for shared libraries through AIX4.2
8420       # and later when we are not doing run time linking.
8421       library_names_spec='${libname}${release}.a $libname.a'
8422       soname_spec='${libname}${release}${shared_ext}$major'
8423     fi
8424     shlibpath_var=LIBPATH
8425   fi
8426   ;;
8427
8428 amigaos*)
8429   library_names_spec='$libname.ixlibrary $libname.a'
8430   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8431   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'
8432   ;;
8433
8434 beos*)
8435   library_names_spec='${libname}${shared_ext}'
8436   dynamic_linker="$host_os ld.so"
8437   shlibpath_var=LIBRARY_PATH
8438   ;;
8439
8440 bsdi4*)
8441   version_type=linux
8442   need_version=no
8443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8444   soname_spec='${libname}${release}${shared_ext}$major'
8445   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8446   shlibpath_var=LD_LIBRARY_PATH
8447   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8448   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8449   # the default ld.so.conf also contains /usr/contrib/lib and
8450   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8451   # libtool to hard-code these into programs
8452   ;;
8453
8454 cygwin* | mingw* | pw32*)
8455   version_type=windows
8456   shrext=".dll"
8457   need_version=no
8458   need_lib_prefix=no
8459
8460   case $GCC,$host_os in
8461   yes,cygwin* | yes,mingw* | yes,pw32*)
8462     library_names_spec='$libname.dll.a'
8463     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8464     postinstall_cmds='base_file=`basename \${file}`~
8465       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8466       dldir=$destdir/`dirname \$dlpath`~
8467       test -d \$dldir || mkdir -p \$dldir~
8468       $install_prog $dir/$dlname \$dldir/$dlname'
8469     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8470       dlpath=$dir/\$dldll~
8471        $rm \$dlpath'
8472     shlibpath_overrides_runpath=yes
8473
8474     case $host_os in
8475     cygwin*)
8476       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8477       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8478       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8479       ;;
8480     mingw*)
8481       # MinGW DLLs use traditional 'lib' prefix
8482       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8483       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8484       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8485         # It is most probably a Windows format PATH printed by
8486         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8487         # path with ; separators, and with drive letters. We can handle the
8488         # drive letters (cygwin fileutils understands them), so leave them,
8489         # especially as we might pass files found there to a mingw objdump,
8490         # which wouldn't understand a cygwinified path. Ahh.
8491         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8492       else
8493         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8494       fi
8495       ;;
8496     pw32*)
8497       # pw32 DLLs use 'pw' prefix rather than 'lib'
8498       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8499       ;;
8500     esac
8501     ;;
8502
8503   *)
8504     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8505     ;;
8506   esac
8507   dynamic_linker='Win32 ld.exe'
8508   # FIXME: first we should search . and the directory the executable is in
8509   shlibpath_var=PATH
8510   ;;
8511
8512 darwin* | rhapsody*)
8513   dynamic_linker="$host_os dyld"
8514   version_type=darwin
8515   need_lib_prefix=no
8516   need_version=no
8517   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8518   soname_spec='${libname}${release}${major}$shared_ext'
8519   shlibpath_overrides_runpath=yes
8520   shlibpath_var=DYLD_LIBRARY_PATH
8521   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8522   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8523   if test "$GCC" = yes; then
8524     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"`
8525   else
8526     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8527   fi
8528   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8529   ;;
8530
8531 dgux*)
8532   version_type=linux
8533   need_lib_prefix=no
8534   need_version=no
8535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8536   soname_spec='${libname}${release}${shared_ext}$major'
8537   shlibpath_var=LD_LIBRARY_PATH
8538   ;;
8539
8540 freebsd1*)
8541   dynamic_linker=no
8542   ;;
8543
8544 kfreebsd*-gnu)
8545   version_type=linux
8546   need_lib_prefix=no
8547   need_version=no
8548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8549   soname_spec='${libname}${release}${shared_ext}$major'
8550   shlibpath_var=LD_LIBRARY_PATH
8551   shlibpath_overrides_runpath=no
8552   hardcode_into_libs=yes
8553   dynamic_linker='GNU ld.so'
8554   ;;
8555
8556 freebsd*)
8557   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8558   version_type=freebsd-$objformat
8559   case $version_type in
8560     freebsd-elf*)
8561       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8562       need_version=no
8563       need_lib_prefix=no
8564       ;;
8565     freebsd-*)
8566       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8567       need_version=yes
8568       ;;
8569   esac
8570   shlibpath_var=LD_LIBRARY_PATH
8571   case $host_os in
8572   freebsd2*)
8573     shlibpath_overrides_runpath=yes
8574     ;;
8575   freebsd3.01* | freebsdelf3.01*)
8576     shlibpath_overrides_runpath=yes
8577     hardcode_into_libs=yes
8578     ;;
8579   *) # from 3.2 on
8580     shlibpath_overrides_runpath=no
8581     hardcode_into_libs=yes
8582     ;;
8583   esac
8584   ;;
8585
8586 gnu*)
8587   version_type=linux
8588   need_lib_prefix=no
8589   need_version=no
8590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8591   soname_spec='${libname}${release}${shared_ext}$major'
8592   shlibpath_var=LD_LIBRARY_PATH
8593   hardcode_into_libs=yes
8594   ;;
8595
8596 hpux9* | hpux10* | hpux11*)
8597   # Give a soname corresponding to the major version so that dld.sl refuses to
8598   # link against other versions.
8599   version_type=sunos
8600   need_lib_prefix=no
8601   need_version=no
8602   case "$host_cpu" in
8603   ia64*)
8604     shrext='.so'
8605     hardcode_into_libs=yes
8606     dynamic_linker="$host_os dld.so"
8607     shlibpath_var=LD_LIBRARY_PATH
8608     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8610     soname_spec='${libname}${release}${shared_ext}$major'
8611     if test "X$HPUX_IA64_MODE" = X32; then
8612       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8613     else
8614       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8615     fi
8616     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8617     ;;
8618    hppa*64*)
8619      shrext='.sl'
8620      hardcode_into_libs=yes
8621      dynamic_linker="$host_os dld.sl"
8622      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8623      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8624      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8625      soname_spec='${libname}${release}${shared_ext}$major'
8626      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8627      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8628      ;;
8629    *)
8630     shrext='.sl'
8631     dynamic_linker="$host_os dld.sl"
8632     shlibpath_var=SHLIB_PATH
8633     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635     soname_spec='${libname}${release}${shared_ext}$major'
8636     ;;
8637   esac
8638   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8639   postinstall_cmds='chmod 555 $lib'
8640   ;;
8641
8642 irix5* | irix6* | nonstopux*)
8643   case $host_os in
8644     nonstopux*) version_type=nonstopux ;;
8645     *)
8646         if test "$lt_cv_prog_gnu_ld" = yes; then
8647                 version_type=linux
8648         else
8649                 version_type=irix
8650         fi ;;
8651   esac
8652   need_lib_prefix=no
8653   need_version=no
8654   soname_spec='${libname}${release}${shared_ext}$major'
8655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8656   case $host_os in
8657   irix5* | nonstopux*)
8658     libsuff= shlibsuff=
8659     ;;
8660   *)
8661     case $LD in # libtool.m4 will add one of these switches to LD
8662     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8663       libsuff= shlibsuff= libmagic=32-bit;;
8664     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8665       libsuff=32 shlibsuff=N32 libmagic=N32;;
8666     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8667       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8668     *) libsuff= shlibsuff= libmagic=never-match;;
8669     esac
8670     ;;
8671   esac
8672   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8673   shlibpath_overrides_runpath=no
8674   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8675   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8676   hardcode_into_libs=yes
8677   ;;
8678
8679 # No shared lib support for Linux oldld, aout, or coff.
8680 linux*oldld* | linux*aout* | linux*coff*)
8681   dynamic_linker=no
8682   ;;
8683
8684 # This must be Linux ELF.
8685 linux*)
8686   version_type=linux
8687   need_lib_prefix=no
8688   need_version=no
8689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690   soname_spec='${libname}${release}${shared_ext}$major'
8691   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8692   shlibpath_var=LD_LIBRARY_PATH
8693   shlibpath_overrides_runpath=no
8694   # This implies no fast_install, which is unacceptable.
8695   # Some rework will be needed to allow for fast_install
8696   # before this can be enabled.
8697   hardcode_into_libs=yes
8698
8699   # Append ld.so.conf contents to the search path
8700   if test -f /etc/ld.so.conf; then
8701     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8702     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8703   fi
8704
8705   # We used to test for /lib/ld.so.1 and disable shared libraries on
8706   # powerpc, because MkLinux only supported shared libraries with the
8707   # GNU dynamic linker.  Since this was broken with cross compilers,
8708   # most powerpc-linux boxes support dynamic linking these days and
8709   # people can always --disable-shared, the test was removed, and we
8710   # assume the GNU/Linux dynamic linker is in use.
8711   dynamic_linker='GNU/Linux ld.so'
8712   ;;
8713
8714 knetbsd*-gnu)
8715   version_type=linux
8716   need_lib_prefix=no
8717   need_version=no
8718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8719   soname_spec='${libname}${release}${shared_ext}$major'
8720   shlibpath_var=LD_LIBRARY_PATH
8721   shlibpath_overrides_runpath=no
8722   hardcode_into_libs=yes
8723   dynamic_linker='GNU ld.so'
8724   ;;
8725
8726 netbsd*)
8727   version_type=sunos
8728   need_lib_prefix=no
8729   need_version=no
8730   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8732     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8733     dynamic_linker='NetBSD (a.out) ld.so'
8734   else
8735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8736     soname_spec='${libname}${release}${shared_ext}$major'
8737     dynamic_linker='NetBSD ld.elf_so'
8738   fi
8739   shlibpath_var=LD_LIBRARY_PATH
8740   shlibpath_overrides_runpath=yes
8741   hardcode_into_libs=yes
8742   ;;
8743
8744 newsos6)
8745   version_type=linux
8746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747   shlibpath_var=LD_LIBRARY_PATH
8748   shlibpath_overrides_runpath=yes
8749   ;;
8750
8751 nto-qnx*)
8752   version_type=linux
8753   need_lib_prefix=no
8754   need_version=no
8755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756   soname_spec='${libname}${release}${shared_ext}$major'
8757   shlibpath_var=LD_LIBRARY_PATH
8758   shlibpath_overrides_runpath=yes
8759   ;;
8760
8761 openbsd*)
8762   version_type=sunos
8763   need_lib_prefix=no
8764   need_version=yes
8765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8766   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8767   shlibpath_var=LD_LIBRARY_PATH
8768   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8769     case $host_os in
8770       openbsd2.[89] | openbsd2.[89].*)
8771         shlibpath_overrides_runpath=no
8772         ;;
8773       *)
8774         shlibpath_overrides_runpath=yes
8775         ;;
8776       esac
8777   else
8778     shlibpath_overrides_runpath=yes
8779   fi
8780   ;;
8781
8782 os2*)
8783   libname_spec='$name'
8784   shrext=".dll"
8785   need_lib_prefix=no
8786   library_names_spec='$libname${shared_ext} $libname.a'
8787   dynamic_linker='OS/2 ld.exe'
8788   shlibpath_var=LIBPATH
8789   ;;
8790
8791 osf3* | osf4* | osf5*)
8792   version_type=osf
8793   need_lib_prefix=no
8794   need_version=no
8795   soname_spec='${libname}${release}${shared_ext}$major'
8796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8797   shlibpath_var=LD_LIBRARY_PATH
8798   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8799   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8800   ;;
8801
8802 sco3.2v5*)
8803   version_type=osf
8804   soname_spec='${libname}${release}${shared_ext}$major'
8805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8806   shlibpath_var=LD_LIBRARY_PATH
8807   ;;
8808
8809 solaris*)
8810   version_type=linux
8811   need_lib_prefix=no
8812   need_version=no
8813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814   soname_spec='${libname}${release}${shared_ext}$major'
8815   shlibpath_var=LD_LIBRARY_PATH
8816   shlibpath_overrides_runpath=yes
8817   hardcode_into_libs=yes
8818   # ldd complains unless libraries are executable
8819   postinstall_cmds='chmod +x $lib'
8820   ;;
8821
8822 sunos4*)
8823   version_type=sunos
8824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8825   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8826   shlibpath_var=LD_LIBRARY_PATH
8827   shlibpath_overrides_runpath=yes
8828   if test "$with_gnu_ld" = yes; then
8829     need_lib_prefix=no
8830   fi
8831   need_version=yes
8832   ;;
8833
8834 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8835   version_type=linux
8836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837   soname_spec='${libname}${release}${shared_ext}$major'
8838   shlibpath_var=LD_LIBRARY_PATH
8839   case $host_vendor in
8840     sni)
8841       shlibpath_overrides_runpath=no
8842       need_lib_prefix=no
8843       export_dynamic_flag_spec='${wl}-Blargedynsym'
8844       runpath_var=LD_RUN_PATH
8845       ;;
8846     siemens)
8847       need_lib_prefix=no
8848       ;;
8849     motorola)
8850       need_lib_prefix=no
8851       need_version=no
8852       shlibpath_overrides_runpath=no
8853       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8854       ;;
8855   esac
8856   ;;
8857
8858 sysv4*MP*)
8859   if test -d /usr/nec ;then
8860     version_type=linux
8861     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8862     soname_spec='$libname${shared_ext}.$major'
8863     shlibpath_var=LD_LIBRARY_PATH
8864   fi
8865   ;;
8866
8867 uts4*)
8868   version_type=linux
8869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870   soname_spec='${libname}${release}${shared_ext}$major'
8871   shlibpath_var=LD_LIBRARY_PATH
8872   ;;
8873
8874 *)
8875   dynamic_linker=no
8876   ;;
8877 esac
8878 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8879 echo "${ECHO_T}$dynamic_linker" >&6
8880 test "$dynamic_linker" = no && can_build_shared=no
8881
8882 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8883 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8884 hardcode_action=
8885 if test -n "$hardcode_libdir_flag_spec" || \
8886    test -n "$runpath_var " || \
8887    test "X$hardcode_automatic"="Xyes" ; then
8888
8889   # We can hardcode non-existant directories.
8890   if test "$hardcode_direct" != no &&
8891      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8892      # have to relink, otherwise we might link with an installed library
8893      # when we should be linking with a yet-to-be-installed one
8894      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8895      test "$hardcode_minus_L" != no; then
8896     # Linking always hardcodes the temporary library directory.
8897     hardcode_action=relink
8898   else
8899     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8900     hardcode_action=immediate
8901   fi
8902 else
8903   # We cannot hardcode anything, or else we can only hardcode existing
8904   # directories.
8905   hardcode_action=unsupported
8906 fi
8907 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8908 echo "${ECHO_T}$hardcode_action" >&6
8909
8910 if test "$hardcode_action" = relink; then
8911   # Fast installation is not supported
8912   enable_fast_install=no
8913 elif test "$shlibpath_overrides_runpath" = yes ||
8914      test "$enable_shared" = no; then
8915   # Fast installation is not necessary
8916   enable_fast_install=needless
8917 fi
8918
8919 striplib=
8920 old_striplib=
8921 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8922 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8923 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8924   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8925   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8926   echo "$as_me:$LINENO: result: yes" >&5
8927 echo "${ECHO_T}yes" >&6
8928 else
8929 # FIXME - insert some real tests, host_os isn't really good enough
8930   case $host_os in
8931    darwin*)
8932        if test -n "$STRIP" ; then
8933          striplib="$STRIP -x"
8934          echo "$as_me:$LINENO: result: yes" >&5
8935 echo "${ECHO_T}yes" >&6
8936        else
8937   echo "$as_me:$LINENO: result: no" >&5
8938 echo "${ECHO_T}no" >&6
8939 fi
8940        ;;
8941    *)
8942   echo "$as_me:$LINENO: result: no" >&5
8943 echo "${ECHO_T}no" >&6
8944     ;;
8945   esac
8946 fi
8947
8948 if test "x$enable_dlopen" != xyes; then
8949   enable_dlopen=unknown
8950   enable_dlopen_self=unknown
8951   enable_dlopen_self_static=unknown
8952 else
8953   lt_cv_dlopen=no
8954   lt_cv_dlopen_libs=
8955
8956   case $host_os in
8957   beos*)
8958     lt_cv_dlopen="load_add_on"
8959     lt_cv_dlopen_libs=
8960     lt_cv_dlopen_self=yes
8961     ;;
8962
8963   mingw* | pw32*)
8964     lt_cv_dlopen="LoadLibrary"
8965     lt_cv_dlopen_libs=
8966    ;;
8967
8968   cygwin*)
8969     lt_cv_dlopen="dlopen"
8970     lt_cv_dlopen_libs=
8971    ;;
8972
8973   darwin*)
8974   # if libdl is installed we need to link against it
8975     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8976 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8977 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8978   echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980   ac_check_lib_save_LIBS=$LIBS
8981 LIBS="-ldl  $LIBS"
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988
8989 /* Override any gcc2 internal prototype to avoid an error.  */
8990 #ifdef __cplusplus
8991 extern "C"
8992 #endif
8993 /* We use char because int might match the return type of a gcc2
8994    builtin and then its argument prototype would still apply.  */
8995 char dlopen ();
8996 int
8997 main ()
8998 {
8999 dlopen ();
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006   (eval $ac_link) 2>conftest.er1
9007   ac_status=$?
9008   grep -v '^ *+' conftest.er1 >conftest.err
9009   rm -f conftest.er1
9010   cat conftest.err >&5
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } &&
9013          { ac_try='test -z "$ac_c_werror_flag"
9014                          || test ! -s conftest.err'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; } &&
9020          { ac_try='test -s conftest$ac_exeext'
9021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022   (eval $ac_try) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); }; }; then
9026   ac_cv_lib_dl_dlopen=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 ac_cv_lib_dl_dlopen=no
9032 fi
9033 rm -f conftest.err conftest.$ac_objext \
9034       conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9036 fi
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9038 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9039 if test $ac_cv_lib_dl_dlopen = yes; then
9040   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9041 else
9042
9043     lt_cv_dlopen="dyld"
9044     lt_cv_dlopen_libs=
9045     lt_cv_dlopen_self=yes
9046
9047 fi
9048
9049    ;;
9050
9051   *)
9052     echo "$as_me:$LINENO: checking for shl_load" >&5
9053 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9054 if test "${ac_cv_func_shl_load+set}" = set; then
9055   echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057   cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h.  */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h.  */
9063 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9065 #define shl_load innocuous_shl_load
9066
9067 /* System header to define __stub macros and hopefully few prototypes,
9068     which can conflict with char shl_load (); below.
9069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9070     <limits.h> exists even on freestanding compilers.  */
9071
9072 #ifdef __STDC__
9073 # include <limits.h>
9074 #else
9075 # include <assert.h>
9076 #endif
9077
9078 #undef shl_load
9079
9080 /* Override any gcc2 internal prototype to avoid an error.  */
9081 #ifdef __cplusplus
9082 extern "C"
9083 {
9084 #endif
9085 /* We use char because int might match the return type of a gcc2
9086    builtin and then its argument prototype would still apply.  */
9087 char shl_load ();
9088 /* The GNU C library defines this for functions which it implements
9089     to always fail with ENOSYS.  Some functions are actually named
9090     something starting with __ and the normal name is an alias.  */
9091 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9092 choke me
9093 #else
9094 char (*f) () = shl_load;
9095 #endif
9096 #ifdef __cplusplus
9097 }
9098 #endif
9099
9100 int
9101 main ()
9102 {
9103 return f != shl_load;
9104   ;
9105   return 0;
9106 }
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110   (eval $ac_link) 2>conftest.er1
9111   ac_status=$?
9112   grep -v '^ *+' conftest.er1 >conftest.err
9113   rm -f conftest.er1
9114   cat conftest.err >&5
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); } &&
9117          { ac_try='test -z "$ac_c_werror_flag"
9118                          || test ! -s conftest.err'
9119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120   (eval $ac_try) 2>&5
9121   ac_status=$?
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); }; } &&
9124          { ac_try='test -s conftest$ac_exeext'
9125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126   (eval $ac_try) 2>&5
9127   ac_status=$?
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); }; }; then
9130   ac_cv_func_shl_load=yes
9131 else
9132   echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 ac_cv_func_shl_load=no
9136 fi
9137 rm -f conftest.err conftest.$ac_objext \
9138       conftest$ac_exeext conftest.$ac_ext
9139 fi
9140 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9141 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9142 if test $ac_cv_func_shl_load = yes; then
9143   lt_cv_dlopen="shl_load"
9144 else
9145   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9146 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9147 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150   ac_check_lib_save_LIBS=$LIBS
9151 LIBS="-ldld  $LIBS"
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h.  */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h.  */
9158
9159 /* Override any gcc2 internal prototype to avoid an error.  */
9160 #ifdef __cplusplus
9161 extern "C"
9162 #endif
9163 /* We use char because int might match the return type of a gcc2
9164    builtin and then its argument prototype would still apply.  */
9165 char shl_load ();
9166 int
9167 main ()
9168 {
9169 shl_load ();
9170   ;
9171   return 0;
9172 }
9173 _ACEOF
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176   (eval $ac_link) 2>conftest.er1
9177   ac_status=$?
9178   grep -v '^ *+' conftest.er1 >conftest.err
9179   rm -f conftest.er1
9180   cat conftest.err >&5
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); } &&
9183          { ac_try='test -z "$ac_c_werror_flag"
9184                          || test ! -s conftest.err'
9185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186   (eval $ac_try) 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); }; } &&
9190          { ac_try='test -s conftest$ac_exeext'
9191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192   (eval $ac_try) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; }; then
9196   ac_cv_lib_dld_shl_load=yes
9197 else
9198   echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9200
9201 ac_cv_lib_dld_shl_load=no
9202 fi
9203 rm -f conftest.err conftest.$ac_objext \
9204       conftest$ac_exeext conftest.$ac_ext
9205 LIBS=$ac_check_lib_save_LIBS
9206 fi
9207 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9208 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9209 if test $ac_cv_lib_dld_shl_load = yes; then
9210   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9211 else
9212   echo "$as_me:$LINENO: checking for dlopen" >&5
9213 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9214 if test "${ac_cv_func_dlopen+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h.  */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h.  */
9223 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9225 #define dlopen innocuous_dlopen
9226
9227 /* System header to define __stub macros and hopefully few prototypes,
9228     which can conflict with char dlopen (); below.
9229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9230     <limits.h> exists even on freestanding compilers.  */
9231
9232 #ifdef __STDC__
9233 # include <limits.h>
9234 #else
9235 # include <assert.h>
9236 #endif
9237
9238 #undef dlopen
9239
9240 /* Override any gcc2 internal prototype to avoid an error.  */
9241 #ifdef __cplusplus
9242 extern "C"
9243 {
9244 #endif
9245 /* We use char because int might match the return type of a gcc2
9246    builtin and then its argument prototype would still apply.  */
9247 char dlopen ();
9248 /* The GNU C library defines this for functions which it implements
9249     to always fail with ENOSYS.  Some functions are actually named
9250     something starting with __ and the normal name is an alias.  */
9251 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9252 choke me
9253 #else
9254 char (*f) () = dlopen;
9255 #endif
9256 #ifdef __cplusplus
9257 }
9258 #endif
9259
9260 int
9261 main ()
9262 {
9263 return f != dlopen;
9264   ;
9265   return 0;
9266 }
9267 _ACEOF
9268 rm -f conftest.$ac_objext conftest$ac_exeext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270   (eval $ac_link) 2>conftest.er1
9271   ac_status=$?
9272   grep -v '^ *+' conftest.er1 >conftest.err
9273   rm -f conftest.er1
9274   cat conftest.err >&5
9275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276   (exit $ac_status); } &&
9277          { ac_try='test -z "$ac_c_werror_flag"
9278                          || test ! -s conftest.err'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; } &&
9284          { ac_try='test -s conftest$ac_exeext'
9285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286   (eval $ac_try) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   ac_cv_func_dlopen=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ac_cv_func_dlopen=no
9296 fi
9297 rm -f conftest.err conftest.$ac_objext \
9298       conftest$ac_exeext conftest.$ac_ext
9299 fi
9300 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9301 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9302 if test $ac_cv_func_dlopen = yes; then
9303   lt_cv_dlopen="dlopen"
9304 else
9305   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9306 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9307 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9308   echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310   ac_check_lib_save_LIBS=$LIBS
9311 LIBS="-ldl  $LIBS"
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h.  */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h.  */
9318
9319 /* Override any gcc2 internal prototype to avoid an error.  */
9320 #ifdef __cplusplus
9321 extern "C"
9322 #endif
9323 /* We use char because int might match the return type of a gcc2
9324    builtin and then its argument prototype would still apply.  */
9325 char dlopen ();
9326 int
9327 main ()
9328 {
9329 dlopen ();
9330   ;
9331   return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336   (eval $ac_link) 2>conftest.er1
9337   ac_status=$?
9338   grep -v '^ *+' conftest.er1 >conftest.err
9339   rm -f conftest.er1
9340   cat conftest.err >&5
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); } &&
9343          { ac_try='test -z "$ac_c_werror_flag"
9344                          || test ! -s conftest.err'
9345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346   (eval $ac_try) 2>&5
9347   ac_status=$?
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); }; } &&
9350          { ac_try='test -s conftest$ac_exeext'
9351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352   (eval $ac_try) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); }; }; then
9356   ac_cv_lib_dl_dlopen=yes
9357 else
9358   echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 ac_cv_lib_dl_dlopen=no
9362 fi
9363 rm -f conftest.err conftest.$ac_objext \
9364       conftest$ac_exeext conftest.$ac_ext
9365 LIBS=$ac_check_lib_save_LIBS
9366 fi
9367 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9368 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9369 if test $ac_cv_lib_dl_dlopen = yes; then
9370   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9371 else
9372   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9373 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9374 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9375   echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377   ac_check_lib_save_LIBS=$LIBS
9378 LIBS="-lsvld  $LIBS"
9379 cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h.  */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h.  */
9385
9386 /* Override any gcc2 internal prototype to avoid an error.  */
9387 #ifdef __cplusplus
9388 extern "C"
9389 #endif
9390 /* We use char because int might match the return type of a gcc2
9391    builtin and then its argument prototype would still apply.  */
9392 char dlopen ();
9393 int
9394 main ()
9395 {
9396 dlopen ();
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403   (eval $ac_link) 2>conftest.er1
9404   ac_status=$?
9405   grep -v '^ *+' conftest.er1 >conftest.err
9406   rm -f conftest.er1
9407   cat conftest.err >&5
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); } &&
9410          { ac_try='test -z "$ac_c_werror_flag"
9411                          || test ! -s conftest.err'
9412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413   (eval $ac_try) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; } &&
9417          { ac_try='test -s conftest$ac_exeext'
9418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419   (eval $ac_try) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   ac_cv_lib_svld_dlopen=yes
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428 ac_cv_lib_svld_dlopen=no
9429 fi
9430 rm -f conftest.err conftest.$ac_objext \
9431       conftest$ac_exeext conftest.$ac_ext
9432 LIBS=$ac_check_lib_save_LIBS
9433 fi
9434 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9435 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9436 if test $ac_cv_lib_svld_dlopen = yes; then
9437   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9438 else
9439   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9440 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9441 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   ac_check_lib_save_LIBS=$LIBS
9445 LIBS="-ldld  $LIBS"
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h.  */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h.  */
9452
9453 /* Override any gcc2 internal prototype to avoid an error.  */
9454 #ifdef __cplusplus
9455 extern "C"
9456 #endif
9457 /* We use char because int might match the return type of a gcc2
9458    builtin and then its argument prototype would still apply.  */
9459 char dld_link ();
9460 int
9461 main ()
9462 {
9463 dld_link ();
9464   ;
9465   return 0;
9466 }
9467 _ACEOF
9468 rm -f conftest.$ac_objext conftest$ac_exeext
9469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470   (eval $ac_link) 2>conftest.er1
9471   ac_status=$?
9472   grep -v '^ *+' conftest.er1 >conftest.err
9473   rm -f conftest.er1
9474   cat conftest.err >&5
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); } &&
9477          { ac_try='test -z "$ac_c_werror_flag"
9478                          || test ! -s conftest.err'
9479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480   (eval $ac_try) 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); }; } &&
9484          { ac_try='test -s conftest$ac_exeext'
9485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486   (eval $ac_try) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; }; then
9490   ac_cv_lib_dld_dld_link=yes
9491 else
9492   echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495 ac_cv_lib_dld_dld_link=no
9496 fi
9497 rm -f conftest.err conftest.$ac_objext \
9498       conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_lib_save_LIBS
9500 fi
9501 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9502 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9503 if test $ac_cv_lib_dld_dld_link = yes; then
9504   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9505 fi
9506
9507
9508 fi
9509
9510
9511 fi
9512
9513
9514 fi
9515
9516
9517 fi
9518
9519
9520 fi
9521
9522     ;;
9523   esac
9524
9525   if test "x$lt_cv_dlopen" != xno; then
9526     enable_dlopen=yes
9527   else
9528     enable_dlopen=no
9529   fi
9530
9531   case $lt_cv_dlopen in
9532   dlopen)
9533     save_CPPFLAGS="$CPPFLAGS"
9534     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9535
9536     save_LDFLAGS="$LDFLAGS"
9537     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9538
9539     save_LIBS="$LIBS"
9540     LIBS="$lt_cv_dlopen_libs $LIBS"
9541
9542     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9543 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9544 if test "${lt_cv_dlopen_self+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547           if test "$cross_compiling" = yes; then :
9548   lt_cv_dlopen_self=cross
9549 else
9550   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9551   lt_status=$lt_dlunknown
9552   cat > conftest.$ac_ext <<EOF
9553 #line 9553 "configure"
9554 #include "confdefs.h"
9555
9556 #if HAVE_DLFCN_H
9557 #include <dlfcn.h>
9558 #endif
9559
9560 #include <stdio.h>
9561
9562 #ifdef RTLD_GLOBAL
9563 #  define LT_DLGLOBAL           RTLD_GLOBAL
9564 #else
9565 #  ifdef DL_GLOBAL
9566 #    define LT_DLGLOBAL         DL_GLOBAL
9567 #  else
9568 #    define LT_DLGLOBAL         0
9569 #  endif
9570 #endif
9571
9572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9573    find out it does not work in some platform. */
9574 #ifndef LT_DLLAZY_OR_NOW
9575 #  ifdef RTLD_LAZY
9576 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9577 #  else
9578 #    ifdef DL_LAZY
9579 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9580 #    else
9581 #      ifdef RTLD_NOW
9582 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9583 #      else
9584 #        ifdef DL_NOW
9585 #          define LT_DLLAZY_OR_NOW      DL_NOW
9586 #        else
9587 #          define LT_DLLAZY_OR_NOW      0
9588 #        endif
9589 #      endif
9590 #    endif
9591 #  endif
9592 #endif
9593
9594 #ifdef __cplusplus
9595 extern "C" void exit (int);
9596 #endif
9597
9598 void fnord() { int i=42;}
9599 int main ()
9600 {
9601   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9602   int status = $lt_dlunknown;
9603
9604   if (self)
9605     {
9606       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9607       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9608       /* dlclose (self); */
9609     }
9610
9611     exit (status);
9612 }
9613 EOF
9614   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615   (eval $ac_link) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9619     (./conftest; exit; ) 2>/dev/null
9620     lt_status=$?
9621     case x$lt_status in
9622       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9623       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9624       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9625     esac
9626   else :
9627     # compilation failed
9628     lt_cv_dlopen_self=no
9629   fi
9630 fi
9631 rm -fr conftest*
9632
9633
9634 fi
9635 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9636 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9637
9638     if test "x$lt_cv_dlopen_self" = xyes; then
9639       LDFLAGS="$LDFLAGS $link_static_flag"
9640       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9641 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9642 if test "${lt_cv_dlopen_self_static+set}" = set; then
9643   echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645           if test "$cross_compiling" = yes; then :
9646   lt_cv_dlopen_self_static=cross
9647 else
9648   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9649   lt_status=$lt_dlunknown
9650   cat > conftest.$ac_ext <<EOF
9651 #line 9651 "configure"
9652 #include "confdefs.h"
9653
9654 #if HAVE_DLFCN_H
9655 #include <dlfcn.h>
9656 #endif
9657
9658 #include <stdio.h>
9659
9660 #ifdef RTLD_GLOBAL
9661 #  define LT_DLGLOBAL           RTLD_GLOBAL
9662 #else
9663 #  ifdef DL_GLOBAL
9664 #    define LT_DLGLOBAL         DL_GLOBAL
9665 #  else
9666 #    define LT_DLGLOBAL         0
9667 #  endif
9668 #endif
9669
9670 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9671    find out it does not work in some platform. */
9672 #ifndef LT_DLLAZY_OR_NOW
9673 #  ifdef RTLD_LAZY
9674 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9675 #  else
9676 #    ifdef DL_LAZY
9677 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9678 #    else
9679 #      ifdef RTLD_NOW
9680 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9681 #      else
9682 #        ifdef DL_NOW
9683 #          define LT_DLLAZY_OR_NOW      DL_NOW
9684 #        else
9685 #          define LT_DLLAZY_OR_NOW      0
9686 #        endif
9687 #      endif
9688 #    endif
9689 #  endif
9690 #endif
9691
9692 #ifdef __cplusplus
9693 extern "C" void exit (int);
9694 #endif
9695
9696 void fnord() { int i=42;}
9697 int main ()
9698 {
9699   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9700   int status = $lt_dlunknown;
9701
9702   if (self)
9703     {
9704       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9705       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9706       /* dlclose (self); */
9707     }
9708
9709     exit (status);
9710 }
9711 EOF
9712   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713   (eval $ac_link) 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9717     (./conftest; exit; ) 2>/dev/null
9718     lt_status=$?
9719     case x$lt_status in
9720       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9721       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9722       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9723     esac
9724   else :
9725     # compilation failed
9726     lt_cv_dlopen_self_static=no
9727   fi
9728 fi
9729 rm -fr conftest*
9730
9731
9732 fi
9733 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9734 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9735     fi
9736
9737     CPPFLAGS="$save_CPPFLAGS"
9738     LDFLAGS="$save_LDFLAGS"
9739     LIBS="$save_LIBS"
9740     ;;
9741   esac
9742
9743   case $lt_cv_dlopen_self in
9744   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9745   *) enable_dlopen_self=unknown ;;
9746   esac
9747
9748   case $lt_cv_dlopen_self_static in
9749   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9750   *) enable_dlopen_self_static=unknown ;;
9751   esac
9752 fi
9753
9754
9755 # Report which librarie types wil actually be built
9756 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9757 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9758 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9759 echo "${ECHO_T}$can_build_shared" >&6
9760
9761 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9762 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9763 test "$can_build_shared" = "no" && enable_shared=no
9764
9765 # On AIX, shared libraries and static libraries use the same namespace, and
9766 # are all built from PIC.
9767 case "$host_os" in
9768 aix3*)
9769   test "$enable_shared" = yes && enable_static=no
9770   if test -n "$RANLIB"; then
9771     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9772     postinstall_cmds='$RANLIB $lib'
9773   fi
9774   ;;
9775
9776 aix4*)
9777   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9778     test "$enable_shared" = yes && enable_static=no
9779   fi
9780   ;;
9781   darwin* | rhapsody*)
9782   if test "$GCC" = yes; then
9783     archive_cmds_need_lc=no
9784     case "$host_os" in
9785     rhapsody* | darwin1.[012])
9786       allow_undefined_flag='-undefined suppress'
9787       ;;
9788     *) # Darwin 1.3 on
9789       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9790         allow_undefined_flag='-flat_namespace -undefined suppress'
9791       else
9792         case ${MACOSX_DEPLOYMENT_TARGET} in
9793           10.[012])
9794             allow_undefined_flag='-flat_namespace -undefined suppress'
9795             ;;
9796           10.*)
9797             allow_undefined_flag='-undefined dynamic_lookup'
9798             ;;
9799         esac
9800       fi
9801       ;;
9802     esac
9803     output_verbose_link_cmd='echo'
9804     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9805     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9806     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9807     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}'
9808     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}'
9809     hardcode_direct=no
9810     hardcode_automatic=yes
9811     hardcode_shlibpath_var=unsupported
9812     whole_archive_flag_spec='-all_load $convenience'
9813     link_all_deplibs=yes
9814   else
9815     ld_shlibs=no
9816   fi
9817     ;;
9818 esac
9819 echo "$as_me:$LINENO: result: $enable_shared" >&5
9820 echo "${ECHO_T}$enable_shared" >&6
9821
9822 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9823 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9824 # Make sure either enable_shared or enable_static is yes.
9825 test "$enable_shared" = yes || enable_static=yes
9826 echo "$as_me:$LINENO: result: $enable_static" >&5
9827 echo "${ECHO_T}$enable_static" >&6
9828
9829 # The else clause should only fire when bootstrapping the
9830 # libtool distribution, otherwise you forgot to ship ltmain.sh
9831 # with your package, and you will get complaints that there are
9832 # no rules to generate ltmain.sh.
9833 if test -f "$ltmain"; then
9834   # See if we are running on zsh, and set the options which allow our commands through
9835   # without removal of \ escapes.
9836   if test -n "${ZSH_VERSION+set}" ; then
9837     setopt NO_GLOB_SUBST
9838   fi
9839   # Now quote all the things that may contain metacharacters while being
9840   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9841   # variables and quote the copies for generation of the libtool script.
9842   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9843     SED SHELL STRIP \
9844     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9845     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9846     deplibs_check_method reload_flag reload_cmds need_locks \
9847     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9848     lt_cv_sys_global_symbol_to_c_name_address \
9849     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9850     old_postinstall_cmds old_postuninstall_cmds \
9851     compiler \
9852     CC \
9853     LD \
9854     lt_prog_compiler_wl \
9855     lt_prog_compiler_pic \
9856     lt_prog_compiler_static \
9857     lt_prog_compiler_no_builtin_flag \
9858     export_dynamic_flag_spec \
9859     thread_safe_flag_spec \
9860     whole_archive_flag_spec \
9861     enable_shared_with_static_runtimes \
9862     old_archive_cmds \
9863     old_archive_from_new_cmds \
9864     predep_objects \
9865     postdep_objects \
9866     predeps \
9867     postdeps \
9868     compiler_lib_search_path \
9869     archive_cmds \
9870     archive_expsym_cmds \
9871     postinstall_cmds \
9872     postuninstall_cmds \
9873     old_archive_from_expsyms_cmds \
9874     allow_undefined_flag \
9875     no_undefined_flag \
9876     export_symbols_cmds \
9877     hardcode_libdir_flag_spec \
9878     hardcode_libdir_flag_spec_ld \
9879     hardcode_libdir_separator \
9880     hardcode_automatic \
9881     module_cmds \
9882     module_expsym_cmds \
9883     lt_cv_prog_compiler_c_o \
9884     exclude_expsyms \
9885     include_expsyms; do
9886
9887     case $var in
9888     old_archive_cmds | \
9889     old_archive_from_new_cmds | \
9890     archive_cmds | \
9891     archive_expsym_cmds | \
9892     module_cmds | \
9893     module_expsym_cmds | \
9894     old_archive_from_expsyms_cmds | \
9895     export_symbols_cmds | \
9896     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9897     postinstall_cmds | postuninstall_cmds | \
9898     old_postinstall_cmds | old_postuninstall_cmds | \
9899     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9900       # Double-quote double-evaled strings.
9901       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9902       ;;
9903     *)
9904       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9905       ;;
9906     esac
9907   done
9908
9909   case $lt_echo in
9910   *'\$0 --fallback-echo"')
9911     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9912     ;;
9913   esac
9914
9915 cfgfile="${ofile}T"
9916   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9917   $rm -f "$cfgfile"
9918   { echo "$as_me:$LINENO: creating $ofile" >&5
9919 echo "$as_me: creating $ofile" >&6;}
9920
9921   cat <<__EOF__ >> "$cfgfile"
9922 #! $SHELL
9923
9924 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9925 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9926 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9927 #
9928 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9929 # Free Software Foundation, Inc.
9930 #
9931 # This file is part of GNU Libtool:
9932 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9933 #
9934 # This program is free software; you can redistribute it and/or modify
9935 # it under the terms of the GNU General Public License as published by
9936 # the Free Software Foundation; either version 2 of the License, or
9937 # (at your option) any later version.
9938 #
9939 # This program is distributed in the hope that it will be useful, but
9940 # WITHOUT ANY WARRANTY; without even the implied warranty of
9941 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9942 # General Public License for more details.
9943 #
9944 # You should have received a copy of the GNU General Public License
9945 # along with this program; if not, write to the Free Software
9946 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9947 #
9948 # As a special exception to the GNU General Public License, if you
9949 # distribute this file as part of a program that contains a
9950 # configuration script generated by Autoconf, you may include it under
9951 # the same distribution terms that you use for the rest of that program.
9952
9953 # A sed program that does not truncate output.
9954 SED=$lt_SED
9955
9956 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9957 Xsed="$SED -e s/^X//"
9958
9959 # The HP-UX ksh and POSIX shell print the target directory to stdout
9960 # if CDPATH is set.
9961 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9962
9963 # The names of the tagged configurations supported by this script.
9964 available_tags=
9965
9966 # ### BEGIN LIBTOOL CONFIG
9967
9968 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9969
9970 # Shell to use when invoking shell scripts.
9971 SHELL=$lt_SHELL
9972
9973 # Whether or not to build shared libraries.
9974 build_libtool_libs=$enable_shared
9975
9976 # Whether or not to build static libraries.
9977 build_old_libs=$enable_static
9978
9979 # Whether or not to add -lc for building shared libraries.
9980 build_libtool_need_lc=$archive_cmds_need_lc
9981
9982 # Whether or not to disallow shared libs when runtime libs are static
9983 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9984
9985 # Whether or not to optimize for fast installation.
9986 fast_install=$enable_fast_install
9987
9988 # The host system.
9989 host_alias=$host_alias
9990 host=$host
9991
9992 # An echo program that does not interpret backslashes.
9993 echo=$lt_echo
9994
9995 # The archiver.
9996 AR=$lt_AR
9997 AR_FLAGS=$lt_AR_FLAGS
9998
9999 # A C compiler.
10000 LTCC=$lt_LTCC
10001
10002 # A language-specific compiler.
10003 CC=$lt_compiler
10004
10005 # Is the compiler the GNU C compiler?
10006 with_gcc=$GCC
10007
10008 # An ERE matcher.
10009 EGREP=$lt_EGREP
10010
10011 # The linker used to build libraries.
10012 LD=$lt_LD
10013
10014 # Whether we need hard or soft links.
10015 LN_S=$lt_LN_S
10016
10017 # A BSD-compatible nm program.
10018 NM=$lt_NM
10019
10020 # A symbol stripping program
10021 STRIP=$lt_STRIP
10022
10023 # Used to examine libraries when file_magic_cmd begins "file"
10024 MAGIC_CMD=$MAGIC_CMD
10025
10026 # Used on cygwin: DLL creation program.
10027 DLLTOOL="$DLLTOOL"
10028
10029 # Used on cygwin: object dumper.
10030 OBJDUMP="$OBJDUMP"
10031
10032 # Used on cygwin: assembler.
10033 AS="$AS"
10034
10035 # The name of the directory that contains temporary libtool files.
10036 objdir=$objdir
10037
10038 # How to create reloadable object files.
10039 reload_flag=$lt_reload_flag
10040 reload_cmds=$lt_reload_cmds
10041
10042 # How to pass a linker flag through the compiler.
10043 wl=$lt_lt_prog_compiler_wl
10044
10045 # Object file suffix (normally "o").
10046 objext="$ac_objext"
10047
10048 # Old archive suffix (normally "a").
10049 libext="$libext"
10050
10051 # Shared library suffix (normally ".so").
10052 shrext='$shrext'
10053
10054 # Executable file suffix (normally "").
10055 exeext="$exeext"
10056
10057 # Additional compiler flags for building library objects.
10058 pic_flag=$lt_lt_prog_compiler_pic
10059 pic_mode=$pic_mode
10060
10061 # What is the maximum length of a command?
10062 max_cmd_len=$lt_cv_sys_max_cmd_len
10063
10064 # Does compiler simultaneously support -c and -o options?
10065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10066
10067 # Must we lock files when doing compilation ?
10068 need_locks=$lt_need_locks
10069
10070 # Do we need the lib prefix for modules?
10071 need_lib_prefix=$need_lib_prefix
10072
10073 # Do we need a version for libraries?
10074 need_version=$need_version
10075
10076 # Whether dlopen is supported.
10077 dlopen_support=$enable_dlopen
10078
10079 # Whether dlopen of programs is supported.
10080 dlopen_self=$enable_dlopen_self
10081
10082 # Whether dlopen of statically linked programs is supported.
10083 dlopen_self_static=$enable_dlopen_self_static
10084
10085 # Compiler flag to prevent dynamic linking.
10086 link_static_flag=$lt_lt_prog_compiler_static
10087
10088 # Compiler flag to turn off builtin functions.
10089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10090
10091 # Compiler flag to allow reflexive dlopens.
10092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10093
10094 # Compiler flag to generate shared objects directly from archives.
10095 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10096
10097 # Compiler flag to generate thread-safe objects.
10098 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10099
10100 # Library versioning type.
10101 version_type=$version_type
10102
10103 # Format of library name prefix.
10104 libname_spec=$lt_libname_spec
10105
10106 # List of archive names.  First name is the real one, the rest are links.
10107 # The last name is the one that the linker finds with -lNAME.
10108 library_names_spec=$lt_library_names_spec
10109
10110 # The coded name of the library, if different from the real name.
10111 soname_spec=$lt_soname_spec
10112
10113 # Commands used to build and install an old-style archive.
10114 RANLIB=$lt_RANLIB
10115 old_archive_cmds=$lt_old_archive_cmds
10116 old_postinstall_cmds=$lt_old_postinstall_cmds
10117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10118
10119 # Create an old-style archive from a shared archive.
10120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10121
10122 # Create a temporary old-style archive to link instead of a shared archive.
10123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10124
10125 # Commands used to build and install a shared archive.
10126 archive_cmds=$lt_archive_cmds
10127 archive_expsym_cmds=$lt_archive_expsym_cmds
10128 postinstall_cmds=$lt_postinstall_cmds
10129 postuninstall_cmds=$lt_postuninstall_cmds
10130
10131 # Commands used to build a loadable module (assumed same as above if empty)
10132 module_cmds=$lt_module_cmds
10133 module_expsym_cmds=$lt_module_expsym_cmds
10134
10135 # Commands to strip libraries.
10136 old_striplib=$lt_old_striplib
10137 striplib=$lt_striplib
10138
10139 # Dependencies to place before the objects being linked to create a
10140 # shared library.
10141 predep_objects=$lt_predep_objects
10142
10143 # Dependencies to place after the objects being linked to create a
10144 # shared library.
10145 postdep_objects=$lt_postdep_objects
10146
10147 # Dependencies to place before the objects being linked to create a
10148 # shared library.
10149 predeps=$lt_predeps
10150
10151 # Dependencies to place after the objects being linked to create a
10152 # shared library.
10153 postdeps=$lt_postdeps
10154
10155 # The library search path used internally by the compiler when linking
10156 # a shared library.
10157 compiler_lib_search_path=$lt_compiler_lib_search_path
10158
10159 # Method to check whether dependent libraries are shared objects.
10160 deplibs_check_method=$lt_deplibs_check_method
10161
10162 # Command to use when deplibs_check_method == file_magic.
10163 file_magic_cmd=$lt_file_magic_cmd
10164
10165 # Flag that allows shared libraries with undefined symbols to be built.
10166 allow_undefined_flag=$lt_allow_undefined_flag
10167
10168 # Flag that forces no undefined symbols.
10169 no_undefined_flag=$lt_no_undefined_flag
10170
10171 # Commands used to finish a libtool library installation in a directory.
10172 finish_cmds=$lt_finish_cmds
10173
10174 # Same as above, but a single script fragment to be evaled but not shown.
10175 finish_eval=$lt_finish_eval
10176
10177 # Take the output of nm and produce a listing of raw symbols and C names.
10178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10179
10180 # Transform the output of nm in a proper C declaration
10181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10182
10183 # Transform the output of nm in a C name address pair
10184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10185
10186 # This is the shared library runtime path variable.
10187 runpath_var=$runpath_var
10188
10189 # This is the shared library path variable.
10190 shlibpath_var=$shlibpath_var
10191
10192 # Is shlibpath searched before the hard-coded library search path?
10193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10194
10195 # How to hardcode a shared library path into an executable.
10196 hardcode_action=$hardcode_action
10197
10198 # Whether we should hardcode library paths into libraries.
10199 hardcode_into_libs=$hardcode_into_libs
10200
10201 # Flag to hardcode \$libdir into a binary during linking.
10202 # This must work even if \$libdir does not exist.
10203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10204
10205 # If ld is used when linking, flag to hardcode \$libdir into
10206 # a binary during linking. This must work even if \$libdir does
10207 # not exist.
10208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10209
10210 # Whether we need a single -rpath flag with a separated argument.
10211 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10212
10213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10214 # resulting binary.
10215 hardcode_direct=$hardcode_direct
10216
10217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10218 # resulting binary.
10219 hardcode_minus_L=$hardcode_minus_L
10220
10221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10222 # the resulting binary.
10223 hardcode_shlibpath_var=$hardcode_shlibpath_var
10224
10225 # Set to yes if building a shared library automatically hardcodes DIR into the library
10226 # and all subsequent libraries and executables linked against it.
10227 hardcode_automatic=$hardcode_automatic
10228
10229 # Variables whose values should be saved in libtool wrapper scripts and
10230 # restored at relink time.
10231 variables_saved_for_relink="$variables_saved_for_relink"
10232
10233 # Whether libtool must link a program against all its dependency libraries.
10234 link_all_deplibs=$link_all_deplibs
10235
10236 # Compile-time system search path for libraries
10237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10238
10239 # Run-time system search path for libraries
10240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10241
10242 # Fix the shell variable \$srcfile for the compiler.
10243 fix_srcfile_path="$fix_srcfile_path"
10244
10245 # Set to yes if exported symbols are required.
10246 always_export_symbols=$always_export_symbols
10247
10248 # The commands to list exported symbols.
10249 export_symbols_cmds=$lt_export_symbols_cmds
10250
10251 # The commands to extract the exported symbol list from a shared archive.
10252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10253
10254 # Symbols that should not be listed in the preloaded symbols.
10255 exclude_expsyms=$lt_exclude_expsyms
10256
10257 # Symbols that must always be exported.
10258 include_expsyms=$lt_include_expsyms
10259
10260 # ### END LIBTOOL CONFIG
10261
10262 __EOF__
10263
10264
10265   case $host_os in
10266   aix3*)
10267     cat <<\EOF >> "$cfgfile"
10268
10269 # AIX sometimes has problems with the GCC collect2 program.  For some
10270 # reason, if we set the COLLECT_NAMES environment variable, the problems
10271 # vanish in a puff of smoke.
10272 if test "X${COLLECT_NAMES+set}" != Xset; then
10273   COLLECT_NAMES=
10274   export COLLECT_NAMES
10275 fi
10276 EOF
10277     ;;
10278   esac
10279
10280   # We use sed instead of cat because bash on DJGPP gets confused if
10281   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10282   # text mode, it properly converts lines to CR/LF.  This bash problem
10283   # is reportedly fixed, but why not run on old versions too?
10284   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10285
10286   mv -f "$cfgfile" "$ofile" || \
10287     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10288   chmod +x "$ofile"
10289
10290 else
10291   # If there is no Makefile yet, we rely on a make rule to execute
10292   # `config.status --recheck' to rerun these tests and create the
10293   # libtool script then.
10294   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10295   if test -f "$ltmain_in"; then
10296     test -f Makefile && make "$ltmain"
10297   fi
10298 fi
10299
10300
10301 ac_ext=c
10302 ac_cpp='$CPP $CPPFLAGS'
10303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10306
10307 CC="$lt_save_CC"
10308
10309
10310 # Check whether --with-tags or --without-tags was given.
10311 if test "${with_tags+set}" = set; then
10312   withval="$with_tags"
10313   tagnames="$withval"
10314 fi;
10315
10316 if test -f "$ltmain" && test -n "$tagnames"; then
10317   if test ! -f "${ofile}"; then
10318     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10319 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10320   fi
10321
10322   if test -z "$LTCC"; then
10323     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10324     if test -z "$LTCC"; then
10325       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10326 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10327     else
10328       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10329 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10330     fi
10331   fi
10332
10333   # Extract list of available tagged configurations in $ofile.
10334   # Note that this assumes the entire list is on one line.
10335   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10336
10337   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10338   for tagname in $tagnames; do
10339     IFS="$lt_save_ifs"
10340     # Check whether tagname contains only valid characters
10341     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10342     "") ;;
10343     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10344 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10345    { (exit 1); exit 1; }; }
10346         ;;
10347     esac
10348
10349     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10350     then
10351       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10352 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10353    { (exit 1); exit 1; }; }
10354     fi
10355
10356     # Update the list of available tags.
10357     if test -n "$tagname"; then
10358       echo appending configuration tag \"$tagname\" to $ofile
10359
10360       case $tagname in
10361       CXX)
10362         if test -n "$CXX" && test "X$CXX" != "Xno"; then
10363           ac_ext=cc
10364 ac_cpp='$CXXCPP $CPPFLAGS'
10365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10368
10369
10370
10371
10372 archive_cmds_need_lc_CXX=no
10373 allow_undefined_flag_CXX=
10374 always_export_symbols_CXX=no
10375 archive_expsym_cmds_CXX=
10376 export_dynamic_flag_spec_CXX=
10377 hardcode_direct_CXX=no
10378 hardcode_libdir_flag_spec_CXX=
10379 hardcode_libdir_flag_spec_ld_CXX=
10380 hardcode_libdir_separator_CXX=
10381 hardcode_minus_L_CXX=no
10382 hardcode_automatic_CXX=no
10383 module_cmds_CXX=
10384 module_expsym_cmds_CXX=
10385 link_all_deplibs_CXX=unknown
10386 old_archive_cmds_CXX=$old_archive_cmds
10387 no_undefined_flag_CXX=
10388 whole_archive_flag_spec_CXX=
10389 enable_shared_with_static_runtimes_CXX=no
10390
10391 # Dependencies to place before and after the object being linked:
10392 predep_objects_CXX=
10393 postdep_objects_CXX=
10394 predeps_CXX=
10395 postdeps_CXX=
10396 compiler_lib_search_path_CXX=
10397
10398 # Source file extension for C++ test sources.
10399 ac_ext=cc
10400
10401 # Object file extension for compiled C++ test sources.
10402 objext=o
10403 objext_CXX=$objext
10404
10405 # Code to be used in simple compile tests
10406 lt_simple_compile_test_code="int some_variable = 0;\n"
10407
10408 # Code to be used in simple link tests
10409 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10410
10411 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10412
10413 # If no C compiler was specified, use CC.
10414 LTCC=${LTCC-"$CC"}
10415
10416 # Allow CC to be a program name with arguments.
10417 compiler=$CC
10418
10419
10420 # Allow CC to be a program name with arguments.
10421 lt_save_CC=$CC
10422 lt_save_LD=$LD
10423 lt_save_GCC=$GCC
10424 GCC=$GXX
10425 lt_save_with_gnu_ld=$with_gnu_ld
10426 lt_save_path_LD=$lt_cv_path_LD
10427 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10428   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10429 else
10430   unset lt_cv_prog_gnu_ld
10431 fi
10432 if test -n "${lt_cv_path_LDCXX+set}"; then
10433   lt_cv_path_LD=$lt_cv_path_LDCXX
10434 else
10435   unset lt_cv_path_LD
10436 fi
10437 test -z "${LDCXX+set}" || LD=$LDCXX
10438 CC=${CXX-"c++"}
10439 compiler=$CC
10440 compiler_CXX=$CC
10441 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10442
10443 # We don't want -fno-exception wen compiling C++ code, so set the
10444 # no_builtin_flag separately
10445 if test "$GXX" = yes; then
10446   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10447 else
10448   lt_prog_compiler_no_builtin_flag_CXX=
10449 fi
10450
10451 if test "$GXX" = yes; then
10452   # Set up default GNU C++ configuration
10453
10454
10455 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10456 if test "${with_gnu_ld+set}" = set; then
10457   withval="$with_gnu_ld"
10458   test "$withval" = no || with_gnu_ld=yes
10459 else
10460   with_gnu_ld=no
10461 fi;
10462 ac_prog=ld
10463 if test "$GCC" = yes; then
10464   # Check if gcc -print-prog-name=ld gives a path.
10465   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10466 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10467   case $host in
10468   *-*-mingw*)
10469     # gcc leaves a trailing carriage return which upsets mingw
10470     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10471   *)
10472     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10473   esac
10474   case $ac_prog in
10475     # Accept absolute paths.
10476     [\\/]* | ?:[\\/]*)
10477       re_direlt='/[^/][^/]*/\.\./'
10478       # Canonicalize the pathname of ld
10479       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10480       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10481         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10482       done
10483       test -z "$LD" && LD="$ac_prog"
10484       ;;
10485   "")
10486     # If it fails, then pretend we aren't using GCC.
10487     ac_prog=ld
10488     ;;
10489   *)
10490     # If it is relative, then search for the first ld in PATH.
10491     with_gnu_ld=unknown
10492     ;;
10493   esac
10494 elif test "$with_gnu_ld" = yes; then
10495   echo "$as_me:$LINENO: checking for GNU ld" >&5
10496 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10497 else
10498   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10499 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10500 fi
10501 if test "${lt_cv_path_LD+set}" = set; then
10502   echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504   if test -z "$LD"; then
10505   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10506   for ac_dir in $PATH; do
10507     IFS="$lt_save_ifs"
10508     test -z "$ac_dir" && ac_dir=.
10509     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10510       lt_cv_path_LD="$ac_dir/$ac_prog"
10511       # Check to see if the program is GNU ld.  I'd rather use --version,
10512       # but apparently some GNU ld's only accept -v.
10513       # Break only if it was the GNU/non-GNU ld that we prefer.
10514       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10515       *GNU* | *'with BFD'*)
10516         test "$with_gnu_ld" != no && break
10517         ;;
10518       *)
10519         test "$with_gnu_ld" != yes && break
10520         ;;
10521       esac
10522     fi
10523   done
10524   IFS="$lt_save_ifs"
10525 else
10526   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10527 fi
10528 fi
10529
10530 LD="$lt_cv_path_LD"
10531 if test -n "$LD"; then
10532   echo "$as_me:$LINENO: result: $LD" >&5
10533 echo "${ECHO_T}$LD" >&6
10534 else
10535   echo "$as_me:$LINENO: result: no" >&5
10536 echo "${ECHO_T}no" >&6
10537 fi
10538 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10539 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10540    { (exit 1); exit 1; }; }
10541 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10542 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10543 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10544   echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10547 case `$LD -v 2>&1 </dev/null` in
10548 *GNU* | *'with BFD'*)
10549   lt_cv_prog_gnu_ld=yes
10550   ;;
10551 *)
10552   lt_cv_prog_gnu_ld=no
10553   ;;
10554 esac
10555 fi
10556 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10557 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10558 with_gnu_ld=$lt_cv_prog_gnu_ld
10559
10560
10561
10562   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10563   # archiving commands below assume that GNU ld is being used.
10564   if test "$with_gnu_ld" = yes; then
10565     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10566     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'
10567
10568     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10569     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10570
10571     # If archive_cmds runs LD, not CC, wlarc should be empty
10572     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10573     #     investigate it a little bit more. (MM)
10574     wlarc='${wl}'
10575
10576     # ancient GNU ld didn't support --whole-archive et. al.
10577     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10578         grep 'no-whole-archive' > /dev/null; then
10579       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10580     else
10581       whole_archive_flag_spec_CXX=
10582     fi
10583   else
10584     with_gnu_ld=no
10585     wlarc=
10586
10587     # A generic and very simple default shared library creation
10588     # command for GNU C++ for the case where it uses the native
10589     # linker, instead of GNU ld.  If possible, this setting should
10590     # overridden to take advantage of the native linker features on
10591     # the platform it is being used on.
10592     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10593   fi
10594
10595   # Commands to make compiler produce verbose output that lists
10596   # what "hidden" libraries, object files and flags are used when
10597   # linking a shared library.
10598   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10599
10600 else
10601   GXX=no
10602   with_gnu_ld=no
10603   wlarc=
10604 fi
10605
10606 # PORTME: fill in a description of your system's C++ link characteristics
10607 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10608 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10609 ld_shlibs_CXX=yes
10610 case $host_os in
10611   aix3*)
10612     # FIXME: insert proper C++ library support
10613     ld_shlibs_CXX=no
10614     ;;
10615   aix4* | aix5*)
10616     if test "$host_cpu" = ia64; then
10617       # On IA64, the linker does run time linking by default, so we don't
10618       # have to do anything special.
10619       aix_use_runtimelinking=no
10620       exp_sym_flag='-Bexport'
10621       no_entry_flag=""
10622     else
10623       aix_use_runtimelinking=no
10624
10625       # Test if we are trying to use run time linking or normal
10626       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10627       # need to do runtime linking.
10628       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10629         for ld_flag in $LDFLAGS; do
10630           case $ld_flag in
10631           *-brtl*)
10632             aix_use_runtimelinking=yes
10633             break
10634             ;;
10635           esac
10636         done
10637       esac
10638
10639       exp_sym_flag='-bexport'
10640       no_entry_flag='-bnoentry'
10641     fi
10642
10643     # When large executables or shared objects are built, AIX ld can
10644     # have problems creating the table of contents.  If linking a library
10645     # or program results in "error TOC overflow" add -mminimal-toc to
10646     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10647     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10648
10649     archive_cmds_CXX=''
10650     hardcode_direct_CXX=yes
10651     hardcode_libdir_separator_CXX=':'
10652     link_all_deplibs_CXX=yes
10653
10654     if test "$GXX" = yes; then
10655       case $host_os in aix4.012|aix4.012.*)
10656       # We only want to do this on AIX 4.2 and lower, the check
10657       # below for broken collect2 doesn't work under 4.3+
10658         collect2name=`${CC} -print-prog-name=collect2`
10659         if test -f "$collect2name" && \
10660            strings "$collect2name" | grep resolve_lib_name >/dev/null
10661         then
10662           # We have reworked collect2
10663           hardcode_direct_CXX=yes
10664         else
10665           # We have old collect2
10666           hardcode_direct_CXX=unsupported
10667           # It fails to find uninstalled libraries when the uninstalled
10668           # path is not listed in the libpath.  Setting hardcode_minus_L
10669           # to unsupported forces relinking
10670           hardcode_minus_L_CXX=yes
10671           hardcode_libdir_flag_spec_CXX='-L$libdir'
10672           hardcode_libdir_separator_CXX=
10673         fi
10674       esac
10675       shared_flag='-shared'
10676     else
10677       # not using gcc
10678       if test "$host_cpu" = ia64; then
10679         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10680         # chokes on -Wl,-G. The following line is correct:
10681         shared_flag='-G'
10682       else
10683         if test "$aix_use_runtimelinking" = yes; then
10684           shared_flag='${wl}-G'
10685         else
10686           shared_flag='${wl}-bM:SRE'
10687         fi
10688       fi
10689     fi
10690
10691     # It seems that -bexpall does not export symbols beginning with
10692     # underscore (_), so it is better to generate a list of symbols to export.
10693     always_export_symbols_CXX=yes
10694     if test "$aix_use_runtimelinking" = yes; then
10695       # Warning - without using the other runtime loading flags (-brtl),
10696       # -berok will link without error, but may produce a broken library.
10697       allow_undefined_flag_CXX='-berok'
10698       # Determine the default libpath from the value encoded in an empty executable.
10699       cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h.  */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h.  */
10705
10706 int
10707 main ()
10708 {
10709
10710   ;
10711   return 0;
10712 }
10713 _ACEOF
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716   (eval $ac_link) 2>conftest.er1
10717   ac_status=$?
10718   grep -v '^ *+' conftest.er1 >conftest.err
10719   rm -f conftest.er1
10720   cat conftest.err >&5
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); } &&
10723          { ac_try='test -z "$ac_cxx_werror_flag"
10724                          || test ! -s conftest.err'
10725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726   (eval $ac_try) 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; } &&
10730          { ac_try='test -s conftest$ac_exeext'
10731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732   (eval $ac_try) 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; }; then
10736
10737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10738 }'`
10739 # Check for a 64-bit object if we didn't find anything.
10740 if 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; }
10741 }'`; fi
10742 else
10743   echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746 fi
10747 rm -f conftest.err conftest.$ac_objext \
10748       conftest$ac_exeext conftest.$ac_ext
10749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10750
10751       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10752
10753       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"
10754      else
10755       if test "$host_cpu" = ia64; then
10756         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10757         allow_undefined_flag_CXX="-z nodefs"
10758         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"
10759       else
10760         # Determine the default libpath from the value encoded in an empty executable.
10761         cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h.  */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h.  */
10767
10768 int
10769 main ()
10770 {
10771
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10778   (eval $ac_link) 2>conftest.er1
10779   ac_status=$?
10780   grep -v '^ *+' conftest.er1 >conftest.err
10781   rm -f conftest.er1
10782   cat conftest.err >&5
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); } &&
10785          { ac_try='test -z "$ac_cxx_werror_flag"
10786                          || test ! -s conftest.err'
10787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788   (eval $ac_try) 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; } &&
10792          { ac_try='test -s conftest$ac_exeext'
10793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794   (eval $ac_try) 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; }; then
10798
10799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10800 }'`
10801 # Check for a 64-bit object if we didn't find anything.
10802 if 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; }
10803 }'`; fi
10804 else
10805   echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808 fi
10809 rm -f conftest.err conftest.$ac_objext \
10810       conftest$ac_exeext conftest.$ac_ext
10811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10812
10813         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10814         # Warning - without using the other run time loading flags,
10815         # -berok will link without error, but may produce a broken library.
10816         no_undefined_flag_CXX=' ${wl}-bernotok'
10817         allow_undefined_flag_CXX=' ${wl}-berok'
10818         # -bexpall does not export symbols beginning with underscore (_)
10819         always_export_symbols_CXX=yes
10820         # Exported symbols can be pulled into shared objects from archives
10821         whole_archive_flag_spec_CXX=' '
10822         archive_cmds_need_lc_CXX=yes
10823         # This is similar to how AIX traditionally builds it's shared libraries.
10824         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'
10825       fi
10826     fi
10827     ;;
10828   chorus*)
10829     case $cc_basename in
10830       *)
10831         # FIXME: insert proper C++ library support
10832         ld_shlibs_CXX=no
10833         ;;
10834     esac
10835     ;;
10836
10837   cygwin* | mingw* | pw32*)
10838     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10839     # as there is no search path for DLLs.
10840     hardcode_libdir_flag_spec_CXX='-L$libdir'
10841     allow_undefined_flag_CXX=unsupported
10842     always_export_symbols_CXX=no
10843     enable_shared_with_static_runtimes_CXX=yes
10844
10845     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10846       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'
10847       # If the export-symbols file already is a .def file (1st line
10848       # is EXPORTS), use it as is; otherwise, prepend...
10849       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10850         cp $export_symbols $output_objdir/$soname.def;
10851       else
10852         echo EXPORTS > $output_objdir/$soname.def;
10853         cat $export_symbols >> $output_objdir/$soname.def;
10854       fi~
10855       $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'
10856     else
10857       ld_shlibs_CXX=no
10858     fi
10859   ;;
10860
10861   darwin* | rhapsody*)
10862   if test "$GXX" = yes; then
10863     archive_cmds_need_lc_CXX=no
10864     case "$host_os" in
10865     rhapsody* | darwin1.[012])
10866       allow_undefined_flag_CXX='-undefined suppress'
10867       ;;
10868     *) # Darwin 1.3 on
10869       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10870         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10871       else
10872         case ${MACOSX_DEPLOYMENT_TARGET} in
10873           10.[012])
10874             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10875             ;;
10876           10.*)
10877             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10878             ;;
10879         esac
10880       fi
10881       ;;
10882     esac
10883     lt_int_apple_cc_single_mod=no
10884     output_verbose_link_cmd='echo'
10885     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10886       lt_int_apple_cc_single_mod=yes
10887     fi
10888     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10889       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10890     else
10891       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'
10892     fi
10893     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10894
10895     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10896     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10897       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}'
10898     else
10899       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}'
10900     fi
10901     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}'
10902     hardcode_direct_CXX=no
10903     hardcode_automatic_CXX=yes
10904     hardcode_shlibpath_var_CXX=unsupported
10905     whole_archive_flag_spec_CXX='-all_load $convenience'
10906     link_all_deplibs_CXX=yes
10907   else
10908     ld_shlibs_CXX=no
10909   fi
10910     ;;
10911
10912   dgux*)
10913     case $cc_basename in
10914       ec++)
10915         # FIXME: insert proper C++ library support
10916         ld_shlibs_CXX=no
10917         ;;
10918       ghcx)
10919         # Green Hills C++ Compiler
10920         # FIXME: insert proper C++ library support
10921         ld_shlibs_CXX=no
10922         ;;
10923       *)
10924         # FIXME: insert proper C++ library support
10925         ld_shlibs_CXX=no
10926         ;;
10927     esac
10928     ;;
10929   freebsd12*)
10930     # C++ shared libraries reported to be fairly broken before switch to ELF
10931     ld_shlibs_CXX=no
10932     ;;
10933   freebsd-elf*)
10934     archive_cmds_need_lc_CXX=no
10935     ;;
10936   freebsd* | kfreebsd*-gnu)
10937     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10938     # conventions
10939     ld_shlibs_CXX=yes
10940     ;;
10941   gnu*)
10942     ;;
10943   hpux9*)
10944     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10945     hardcode_libdir_separator_CXX=:
10946     export_dynamic_flag_spec_CXX='${wl}-E'
10947     hardcode_direct_CXX=yes
10948     hardcode_minus_L_CXX=yes # Not in the search PATH,
10949                                 # but as the default
10950                                 # location of the library.
10951
10952     case $cc_basename in
10953     CC)
10954       # FIXME: insert proper C++ library support
10955       ld_shlibs_CXX=no
10956       ;;
10957     aCC)
10958       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'
10959       # Commands to make compiler produce verbose output that lists
10960       # what "hidden" libraries, object files and flags are used when
10961       # linking a shared library.
10962       #
10963       # There doesn't appear to be a way to prevent this compiler from
10964       # explicitly linking system object files so we need to strip them
10965       # from the output so that they don't get included in the library
10966       # dependencies.
10967       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'
10968       ;;
10969     *)
10970       if test "$GXX" = yes; then
10971         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'
10972       else
10973         # FIXME: insert proper C++ library support
10974         ld_shlibs_CXX=no
10975       fi
10976       ;;
10977     esac
10978     ;;
10979   hpux10*|hpux11*)
10980     if test $with_gnu_ld = no; then
10981       case "$host_cpu" in
10982       hppa*64*)
10983         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10984         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10985         hardcode_libdir_separator_CXX=:
10986         ;;
10987       ia64*)
10988         hardcode_libdir_flag_spec_CXX='-L$libdir'
10989         ;;
10990       *)
10991         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10992         hardcode_libdir_separator_CXX=:
10993         export_dynamic_flag_spec_CXX='${wl}-E'
10994         ;;
10995       esac
10996     fi
10997     case "$host_cpu" in
10998     hppa*64*)
10999       hardcode_direct_CXX=no
11000       hardcode_shlibpath_var_CXX=no
11001       ;;
11002     ia64*)
11003       hardcode_direct_CXX=no
11004       hardcode_shlibpath_var_CXX=no
11005       hardcode_minus_L_CXX=yes # Not in the search PATH,
11006                                               # but as the default
11007                                               # location of the library.
11008       ;;
11009     *)
11010       hardcode_direct_CXX=yes
11011       hardcode_minus_L_CXX=yes # Not in the search PATH,
11012                                               # but as the default
11013                                               # location of the library.
11014       ;;
11015     esac
11016
11017     case $cc_basename in
11018       CC)
11019         # FIXME: insert proper C++ library support
11020         ld_shlibs_CXX=no
11021         ;;
11022       aCC)
11023         case "$host_cpu" in
11024         hppa*64*|ia64*)
11025           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11026           ;;
11027         *)
11028           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11029           ;;
11030         esac
11031         # Commands to make compiler produce verbose output that lists
11032         # what "hidden" libraries, object files and flags are used when
11033         # linking a shared library.
11034         #
11035         # There doesn't appear to be a way to prevent this compiler from
11036         # explicitly linking system object files so we need to strip them
11037         # from the output so that they don't get included in the library
11038         # dependencies.
11039         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'
11040         ;;
11041       *)
11042         if test "$GXX" = yes; then
11043           if test $with_gnu_ld = no; then
11044             case "$host_cpu" in
11045             ia64*|hppa*64*)
11046               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11047               ;;
11048             *)
11049               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'
11050               ;;
11051             esac
11052           fi
11053         else
11054           # FIXME: insert proper C++ library support
11055           ld_shlibs_CXX=no
11056         fi
11057         ;;
11058     esac
11059     ;;
11060   irix5* | irix6*)
11061     case $cc_basename in
11062       CC)
11063         # SGI C++
11064         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'
11065
11066         # Archives containing C++ object files must be created using
11067         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11068         # necessary to make sure instantiated templates are included
11069         # in the archive.
11070         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11071         ;;
11072       *)
11073         if test "$GXX" = yes; then
11074           if test "$with_gnu_ld" = no; then
11075             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'
11076           else
11077             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'
11078           fi
11079         fi
11080         link_all_deplibs_CXX=yes
11081         ;;
11082     esac
11083     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11084     hardcode_libdir_separator_CXX=:
11085     ;;
11086   linux*)
11087     case $cc_basename in
11088       KCC)
11089         # Kuck and Associates, Inc. (KAI) C++ Compiler
11090
11091         # KCC will only create a shared library if the output file
11092         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11093         # to its proper name (with version) after linking.
11094         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'
11095         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'
11096         # Commands to make compiler produce verbose output that lists
11097         # what "hidden" libraries, object files and flags are used when
11098         # linking a shared library.
11099         #
11100         # There doesn't appear to be a way to prevent this compiler from
11101         # explicitly linking system object files so we need to strip them
11102         # from the output so that they don't get included in the library
11103         # dependencies.
11104         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'
11105
11106         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11107         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11108
11109         # Archives containing C++ object files must be created using
11110         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11111         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11112         ;;
11113       icpc)
11114         # Intel C++
11115         with_gnu_ld=yes
11116         archive_cmds_need_lc_CXX=no
11117         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11118         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'
11119         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11120         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11121         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11122         ;;
11123       cxx)
11124         # Compaq C++
11125         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11126         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'
11127
11128         runpath_var=LD_RUN_PATH
11129         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11130         hardcode_libdir_separator_CXX=:
11131
11132         # Commands to make compiler produce verbose output that lists
11133         # what "hidden" libraries, object files and flags are used when
11134         # linking a shared library.
11135         #
11136         # There doesn't appear to be a way to prevent this compiler from
11137         # explicitly linking system object files so we need to strip them
11138         # from the output so that they don't get included in the library
11139         # dependencies.
11140         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'
11141         ;;
11142     esac
11143     ;;
11144   lynxos*)
11145     # FIXME: insert proper C++ library support
11146     ld_shlibs_CXX=no
11147     ;;
11148   m88k*)
11149     # FIXME: insert proper C++ library support
11150     ld_shlibs_CXX=no
11151     ;;
11152   mvs*)
11153     case $cc_basename in
11154       cxx)
11155         # FIXME: insert proper C++ library support
11156         ld_shlibs_CXX=no
11157         ;;
11158       *)
11159         # FIXME: insert proper C++ library support
11160         ld_shlibs_CXX=no
11161         ;;
11162     esac
11163     ;;
11164   netbsd*)
11165     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11166       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11167       wlarc=
11168       hardcode_libdir_flag_spec_CXX='-R$libdir'
11169       hardcode_direct_CXX=yes
11170       hardcode_shlibpath_var_CXX=no
11171     fi
11172     # Workaround some broken pre-1.5 toolchains
11173     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11174     ;;
11175   osf3*)
11176     case $cc_basename in
11177       KCC)
11178         # Kuck and Associates, Inc. (KAI) C++ Compiler
11179
11180         # KCC will only create a shared library if the output file
11181         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11182         # to its proper name (with version) after linking.
11183         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'
11184
11185         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11186         hardcode_libdir_separator_CXX=:
11187
11188         # Archives containing C++ object files must be created using
11189         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11190         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11191
11192         ;;
11193       RCC)
11194         # Rational C++ 2.4.1
11195         # FIXME: insert proper C++ library support
11196         ld_shlibs_CXX=no
11197         ;;
11198       cxx)
11199         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11200         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'
11201
11202         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11203         hardcode_libdir_separator_CXX=:
11204
11205         # Commands to make compiler produce verbose output that lists
11206         # what "hidden" libraries, object files and flags are used when
11207         # linking a shared library.
11208         #
11209         # There doesn't appear to be a way to prevent this compiler from
11210         # explicitly linking system object files so we need to strip them
11211         # from the output so that they don't get included in the library
11212         # dependencies.
11213         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'
11214         ;;
11215       *)
11216         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11217           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11218           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'
11219
11220           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11221           hardcode_libdir_separator_CXX=:
11222
11223           # Commands to make compiler produce verbose output that lists
11224           # what "hidden" libraries, object files and flags are used when
11225           # linking a shared library.
11226           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11227
11228         else
11229           # FIXME: insert proper C++ library support
11230           ld_shlibs_CXX=no
11231         fi
11232         ;;
11233     esac
11234     ;;
11235   osf4* | osf5*)
11236     case $cc_basename in
11237       KCC)
11238         # Kuck and Associates, Inc. (KAI) C++ Compiler
11239
11240         # KCC will only create a shared library if the output file
11241         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11242         # to its proper name (with version) after linking.
11243         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'
11244
11245         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11246         hardcode_libdir_separator_CXX=:
11247
11248         # Archives containing C++ object files must be created using
11249         # the KAI C++ compiler.
11250         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11251         ;;
11252       RCC)
11253         # Rational C++ 2.4.1
11254         # FIXME: insert proper C++ library support
11255         ld_shlibs_CXX=no
11256         ;;
11257       cxx)
11258         allow_undefined_flag_CXX=' -expect_unresolved \*'
11259         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'
11260         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11261           echo "-hidden">> $lib.exp~
11262           $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~
11263           $rm $lib.exp'
11264
11265         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11266         hardcode_libdir_separator_CXX=:
11267
11268         # Commands to make compiler produce verbose output that lists
11269         # what "hidden" libraries, object files and flags are used when
11270         # linking a shared library.
11271         #
11272         # There doesn't appear to be a way to prevent this compiler from
11273         # explicitly linking system object files so we need to strip them
11274         # from the output so that they don't get included in the library
11275         # dependencies.
11276         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'
11277         ;;
11278       *)
11279         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11280           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11281          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'
11282
11283           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11284           hardcode_libdir_separator_CXX=:
11285
11286           # Commands to make compiler produce verbose output that lists
11287           # what "hidden" libraries, object files and flags are used when
11288           # linking a shared library.
11289           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11290
11291         else
11292           # FIXME: insert proper C++ library support
11293           ld_shlibs_CXX=no
11294         fi
11295         ;;
11296     esac
11297     ;;
11298   psos*)
11299     # FIXME: insert proper C++ library support
11300     ld_shlibs_CXX=no
11301     ;;
11302   sco*)
11303     archive_cmds_need_lc_CXX=no
11304     case $cc_basename in
11305       CC)
11306         # FIXME: insert proper C++ library support
11307         ld_shlibs_CXX=no
11308         ;;
11309       *)
11310         # FIXME: insert proper C++ library support
11311         ld_shlibs_CXX=no
11312         ;;
11313     esac
11314     ;;
11315   sunos4*)
11316     case $cc_basename in
11317       CC)
11318         # Sun C++ 4.x
11319         # FIXME: insert proper C++ library support
11320         ld_shlibs_CXX=no
11321         ;;
11322       lcc)
11323         # Lucid
11324         # FIXME: insert proper C++ library support
11325         ld_shlibs_CXX=no
11326         ;;
11327       *)
11328         # FIXME: insert proper C++ library support
11329         ld_shlibs_CXX=no
11330         ;;
11331     esac
11332     ;;
11333   solaris*)
11334     case $cc_basename in
11335       CC)
11336         # Sun C++ 4.2, 5.x and Centerline C++
11337         no_undefined_flag_CXX=' -zdefs'
11338         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11339         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11340         $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'
11341
11342         hardcode_libdir_flag_spec_CXX='-R$libdir'
11343         hardcode_shlibpath_var_CXX=no
11344         case $host_os in
11345           solaris2.0-5 | solaris2.0-5.*) ;;
11346           *)
11347             # The C++ compiler is used as linker so we must use $wl
11348             # flag to pass the commands to the underlying system
11349             # linker.
11350             # Supported since Solaris 2.6 (maybe 2.5.1?)
11351             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11352             ;;
11353         esac
11354         link_all_deplibs_CXX=yes
11355
11356         # Commands to make compiler produce verbose output that lists
11357         # what "hidden" libraries, object files and flags are used when
11358         # linking a shared library.
11359         #
11360         # There doesn't appear to be a way to prevent this compiler from
11361         # explicitly linking system object files so we need to strip them
11362         # from the output so that they don't get included in the library
11363         # dependencies.
11364         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'
11365
11366         # Archives containing C++ object files must be created using
11367         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11368         # necessary to make sure instantiated templates are included
11369         # in the archive.
11370         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11371         ;;
11372       gcx)
11373         # Green Hills C++ Compiler
11374         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11375
11376         # The C++ compiler must be used to create the archive.
11377         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11378         ;;
11379       *)
11380         # GNU C++ compiler with Solaris linker
11381         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11382           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11383           if $CC --version | grep -v '^2\.7' > /dev/null; then
11384             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11385             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11386                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11387
11388             # Commands to make compiler produce verbose output that lists
11389             # what "hidden" libraries, object files and flags are used when
11390             # linking a shared library.
11391             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11392           else
11393             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11394             # platform.
11395             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11396             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11397                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11398
11399             # Commands to make compiler produce verbose output that lists
11400             # what "hidden" libraries, object files and flags are used when
11401             # linking a shared library.
11402             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11403           fi
11404
11405           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11406         fi
11407         ;;
11408     esac
11409     ;;
11410   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11411     archive_cmds_need_lc_CXX=no
11412     ;;
11413   tandem*)
11414     case $cc_basename in
11415       NCC)
11416         # NonStop-UX NCC 3.20
11417         # FIXME: insert proper C++ library support
11418         ld_shlibs_CXX=no
11419         ;;
11420       *)
11421         # FIXME: insert proper C++ library support
11422         ld_shlibs_CXX=no
11423         ;;
11424     esac
11425     ;;
11426   vxworks*)
11427     # FIXME: insert proper C++ library support
11428     ld_shlibs_CXX=no
11429     ;;
11430   *)
11431     # FIXME: insert proper C++ library support
11432     ld_shlibs_CXX=no
11433     ;;
11434 esac
11435 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11436 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11437 test "$ld_shlibs_CXX" = no && can_build_shared=no
11438
11439 GCC_CXX="$GXX"
11440 LD_CXX="$LD"
11441
11442
11443 cat > conftest.$ac_ext <<EOF
11444 class Foo
11445 {
11446 public:
11447   Foo (void) { a = 0; }
11448 private:
11449   int a;
11450 };
11451 EOF
11452
11453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11454   (eval $ac_compile) 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; then
11458   # Parse the compiler output and extract the necessary
11459   # objects, libraries and library flags.
11460
11461   # Sentinel used to keep track of whether or not we are before
11462   # the conftest object file.
11463   pre_test_object_deps_done=no
11464
11465   # The `*' in the case matches for architectures that use `case' in
11466   # $output_verbose_cmd can trigger glob expansion during the loop
11467   # eval without this substitution.
11468   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11469
11470   for p in `eval $output_verbose_link_cmd`; do
11471     case $p in
11472
11473     -L* | -R* | -l*)
11474        # Some compilers place space between "-{L,R}" and the path.
11475        # Remove the space.
11476        if test $p = "-L" \
11477           || test $p = "-R"; then
11478          prev=$p
11479          continue
11480        else
11481          prev=
11482        fi
11483
11484        if test "$pre_test_object_deps_done" = no; then
11485          case $p in
11486          -L* | -R*)
11487            # Internal compiler library paths should come after those
11488            # provided the user.  The postdeps already come after the
11489            # user supplied libs so there is no need to process them.
11490            if test -z "$compiler_lib_search_path_CXX"; then
11491              compiler_lib_search_path_CXX="${prev}${p}"
11492            else
11493              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11494            fi
11495            ;;
11496          # The "-l" case would never come before the object being
11497          # linked, so don't bother handling this case.
11498          esac
11499        else
11500          if test -z "$postdeps_CXX"; then
11501            postdeps_CXX="${prev}${p}"
11502          else
11503            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11504          fi
11505        fi
11506        ;;
11507
11508     *.$objext)
11509        # This assumes that the test object file only shows up
11510        # once in the compiler output.
11511        if test "$p" = "conftest.$objext"; then
11512          pre_test_object_deps_done=yes
11513          continue
11514        fi
11515
11516        if test "$pre_test_object_deps_done" = no; then
11517          if test -z "$predep_objects_CXX"; then
11518            predep_objects_CXX="$p"
11519          else
11520            predep_objects_CXX="$predep_objects_CXX $p"
11521          fi
11522        else
11523          if test -z "$postdep_objects_CXX"; then
11524            postdep_objects_CXX="$p"
11525          else
11526            postdep_objects_CXX="$postdep_objects_CXX $p"
11527          fi
11528        fi
11529        ;;
11530
11531     *) ;; # Ignore the rest.
11532
11533     esac
11534   done
11535
11536   # Clean up.
11537   rm -f a.out a.exe
11538 else
11539   echo "libtool.m4: error: problem compiling CXX test program"
11540 fi
11541
11542 $rm -f confest.$objext
11543
11544 case " $postdeps_CXX " in
11545 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11546 esac
11547
11548 lt_prog_compiler_wl_CXX=
11549 lt_prog_compiler_pic_CXX=
11550 lt_prog_compiler_static_CXX=
11551
11552 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11553 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11554
11555   # C++ specific cases for pic, static, wl, etc.
11556   if test "$GXX" = yes; then
11557     lt_prog_compiler_wl_CXX='-Wl,'
11558     lt_prog_compiler_static_CXX='-static'
11559
11560     case $host_os in
11561     aix*)
11562       # All AIX code is PIC.
11563       if test "$host_cpu" = ia64; then
11564         # AIX 5 now supports IA64 processor
11565         lt_prog_compiler_static_CXX='-Bstatic'
11566       fi
11567       ;;
11568     amigaos*)
11569       # FIXME: we need at least 68020 code to build shared libraries, but
11570       # adding the `-m68020' flag to GCC prevents building anything better,
11571       # like `-m68040'.
11572       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11573       ;;
11574     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11575       # PIC is the default for these OSes.
11576       ;;
11577     mingw* | os2* | pw32*)
11578       # This hack is so that the source file can tell whether it is being
11579       # built for inclusion in a dll (and should export symbols for example).
11580       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11581       ;;
11582     darwin* | rhapsody*)
11583       # PIC is the default on this platform
11584       # Common symbols not allowed in MH_DYLIB files
11585       lt_prog_compiler_pic_CXX='-fno-common'
11586       ;;
11587     *djgpp*)
11588       # DJGPP does not support shared libraries at all
11589       lt_prog_compiler_pic_CXX=
11590       ;;
11591     sysv4*MP*)
11592       if test -d /usr/nec; then
11593         lt_prog_compiler_pic_CXX=-Kconform_pic
11594       fi
11595       ;;
11596     hpux*)
11597       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11598       # not for PA HP-UX.
11599       case "$host_cpu" in
11600       hppa*64*|ia64*)
11601         ;;
11602       *)
11603         lt_prog_compiler_pic_CXX='-fPIC'
11604         ;;
11605       esac
11606       ;;
11607     *)
11608       lt_prog_compiler_pic_CXX='-fPIC'
11609       ;;
11610     esac
11611   else
11612     case $host_os in
11613       aix4* | aix5*)
11614         # All AIX code is PIC.
11615         if test "$host_cpu" = ia64; then
11616           # AIX 5 now supports IA64 processor
11617           lt_prog_compiler_static_CXX='-Bstatic'
11618         else
11619           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11620         fi
11621         ;;
11622       chorus*)
11623         case $cc_basename in
11624         cxch68)
11625           # Green Hills C++ Compiler
11626           # _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"
11627           ;;
11628         esac
11629         ;;
11630       dgux*)
11631         case $cc_basename in
11632           ec++)
11633             lt_prog_compiler_pic_CXX='-KPIC'
11634             ;;
11635           ghcx)
11636             # Green Hills C++ Compiler
11637             lt_prog_compiler_pic_CXX='-pic'
11638             ;;
11639           *)
11640             ;;
11641         esac
11642         ;;
11643       freebsd* | kfreebsd*-gnu)
11644         # FreeBSD uses GNU C++
11645         ;;
11646       hpux9* | hpux10* | hpux11*)
11647         case $cc_basename in
11648           CC)
11649             lt_prog_compiler_wl_CXX='-Wl,'
11650             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11651             if test "$host_cpu" != ia64; then
11652               lt_prog_compiler_pic_CXX='+Z'
11653             fi
11654             ;;
11655           aCC)
11656             lt_prog_compiler_wl_CXX='-Wl,'
11657             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11658             case "$host_cpu" in
11659             hppa*64*|ia64*)
11660               # +Z the default
11661               ;;
11662             *)
11663               lt_prog_compiler_pic_CXX='+Z'
11664               ;;
11665             esac
11666             ;;
11667           *)
11668             ;;
11669         esac
11670         ;;
11671       irix5* | irix6* | nonstopux*)
11672         case $cc_basename in
11673           CC)
11674             lt_prog_compiler_wl_CXX='-Wl,'
11675             lt_prog_compiler_static_CXX='-non_shared'
11676             # CC pic flag -KPIC is the default.
11677             ;;
11678           *)
11679             ;;
11680         esac
11681         ;;
11682       linux*)
11683         case $cc_basename in
11684           KCC)
11685             # KAI C++ Compiler
11686             lt_prog_compiler_wl_CXX='--backend -Wl,'
11687             lt_prog_compiler_pic_CXX='-fPIC'
11688             ;;
11689           icpc)
11690             # Intel C++
11691             lt_prog_compiler_wl_CXX='-Wl,'
11692             lt_prog_compiler_pic_CXX='-KPIC'
11693             lt_prog_compiler_static_CXX='-static'
11694             ;;
11695           cxx)
11696             # Compaq C++
11697             # Make sure the PIC flag is empty.  It appears that all Alpha
11698             # Linux and Compaq Tru64 Unix objects are PIC.
11699             lt_prog_compiler_pic_CXX=
11700             lt_prog_compiler_static_CXX='-non_shared'
11701             ;;
11702           *)
11703             ;;
11704         esac
11705         ;;
11706       lynxos*)
11707         ;;
11708       m88k*)
11709         ;;
11710       mvs*)
11711         case $cc_basename in
11712           cxx)
11713             lt_prog_compiler_pic_CXX='-W c,exportall'
11714             ;;
11715           *)
11716             ;;
11717         esac
11718         ;;
11719       netbsd*)
11720         ;;
11721       osf3* | osf4* | osf5*)
11722         case $cc_basename in
11723           KCC)
11724             lt_prog_compiler_wl_CXX='--backend -Wl,'
11725             ;;
11726           RCC)
11727             # Rational C++ 2.4.1
11728             lt_prog_compiler_pic_CXX='-pic'
11729             ;;
11730           cxx)
11731             # Digital/Compaq C++
11732             lt_prog_compiler_wl_CXX='-Wl,'
11733             # Make sure the PIC flag is empty.  It appears that all Alpha
11734             # Linux and Compaq Tru64 Unix objects are PIC.
11735             lt_prog_compiler_pic_CXX=
11736             lt_prog_compiler_static_CXX='-non_shared'
11737             ;;
11738           *)
11739             ;;
11740         esac
11741         ;;
11742       psos*)
11743         ;;
11744       sco*)
11745         case $cc_basename in
11746           CC)
11747             lt_prog_compiler_pic_CXX='-fPIC'
11748             ;;
11749           *)
11750             ;;
11751         esac
11752         ;;
11753       solaris*)
11754         case $cc_basename in
11755           CC)
11756             # Sun C++ 4.2, 5.x and Centerline C++
11757             lt_prog_compiler_pic_CXX='-KPIC'
11758             lt_prog_compiler_static_CXX='-Bstatic'
11759             lt_prog_compiler_wl_CXX='-Qoption ld '
11760             ;;
11761           gcx)
11762             # Green Hills C++ Compiler
11763             lt_prog_compiler_pic_CXX='-PIC'
11764             ;;
11765           *)
11766             ;;
11767         esac
11768         ;;
11769       sunos4*)
11770         case $cc_basename in
11771           CC)
11772             # Sun C++ 4.x
11773             lt_prog_compiler_pic_CXX='-pic'
11774             lt_prog_compiler_static_CXX='-Bstatic'
11775             ;;
11776           lcc)
11777             # Lucid
11778             lt_prog_compiler_pic_CXX='-pic'
11779             ;;
11780           *)
11781             ;;
11782         esac
11783         ;;
11784       tandem*)
11785         case $cc_basename in
11786           NCC)
11787             # NonStop-UX NCC 3.20
11788             lt_prog_compiler_pic_CXX='-KPIC'
11789             ;;
11790           *)
11791             ;;
11792         esac
11793         ;;
11794       unixware*)
11795         ;;
11796       vxworks*)
11797         ;;
11798       *)
11799         lt_prog_compiler_can_build_shared_CXX=no
11800         ;;
11801     esac
11802   fi
11803
11804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11805 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11806
11807 #
11808 # Check to make sure the PIC flag actually works.
11809 #
11810 if test -n "$lt_prog_compiler_pic_CXX"; then
11811
11812 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11813 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11814 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817   lt_prog_compiler_pic_works_CXX=no
11818   ac_outfile=conftest.$ac_objext
11819    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11820    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11821    # Insert the option either (1) after the last *FLAGS variable, or
11822    # (2) before a word containing "conftest.", or (3) at the end.
11823    # Note that $ac_compile itself does not contain backslashes and begins
11824    # with a dollar sign (not a hyphen), so the echo should work correctly.
11825    # The option is referenced via a variable to avoid confusing sed.
11826    lt_compile=`echo "$ac_compile" | $SED \
11827    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11829    -e 's:$: $lt_compiler_flag:'`
11830    (eval echo "\"\$as_me:11830: $lt_compile\"" >&5)
11831    (eval "$lt_compile" 2>conftest.err)
11832    ac_status=$?
11833    cat conftest.err >&5
11834    echo "$as_me:11834: \$? = $ac_status" >&5
11835    if (exit $ac_status) && test -s "$ac_outfile"; then
11836      # The compiler can only warn and ignore the option if not recognized
11837      # So say no if there are warnings
11838      if test ! -s conftest.err; then
11839        lt_prog_compiler_pic_works_CXX=yes
11840      fi
11841    fi
11842    $rm conftest*
11843
11844 fi
11845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11846 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11847
11848 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11849     case $lt_prog_compiler_pic_CXX in
11850      "" | " "*) ;;
11851      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11852      esac
11853 else
11854     lt_prog_compiler_pic_CXX=
11855      lt_prog_compiler_can_build_shared_CXX=no
11856 fi
11857
11858 fi
11859 case "$host_os" in
11860   # For platforms which do not support PIC, -DPIC is meaningless:
11861   *djgpp*)
11862     lt_prog_compiler_pic_CXX=
11863     ;;
11864   *)
11865     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11866     ;;
11867 esac
11868
11869 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874   lt_cv_prog_compiler_c_o_CXX=no
11875    $rm -r conftest 2>/dev/null
11876    mkdir conftest
11877    cd conftest
11878    mkdir out
11879    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11880
11881    lt_compiler_flag="-o out/conftest2.$ac_objext"
11882    # Insert the option either (1) after the last *FLAGS variable, or
11883    # (2) before a word containing "conftest.", or (3) at the end.
11884    # Note that $ac_compile itself does not contain backslashes and begins
11885    # with a dollar sign (not a hyphen), so the echo should work correctly.
11886    lt_compile=`echo "$ac_compile" | $SED \
11887    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11889    -e 's:$: $lt_compiler_flag:'`
11890    (eval echo "\"\$as_me:11890: $lt_compile\"" >&5)
11891    (eval "$lt_compile" 2>out/conftest.err)
11892    ac_status=$?
11893    cat out/conftest.err >&5
11894    echo "$as_me:11894: \$? = $ac_status" >&5
11895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11896    then
11897      # The compiler can only warn and ignore the option if not recognized
11898      # So say no if there are warnings
11899      if test ! -s out/conftest.err; then
11900        lt_cv_prog_compiler_c_o_CXX=yes
11901      fi
11902    fi
11903    chmod u+w .
11904    $rm conftest*
11905    # SGI C++ compiler will create directory out/ii_files/ for
11906    # template instantiation
11907    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11908    $rm out/* && rmdir out
11909    cd ..
11910    rmdir conftest
11911    $rm conftest*
11912
11913 fi
11914 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11915 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11916
11917
11918 hard_links="nottested"
11919 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11920   # do not overwrite the value of need_locks provided by the user
11921   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11922 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11923   hard_links=yes
11924   $rm conftest*
11925   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11926   touch conftest.a
11927   ln conftest.a conftest.b 2>&5 || hard_links=no
11928   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11929   echo "$as_me:$LINENO: result: $hard_links" >&5
11930 echo "${ECHO_T}$hard_links" >&6
11931   if test "$hard_links" = no; then
11932     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11933 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11934     need_locks=warn
11935   fi
11936 else
11937   need_locks=no
11938 fi
11939
11940 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11941 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11942
11943   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11944   case $host_os in
11945   aix4* | aix5*)
11946     # If we're using GNU nm, then we don't want the "-C" option.
11947     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11948     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11949       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'
11950     else
11951       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'
11952     fi
11953     ;;
11954   pw32*)
11955     export_symbols_cmds_CXX="$ltdll_cmds"
11956   ;;
11957   cygwin* | mingw*)
11958     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11959   ;;
11960   *)
11961     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11962   ;;
11963   esac
11964
11965 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11966 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11967 test "$ld_shlibs_CXX" = no && can_build_shared=no
11968
11969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11970 if test "$GCC" = yes; then
11971   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11972 fi
11973
11974 #
11975 # Do we need to explicitly link libc?
11976 #
11977 case "x$archive_cmds_need_lc_CXX" in
11978 x|xyes)
11979   # Assume -lc should be added
11980   archive_cmds_need_lc_CXX=yes
11981
11982   if test "$enable_shared" = yes && test "$GCC" = yes; then
11983     case $archive_cmds_CXX in
11984     *'~'*)
11985       # FIXME: we may have to deal with multi-command sequences.
11986       ;;
11987     '$CC '*)
11988       # Test whether the compiler implicitly links with -lc since on some
11989       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11990       # to ld, don't add -lc before -lgcc.
11991       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11992 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11993       $rm conftest*
11994       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11995
11996       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11997   (eval $ac_compile) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } 2>conftest.err; then
12001         soname=conftest
12002         lib=conftest
12003         libobjs=conftest.$ac_objext
12004         deplibs=
12005         wl=$lt_prog_compiler_wl_CXX
12006         compiler_flags=-v
12007         linker_flags=-v
12008         verstring=
12009         output_objdir=.
12010         libname=conftest
12011         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12012         allow_undefined_flag_CXX=
12013         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12014   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }
12018         then
12019           archive_cmds_need_lc_CXX=no
12020         else
12021           archive_cmds_need_lc_CXX=yes
12022         fi
12023         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12024       else
12025         cat conftest.err 1>&5
12026       fi
12027       $rm conftest*
12028       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12029 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12030       ;;
12031     esac
12032   fi
12033   ;;
12034 esac
12035
12036 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12037 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12038 library_names_spec=
12039 libname_spec='lib$name'
12040 soname_spec=
12041 shrext=".so"
12042 postinstall_cmds=
12043 postuninstall_cmds=
12044 finish_cmds=
12045 finish_eval=
12046 shlibpath_var=
12047 shlibpath_overrides_runpath=unknown
12048 version_type=none
12049 dynamic_linker="$host_os ld.so"
12050 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12051 if test "$GCC" = yes; then
12052   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12053   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12054     # if the path contains ";" then we assume it to be the separator
12055     # otherwise default to the standard path separator (i.e. ":") - it is
12056     # assumed that no part of a normal pathname contains ";" but that should
12057     # okay in the real world where ";" in dirpaths is itself problematic.
12058     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12059   else
12060     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12061   fi
12062 else
12063   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12064 fi
12065 need_lib_prefix=unknown
12066 hardcode_into_libs=no
12067
12068 # when you set need_version to no, make sure it does not cause -set_version
12069 # flags to be left without arguments
12070 need_version=unknown
12071
12072 case $host_os in
12073 aix3*)
12074   version_type=linux
12075   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12076   shlibpath_var=LIBPATH
12077
12078   # AIX 3 has no versioning support, so we append a major version to the name.
12079   soname_spec='${libname}${release}${shared_ext}$major'
12080   ;;
12081
12082 aix4* | aix5*)
12083   version_type=linux
12084   need_lib_prefix=no
12085   need_version=no
12086   hardcode_into_libs=yes
12087   if test "$host_cpu" = ia64; then
12088     # AIX 5 supports IA64
12089     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12090     shlibpath_var=LD_LIBRARY_PATH
12091   else
12092     # With GCC up to 2.95.x, collect2 would create an import file
12093     # for dependence libraries.  The import file would start with
12094     # the line `#! .'.  This would cause the generated library to
12095     # depend on `.', always an invalid library.  This was fixed in
12096     # development snapshots of GCC prior to 3.0.
12097     case $host_os in
12098       aix4 | aix4.[01] | aix4.[01].*)
12099       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12100            echo ' yes '
12101            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12102         :
12103       else
12104         can_build_shared=no
12105       fi
12106       ;;
12107     esac
12108     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12109     # soname into executable. Probably we can add versioning support to
12110     # collect2, so additional links can be useful in future.
12111     if test "$aix_use_runtimelinking" = yes; then
12112       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12113       # instead of lib<name>.a to let people know that these are not
12114       # typical AIX shared libraries.
12115       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12116     else
12117       # We preserve .a as extension for shared libraries through AIX4.2
12118       # and later when we are not doing run time linking.
12119       library_names_spec='${libname}${release}.a $libname.a'
12120       soname_spec='${libname}${release}${shared_ext}$major'
12121     fi
12122     shlibpath_var=LIBPATH
12123   fi
12124   ;;
12125
12126 amigaos*)
12127   library_names_spec='$libname.ixlibrary $libname.a'
12128   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12129   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'
12130   ;;
12131
12132 beos*)
12133   library_names_spec='${libname}${shared_ext}'
12134   dynamic_linker="$host_os ld.so"
12135   shlibpath_var=LIBRARY_PATH
12136   ;;
12137
12138 bsdi4*)
12139   version_type=linux
12140   need_version=no
12141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142   soname_spec='${libname}${release}${shared_ext}$major'
12143   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12144   shlibpath_var=LD_LIBRARY_PATH
12145   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12146   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12147   # the default ld.so.conf also contains /usr/contrib/lib and
12148   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12149   # libtool to hard-code these into programs
12150   ;;
12151
12152 cygwin* | mingw* | pw32*)
12153   version_type=windows
12154   shrext=".dll"
12155   need_version=no
12156   need_lib_prefix=no
12157
12158   case $GCC,$host_os in
12159   yes,cygwin* | yes,mingw* | yes,pw32*)
12160     library_names_spec='$libname.dll.a'
12161     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12162     postinstall_cmds='base_file=`basename \${file}`~
12163       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12164       dldir=$destdir/`dirname \$dlpath`~
12165       test -d \$dldir || mkdir -p \$dldir~
12166       $install_prog $dir/$dlname \$dldir/$dlname'
12167     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12168       dlpath=$dir/\$dldll~
12169        $rm \$dlpath'
12170     shlibpath_overrides_runpath=yes
12171
12172     case $host_os in
12173     cygwin*)
12174       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12175       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12176       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12177       ;;
12178     mingw*)
12179       # MinGW DLLs use traditional 'lib' prefix
12180       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12181       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12182       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12183         # It is most probably a Windows format PATH printed by
12184         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12185         # path with ; separators, and with drive letters. We can handle the
12186         # drive letters (cygwin fileutils understands them), so leave them,
12187         # especially as we might pass files found there to a mingw objdump,
12188         # which wouldn't understand a cygwinified path. Ahh.
12189         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12190       else
12191         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12192       fi
12193       ;;
12194     pw32*)
12195       # pw32 DLLs use 'pw' prefix rather than 'lib'
12196       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12197       ;;
12198     esac
12199     ;;
12200
12201   *)
12202     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12203     ;;
12204   esac
12205   dynamic_linker='Win32 ld.exe'
12206   # FIXME: first we should search . and the directory the executable is in
12207   shlibpath_var=PATH
12208   ;;
12209
12210 darwin* | rhapsody*)
12211   dynamic_linker="$host_os dyld"
12212   version_type=darwin
12213   need_lib_prefix=no
12214   need_version=no
12215   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12216   soname_spec='${libname}${release}${major}$shared_ext'
12217   shlibpath_overrides_runpath=yes
12218   shlibpath_var=DYLD_LIBRARY_PATH
12219   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12220   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12221   if test "$GCC" = yes; then
12222     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"`
12223   else
12224     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12225   fi
12226   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12227   ;;
12228
12229 dgux*)
12230   version_type=linux
12231   need_lib_prefix=no
12232   need_version=no
12233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12234   soname_spec='${libname}${release}${shared_ext}$major'
12235   shlibpath_var=LD_LIBRARY_PATH
12236   ;;
12237
12238 freebsd1*)
12239   dynamic_linker=no
12240   ;;
12241
12242 kfreebsd*-gnu)
12243   version_type=linux
12244   need_lib_prefix=no
12245   need_version=no
12246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12247   soname_spec='${libname}${release}${shared_ext}$major'
12248   shlibpath_var=LD_LIBRARY_PATH
12249   shlibpath_overrides_runpath=no
12250   hardcode_into_libs=yes
12251   dynamic_linker='GNU ld.so'
12252   ;;
12253
12254 freebsd*)
12255   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12256   version_type=freebsd-$objformat
12257   case $version_type in
12258     freebsd-elf*)
12259       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12260       need_version=no
12261       need_lib_prefix=no
12262       ;;
12263     freebsd-*)
12264       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12265       need_version=yes
12266       ;;
12267   esac
12268   shlibpath_var=LD_LIBRARY_PATH
12269   case $host_os in
12270   freebsd2*)
12271     shlibpath_overrides_runpath=yes
12272     ;;
12273   freebsd3.01* | freebsdelf3.01*)
12274     shlibpath_overrides_runpath=yes
12275     hardcode_into_libs=yes
12276     ;;
12277   *) # from 3.2 on
12278     shlibpath_overrides_runpath=no
12279     hardcode_into_libs=yes
12280     ;;
12281   esac
12282   ;;
12283
12284 gnu*)
12285   version_type=linux
12286   need_lib_prefix=no
12287   need_version=no
12288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12289   soname_spec='${libname}${release}${shared_ext}$major'
12290   shlibpath_var=LD_LIBRARY_PATH
12291   hardcode_into_libs=yes
12292   ;;
12293
12294 hpux9* | hpux10* | hpux11*)
12295   # Give a soname corresponding to the major version so that dld.sl refuses to
12296   # link against other versions.
12297   version_type=sunos
12298   need_lib_prefix=no
12299   need_version=no
12300   case "$host_cpu" in
12301   ia64*)
12302     shrext='.so'
12303     hardcode_into_libs=yes
12304     dynamic_linker="$host_os dld.so"
12305     shlibpath_var=LD_LIBRARY_PATH
12306     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12308     soname_spec='${libname}${release}${shared_ext}$major'
12309     if test "X$HPUX_IA64_MODE" = X32; then
12310       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12311     else
12312       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12313     fi
12314     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12315     ;;
12316    hppa*64*)
12317      shrext='.sl'
12318      hardcode_into_libs=yes
12319      dynamic_linker="$host_os dld.sl"
12320      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12321      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12322      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323      soname_spec='${libname}${release}${shared_ext}$major'
12324      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12325      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12326      ;;
12327    *)
12328     shrext='.sl'
12329     dynamic_linker="$host_os dld.sl"
12330     shlibpath_var=SHLIB_PATH
12331     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12333     soname_spec='${libname}${release}${shared_ext}$major'
12334     ;;
12335   esac
12336   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12337   postinstall_cmds='chmod 555 $lib'
12338   ;;
12339
12340 irix5* | irix6* | nonstopux*)
12341   case $host_os in
12342     nonstopux*) version_type=nonstopux ;;
12343     *)
12344         if test "$lt_cv_prog_gnu_ld" = yes; then
12345                 version_type=linux
12346         else
12347                 version_type=irix
12348         fi ;;
12349   esac
12350   need_lib_prefix=no
12351   need_version=no
12352   soname_spec='${libname}${release}${shared_ext}$major'
12353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12354   case $host_os in
12355   irix5* | nonstopux*)
12356     libsuff= shlibsuff=
12357     ;;
12358   *)
12359     case $LD in # libtool.m4 will add one of these switches to LD
12360     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12361       libsuff= shlibsuff= libmagic=32-bit;;
12362     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12363       libsuff=32 shlibsuff=N32 libmagic=N32;;
12364     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12365       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12366     *) libsuff= shlibsuff= libmagic=never-match;;
12367     esac
12368     ;;
12369   esac
12370   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12371   shlibpath_overrides_runpath=no
12372   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12373   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12374   hardcode_into_libs=yes
12375   ;;
12376
12377 # No shared lib support for Linux oldld, aout, or coff.
12378 linux*oldld* | linux*aout* | linux*coff*)
12379   dynamic_linker=no
12380   ;;
12381
12382 # This must be Linux ELF.
12383 linux*)
12384   version_type=linux
12385   need_lib_prefix=no
12386   need_version=no
12387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12388   soname_spec='${libname}${release}${shared_ext}$major'
12389   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12390   shlibpath_var=LD_LIBRARY_PATH
12391   shlibpath_overrides_runpath=no
12392   # This implies no fast_install, which is unacceptable.
12393   # Some rework will be needed to allow for fast_install
12394   # before this can be enabled.
12395   hardcode_into_libs=yes
12396
12397   # Append ld.so.conf contents to the search path
12398   if test -f /etc/ld.so.conf; then
12399     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
12400     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
12401   fi
12402
12403   # We used to test for /lib/ld.so.1 and disable shared libraries on
12404   # powerpc, because MkLinux only supported shared libraries with the
12405   # GNU dynamic linker.  Since this was broken with cross compilers,
12406   # most powerpc-linux boxes support dynamic linking these days and
12407   # people can always --disable-shared, the test was removed, and we
12408   # assume the GNU/Linux dynamic linker is in use.
12409   dynamic_linker='GNU/Linux ld.so'
12410   ;;
12411
12412 knetbsd*-gnu)
12413   version_type=linux
12414   need_lib_prefix=no
12415   need_version=no
12416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12417   soname_spec='${libname}${release}${shared_ext}$major'
12418   shlibpath_var=LD_LIBRARY_PATH
12419   shlibpath_overrides_runpath=no
12420   hardcode_into_libs=yes
12421   dynamic_linker='GNU ld.so'
12422   ;;
12423
12424 netbsd*)
12425   version_type=sunos
12426   need_lib_prefix=no
12427   need_version=no
12428   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12430     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12431     dynamic_linker='NetBSD (a.out) ld.so'
12432   else
12433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12434     soname_spec='${libname}${release}${shared_ext}$major'
12435     dynamic_linker='NetBSD ld.elf_so'
12436   fi
12437   shlibpath_var=LD_LIBRARY_PATH
12438   shlibpath_overrides_runpath=yes
12439   hardcode_into_libs=yes
12440   ;;
12441
12442 newsos6)
12443   version_type=linux
12444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445   shlibpath_var=LD_LIBRARY_PATH
12446   shlibpath_overrides_runpath=yes
12447   ;;
12448
12449 nto-qnx*)
12450   version_type=linux
12451   need_lib_prefix=no
12452   need_version=no
12453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12454   soname_spec='${libname}${release}${shared_ext}$major'
12455   shlibpath_var=LD_LIBRARY_PATH
12456   shlibpath_overrides_runpath=yes
12457   ;;
12458
12459 openbsd*)
12460   version_type=sunos
12461   need_lib_prefix=no
12462   need_version=yes
12463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12464   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12465   shlibpath_var=LD_LIBRARY_PATH
12466   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12467     case $host_os in
12468       openbsd2.[89] | openbsd2.[89].*)
12469         shlibpath_overrides_runpath=no
12470         ;;
12471       *)
12472         shlibpath_overrides_runpath=yes
12473         ;;
12474       esac
12475   else
12476     shlibpath_overrides_runpath=yes
12477   fi
12478   ;;
12479
12480 os2*)
12481   libname_spec='$name'
12482   shrext=".dll"
12483   need_lib_prefix=no
12484   library_names_spec='$libname${shared_ext} $libname.a'
12485   dynamic_linker='OS/2 ld.exe'
12486   shlibpath_var=LIBPATH
12487   ;;
12488
12489 osf3* | osf4* | osf5*)
12490   version_type=osf
12491   need_lib_prefix=no
12492   need_version=no
12493   soname_spec='${libname}${release}${shared_ext}$major'
12494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12495   shlibpath_var=LD_LIBRARY_PATH
12496   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12497   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12498   ;;
12499
12500 sco3.2v5*)
12501   version_type=osf
12502   soname_spec='${libname}${release}${shared_ext}$major'
12503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12504   shlibpath_var=LD_LIBRARY_PATH
12505   ;;
12506
12507 solaris*)
12508   version_type=linux
12509   need_lib_prefix=no
12510   need_version=no
12511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512   soname_spec='${libname}${release}${shared_ext}$major'
12513   shlibpath_var=LD_LIBRARY_PATH
12514   shlibpath_overrides_runpath=yes
12515   hardcode_into_libs=yes
12516   # ldd complains unless libraries are executable
12517   postinstall_cmds='chmod +x $lib'
12518   ;;
12519
12520 sunos4*)
12521   version_type=sunos
12522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12523   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12524   shlibpath_var=LD_LIBRARY_PATH
12525   shlibpath_overrides_runpath=yes
12526   if test "$with_gnu_ld" = yes; then
12527     need_lib_prefix=no
12528   fi
12529   need_version=yes
12530   ;;
12531
12532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12533   version_type=linux
12534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12535   soname_spec='${libname}${release}${shared_ext}$major'
12536   shlibpath_var=LD_LIBRARY_PATH
12537   case $host_vendor in
12538     sni)
12539       shlibpath_overrides_runpath=no
12540       need_lib_prefix=no
12541       export_dynamic_flag_spec='${wl}-Blargedynsym'
12542       runpath_var=LD_RUN_PATH
12543       ;;
12544     siemens)
12545       need_lib_prefix=no
12546       ;;
12547     motorola)
12548       need_lib_prefix=no
12549       need_version=no
12550       shlibpath_overrides_runpath=no
12551       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12552       ;;
12553   esac
12554   ;;
12555
12556 sysv4*MP*)
12557   if test -d /usr/nec ;then
12558     version_type=linux
12559     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12560     soname_spec='$libname${shared_ext}.$major'
12561     shlibpath_var=LD_LIBRARY_PATH
12562   fi
12563   ;;
12564
12565 uts4*)
12566   version_type=linux
12567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12568   soname_spec='${libname}${release}${shared_ext}$major'
12569   shlibpath_var=LD_LIBRARY_PATH
12570   ;;
12571
12572 *)
12573   dynamic_linker=no
12574   ;;
12575 esac
12576 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12577 echo "${ECHO_T}$dynamic_linker" >&6
12578 test "$dynamic_linker" = no && can_build_shared=no
12579
12580 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12581 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12582 hardcode_action_CXX=
12583 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12584    test -n "$runpath_var CXX" || \
12585    test "X$hardcode_automatic_CXX"="Xyes" ; then
12586
12587   # We can hardcode non-existant directories.
12588   if test "$hardcode_direct_CXX" != no &&
12589      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12590      # have to relink, otherwise we might link with an installed library
12591      # when we should be linking with a yet-to-be-installed one
12592      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12593      test "$hardcode_minus_L_CXX" != no; then
12594     # Linking always hardcodes the temporary library directory.
12595     hardcode_action_CXX=relink
12596   else
12597     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12598     hardcode_action_CXX=immediate
12599   fi
12600 else
12601   # We cannot hardcode anything, or else we can only hardcode existing
12602   # directories.
12603   hardcode_action_CXX=unsupported
12604 fi
12605 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12606 echo "${ECHO_T}$hardcode_action_CXX" >&6
12607
12608 if test "$hardcode_action_CXX" = relink; then
12609   # Fast installation is not supported
12610   enable_fast_install=no
12611 elif test "$shlibpath_overrides_runpath" = yes ||
12612      test "$enable_shared" = no; then
12613   # Fast installation is not necessary
12614   enable_fast_install=needless
12615 fi
12616
12617 striplib=
12618 old_striplib=
12619 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12620 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12621 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12622   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12623   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12624   echo "$as_me:$LINENO: result: yes" >&5
12625 echo "${ECHO_T}yes" >&6
12626 else
12627 # FIXME - insert some real tests, host_os isn't really good enough
12628   case $host_os in
12629    darwin*)
12630        if test -n "$STRIP" ; then
12631          striplib="$STRIP -x"
12632          echo "$as_me:$LINENO: result: yes" >&5
12633 echo "${ECHO_T}yes" >&6
12634        else
12635   echo "$as_me:$LINENO: result: no" >&5
12636 echo "${ECHO_T}no" >&6
12637 fi
12638        ;;
12639    *)
12640   echo "$as_me:$LINENO: result: no" >&5
12641 echo "${ECHO_T}no" >&6
12642     ;;
12643   esac
12644 fi
12645
12646 if test "x$enable_dlopen" != xyes; then
12647   enable_dlopen=unknown
12648   enable_dlopen_self=unknown
12649   enable_dlopen_self_static=unknown
12650 else
12651   lt_cv_dlopen=no
12652   lt_cv_dlopen_libs=
12653
12654   case $host_os in
12655   beos*)
12656     lt_cv_dlopen="load_add_on"
12657     lt_cv_dlopen_libs=
12658     lt_cv_dlopen_self=yes
12659     ;;
12660
12661   mingw* | pw32*)
12662     lt_cv_dlopen="LoadLibrary"
12663     lt_cv_dlopen_libs=
12664    ;;
12665
12666   cygwin*)
12667     lt_cv_dlopen="dlopen"
12668     lt_cv_dlopen_libs=
12669    ;;
12670
12671   darwin*)
12672   # if libdl is installed we need to link against it
12673     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12676   echo $ECHO_N "(cached) $ECHO_C" >&6
12677 else
12678   ac_check_lib_save_LIBS=$LIBS
12679 LIBS="-ldl  $LIBS"
12680 cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h.  */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h.  */
12686
12687 /* Override any gcc2 internal prototype to avoid an error.  */
12688 #ifdef __cplusplus
12689 extern "C"
12690 #endif
12691 /* We use char because int might match the return type of a gcc2
12692    builtin and then its argument prototype would still apply.  */
12693 char dlopen ();
12694 int
12695 main ()
12696 {
12697 dlopen ();
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 rm -f conftest.$ac_objext conftest$ac_exeext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12704   (eval $ac_link) 2>conftest.er1
12705   ac_status=$?
12706   grep -v '^ *+' conftest.er1 >conftest.err
12707   rm -f conftest.er1
12708   cat conftest.err >&5
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } &&
12711          { ac_try='test -z "$ac_cxx_werror_flag"
12712                          || test ! -s conftest.err'
12713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714   (eval $ac_try) 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; } &&
12718          { ac_try='test -s conftest$ac_exeext'
12719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720   (eval $ac_try) 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); }; }; then
12724   ac_cv_lib_dl_dlopen=yes
12725 else
12726   echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12728
12729 ac_cv_lib_dl_dlopen=no
12730 fi
12731 rm -f conftest.err conftest.$ac_objext \
12732       conftest$ac_exeext conftest.$ac_ext
12733 LIBS=$ac_check_lib_save_LIBS
12734 fi
12735 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12737 if test $ac_cv_lib_dl_dlopen = yes; then
12738   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12739 else
12740
12741     lt_cv_dlopen="dyld"
12742     lt_cv_dlopen_libs=
12743     lt_cv_dlopen_self=yes
12744
12745 fi
12746
12747    ;;
12748
12749   *)
12750     echo "$as_me:$LINENO: checking for shl_load" >&5
12751 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12752 if test "${ac_cv_func_shl_load+set}" = set; then
12753   echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755   cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h.  */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h.  */
12761 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12763 #define shl_load innocuous_shl_load
12764
12765 /* System header to define __stub macros and hopefully few prototypes,
12766     which can conflict with char shl_load (); below.
12767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12768     <limits.h> exists even on freestanding compilers.  */
12769
12770 #ifdef __STDC__
12771 # include <limits.h>
12772 #else
12773 # include <assert.h>
12774 #endif
12775
12776 #undef shl_load
12777
12778 /* Override any gcc2 internal prototype to avoid an error.  */
12779 #ifdef __cplusplus
12780 extern "C"
12781 {
12782 #endif
12783 /* We use char because int might match the return type of a gcc2
12784    builtin and then its argument prototype would still apply.  */
12785 char shl_load ();
12786 /* The GNU C library defines this for functions which it implements
12787     to always fail with ENOSYS.  Some functions are actually named
12788     something starting with __ and the normal name is an alias.  */
12789 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12790 choke me
12791 #else
12792 char (*f) () = shl_load;
12793 #endif
12794 #ifdef __cplusplus
12795 }
12796 #endif
12797
12798 int
12799 main ()
12800 {
12801 return f != shl_load;
12802   ;
12803   return 0;
12804 }
12805 _ACEOF
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12808   (eval $ac_link) 2>conftest.er1
12809   ac_status=$?
12810   grep -v '^ *+' conftest.er1 >conftest.err
12811   rm -f conftest.er1
12812   cat conftest.err >&5
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } &&
12815          { ac_try='test -z "$ac_cxx_werror_flag"
12816                          || test ! -s conftest.err'
12817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818   (eval $ac_try) 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; } &&
12822          { ac_try='test -s conftest$ac_exeext'
12823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824   (eval $ac_try) 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; }; then
12828   ac_cv_func_shl_load=yes
12829 else
12830   echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12832
12833 ac_cv_func_shl_load=no
12834 fi
12835 rm -f conftest.err conftest.$ac_objext \
12836       conftest$ac_exeext conftest.$ac_ext
12837 fi
12838 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12839 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12840 if test $ac_cv_func_shl_load = yes; then
12841   lt_cv_dlopen="shl_load"
12842 else
12843   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12844 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12845 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12846   echo $ECHO_N "(cached) $ECHO_C" >&6
12847 else
12848   ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-ldld  $LIBS"
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h.  */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h.  */
12856
12857 /* Override any gcc2 internal prototype to avoid an error.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 /* We use char because int might match the return type of a gcc2
12862    builtin and then its argument prototype would still apply.  */
12863 char shl_load ();
12864 int
12865 main ()
12866 {
12867 shl_load ();
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874   (eval $ac_link) 2>conftest.er1
12875   ac_status=$?
12876   grep -v '^ *+' conftest.er1 >conftest.err
12877   rm -f conftest.er1
12878   cat conftest.err >&5
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -z "$ac_cxx_werror_flag"
12882                          || test ! -s conftest.err'
12883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884   (eval $ac_try) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; } &&
12888          { ac_try='test -s conftest$ac_exeext'
12889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890   (eval $ac_try) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; }; then
12894   ac_cv_lib_dld_shl_load=yes
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 ac_cv_lib_dld_shl_load=no
12900 fi
12901 rm -f conftest.err conftest.$ac_objext \
12902       conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12904 fi
12905 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12906 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12907 if test $ac_cv_lib_dld_shl_load = yes; then
12908   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12909 else
12910   echo "$as_me:$LINENO: checking for dlopen" >&5
12911 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12912 if test "${ac_cv_func_dlopen+set}" = set; then
12913   echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915   cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h.  */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h.  */
12921 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12923 #define dlopen innocuous_dlopen
12924
12925 /* System header to define __stub macros and hopefully few prototypes,
12926     which can conflict with char dlopen (); below.
12927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12928     <limits.h> exists even on freestanding compilers.  */
12929
12930 #ifdef __STDC__
12931 # include <limits.h>
12932 #else
12933 # include <assert.h>
12934 #endif
12935
12936 #undef dlopen
12937
12938 /* Override any gcc2 internal prototype to avoid an error.  */
12939 #ifdef __cplusplus
12940 extern "C"
12941 {
12942 #endif
12943 /* We use char because int might match the return type of a gcc2
12944    builtin and then its argument prototype would still apply.  */
12945 char dlopen ();
12946 /* The GNU C library defines this for functions which it implements
12947     to always fail with ENOSYS.  Some functions are actually named
12948     something starting with __ and the normal name is an alias.  */
12949 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12950 choke me
12951 #else
12952 char (*f) () = dlopen;
12953 #endif
12954 #ifdef __cplusplus
12955 }
12956 #endif
12957
12958 int
12959 main ()
12960 {
12961 return f != dlopen;
12962   ;
12963   return 0;
12964 }
12965 _ACEOF
12966 rm -f conftest.$ac_objext conftest$ac_exeext
12967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12968   (eval $ac_link) 2>conftest.er1
12969   ac_status=$?
12970   grep -v '^ *+' conftest.er1 >conftest.err
12971   rm -f conftest.er1
12972   cat conftest.err >&5
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); } &&
12975          { ac_try='test -z "$ac_cxx_werror_flag"
12976                          || test ! -s conftest.err'
12977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978   (eval $ac_try) 2>&5
12979   ac_status=$?
12980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); }; } &&
12982          { ac_try='test -s conftest$ac_exeext'
12983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984   (eval $ac_try) 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); }; }; then
12988   ac_cv_func_dlopen=yes
12989 else
12990   echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12992
12993 ac_cv_func_dlopen=no
12994 fi
12995 rm -f conftest.err conftest.$ac_objext \
12996       conftest$ac_exeext conftest.$ac_ext
12997 fi
12998 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12999 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13000 if test $ac_cv_func_dlopen = yes; then
13001   lt_cv_dlopen="dlopen"
13002 else
13003   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13004 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13005 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13006   echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008   ac_check_lib_save_LIBS=$LIBS
13009 LIBS="-ldl  $LIBS"
13010 cat >conftest.$ac_ext <<_ACEOF
13011 /* confdefs.h.  */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h.  */
13016
13017 /* Override any gcc2 internal prototype to avoid an error.  */
13018 #ifdef __cplusplus
13019 extern "C"
13020 #endif
13021 /* We use char because int might match the return type of a gcc2
13022    builtin and then its argument prototype would still apply.  */
13023 char dlopen ();
13024 int
13025 main ()
13026 {
13027 dlopen ();
13028   ;
13029   return 0;
13030 }
13031 _ACEOF
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13034   (eval $ac_link) 2>conftest.er1
13035   ac_status=$?
13036   grep -v '^ *+' conftest.er1 >conftest.err
13037   rm -f conftest.er1
13038   cat conftest.err >&5
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); } &&
13041          { ac_try='test -z "$ac_cxx_werror_flag"
13042                          || test ! -s conftest.err'
13043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044   (eval $ac_try) 2>&5
13045   ac_status=$?
13046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); }; } &&
13048          { ac_try='test -s conftest$ac_exeext'
13049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050   (eval $ac_try) 2>&5
13051   ac_status=$?
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); }; }; then
13054   ac_cv_lib_dl_dlopen=yes
13055 else
13056   echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13058
13059 ac_cv_lib_dl_dlopen=no
13060 fi
13061 rm -f conftest.err conftest.$ac_objext \
13062       conftest$ac_exeext conftest.$ac_ext
13063 LIBS=$ac_check_lib_save_LIBS
13064 fi
13065 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13066 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13067 if test $ac_cv_lib_dl_dlopen = yes; then
13068   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13069 else
13070   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13071 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13072 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13073   echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075   ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-lsvld  $LIBS"
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h.  */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h.  */
13083
13084 /* Override any gcc2 internal prototype to avoid an error.  */
13085 #ifdef __cplusplus
13086 extern "C"
13087 #endif
13088 /* We use char because int might match the return type of a gcc2
13089    builtin and then its argument prototype would still apply.  */
13090 char dlopen ();
13091 int
13092 main ()
13093 {
13094 dlopen ();
13095   ;
13096   return 0;
13097 }
13098 _ACEOF
13099 rm -f conftest.$ac_objext conftest$ac_exeext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101   (eval $ac_link) 2>conftest.er1
13102   ac_status=$?
13103   grep -v '^ *+' conftest.er1 >conftest.err
13104   rm -f conftest.er1
13105   cat conftest.err >&5
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); } &&
13108          { ac_try='test -z "$ac_cxx_werror_flag"
13109                          || test ! -s conftest.err'
13110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111   (eval $ac_try) 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; } &&
13115          { ac_try='test -s conftest$ac_exeext'
13116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117   (eval $ac_try) 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); }; }; then
13121   ac_cv_lib_svld_dlopen=yes
13122 else
13123   echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_cv_lib_svld_dlopen=no
13127 fi
13128 rm -f conftest.err conftest.$ac_objext \
13129       conftest$ac_exeext conftest.$ac_ext
13130 LIBS=$ac_check_lib_save_LIBS
13131 fi
13132 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13133 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13134 if test $ac_cv_lib_svld_dlopen = yes; then
13135   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13136 else
13137   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13138 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13139 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13140   echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142   ac_check_lib_save_LIBS=$LIBS
13143 LIBS="-ldld  $LIBS"
13144 cat >conftest.$ac_ext <<_ACEOF
13145 /* confdefs.h.  */
13146 _ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h.  */
13150
13151 /* Override any gcc2 internal prototype to avoid an error.  */
13152 #ifdef __cplusplus
13153 extern "C"
13154 #endif
13155 /* We use char because int might match the return type of a gcc2
13156    builtin and then its argument prototype would still apply.  */
13157 char dld_link ();
13158 int
13159 main ()
13160 {
13161 dld_link ();
13162   ;
13163   return 0;
13164 }
13165 _ACEOF
13166 rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168   (eval $ac_link) 2>conftest.er1
13169   ac_status=$?
13170   grep -v '^ *+' conftest.er1 >conftest.err
13171   rm -f conftest.er1
13172   cat conftest.err >&5
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); } &&
13175          { ac_try='test -z "$ac_cxx_werror_flag"
13176                          || test ! -s conftest.err'
13177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178   (eval $ac_try) 2>&5
13179   ac_status=$?
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); }; } &&
13182          { ac_try='test -s conftest$ac_exeext'
13183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184   (eval $ac_try) 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); }; }; then
13188   ac_cv_lib_dld_dld_link=yes
13189 else
13190   echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 ac_cv_lib_dld_dld_link=no
13194 fi
13195 rm -f conftest.err conftest.$ac_objext \
13196       conftest$ac_exeext conftest.$ac_ext
13197 LIBS=$ac_check_lib_save_LIBS
13198 fi
13199 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13200 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13201 if test $ac_cv_lib_dld_dld_link = yes; then
13202   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13203 fi
13204
13205
13206 fi
13207
13208
13209 fi
13210
13211
13212 fi
13213
13214
13215 fi
13216
13217
13218 fi
13219
13220     ;;
13221   esac
13222
13223   if test "x$lt_cv_dlopen" != xno; then
13224     enable_dlopen=yes
13225   else
13226     enable_dlopen=no
13227   fi
13228
13229   case $lt_cv_dlopen in
13230   dlopen)
13231     save_CPPFLAGS="$CPPFLAGS"
13232     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13233
13234     save_LDFLAGS="$LDFLAGS"
13235     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13236
13237     save_LIBS="$LIBS"
13238     LIBS="$lt_cv_dlopen_libs $LIBS"
13239
13240     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13241 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13242 if test "${lt_cv_dlopen_self+set}" = set; then
13243   echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245           if test "$cross_compiling" = yes; then :
13246   lt_cv_dlopen_self=cross
13247 else
13248   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13249   lt_status=$lt_dlunknown
13250   cat > conftest.$ac_ext <<EOF
13251 #line 13251 "configure"
13252 #include "confdefs.h"
13253
13254 #if HAVE_DLFCN_H
13255 #include <dlfcn.h>
13256 #endif
13257
13258 #include <stdio.h>
13259
13260 #ifdef RTLD_GLOBAL
13261 #  define LT_DLGLOBAL           RTLD_GLOBAL
13262 #else
13263 #  ifdef DL_GLOBAL
13264 #    define LT_DLGLOBAL         DL_GLOBAL
13265 #  else
13266 #    define LT_DLGLOBAL         0
13267 #  endif
13268 #endif
13269
13270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13271    find out it does not work in some platform. */
13272 #ifndef LT_DLLAZY_OR_NOW
13273 #  ifdef RTLD_LAZY
13274 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13275 #  else
13276 #    ifdef DL_LAZY
13277 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13278 #    else
13279 #      ifdef RTLD_NOW
13280 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13281 #      else
13282 #        ifdef DL_NOW
13283 #          define LT_DLLAZY_OR_NOW      DL_NOW
13284 #        else
13285 #          define LT_DLLAZY_OR_NOW      0
13286 #        endif
13287 #      endif
13288 #    endif
13289 #  endif
13290 #endif
13291
13292 #ifdef __cplusplus
13293 extern "C" void exit (int);
13294 #endif
13295
13296 void fnord() { int i=42;}
13297 int main ()
13298 {
13299   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13300   int status = $lt_dlunknown;
13301
13302   if (self)
13303     {
13304       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13305       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13306       /* dlclose (self); */
13307     }
13308
13309     exit (status);
13310 }
13311 EOF
13312   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313   (eval $ac_link) 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13317     (./conftest; exit; ) 2>/dev/null
13318     lt_status=$?
13319     case x$lt_status in
13320       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13321       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13322       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13323     esac
13324   else :
13325     # compilation failed
13326     lt_cv_dlopen_self=no
13327   fi
13328 fi
13329 rm -fr conftest*
13330
13331
13332 fi
13333 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13334 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13335
13336     if test "x$lt_cv_dlopen_self" = xyes; then
13337       LDFLAGS="$LDFLAGS $link_static_flag"
13338       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13339 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13340 if test "${lt_cv_dlopen_self_static+set}" = set; then
13341   echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343           if test "$cross_compiling" = yes; then :
13344   lt_cv_dlopen_self_static=cross
13345 else
13346   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13347   lt_status=$lt_dlunknown
13348   cat > conftest.$ac_ext <<EOF
13349 #line 13349 "configure"
13350 #include "confdefs.h"
13351
13352 #if HAVE_DLFCN_H
13353 #include <dlfcn.h>
13354 #endif
13355
13356 #include <stdio.h>
13357
13358 #ifdef RTLD_GLOBAL
13359 #  define LT_DLGLOBAL           RTLD_GLOBAL
13360 #else
13361 #  ifdef DL_GLOBAL
13362 #    define LT_DLGLOBAL         DL_GLOBAL
13363 #  else
13364 #    define LT_DLGLOBAL         0
13365 #  endif
13366 #endif
13367
13368 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13369    find out it does not work in some platform. */
13370 #ifndef LT_DLLAZY_OR_NOW
13371 #  ifdef RTLD_LAZY
13372 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13373 #  else
13374 #    ifdef DL_LAZY
13375 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13376 #    else
13377 #      ifdef RTLD_NOW
13378 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13379 #      else
13380 #        ifdef DL_NOW
13381 #          define LT_DLLAZY_OR_NOW      DL_NOW
13382 #        else
13383 #          define LT_DLLAZY_OR_NOW      0
13384 #        endif
13385 #      endif
13386 #    endif
13387 #  endif
13388 #endif
13389
13390 #ifdef __cplusplus
13391 extern "C" void exit (int);
13392 #endif
13393
13394 void fnord() { int i=42;}
13395 int main ()
13396 {
13397   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13398   int status = $lt_dlunknown;
13399
13400   if (self)
13401     {
13402       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13403       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13404       /* dlclose (self); */
13405     }
13406
13407     exit (status);
13408 }
13409 EOF
13410   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13411   (eval $ac_link) 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13415     (./conftest; exit; ) 2>/dev/null
13416     lt_status=$?
13417     case x$lt_status in
13418       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13419       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13420       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13421     esac
13422   else :
13423     # compilation failed
13424     lt_cv_dlopen_self_static=no
13425   fi
13426 fi
13427 rm -fr conftest*
13428
13429
13430 fi
13431 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13432 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13433     fi
13434
13435     CPPFLAGS="$save_CPPFLAGS"
13436     LDFLAGS="$save_LDFLAGS"
13437     LIBS="$save_LIBS"
13438     ;;
13439   esac
13440
13441   case $lt_cv_dlopen_self in
13442   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13443   *) enable_dlopen_self=unknown ;;
13444   esac
13445
13446   case $lt_cv_dlopen_self_static in
13447   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13448   *) enable_dlopen_self_static=unknown ;;
13449   esac
13450 fi
13451
13452
13453 # The else clause should only fire when bootstrapping the
13454 # libtool distribution, otherwise you forgot to ship ltmain.sh
13455 # with your package, and you will get complaints that there are
13456 # no rules to generate ltmain.sh.
13457 if test -f "$ltmain"; then
13458   # See if we are running on zsh, and set the options which allow our commands through
13459   # without removal of \ escapes.
13460   if test -n "${ZSH_VERSION+set}" ; then
13461     setopt NO_GLOB_SUBST
13462   fi
13463   # Now quote all the things that may contain metacharacters while being
13464   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13465   # variables and quote the copies for generation of the libtool script.
13466   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13467     SED SHELL STRIP \
13468     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13469     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13470     deplibs_check_method reload_flag reload_cmds need_locks \
13471     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13472     lt_cv_sys_global_symbol_to_c_name_address \
13473     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13474     old_postinstall_cmds old_postuninstall_cmds \
13475     compiler_CXX \
13476     CC_CXX \
13477     LD_CXX \
13478     lt_prog_compiler_wl_CXX \
13479     lt_prog_compiler_pic_CXX \
13480     lt_prog_compiler_static_CXX \
13481     lt_prog_compiler_no_builtin_flag_CXX \
13482     export_dynamic_flag_spec_CXX \
13483     thread_safe_flag_spec_CXX \
13484     whole_archive_flag_spec_CXX \
13485     enable_shared_with_static_runtimes_CXX \
13486     old_archive_cmds_CXX \
13487     old_archive_from_new_cmds_CXX \
13488     predep_objects_CXX \
13489     postdep_objects_CXX \
13490     predeps_CXX \
13491     postdeps_CXX \
13492     compiler_lib_search_path_CXX \
13493     archive_cmds_CXX \
13494     archive_expsym_cmds_CXX \
13495     postinstall_cmds_CXX \
13496     postuninstall_cmds_CXX \
13497     old_archive_from_expsyms_cmds_CXX \
13498     allow_undefined_flag_CXX \
13499     no_undefined_flag_CXX \
13500     export_symbols_cmds_CXX \
13501     hardcode_libdir_flag_spec_CXX \
13502     hardcode_libdir_flag_spec_ld_CXX \
13503     hardcode_libdir_separator_CXX \
13504     hardcode_automatic_CXX \
13505     module_cmds_CXX \
13506     module_expsym_cmds_CXX \
13507     lt_cv_prog_compiler_c_o_CXX \
13508     exclude_expsyms_CXX \
13509     include_expsyms_CXX; do
13510
13511     case $var in
13512     old_archive_cmds_CXX | \
13513     old_archive_from_new_cmds_CXX | \
13514     archive_cmds_CXX | \
13515     archive_expsym_cmds_CXX | \
13516     module_cmds_CXX | \
13517     module_expsym_cmds_CXX | \
13518     old_archive_from_expsyms_cmds_CXX | \
13519     export_symbols_cmds_CXX | \
13520     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13521     postinstall_cmds | postuninstall_cmds | \
13522     old_postinstall_cmds | old_postuninstall_cmds | \
13523     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13524       # Double-quote double-evaled strings.
13525       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13526       ;;
13527     *)
13528       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13529       ;;
13530     esac
13531   done
13532
13533   case $lt_echo in
13534   *'\$0 --fallback-echo"')
13535     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13536     ;;
13537   esac
13538
13539 cfgfile="$ofile"
13540
13541   cat <<__EOF__ >> "$cfgfile"
13542 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13543
13544 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13545
13546 # Shell to use when invoking shell scripts.
13547 SHELL=$lt_SHELL
13548
13549 # Whether or not to build shared libraries.
13550 build_libtool_libs=$enable_shared
13551
13552 # Whether or not to build static libraries.
13553 build_old_libs=$enable_static
13554
13555 # Whether or not to add -lc for building shared libraries.
13556 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13557
13558 # Whether or not to disallow shared libs when runtime libs are static
13559 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13560
13561 # Whether or not to optimize for fast installation.
13562 fast_install=$enable_fast_install
13563
13564 # The host system.
13565 host_alias=$host_alias
13566 host=$host
13567
13568 # An echo program that does not interpret backslashes.
13569 echo=$lt_echo
13570
13571 # The archiver.
13572 AR=$lt_AR
13573 AR_FLAGS=$lt_AR_FLAGS
13574
13575 # A C compiler.
13576 LTCC=$lt_LTCC
13577
13578 # A language-specific compiler.
13579 CC=$lt_compiler_CXX
13580
13581 # Is the compiler the GNU C compiler?
13582 with_gcc=$GCC_CXX
13583
13584 # An ERE matcher.
13585 EGREP=$lt_EGREP
13586
13587 # The linker used to build libraries.
13588 LD=$lt_LD_CXX
13589
13590 # Whether we need hard or soft links.
13591 LN_S=$lt_LN_S
13592
13593 # A BSD-compatible nm program.
13594 NM=$lt_NM
13595
13596 # A symbol stripping program
13597 STRIP=$lt_STRIP
13598
13599 # Used to examine libraries when file_magic_cmd begins "file"
13600 MAGIC_CMD=$MAGIC_CMD
13601
13602 # Used on cygwin: DLL creation program.
13603 DLLTOOL="$DLLTOOL"
13604
13605 # Used on cygwin: object dumper.
13606 OBJDUMP="$OBJDUMP"
13607
13608 # Used on cygwin: assembler.
13609 AS="$AS"
13610
13611 # The name of the directory that contains temporary libtool files.
13612 objdir=$objdir
13613
13614 # How to create reloadable object files.
13615 reload_flag=$lt_reload_flag
13616 reload_cmds=$lt_reload_cmds
13617
13618 # How to pass a linker flag through the compiler.
13619 wl=$lt_lt_prog_compiler_wl_CXX
13620
13621 # Object file suffix (normally "o").
13622 objext="$ac_objext"
13623
13624 # Old archive suffix (normally "a").
13625 libext="$libext"
13626
13627 # Shared library suffix (normally ".so").
13628 shrext='$shrext'
13629
13630 # Executable file suffix (normally "").
13631 exeext="$exeext"
13632
13633 # Additional compiler flags for building library objects.
13634 pic_flag=$lt_lt_prog_compiler_pic_CXX
13635 pic_mode=$pic_mode
13636
13637 # What is the maximum length of a command?
13638 max_cmd_len=$lt_cv_sys_max_cmd_len
13639
13640 # Does compiler simultaneously support -c and -o options?
13641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13642
13643 # Must we lock files when doing compilation ?
13644 need_locks=$lt_need_locks
13645
13646 # Do we need the lib prefix for modules?
13647 need_lib_prefix=$need_lib_prefix
13648
13649 # Do we need a version for libraries?
13650 need_version=$need_version
13651
13652 # Whether dlopen is supported.
13653 dlopen_support=$enable_dlopen
13654
13655 # Whether dlopen of programs is supported.
13656 dlopen_self=$enable_dlopen_self
13657
13658 # Whether dlopen of statically linked programs is supported.
13659 dlopen_self_static=$enable_dlopen_self_static
13660
13661 # Compiler flag to prevent dynamic linking.
13662 link_static_flag=$lt_lt_prog_compiler_static_CXX
13663
13664 # Compiler flag to turn off builtin functions.
13665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13666
13667 # Compiler flag to allow reflexive dlopens.
13668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13669
13670 # Compiler flag to generate shared objects directly from archives.
13671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13672
13673 # Compiler flag to generate thread-safe objects.
13674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13675
13676 # Library versioning type.
13677 version_type=$version_type
13678
13679 # Format of library name prefix.
13680 libname_spec=$lt_libname_spec
13681
13682 # List of archive names.  First name is the real one, the rest are links.
13683 # The last name is the one that the linker finds with -lNAME.
13684 library_names_spec=$lt_library_names_spec
13685
13686 # The coded name of the library, if different from the real name.
13687 soname_spec=$lt_soname_spec
13688
13689 # Commands used to build and install an old-style archive.
13690 RANLIB=$lt_RANLIB
13691 old_archive_cmds=$lt_old_archive_cmds_CXX
13692 old_postinstall_cmds=$lt_old_postinstall_cmds
13693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13694
13695 # Create an old-style archive from a shared archive.
13696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13697
13698 # Create a temporary old-style archive to link instead of a shared archive.
13699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13700
13701 # Commands used to build and install a shared archive.
13702 archive_cmds=$lt_archive_cmds_CXX
13703 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13704 postinstall_cmds=$lt_postinstall_cmds
13705 postuninstall_cmds=$lt_postuninstall_cmds
13706
13707 # Commands used to build a loadable module (assumed same as above if empty)
13708 module_cmds=$lt_module_cmds_CXX
13709 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13710
13711 # Commands to strip libraries.
13712 old_striplib=$lt_old_striplib
13713 striplib=$lt_striplib
13714
13715 # Dependencies to place before the objects being linked to create a
13716 # shared library.
13717 predep_objects=$lt_predep_objects_CXX
13718
13719 # Dependencies to place after the objects being linked to create a
13720 # shared library.
13721 postdep_objects=$lt_postdep_objects_CXX
13722
13723 # Dependencies to place before the objects being linked to create a
13724 # shared library.
13725 predeps=$lt_predeps_CXX
13726
13727 # Dependencies to place after the objects being linked to create a
13728 # shared library.
13729 postdeps=$lt_postdeps_CXX
13730
13731 # The library search path used internally by the compiler when linking
13732 # a shared library.
13733 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13734
13735 # Method to check whether dependent libraries are shared objects.
13736 deplibs_check_method=$lt_deplibs_check_method
13737
13738 # Command to use when deplibs_check_method == file_magic.
13739 file_magic_cmd=$lt_file_magic_cmd
13740
13741 # Flag that allows shared libraries with undefined symbols to be built.
13742 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13743
13744 # Flag that forces no undefined symbols.
13745 no_undefined_flag=$lt_no_undefined_flag_CXX
13746
13747 # Commands used to finish a libtool library installation in a directory.
13748 finish_cmds=$lt_finish_cmds
13749
13750 # Same as above, but a single script fragment to be evaled but not shown.
13751 finish_eval=$lt_finish_eval
13752
13753 # Take the output of nm and produce a listing of raw symbols and C names.
13754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13755
13756 # Transform the output of nm in a proper C declaration
13757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13758
13759 # Transform the output of nm in a C name address pair
13760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13761
13762 # This is the shared library runtime path variable.
13763 runpath_var=$runpath_var
13764
13765 # This is the shared library path variable.
13766 shlibpath_var=$shlibpath_var
13767
13768 # Is shlibpath searched before the hard-coded library search path?
13769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13770
13771 # How to hardcode a shared library path into an executable.
13772 hardcode_action=$hardcode_action_CXX
13773
13774 # Whether we should hardcode library paths into libraries.
13775 hardcode_into_libs=$hardcode_into_libs
13776
13777 # Flag to hardcode \$libdir into a binary during linking.
13778 # This must work even if \$libdir does not exist.
13779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13780
13781 # If ld is used when linking, flag to hardcode \$libdir into
13782 # a binary during linking. This must work even if \$libdir does
13783 # not exist.
13784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13785
13786 # Whether we need a single -rpath flag with a separated argument.
13787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13788
13789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13790 # resulting binary.
13791 hardcode_direct=$hardcode_direct_CXX
13792
13793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13794 # resulting binary.
13795 hardcode_minus_L=$hardcode_minus_L_CXX
13796
13797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13798 # the resulting binary.
13799 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13800
13801 # Set to yes if building a shared library automatically hardcodes DIR into the library
13802 # and all subsequent libraries and executables linked against it.
13803 hardcode_automatic=$hardcode_automatic_CXX
13804
13805 # Variables whose values should be saved in libtool wrapper scripts and
13806 # restored at relink time.
13807 variables_saved_for_relink="$variables_saved_for_relink"
13808
13809 # Whether libtool must link a program against all its dependency libraries.
13810 link_all_deplibs=$link_all_deplibs_CXX
13811
13812 # Compile-time system search path for libraries
13813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13814
13815 # Run-time system search path for libraries
13816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13817
13818 # Fix the shell variable \$srcfile for the compiler.
13819 fix_srcfile_path="$fix_srcfile_path_CXX"
13820
13821 # Set to yes if exported symbols are required.
13822 always_export_symbols=$always_export_symbols_CXX
13823
13824 # The commands to list exported symbols.
13825 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13826
13827 # The commands to extract the exported symbol list from a shared archive.
13828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13829
13830 # Symbols that should not be listed in the preloaded symbols.
13831 exclude_expsyms=$lt_exclude_expsyms_CXX
13832
13833 # Symbols that must always be exported.
13834 include_expsyms=$lt_include_expsyms_CXX
13835
13836 # ### END LIBTOOL TAG CONFIG: $tagname
13837
13838 __EOF__
13839
13840
13841 else
13842   # If there is no Makefile yet, we rely on a make rule to execute
13843   # `config.status --recheck' to rerun these tests and create the
13844   # libtool script then.
13845   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13846   if test -f "$ltmain_in"; then
13847     test -f Makefile && make "$ltmain"
13848   fi
13849 fi
13850
13851
13852 ac_ext=c
13853 ac_cpp='$CPP $CPPFLAGS'
13854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13857
13858 CC=$lt_save_CC
13859 LDCXX=$LD
13860 LD=$lt_save_LD
13861 GCC=$lt_save_GCC
13862 with_gnu_ldcxx=$with_gnu_ld
13863 with_gnu_ld=$lt_save_with_gnu_ld
13864 lt_cv_path_LDCXX=$lt_cv_path_LD
13865 lt_cv_path_LD=$lt_save_path_LD
13866 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13867 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13868
13869         else
13870           tagname=""
13871         fi
13872         ;;
13873
13874       F77)
13875         if test -n "$F77" && test "X$F77" != "Xno"; then
13876
13877 ac_ext=f
13878 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13879 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13880 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13881
13882
13883 archive_cmds_need_lc_F77=no
13884 allow_undefined_flag_F77=
13885 always_export_symbols_F77=no
13886 archive_expsym_cmds_F77=
13887 export_dynamic_flag_spec_F77=
13888 hardcode_direct_F77=no
13889 hardcode_libdir_flag_spec_F77=
13890 hardcode_libdir_flag_spec_ld_F77=
13891 hardcode_libdir_separator_F77=
13892 hardcode_minus_L_F77=no
13893 hardcode_automatic_F77=no
13894 module_cmds_F77=
13895 module_expsym_cmds_F77=
13896 link_all_deplibs_F77=unknown
13897 old_archive_cmds_F77=$old_archive_cmds
13898 no_undefined_flag_F77=
13899 whole_archive_flag_spec_F77=
13900 enable_shared_with_static_runtimes_F77=no
13901
13902 # Source file extension for f77 test sources.
13903 ac_ext=f
13904
13905 # Object file extension for compiled f77 test sources.
13906 objext=o
13907 objext_F77=$objext
13908
13909 # Code to be used in simple compile tests
13910 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13911
13912 # Code to be used in simple link tests
13913 lt_simple_link_test_code="      program t\n      end\n"
13914
13915 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13916
13917 # If no C compiler was specified, use CC.
13918 LTCC=${LTCC-"$CC"}
13919
13920 # Allow CC to be a program name with arguments.
13921 compiler=$CC
13922
13923
13924 # Allow CC to be a program name with arguments.
13925 lt_save_CC="$CC"
13926 CC=${F77-"f77"}
13927 compiler=$CC
13928 compiler_F77=$CC
13929 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13930
13931 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13932 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13933 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13934 echo "${ECHO_T}$can_build_shared" >&6
13935
13936 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13937 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13938 test "$can_build_shared" = "no" && enable_shared=no
13939
13940 # On AIX, shared libraries and static libraries use the same namespace, and
13941 # are all built from PIC.
13942 case "$host_os" in
13943 aix3*)
13944   test "$enable_shared" = yes && enable_static=no
13945   if test -n "$RANLIB"; then
13946     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13947     postinstall_cmds='$RANLIB $lib'
13948   fi
13949   ;;
13950 aix4*)
13951   test "$enable_shared" = yes && enable_static=no
13952   ;;
13953 esac
13954 echo "$as_me:$LINENO: result: $enable_shared" >&5
13955 echo "${ECHO_T}$enable_shared" >&6
13956
13957 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13958 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13959 # Make sure either enable_shared or enable_static is yes.
13960 test "$enable_shared" = yes || enable_static=yes
13961 echo "$as_me:$LINENO: result: $enable_static" >&5
13962 echo "${ECHO_T}$enable_static" >&6
13963
13964 test "$ld_shlibs_F77" = no && can_build_shared=no
13965
13966 GCC_F77="$G77"
13967 LD_F77="$LD"
13968
13969 lt_prog_compiler_wl_F77=
13970 lt_prog_compiler_pic_F77=
13971 lt_prog_compiler_static_F77=
13972
13973 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13975
13976   if test "$GCC" = yes; then
13977     lt_prog_compiler_wl_F77='-Wl,'
13978     lt_prog_compiler_static_F77='-static'
13979
13980     case $host_os in
13981       aix*)
13982       # All AIX code is PIC.
13983       if test "$host_cpu" = ia64; then
13984         # AIX 5 now supports IA64 processor
13985         lt_prog_compiler_static_F77='-Bstatic'
13986       fi
13987       ;;
13988
13989     amigaos*)
13990       # FIXME: we need at least 68020 code to build shared libraries, but
13991       # adding the `-m68020' flag to GCC prevents building anything better,
13992       # like `-m68040'.
13993       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13994       ;;
13995
13996     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13997       # PIC is the default for these OSes.
13998       ;;
13999
14000     mingw* | pw32* | os2*)
14001       # This hack is so that the source file can tell whether it is being
14002       # built for inclusion in a dll (and should export symbols for example).
14003       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14004       ;;
14005
14006     darwin* | rhapsody*)
14007       # PIC is the default on this platform
14008       # Common symbols not allowed in MH_DYLIB files
14009       lt_prog_compiler_pic_F77='-fno-common'
14010       ;;
14011
14012     msdosdjgpp*)
14013       # Just because we use GCC doesn't mean we suddenly get shared libraries
14014       # on systems that don't support them.
14015       lt_prog_compiler_can_build_shared_F77=no
14016       enable_shared=no
14017       ;;
14018
14019     sysv4*MP*)
14020       if test -d /usr/nec; then
14021         lt_prog_compiler_pic_F77=-Kconform_pic
14022       fi
14023       ;;
14024
14025     hpux*)
14026       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14027       # not for PA HP-UX.
14028       case "$host_cpu" in
14029       hppa*64*|ia64*)
14030         # +Z the default
14031         ;;
14032       *)
14033         lt_prog_compiler_pic_F77='-fPIC'
14034         ;;
14035       esac
14036       ;;
14037
14038     *)
14039       lt_prog_compiler_pic_F77='-fPIC'
14040       ;;
14041     esac
14042   else
14043     # PORTME Check for flag to pass linker flags through the system compiler.
14044     case $host_os in
14045     aix*)
14046       lt_prog_compiler_wl_F77='-Wl,'
14047       if test "$host_cpu" = ia64; then
14048         # AIX 5 now supports IA64 processor
14049         lt_prog_compiler_static_F77='-Bstatic'
14050       else
14051         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14052       fi
14053       ;;
14054
14055     mingw* | pw32* | os2*)
14056       # This hack is so that the source file can tell whether it is being
14057       # built for inclusion in a dll (and should export symbols for example).
14058       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14059       ;;
14060
14061     hpux9* | hpux10* | hpux11*)
14062       lt_prog_compiler_wl_F77='-Wl,'
14063       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14064       # not for PA HP-UX.
14065       case "$host_cpu" in
14066       hppa*64*|ia64*)
14067         # +Z the default
14068         ;;
14069       *)
14070         lt_prog_compiler_pic_F77='+Z'
14071         ;;
14072       esac
14073       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14074       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14075       ;;
14076
14077     irix5* | irix6* | nonstopux*)
14078       lt_prog_compiler_wl_F77='-Wl,'
14079       # PIC (with -KPIC) is the default.
14080       lt_prog_compiler_static_F77='-non_shared'
14081       ;;
14082
14083     newsos6)
14084       lt_prog_compiler_pic_F77='-KPIC'
14085       lt_prog_compiler_static_F77='-Bstatic'
14086       ;;
14087
14088     linux*)
14089       case $CC in
14090       icc* | ecc*)
14091         lt_prog_compiler_wl_F77='-Wl,'
14092         lt_prog_compiler_pic_F77='-KPIC'
14093         lt_prog_compiler_static_F77='-static'
14094         ;;
14095       ccc*)
14096         lt_prog_compiler_wl_F77='-Wl,'
14097         # All Alpha code is PIC.
14098         lt_prog_compiler_static_F77='-non_shared'
14099         ;;
14100       esac
14101       ;;
14102
14103     osf3* | osf4* | osf5*)
14104       lt_prog_compiler_wl_F77='-Wl,'
14105       # All OSF/1 code is PIC.
14106       lt_prog_compiler_static_F77='-non_shared'
14107       ;;
14108
14109     sco3.2v5*)
14110       lt_prog_compiler_pic_F77='-Kpic'
14111       lt_prog_compiler_static_F77='-dn'
14112       ;;
14113
14114     solaris*)
14115       lt_prog_compiler_wl_F77='-Wl,'
14116       lt_prog_compiler_pic_F77='-KPIC'
14117       lt_prog_compiler_static_F77='-Bstatic'
14118       ;;
14119
14120     sunos4*)
14121       lt_prog_compiler_wl_F77='-Qoption ld '
14122       lt_prog_compiler_pic_F77='-PIC'
14123       lt_prog_compiler_static_F77='-Bstatic'
14124       ;;
14125
14126     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14127       lt_prog_compiler_wl_F77='-Wl,'
14128       lt_prog_compiler_pic_F77='-KPIC'
14129       lt_prog_compiler_static_F77='-Bstatic'
14130       ;;
14131
14132     sysv4*MP*)
14133       if test -d /usr/nec ;then
14134         lt_prog_compiler_pic_F77='-Kconform_pic'
14135         lt_prog_compiler_static_F77='-Bstatic'
14136       fi
14137       ;;
14138
14139     uts4*)
14140       lt_prog_compiler_pic_F77='-pic'
14141       lt_prog_compiler_static_F77='-Bstatic'
14142       ;;
14143
14144     *)
14145       lt_prog_compiler_can_build_shared_F77=no
14146       ;;
14147     esac
14148   fi
14149
14150 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14151 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14152
14153 #
14154 # Check to make sure the PIC flag actually works.
14155 #
14156 if test -n "$lt_prog_compiler_pic_F77"; then
14157
14158 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14159 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14160 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14161   echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163   lt_prog_compiler_pic_works_F77=no
14164   ac_outfile=conftest.$ac_objext
14165    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14166    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14167    # Insert the option either (1) after the last *FLAGS variable, or
14168    # (2) before a word containing "conftest.", or (3) at the end.
14169    # Note that $ac_compile itself does not contain backslashes and begins
14170    # with a dollar sign (not a hyphen), so the echo should work correctly.
14171    # The option is referenced via a variable to avoid confusing sed.
14172    lt_compile=`echo "$ac_compile" | $SED \
14173    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14174    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14175    -e 's:$: $lt_compiler_flag:'`
14176    (eval echo "\"\$as_me:14176: $lt_compile\"" >&5)
14177    (eval "$lt_compile" 2>conftest.err)
14178    ac_status=$?
14179    cat conftest.err >&5
14180    echo "$as_me:14180: \$? = $ac_status" >&5
14181    if (exit $ac_status) && test -s "$ac_outfile"; then
14182      # The compiler can only warn and ignore the option if not recognized
14183      # So say no if there are warnings
14184      if test ! -s conftest.err; then
14185        lt_prog_compiler_pic_works_F77=yes
14186      fi
14187    fi
14188    $rm conftest*
14189
14190 fi
14191 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14192 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14193
14194 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14195     case $lt_prog_compiler_pic_F77 in
14196      "" | " "*) ;;
14197      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14198      esac
14199 else
14200     lt_prog_compiler_pic_F77=
14201      lt_prog_compiler_can_build_shared_F77=no
14202 fi
14203
14204 fi
14205 case "$host_os" in
14206   # For platforms which do not support PIC, -DPIC is meaningless:
14207   *djgpp*)
14208     lt_prog_compiler_pic_F77=
14209     ;;
14210   *)
14211     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14212     ;;
14213 esac
14214
14215 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14216 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14217 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14218   echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220   lt_cv_prog_compiler_c_o_F77=no
14221    $rm -r conftest 2>/dev/null
14222    mkdir conftest
14223    cd conftest
14224    mkdir out
14225    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14226
14227    lt_compiler_flag="-o out/conftest2.$ac_objext"
14228    # Insert the option either (1) after the last *FLAGS variable, or
14229    # (2) before a word containing "conftest.", or (3) at the end.
14230    # Note that $ac_compile itself does not contain backslashes and begins
14231    # with a dollar sign (not a hyphen), so the echo should work correctly.
14232    lt_compile=`echo "$ac_compile" | $SED \
14233    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14234    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14235    -e 's:$: $lt_compiler_flag:'`
14236    (eval echo "\"\$as_me:14236: $lt_compile\"" >&5)
14237    (eval "$lt_compile" 2>out/conftest.err)
14238    ac_status=$?
14239    cat out/conftest.err >&5
14240    echo "$as_me:14240: \$? = $ac_status" >&5
14241    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14242    then
14243      # The compiler can only warn and ignore the option if not recognized
14244      # So say no if there are warnings
14245      if test ! -s out/conftest.err; then
14246        lt_cv_prog_compiler_c_o_F77=yes
14247      fi
14248    fi
14249    chmod u+w .
14250    $rm conftest*
14251    # SGI C++ compiler will create directory out/ii_files/ for
14252    # template instantiation
14253    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14254    $rm out/* && rmdir out
14255    cd ..
14256    rmdir conftest
14257    $rm conftest*
14258
14259 fi
14260 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14261 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14262
14263
14264 hard_links="nottested"
14265 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14266   # do not overwrite the value of need_locks provided by the user
14267   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14268 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14269   hard_links=yes
14270   $rm conftest*
14271   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14272   touch conftest.a
14273   ln conftest.a conftest.b 2>&5 || hard_links=no
14274   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14275   echo "$as_me:$LINENO: result: $hard_links" >&5
14276 echo "${ECHO_T}$hard_links" >&6
14277   if test "$hard_links" = no; then
14278     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14279 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14280     need_locks=warn
14281   fi
14282 else
14283   need_locks=no
14284 fi
14285
14286 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14287 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14288
14289   runpath_var=
14290   allow_undefined_flag_F77=
14291   enable_shared_with_static_runtimes_F77=no
14292   archive_cmds_F77=
14293   archive_expsym_cmds_F77=
14294   old_archive_From_new_cmds_F77=
14295   old_archive_from_expsyms_cmds_F77=
14296   export_dynamic_flag_spec_F77=
14297   whole_archive_flag_spec_F77=
14298   thread_safe_flag_spec_F77=
14299   hardcode_libdir_flag_spec_F77=
14300   hardcode_libdir_flag_spec_ld_F77=
14301   hardcode_libdir_separator_F77=
14302   hardcode_direct_F77=no
14303   hardcode_minus_L_F77=no
14304   hardcode_shlibpath_var_F77=unsupported
14305   link_all_deplibs_F77=unknown
14306   hardcode_automatic_F77=no
14307   module_cmds_F77=
14308   module_expsym_cmds_F77=
14309   always_export_symbols_F77=no
14310   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14311   # include_expsyms should be a list of space-separated symbols to be *always*
14312   # included in the symbol list
14313   include_expsyms_F77=
14314   # exclude_expsyms can be an extended regexp of symbols to exclude
14315   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14316   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14317   # as well as any symbol that contains `d'.
14318   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14319   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14320   # platforms (ab)use it in PIC code, but their linkers get confused if
14321   # the symbol is explicitly referenced.  Since portable code cannot
14322   # rely on this symbol name, it's probably fine to never include it in
14323   # preloaded symbol tables.
14324   extract_expsyms_cmds=
14325
14326   case $host_os in
14327   cygwin* | mingw* | pw32*)
14328     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14329     # When not using gcc, we currently assume that we are using
14330     # Microsoft Visual C++.
14331     if test "$GCC" != yes; then
14332       with_gnu_ld=no
14333     fi
14334     ;;
14335   openbsd*)
14336     with_gnu_ld=no
14337     ;;
14338   esac
14339
14340   ld_shlibs_F77=yes
14341   if test "$with_gnu_ld" = yes; then
14342     # If archive_cmds runs LD, not CC, wlarc should be empty
14343     wlarc='${wl}'
14344
14345     # See if GNU ld supports shared libraries.
14346     case $host_os in
14347     aix3* | aix4* | aix5*)
14348       # On AIX/PPC, the GNU linker is very broken
14349       if test "$host_cpu" != ia64; then
14350         ld_shlibs_F77=no
14351         cat <<EOF 1>&2
14352
14353 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14354 *** to be unable to reliably create shared libraries on AIX.
14355 *** Therefore, libtool is disabling shared libraries support.  If you
14356 *** really care for shared libraries, you may want to modify your PATH
14357 *** so that a non-GNU linker is found, and then restart.
14358
14359 EOF
14360       fi
14361       ;;
14362
14363     amigaos*)
14364       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)'
14365       hardcode_libdir_flag_spec_F77='-L$libdir'
14366       hardcode_minus_L_F77=yes
14367
14368       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14369       # that the semantics of dynamic libraries on AmigaOS, at least up
14370       # to version 4, is to share data among multiple programs linked
14371       # with the same dynamic library.  Since this doesn't match the
14372       # behavior of shared libraries on other platforms, we can't use
14373       # them.
14374       ld_shlibs_F77=no
14375       ;;
14376
14377     beos*)
14378       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14379         allow_undefined_flag_F77=unsupported
14380         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14381         # support --undefined.  This deserves some investigation.  FIXME
14382         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14383       else
14384         ld_shlibs_F77=no
14385       fi
14386       ;;
14387
14388     cygwin* | mingw* | pw32*)
14389       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14390       # as there is no search path for DLLs.
14391       hardcode_libdir_flag_spec_F77='-L$libdir'
14392       allow_undefined_flag_F77=unsupported
14393       always_export_symbols_F77=no
14394       enable_shared_with_static_runtimes_F77=yes
14395       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14396
14397       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14398         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14399         # If the export-symbols file already is a .def file (1st line
14400         # is EXPORTS), use it as is; otherwise, prepend...
14401         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14402           cp $export_symbols $output_objdir/$soname.def;
14403         else
14404           echo EXPORTS > $output_objdir/$soname.def;
14405           cat $export_symbols >> $output_objdir/$soname.def;
14406         fi~
14407         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14408       else
14409         ld_shlibs=no
14410       fi
14411       ;;
14412
14413     netbsd*)
14414       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14415         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14416         wlarc=
14417       else
14418         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14419         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14420       fi
14421       ;;
14422
14423     solaris* | sysv5*)
14424       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14425         ld_shlibs_F77=no
14426         cat <<EOF 1>&2
14427
14428 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14429 *** create shared libraries on Solaris systems.  Therefore, libtool
14430 *** is disabling shared libraries support.  We urge you to upgrade GNU
14431 *** binutils to release 2.9.1 or newer.  Another option is to modify
14432 *** your PATH or compiler configuration so that the native linker is
14433 *** used, and then restart.
14434
14435 EOF
14436       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14437         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14438         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14439       else
14440         ld_shlibs_F77=no
14441       fi
14442       ;;
14443
14444     sunos4*)
14445       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14446       wlarc=
14447       hardcode_direct_F77=yes
14448       hardcode_shlibpath_var_F77=no
14449       ;;
14450
14451   linux*)
14452     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14453         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14454         archive_cmds_F77="$tmp_archive_cmds"
14455       supports_anon_versioning=no
14456       case `$LD -v 2>/dev/null` in
14457         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14458         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14459         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14460         *\ 2.11.*) ;; # other 2.11 versions
14461         *) supports_anon_versioning=yes ;;
14462       esac
14463       if test $supports_anon_versioning = yes; then
14464         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14466 $echo "local: *; };" >> $output_objdir/$libname.ver~
14467         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14468       else
14469         archive_expsym_cmds_F77="$tmp_archive_cmds"
14470       fi
14471     else
14472       ld_shlibs_F77=no
14473     fi
14474     ;;
14475
14476     *)
14477       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14478         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14479         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14480       else
14481         ld_shlibs_F77=no
14482       fi
14483       ;;
14484     esac
14485
14486     if test "$ld_shlibs_F77" = yes; then
14487       runpath_var=LD_RUN_PATH
14488       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14489       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14490       # ancient GNU ld didn't support --whole-archive et. al.
14491       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14492         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14493       else
14494         whole_archive_flag_spec_F77=
14495       fi
14496     fi
14497   else
14498     # PORTME fill in a description of your system's linker (not GNU ld)
14499     case $host_os in
14500     aix3*)
14501       allow_undefined_flag_F77=unsupported
14502       always_export_symbols_F77=yes
14503       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'
14504       # Note: this linker hardcodes the directories in LIBPATH if there
14505       # are no directories specified by -L.
14506       hardcode_minus_L_F77=yes
14507       if test "$GCC" = yes && test -z "$link_static_flag"; then
14508         # Neither direct hardcoding nor static linking is supported with a
14509         # broken collect2.
14510         hardcode_direct_F77=unsupported
14511       fi
14512       ;;
14513
14514     aix4* | aix5*)
14515       if test "$host_cpu" = ia64; then
14516         # On IA64, the linker does run time linking by default, so we don't
14517         # have to do anything special.
14518         aix_use_runtimelinking=no
14519         exp_sym_flag='-Bexport'
14520         no_entry_flag=""
14521       else
14522         # If we're using GNU nm, then we don't want the "-C" option.
14523         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14524         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14525           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'
14526         else
14527           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'
14528         fi
14529         aix_use_runtimelinking=no
14530
14531         # Test if we are trying to use run time linking or normal
14532         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14533         # need to do runtime linking.
14534         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14535           for ld_flag in $LDFLAGS; do
14536           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14537             aix_use_runtimelinking=yes
14538             break
14539           fi
14540           done
14541         esac
14542
14543         exp_sym_flag='-bexport'
14544         no_entry_flag='-bnoentry'
14545       fi
14546
14547       # When large executables or shared objects are built, AIX ld can
14548       # have problems creating the table of contents.  If linking a library
14549       # or program results in "error TOC overflow" add -mminimal-toc to
14550       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14551       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14552
14553       archive_cmds_F77=''
14554       hardcode_direct_F77=yes
14555       hardcode_libdir_separator_F77=':'
14556       link_all_deplibs_F77=yes
14557
14558       if test "$GCC" = yes; then
14559         case $host_os in aix4.012|aix4.012.*)
14560         # We only want to do this on AIX 4.2 and lower, the check
14561         # below for broken collect2 doesn't work under 4.3+
14562           collect2name=`${CC} -print-prog-name=collect2`
14563           if test -f "$collect2name" && \
14564            strings "$collect2name" | grep resolve_lib_name >/dev/null
14565           then
14566           # We have reworked collect2
14567           hardcode_direct_F77=yes
14568           else
14569           # We have old collect2
14570           hardcode_direct_F77=unsupported
14571           # It fails to find uninstalled libraries when the uninstalled
14572           # path is not listed in the libpath.  Setting hardcode_minus_L
14573           # to unsupported forces relinking
14574           hardcode_minus_L_F77=yes
14575           hardcode_libdir_flag_spec_F77='-L$libdir'
14576           hardcode_libdir_separator_F77=
14577           fi
14578         esac
14579         shared_flag='-shared'
14580       else
14581         # not using gcc
14582         if test "$host_cpu" = ia64; then
14583         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14584         # chokes on -Wl,-G. The following line is correct:
14585           shared_flag='-G'
14586         else
14587         if test "$aix_use_runtimelinking" = yes; then
14588             shared_flag='${wl}-G'
14589           else
14590             shared_flag='${wl}-bM:SRE'
14591         fi
14592         fi
14593       fi
14594
14595       # It seems that -bexpall does not export symbols beginning with
14596       # underscore (_), so it is better to generate a list of symbols to export.
14597       always_export_symbols_F77=yes
14598       if test "$aix_use_runtimelinking" = yes; then
14599         # Warning - without using the other runtime loading flags (-brtl),
14600         # -berok will link without error, but may produce a broken library.
14601         allow_undefined_flag_F77='-berok'
14602        # Determine the default libpath from the value encoded in an empty executable.
14603        cat >conftest.$ac_ext <<_ACEOF
14604       program main
14605
14606       end
14607 _ACEOF
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14610   (eval $ac_link) 2>conftest.er1
14611   ac_status=$?
14612   grep -v '^ *+' conftest.er1 >conftest.err
14613   rm -f conftest.er1
14614   cat conftest.err >&5
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } &&
14617          { ac_try='test -z "$ac_f77_werror_flag"
14618                          || test ! -s conftest.err'
14619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620   (eval $ac_try) 2>&5
14621   ac_status=$?
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); }; } &&
14624          { ac_try='test -s conftest$ac_exeext'
14625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626   (eval $ac_try) 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); }; }; then
14630
14631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14632 }'`
14633 # Check for a 64-bit object if we didn't find anything.
14634 if 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; }
14635 }'`; fi
14636 else
14637   echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14639
14640 fi
14641 rm -f conftest.err conftest.$ac_objext \
14642       conftest$ac_exeext conftest.$ac_ext
14643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14644
14645        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14646         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"
14647        else
14648         if test "$host_cpu" = ia64; then
14649           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14650           allow_undefined_flag_F77="-z nodefs"
14651           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"
14652         else
14653          # Determine the default libpath from the value encoded in an empty executable.
14654          cat >conftest.$ac_ext <<_ACEOF
14655       program main
14656
14657       end
14658 _ACEOF
14659 rm -f conftest.$ac_objext conftest$ac_exeext
14660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14661   (eval $ac_link) 2>conftest.er1
14662   ac_status=$?
14663   grep -v '^ *+' conftest.er1 >conftest.err
14664   rm -f conftest.er1
14665   cat conftest.err >&5
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); } &&
14668          { ac_try='test -z "$ac_f77_werror_flag"
14669                          || test ! -s conftest.err'
14670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671   (eval $ac_try) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; } &&
14675          { ac_try='test -s conftest$ac_exeext'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; }; then
14681
14682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14683 }'`
14684 # Check for a 64-bit object if we didn't find anything.
14685 if 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; }
14686 }'`; fi
14687 else
14688   echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14690
14691 fi
14692 rm -f conftest.err conftest.$ac_objext \
14693       conftest$ac_exeext conftest.$ac_ext
14694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14695
14696          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14697           # Warning - without using the other run time loading flags,
14698           # -berok will link without error, but may produce a broken library.
14699           no_undefined_flag_F77=' ${wl}-bernotok'
14700           allow_undefined_flag_F77=' ${wl}-berok'
14701           # -bexpall does not export symbols beginning with underscore (_)
14702           always_export_symbols_F77=yes
14703           # Exported symbols can be pulled into shared objects from archives
14704           whole_archive_flag_spec_F77=' '
14705           archive_cmds_need_lc_F77=yes
14706           # This is similar to how AIX traditionally builds it's shared libraries.
14707           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'
14708         fi
14709       fi
14710       ;;
14711
14712     amigaos*)
14713       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)'
14714       hardcode_libdir_flag_spec_F77='-L$libdir'
14715       hardcode_minus_L_F77=yes
14716       # see comment about different semantics on the GNU ld section
14717       ld_shlibs_F77=no
14718       ;;
14719
14720     bsdi4*)
14721       export_dynamic_flag_spec_F77=-rdynamic
14722       ;;
14723
14724     cygwin* | mingw* | pw32*)
14725       # When not using gcc, we currently assume that we are using
14726       # Microsoft Visual C++.
14727       # hardcode_libdir_flag_spec is actually meaningless, as there is
14728       # no search path for DLLs.
14729       hardcode_libdir_flag_spec_F77=' '
14730       allow_undefined_flag_F77=unsupported
14731       # Tell ltmain to make .lib files, not .a files.
14732       libext=lib
14733       # Tell ltmain to make .dll files, not .so files.
14734       shrext=".dll"
14735       # FIXME: Setting linknames here is a bad hack.
14736       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14737       # The linker will automatically build a .lib file if we build a DLL.
14738       old_archive_From_new_cmds_F77='true'
14739       # FIXME: Should let the user specify the lib program.
14740       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14741       fix_srcfile_path='`cygpath -w "$srcfile"`'
14742       enable_shared_with_static_runtimes_F77=yes
14743       ;;
14744
14745     darwin* | rhapsody*)
14746     if test "$GXX" = yes ; then
14747       archive_cmds_need_lc_F77=no
14748       case "$host_os" in
14749       rhapsody* | darwin1.[012])
14750         allow_undefined_flag_F77='-undefined suppress'
14751         ;;
14752       *) # Darwin 1.3 on
14753       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14754         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14755       else
14756         case ${MACOSX_DEPLOYMENT_TARGET} in
14757           10.[012])
14758             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14759             ;;
14760           10.*)
14761             allow_undefined_flag_F77='-undefined dynamic_lookup'
14762             ;;
14763         esac
14764       fi
14765         ;;
14766       esac
14767         lt_int_apple_cc_single_mod=no
14768         output_verbose_link_cmd='echo'
14769         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14770           lt_int_apple_cc_single_mod=yes
14771         fi
14772         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14773           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14774         else
14775         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'
14776       fi
14777       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14778       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14779         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14780           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}'
14781         else
14782           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}'
14783         fi
14784           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}'
14785       hardcode_direct_F77=no
14786       hardcode_automatic_F77=yes
14787       hardcode_shlibpath_var_F77=unsupported
14788       whole_archive_flag_spec_F77='-all_load $convenience'
14789       link_all_deplibs_F77=yes
14790     else
14791       ld_shlibs_F77=no
14792     fi
14793       ;;
14794
14795     dgux*)
14796       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14797       hardcode_libdir_flag_spec_F77='-L$libdir'
14798       hardcode_shlibpath_var_F77=no
14799       ;;
14800
14801     freebsd1*)
14802       ld_shlibs_F77=no
14803       ;;
14804
14805     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14806     # support.  Future versions do this automatically, but an explicit c++rt0.o
14807     # does not break anything, and helps significantly (at the cost of a little
14808     # extra space).
14809     freebsd2.2*)
14810       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14811       hardcode_libdir_flag_spec_F77='-R$libdir'
14812       hardcode_direct_F77=yes
14813       hardcode_shlibpath_var_F77=no
14814       ;;
14815
14816     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14817     freebsd2*)
14818       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14819       hardcode_direct_F77=yes
14820       hardcode_minus_L_F77=yes
14821       hardcode_shlibpath_var_F77=no
14822       ;;
14823
14824     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14825     freebsd* | kfreebsd*-gnu)
14826       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14827       hardcode_libdir_flag_spec_F77='-R$libdir'
14828       hardcode_direct_F77=yes
14829       hardcode_shlibpath_var_F77=no
14830       ;;
14831
14832     hpux9*)
14833       if test "$GCC" = yes; then
14834         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'
14835       else
14836         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'
14837       fi
14838       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14839       hardcode_libdir_separator_F77=:
14840       hardcode_direct_F77=yes
14841
14842       # hardcode_minus_L: Not really in the search PATH,
14843       # but as the default location of the library.
14844       hardcode_minus_L_F77=yes
14845       export_dynamic_flag_spec_F77='${wl}-E'
14846       ;;
14847
14848     hpux10* | hpux11*)
14849       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14850         case "$host_cpu" in
14851         hppa*64*|ia64*)
14852           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14853           ;;
14854         *)
14855           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14856           ;;
14857         esac
14858       else
14859         case "$host_cpu" in
14860         hppa*64*|ia64*)
14861           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14862           ;;
14863         *)
14864           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14865           ;;
14866         esac
14867       fi
14868       if test "$with_gnu_ld" = no; then
14869         case "$host_cpu" in
14870         hppa*64*)
14871           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14872           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14873           hardcode_libdir_separator_F77=:
14874           hardcode_direct_F77=no
14875           hardcode_shlibpath_var_F77=no
14876           ;;
14877         ia64*)
14878           hardcode_libdir_flag_spec_F77='-L$libdir'
14879           hardcode_direct_F77=no
14880           hardcode_shlibpath_var_F77=no
14881
14882           # hardcode_minus_L: Not really in the search PATH,
14883           # but as the default location of the library.
14884           hardcode_minus_L_F77=yes
14885           ;;
14886         *)
14887           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14888           hardcode_libdir_separator_F77=:
14889           hardcode_direct_F77=yes
14890           export_dynamic_flag_spec_F77='${wl}-E'
14891
14892           # hardcode_minus_L: Not really in the search PATH,
14893           # but as the default location of the library.
14894           hardcode_minus_L_F77=yes
14895           ;;
14896         esac
14897       fi
14898       ;;
14899
14900     irix5* | irix6* | nonstopux*)
14901       if test "$GCC" = yes; then
14902         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'
14903       else
14904         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'
14905         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14906       fi
14907       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14908       hardcode_libdir_separator_F77=:
14909       link_all_deplibs_F77=yes
14910       ;;
14911
14912     netbsd*)
14913       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14914         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14915       else
14916         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14917       fi
14918       hardcode_libdir_flag_spec_F77='-R$libdir'
14919       hardcode_direct_F77=yes
14920       hardcode_shlibpath_var_F77=no
14921       ;;
14922
14923     newsos6)
14924       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925       hardcode_direct_F77=yes
14926       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14927       hardcode_libdir_separator_F77=:
14928       hardcode_shlibpath_var_F77=no
14929       ;;
14930
14931     openbsd*)
14932       hardcode_direct_F77=yes
14933       hardcode_shlibpath_var_F77=no
14934       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14935         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14936         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14937         export_dynamic_flag_spec_F77='${wl}-E'
14938       else
14939        case $host_os in
14940          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14941            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942            hardcode_libdir_flag_spec_F77='-R$libdir'
14943            ;;
14944          *)
14945            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14946            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14947            ;;
14948        esac
14949       fi
14950       ;;
14951
14952     os2*)
14953       hardcode_libdir_flag_spec_F77='-L$libdir'
14954       hardcode_minus_L_F77=yes
14955       allow_undefined_flag_F77=unsupported
14956       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'
14957       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14958       ;;
14959
14960     osf3*)
14961       if test "$GCC" = yes; then
14962         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14963         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'
14964       else
14965         allow_undefined_flag_F77=' -expect_unresolved \*'
14966         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'
14967       fi
14968       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14969       hardcode_libdir_separator_F77=:
14970       ;;
14971
14972     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14973       if test "$GCC" = yes; then
14974         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14975         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'
14976         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14977       else
14978         allow_undefined_flag_F77=' -expect_unresolved \*'
14979         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'
14980         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~
14981         $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'
14982
14983         # Both c and cxx compiler support -rpath directly
14984         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14985       fi
14986       hardcode_libdir_separator_F77=:
14987       ;;
14988
14989     sco3.2v5*)
14990       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991       hardcode_shlibpath_var_F77=no
14992       export_dynamic_flag_spec_F77='${wl}-Bexport'
14993       runpath_var=LD_RUN_PATH
14994       hardcode_runpath_var=yes
14995       ;;
14996
14997     solaris*)
14998       no_undefined_flag_F77=' -z text'
14999       if test "$GCC" = yes; then
15000         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15001         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15002           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15003       else
15004         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15006         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15007       fi
15008       hardcode_libdir_flag_spec_F77='-R$libdir'
15009       hardcode_shlibpath_var_F77=no
15010       case $host_os in
15011       solaris2.[0-5] | solaris2.[0-5].*) ;;
15012       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15013         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15014       esac
15015       link_all_deplibs_F77=yes
15016       ;;
15017
15018     sunos4*)
15019       if test "x$host_vendor" = xsequent; then
15020         # Use $CC to link under sequent, because it throws in some extra .o
15021         # files that make .init and .fini sections work.
15022         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15023       else
15024         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15025       fi
15026       hardcode_libdir_flag_spec_F77='-L$libdir'
15027       hardcode_direct_F77=yes
15028       hardcode_minus_L_F77=yes
15029       hardcode_shlibpath_var_F77=no
15030       ;;
15031
15032     sysv4)
15033       case $host_vendor in
15034         sni)
15035           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036           hardcode_direct_F77=yes # is this really true???
15037         ;;
15038         siemens)
15039           ## LD is ld it makes a PLAMLIB
15040           ## CC just makes a GrossModule.
15041           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15042           reload_cmds_F77='$CC -r -o $output$reload_objs'
15043           hardcode_direct_F77=no
15044         ;;
15045         motorola)
15046           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15048         ;;
15049       esac
15050       runpath_var='LD_RUN_PATH'
15051       hardcode_shlibpath_var_F77=no
15052       ;;
15053
15054     sysv4.3*)
15055       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056       hardcode_shlibpath_var_F77=no
15057       export_dynamic_flag_spec_F77='-Bexport'
15058       ;;
15059
15060     sysv4*MP*)
15061       if test -d /usr/nec; then
15062         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063         hardcode_shlibpath_var_F77=no
15064         runpath_var=LD_RUN_PATH
15065         hardcode_runpath_var=yes
15066         ld_shlibs_F77=yes
15067       fi
15068       ;;
15069
15070     sysv4.2uw2*)
15071       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15072       hardcode_direct_F77=yes
15073       hardcode_minus_L_F77=no
15074       hardcode_shlibpath_var_F77=no
15075       hardcode_runpath_var=yes
15076       runpath_var=LD_RUN_PATH
15077       ;;
15078
15079    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15080       no_undefined_flag_F77='${wl}-z ${wl}text'
15081       if test "$GCC" = yes; then
15082         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15083       else
15084         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15085       fi
15086       runpath_var='LD_RUN_PATH'
15087       hardcode_shlibpath_var_F77=no
15088       ;;
15089
15090     sysv5*)
15091       no_undefined_flag_F77=' -z text'
15092       # $CC -shared without GNU ld will not create a library from C++
15093       # object files and a static libstdc++, better avoid it by now
15094       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15095       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15096                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15097       hardcode_libdir_flag_spec_F77=
15098       hardcode_shlibpath_var_F77=no
15099       runpath_var='LD_RUN_PATH'
15100       ;;
15101
15102     uts4*)
15103       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104       hardcode_libdir_flag_spec_F77='-L$libdir'
15105       hardcode_shlibpath_var_F77=no
15106       ;;
15107
15108     *)
15109       ld_shlibs_F77=no
15110       ;;
15111     esac
15112   fi
15113
15114 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15115 echo "${ECHO_T}$ld_shlibs_F77" >&6
15116 test "$ld_shlibs_F77" = no && can_build_shared=no
15117
15118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15119 if test "$GCC" = yes; then
15120   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15121 fi
15122
15123 #
15124 # Do we need to explicitly link libc?
15125 #
15126 case "x$archive_cmds_need_lc_F77" in
15127 x|xyes)
15128   # Assume -lc should be added
15129   archive_cmds_need_lc_F77=yes
15130
15131   if test "$enable_shared" = yes && test "$GCC" = yes; then
15132     case $archive_cmds_F77 in
15133     *'~'*)
15134       # FIXME: we may have to deal with multi-command sequences.
15135       ;;
15136     '$CC '*)
15137       # Test whether the compiler implicitly links with -lc since on some
15138       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15139       # to ld, don't add -lc before -lgcc.
15140       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15141 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15142       $rm conftest*
15143       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15144
15145       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146   (eval $ac_compile) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } 2>conftest.err; then
15150         soname=conftest
15151         lib=conftest
15152         libobjs=conftest.$ac_objext
15153         deplibs=
15154         wl=$lt_prog_compiler_wl_F77
15155         compiler_flags=-v
15156         linker_flags=-v
15157         verstring=
15158         output_objdir=.
15159         libname=conftest
15160         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15161         allow_undefined_flag_F77=
15162         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15163   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }
15167         then
15168           archive_cmds_need_lc_F77=no
15169         else
15170           archive_cmds_need_lc_F77=yes
15171         fi
15172         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15173       else
15174         cat conftest.err 1>&5
15175       fi
15176       $rm conftest*
15177       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15178 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15179       ;;
15180     esac
15181   fi
15182   ;;
15183 esac
15184
15185 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15186 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15187 library_names_spec=
15188 libname_spec='lib$name'
15189 soname_spec=
15190 shrext=".so"
15191 postinstall_cmds=
15192 postuninstall_cmds=
15193 finish_cmds=
15194 finish_eval=
15195 shlibpath_var=
15196 shlibpath_overrides_runpath=unknown
15197 version_type=none
15198 dynamic_linker="$host_os ld.so"
15199 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15200 if test "$GCC" = yes; then
15201   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15202   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15203     # if the path contains ";" then we assume it to be the separator
15204     # otherwise default to the standard path separator (i.e. ":") - it is
15205     # assumed that no part of a normal pathname contains ";" but that should
15206     # okay in the real world where ";" in dirpaths is itself problematic.
15207     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15208   else
15209     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15210   fi
15211 else
15212   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15213 fi
15214 need_lib_prefix=unknown
15215 hardcode_into_libs=no
15216
15217 # when you set need_version to no, make sure it does not cause -set_version
15218 # flags to be left without arguments
15219 need_version=unknown
15220
15221 case $host_os in
15222 aix3*)
15223   version_type=linux
15224   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15225   shlibpath_var=LIBPATH
15226
15227   # AIX 3 has no versioning support, so we append a major version to the name.
15228   soname_spec='${libname}${release}${shared_ext}$major'
15229   ;;
15230
15231 aix4* | aix5*)
15232   version_type=linux
15233   need_lib_prefix=no
15234   need_version=no
15235   hardcode_into_libs=yes
15236   if test "$host_cpu" = ia64; then
15237     # AIX 5 supports IA64
15238     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15239     shlibpath_var=LD_LIBRARY_PATH
15240   else
15241     # With GCC up to 2.95.x, collect2 would create an import file
15242     # for dependence libraries.  The import file would start with
15243     # the line `#! .'.  This would cause the generated library to
15244     # depend on `.', always an invalid library.  This was fixed in
15245     # development snapshots of GCC prior to 3.0.
15246     case $host_os in
15247       aix4 | aix4.[01] | aix4.[01].*)
15248       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15249            echo ' yes '
15250            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15251         :
15252       else
15253         can_build_shared=no
15254       fi
15255       ;;
15256     esac
15257     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15258     # soname into executable. Probably we can add versioning support to
15259     # collect2, so additional links can be useful in future.
15260     if test "$aix_use_runtimelinking" = yes; then
15261       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15262       # instead of lib<name>.a to let people know that these are not
15263       # typical AIX shared libraries.
15264       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265     else
15266       # We preserve .a as extension for shared libraries through AIX4.2
15267       # and later when we are not doing run time linking.
15268       library_names_spec='${libname}${release}.a $libname.a'
15269       soname_spec='${libname}${release}${shared_ext}$major'
15270     fi
15271     shlibpath_var=LIBPATH
15272   fi
15273   ;;
15274
15275 amigaos*)
15276   library_names_spec='$libname.ixlibrary $libname.a'
15277   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15278   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'
15279   ;;
15280
15281 beos*)
15282   library_names_spec='${libname}${shared_ext}'
15283   dynamic_linker="$host_os ld.so"
15284   shlibpath_var=LIBRARY_PATH
15285   ;;
15286
15287 bsdi4*)
15288   version_type=linux
15289   need_version=no
15290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291   soname_spec='${libname}${release}${shared_ext}$major'
15292   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15293   shlibpath_var=LD_LIBRARY_PATH
15294   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15295   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15296   # the default ld.so.conf also contains /usr/contrib/lib and
15297   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15298   # libtool to hard-code these into programs
15299   ;;
15300
15301 cygwin* | mingw* | pw32*)
15302   version_type=windows
15303   shrext=".dll"
15304   need_version=no
15305   need_lib_prefix=no
15306
15307   case $GCC,$host_os in
15308   yes,cygwin* | yes,mingw* | yes,pw32*)
15309     library_names_spec='$libname.dll.a'
15310     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15311     postinstall_cmds='base_file=`basename \${file}`~
15312       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15313       dldir=$destdir/`dirname \$dlpath`~
15314       test -d \$dldir || mkdir -p \$dldir~
15315       $install_prog $dir/$dlname \$dldir/$dlname'
15316     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15317       dlpath=$dir/\$dldll~
15318        $rm \$dlpath'
15319     shlibpath_overrides_runpath=yes
15320
15321     case $host_os in
15322     cygwin*)
15323       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15324       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15325       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15326       ;;
15327     mingw*)
15328       # MinGW DLLs use traditional 'lib' prefix
15329       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15331       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15332         # It is most probably a Windows format PATH printed by
15333         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15334         # path with ; separators, and with drive letters. We can handle the
15335         # drive letters (cygwin fileutils understands them), so leave them,
15336         # especially as we might pass files found there to a mingw objdump,
15337         # which wouldn't understand a cygwinified path. Ahh.
15338         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15339       else
15340         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15341       fi
15342       ;;
15343     pw32*)
15344       # pw32 DLLs use 'pw' prefix rather than 'lib'
15345       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15346       ;;
15347     esac
15348     ;;
15349
15350   *)
15351     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15352     ;;
15353   esac
15354   dynamic_linker='Win32 ld.exe'
15355   # FIXME: first we should search . and the directory the executable is in
15356   shlibpath_var=PATH
15357   ;;
15358
15359 darwin* | rhapsody*)
15360   dynamic_linker="$host_os dyld"
15361   version_type=darwin
15362   need_lib_prefix=no
15363   need_version=no
15364   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15365   soname_spec='${libname}${release}${major}$shared_ext'
15366   shlibpath_overrides_runpath=yes
15367   shlibpath_var=DYLD_LIBRARY_PATH
15368   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15369   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15370   if test "$GCC" = yes; then
15371     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"`
15372   else
15373     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15374   fi
15375   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15376   ;;
15377
15378 dgux*)
15379   version_type=linux
15380   need_lib_prefix=no
15381   need_version=no
15382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15383   soname_spec='${libname}${release}${shared_ext}$major'
15384   shlibpath_var=LD_LIBRARY_PATH
15385   ;;
15386
15387 freebsd1*)
15388   dynamic_linker=no
15389   ;;
15390
15391 kfreebsd*-gnu)
15392   version_type=linux
15393   need_lib_prefix=no
15394   need_version=no
15395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15396   soname_spec='${libname}${release}${shared_ext}$major'
15397   shlibpath_var=LD_LIBRARY_PATH
15398   shlibpath_overrides_runpath=no
15399   hardcode_into_libs=yes
15400   dynamic_linker='GNU ld.so'
15401   ;;
15402
15403 freebsd*)
15404   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15405   version_type=freebsd-$objformat
15406   case $version_type in
15407     freebsd-elf*)
15408       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15409       need_version=no
15410       need_lib_prefix=no
15411       ;;
15412     freebsd-*)
15413       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15414       need_version=yes
15415       ;;
15416   esac
15417   shlibpath_var=LD_LIBRARY_PATH
15418   case $host_os in
15419   freebsd2*)
15420     shlibpath_overrides_runpath=yes
15421     ;;
15422   freebsd3.01* | freebsdelf3.01*)
15423     shlibpath_overrides_runpath=yes
15424     hardcode_into_libs=yes
15425     ;;
15426   *) # from 3.2 on
15427     shlibpath_overrides_runpath=no
15428     hardcode_into_libs=yes
15429     ;;
15430   esac
15431   ;;
15432
15433 gnu*)
15434   version_type=linux
15435   need_lib_prefix=no
15436   need_version=no
15437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15438   soname_spec='${libname}${release}${shared_ext}$major'
15439   shlibpath_var=LD_LIBRARY_PATH
15440   hardcode_into_libs=yes
15441   ;;
15442
15443 hpux9* | hpux10* | hpux11*)
15444   # Give a soname corresponding to the major version so that dld.sl refuses to
15445   # link against other versions.
15446   version_type=sunos
15447   need_lib_prefix=no
15448   need_version=no
15449   case "$host_cpu" in
15450   ia64*)
15451     shrext='.so'
15452     hardcode_into_libs=yes
15453     dynamic_linker="$host_os dld.so"
15454     shlibpath_var=LD_LIBRARY_PATH
15455     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457     soname_spec='${libname}${release}${shared_ext}$major'
15458     if test "X$HPUX_IA64_MODE" = X32; then
15459       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15460     else
15461       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15462     fi
15463     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15464     ;;
15465    hppa*64*)
15466      shrext='.sl'
15467      hardcode_into_libs=yes
15468      dynamic_linker="$host_os dld.sl"
15469      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15470      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15471      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472      soname_spec='${libname}${release}${shared_ext}$major'
15473      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15474      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15475      ;;
15476    *)
15477     shrext='.sl'
15478     dynamic_linker="$host_os dld.sl"
15479     shlibpath_var=SHLIB_PATH
15480     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482     soname_spec='${libname}${release}${shared_ext}$major'
15483     ;;
15484   esac
15485   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15486   postinstall_cmds='chmod 555 $lib'
15487   ;;
15488
15489 irix5* | irix6* | nonstopux*)
15490   case $host_os in
15491     nonstopux*) version_type=nonstopux ;;
15492     *)
15493         if test "$lt_cv_prog_gnu_ld" = yes; then
15494                 version_type=linux
15495         else
15496                 version_type=irix
15497         fi ;;
15498   esac
15499   need_lib_prefix=no
15500   need_version=no
15501   soname_spec='${libname}${release}${shared_ext}$major'
15502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15503   case $host_os in
15504   irix5* | nonstopux*)
15505     libsuff= shlibsuff=
15506     ;;
15507   *)
15508     case $LD in # libtool.m4 will add one of these switches to LD
15509     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15510       libsuff= shlibsuff= libmagic=32-bit;;
15511     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15512       libsuff=32 shlibsuff=N32 libmagic=N32;;
15513     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15514       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15515     *) libsuff= shlibsuff= libmagic=never-match;;
15516     esac
15517     ;;
15518   esac
15519   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15520   shlibpath_overrides_runpath=no
15521   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15522   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15523   hardcode_into_libs=yes
15524   ;;
15525
15526 # No shared lib support for Linux oldld, aout, or coff.
15527 linux*oldld* | linux*aout* | linux*coff*)
15528   dynamic_linker=no
15529   ;;
15530
15531 # This must be Linux ELF.
15532 linux*)
15533   version_type=linux
15534   need_lib_prefix=no
15535   need_version=no
15536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537   soname_spec='${libname}${release}${shared_ext}$major'
15538   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15539   shlibpath_var=LD_LIBRARY_PATH
15540   shlibpath_overrides_runpath=no
15541   # This implies no fast_install, which is unacceptable.
15542   # Some rework will be needed to allow for fast_install
15543   # before this can be enabled.
15544   hardcode_into_libs=yes
15545
15546   # Append ld.so.conf contents to the search path
15547   if test -f /etc/ld.so.conf; then
15548     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
15549     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
15550   fi
15551
15552   # We used to test for /lib/ld.so.1 and disable shared libraries on
15553   # powerpc, because MkLinux only supported shared libraries with the
15554   # GNU dynamic linker.  Since this was broken with cross compilers,
15555   # most powerpc-linux boxes support dynamic linking these days and
15556   # people can always --disable-shared, the test was removed, and we
15557   # assume the GNU/Linux dynamic linker is in use.
15558   dynamic_linker='GNU/Linux ld.so'
15559   ;;
15560
15561 knetbsd*-gnu)
15562   version_type=linux
15563   need_lib_prefix=no
15564   need_version=no
15565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15566   soname_spec='${libname}${release}${shared_ext}$major'
15567   shlibpath_var=LD_LIBRARY_PATH
15568   shlibpath_overrides_runpath=no
15569   hardcode_into_libs=yes
15570   dynamic_linker='GNU ld.so'
15571   ;;
15572
15573 netbsd*)
15574   version_type=sunos
15575   need_lib_prefix=no
15576   need_version=no
15577   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15579     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15580     dynamic_linker='NetBSD (a.out) ld.so'
15581   else
15582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15583     soname_spec='${libname}${release}${shared_ext}$major'
15584     dynamic_linker='NetBSD ld.elf_so'
15585   fi
15586   shlibpath_var=LD_LIBRARY_PATH
15587   shlibpath_overrides_runpath=yes
15588   hardcode_into_libs=yes
15589   ;;
15590
15591 newsos6)
15592   version_type=linux
15593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594   shlibpath_var=LD_LIBRARY_PATH
15595   shlibpath_overrides_runpath=yes
15596   ;;
15597
15598 nto-qnx*)
15599   version_type=linux
15600   need_lib_prefix=no
15601   need_version=no
15602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603   soname_spec='${libname}${release}${shared_ext}$major'
15604   shlibpath_var=LD_LIBRARY_PATH
15605   shlibpath_overrides_runpath=yes
15606   ;;
15607
15608 openbsd*)
15609   version_type=sunos
15610   need_lib_prefix=no
15611   need_version=yes
15612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15614   shlibpath_var=LD_LIBRARY_PATH
15615   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15616     case $host_os in
15617       openbsd2.[89] | openbsd2.[89].*)
15618         shlibpath_overrides_runpath=no
15619         ;;
15620       *)
15621         shlibpath_overrides_runpath=yes
15622         ;;
15623       esac
15624   else
15625     shlibpath_overrides_runpath=yes
15626   fi
15627   ;;
15628
15629 os2*)
15630   libname_spec='$name'
15631   shrext=".dll"
15632   need_lib_prefix=no
15633   library_names_spec='$libname${shared_ext} $libname.a'
15634   dynamic_linker='OS/2 ld.exe'
15635   shlibpath_var=LIBPATH
15636   ;;
15637
15638 osf3* | osf4* | osf5*)
15639   version_type=osf
15640   need_lib_prefix=no
15641   need_version=no
15642   soname_spec='${libname}${release}${shared_ext}$major'
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644   shlibpath_var=LD_LIBRARY_PATH
15645   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15646   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15647   ;;
15648
15649 sco3.2v5*)
15650   version_type=osf
15651   soname_spec='${libname}${release}${shared_ext}$major'
15652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653   shlibpath_var=LD_LIBRARY_PATH
15654   ;;
15655
15656 solaris*)
15657   version_type=linux
15658   need_lib_prefix=no
15659   need_version=no
15660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661   soname_spec='${libname}${release}${shared_ext}$major'
15662   shlibpath_var=LD_LIBRARY_PATH
15663   shlibpath_overrides_runpath=yes
15664   hardcode_into_libs=yes
15665   # ldd complains unless libraries are executable
15666   postinstall_cmds='chmod +x $lib'
15667   ;;
15668
15669 sunos4*)
15670   version_type=sunos
15671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15672   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15673   shlibpath_var=LD_LIBRARY_PATH
15674   shlibpath_overrides_runpath=yes
15675   if test "$with_gnu_ld" = yes; then
15676     need_lib_prefix=no
15677   fi
15678   need_version=yes
15679   ;;
15680
15681 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15682   version_type=linux
15683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684   soname_spec='${libname}${release}${shared_ext}$major'
15685   shlibpath_var=LD_LIBRARY_PATH
15686   case $host_vendor in
15687     sni)
15688       shlibpath_overrides_runpath=no
15689       need_lib_prefix=no
15690       export_dynamic_flag_spec='${wl}-Blargedynsym'
15691       runpath_var=LD_RUN_PATH
15692       ;;
15693     siemens)
15694       need_lib_prefix=no
15695       ;;
15696     motorola)
15697       need_lib_prefix=no
15698       need_version=no
15699       shlibpath_overrides_runpath=no
15700       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15701       ;;
15702   esac
15703   ;;
15704
15705 sysv4*MP*)
15706   if test -d /usr/nec ;then
15707     version_type=linux
15708     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15709     soname_spec='$libname${shared_ext}.$major'
15710     shlibpath_var=LD_LIBRARY_PATH
15711   fi
15712   ;;
15713
15714 uts4*)
15715   version_type=linux
15716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717   soname_spec='${libname}${release}${shared_ext}$major'
15718   shlibpath_var=LD_LIBRARY_PATH
15719   ;;
15720
15721 *)
15722   dynamic_linker=no
15723   ;;
15724 esac
15725 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15726 echo "${ECHO_T}$dynamic_linker" >&6
15727 test "$dynamic_linker" = no && can_build_shared=no
15728
15729 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15730 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15731 hardcode_action_F77=
15732 if test -n "$hardcode_libdir_flag_spec_F77" || \
15733    test -n "$runpath_var F77" || \
15734    test "X$hardcode_automatic_F77"="Xyes" ; then
15735
15736   # We can hardcode non-existant directories.
15737   if test "$hardcode_direct_F77" != no &&
15738      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15739      # have to relink, otherwise we might link with an installed library
15740      # when we should be linking with a yet-to-be-installed one
15741      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15742      test "$hardcode_minus_L_F77" != no; then
15743     # Linking always hardcodes the temporary library directory.
15744     hardcode_action_F77=relink
15745   else
15746     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15747     hardcode_action_F77=immediate
15748   fi
15749 else
15750   # We cannot hardcode anything, or else we can only hardcode existing
15751   # directories.
15752   hardcode_action_F77=unsupported
15753 fi
15754 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15755 echo "${ECHO_T}$hardcode_action_F77" >&6
15756
15757 if test "$hardcode_action_F77" = relink; then
15758   # Fast installation is not supported
15759   enable_fast_install=no
15760 elif test "$shlibpath_overrides_runpath" = yes ||
15761      test "$enable_shared" = no; then
15762   # Fast installation is not necessary
15763   enable_fast_install=needless
15764 fi
15765
15766 striplib=
15767 old_striplib=
15768 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15769 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15770 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15771   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15772   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15773   echo "$as_me:$LINENO: result: yes" >&5
15774 echo "${ECHO_T}yes" >&6
15775 else
15776 # FIXME - insert some real tests, host_os isn't really good enough
15777   case $host_os in
15778    darwin*)
15779        if test -n "$STRIP" ; then
15780          striplib="$STRIP -x"
15781          echo "$as_me:$LINENO: result: yes" >&5
15782 echo "${ECHO_T}yes" >&6
15783        else
15784   echo "$as_me:$LINENO: result: no" >&5
15785 echo "${ECHO_T}no" >&6
15786 fi
15787        ;;
15788    *)
15789   echo "$as_me:$LINENO: result: no" >&5
15790 echo "${ECHO_T}no" >&6
15791     ;;
15792   esac
15793 fi
15794
15795
15796
15797 # The else clause should only fire when bootstrapping the
15798 # libtool distribution, otherwise you forgot to ship ltmain.sh
15799 # with your package, and you will get complaints that there are
15800 # no rules to generate ltmain.sh.
15801 if test -f "$ltmain"; then
15802   # See if we are running on zsh, and set the options which allow our commands through
15803   # without removal of \ escapes.
15804   if test -n "${ZSH_VERSION+set}" ; then
15805     setopt NO_GLOB_SUBST
15806   fi
15807   # Now quote all the things that may contain metacharacters while being
15808   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15809   # variables and quote the copies for generation of the libtool script.
15810   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15811     SED SHELL STRIP \
15812     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15813     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15814     deplibs_check_method reload_flag reload_cmds need_locks \
15815     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15816     lt_cv_sys_global_symbol_to_c_name_address \
15817     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15818     old_postinstall_cmds old_postuninstall_cmds \
15819     compiler_F77 \
15820     CC_F77 \
15821     LD_F77 \
15822     lt_prog_compiler_wl_F77 \
15823     lt_prog_compiler_pic_F77 \
15824     lt_prog_compiler_static_F77 \
15825     lt_prog_compiler_no_builtin_flag_F77 \
15826     export_dynamic_flag_spec_F77 \
15827     thread_safe_flag_spec_F77 \
15828     whole_archive_flag_spec_F77 \
15829     enable_shared_with_static_runtimes_F77 \
15830     old_archive_cmds_F77 \
15831     old_archive_from_new_cmds_F77 \
15832     predep_objects_F77 \
15833     postdep_objects_F77 \
15834     predeps_F77 \
15835     postdeps_F77 \
15836     compiler_lib_search_path_F77 \
15837     archive_cmds_F77 \
15838     archive_expsym_cmds_F77 \
15839     postinstall_cmds_F77 \
15840     postuninstall_cmds_F77 \
15841     old_archive_from_expsyms_cmds_F77 \
15842     allow_undefined_flag_F77 \
15843     no_undefined_flag_F77 \
15844     export_symbols_cmds_F77 \
15845     hardcode_libdir_flag_spec_F77 \
15846     hardcode_libdir_flag_spec_ld_F77 \
15847     hardcode_libdir_separator_F77 \
15848     hardcode_automatic_F77 \
15849     module_cmds_F77 \
15850     module_expsym_cmds_F77 \
15851     lt_cv_prog_compiler_c_o_F77 \
15852     exclude_expsyms_F77 \
15853     include_expsyms_F77; do
15854
15855     case $var in
15856     old_archive_cmds_F77 | \
15857     old_archive_from_new_cmds_F77 | \
15858     archive_cmds_F77 | \
15859     archive_expsym_cmds_F77 | \
15860     module_cmds_F77 | \
15861     module_expsym_cmds_F77 | \
15862     old_archive_from_expsyms_cmds_F77 | \
15863     export_symbols_cmds_F77 | \
15864     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15865     postinstall_cmds | postuninstall_cmds | \
15866     old_postinstall_cmds | old_postuninstall_cmds | \
15867     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15868       # Double-quote double-evaled strings.
15869       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15870       ;;
15871     *)
15872       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15873       ;;
15874     esac
15875   done
15876
15877   case $lt_echo in
15878   *'\$0 --fallback-echo"')
15879     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15880     ;;
15881   esac
15882
15883 cfgfile="$ofile"
15884
15885   cat <<__EOF__ >> "$cfgfile"
15886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15887
15888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15889
15890 # Shell to use when invoking shell scripts.
15891 SHELL=$lt_SHELL
15892
15893 # Whether or not to build shared libraries.
15894 build_libtool_libs=$enable_shared
15895
15896 # Whether or not to build static libraries.
15897 build_old_libs=$enable_static
15898
15899 # Whether or not to add -lc for building shared libraries.
15900 build_libtool_need_lc=$archive_cmds_need_lc_F77
15901
15902 # Whether or not to disallow shared libs when runtime libs are static
15903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15904
15905 # Whether or not to optimize for fast installation.
15906 fast_install=$enable_fast_install
15907
15908 # The host system.
15909 host_alias=$host_alias
15910 host=$host
15911
15912 # An echo program that does not interpret backslashes.
15913 echo=$lt_echo
15914
15915 # The archiver.
15916 AR=$lt_AR
15917 AR_FLAGS=$lt_AR_FLAGS
15918
15919 # A C compiler.
15920 LTCC=$lt_LTCC
15921
15922 # A language-specific compiler.
15923 CC=$lt_compiler_F77
15924
15925 # Is the compiler the GNU C compiler?
15926 with_gcc=$GCC_F77
15927
15928 # An ERE matcher.
15929 EGREP=$lt_EGREP
15930
15931 # The linker used to build libraries.
15932 LD=$lt_LD_F77
15933
15934 # Whether we need hard or soft links.
15935 LN_S=$lt_LN_S
15936
15937 # A BSD-compatible nm program.
15938 NM=$lt_NM
15939
15940 # A symbol stripping program
15941 STRIP=$lt_STRIP
15942
15943 # Used to examine libraries when file_magic_cmd begins "file"
15944 MAGIC_CMD=$MAGIC_CMD
15945
15946 # Used on cygwin: DLL creation program.
15947 DLLTOOL="$DLLTOOL"
15948
15949 # Used on cygwin: object dumper.
15950 OBJDUMP="$OBJDUMP"
15951
15952 # Used on cygwin: assembler.
15953 AS="$AS"
15954
15955 # The name of the directory that contains temporary libtool files.
15956 objdir=$objdir
15957
15958 # How to create reloadable object files.
15959 reload_flag=$lt_reload_flag
15960 reload_cmds=$lt_reload_cmds
15961
15962 # How to pass a linker flag through the compiler.
15963 wl=$lt_lt_prog_compiler_wl_F77
15964
15965 # Object file suffix (normally "o").
15966 objext="$ac_objext"
15967
15968 # Old archive suffix (normally "a").
15969 libext="$libext"
15970
15971 # Shared library suffix (normally ".so").
15972 shrext='$shrext'
15973
15974 # Executable file suffix (normally "").
15975 exeext="$exeext"
15976
15977 # Additional compiler flags for building library objects.
15978 pic_flag=$lt_lt_prog_compiler_pic_F77
15979 pic_mode=$pic_mode
15980
15981 # What is the maximum length of a command?
15982 max_cmd_len=$lt_cv_sys_max_cmd_len
15983
15984 # Does compiler simultaneously support -c and -o options?
15985 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15986
15987 # Must we lock files when doing compilation ?
15988 need_locks=$lt_need_locks
15989
15990 # Do we need the lib prefix for modules?
15991 need_lib_prefix=$need_lib_prefix
15992
15993 # Do we need a version for libraries?
15994 need_version=$need_version
15995
15996 # Whether dlopen is supported.
15997 dlopen_support=$enable_dlopen
15998
15999 # Whether dlopen of programs is supported.
16000 dlopen_self=$enable_dlopen_self
16001
16002 # Whether dlopen of statically linked programs is supported.
16003 dlopen_self_static=$enable_dlopen_self_static
16004
16005 # Compiler flag to prevent dynamic linking.
16006 link_static_flag=$lt_lt_prog_compiler_static_F77
16007
16008 # Compiler flag to turn off builtin functions.
16009 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16010
16011 # Compiler flag to allow reflexive dlopens.
16012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16013
16014 # Compiler flag to generate shared objects directly from archives.
16015 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16016
16017 # Compiler flag to generate thread-safe objects.
16018 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16019
16020 # Library versioning type.
16021 version_type=$version_type
16022
16023 # Format of library name prefix.
16024 libname_spec=$lt_libname_spec
16025
16026 # List of archive names.  First name is the real one, the rest are links.
16027 # The last name is the one that the linker finds with -lNAME.
16028 library_names_spec=$lt_library_names_spec
16029
16030 # The coded name of the library, if different from the real name.
16031 soname_spec=$lt_soname_spec
16032
16033 # Commands used to build and install an old-style archive.
16034 RANLIB=$lt_RANLIB
16035 old_archive_cmds=$lt_old_archive_cmds_F77
16036 old_postinstall_cmds=$lt_old_postinstall_cmds
16037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16038
16039 # Create an old-style archive from a shared archive.
16040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16041
16042 # Create a temporary old-style archive to link instead of a shared archive.
16043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16044
16045 # Commands used to build and install a shared archive.
16046 archive_cmds=$lt_archive_cmds_F77
16047 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16048 postinstall_cmds=$lt_postinstall_cmds
16049 postuninstall_cmds=$lt_postuninstall_cmds
16050
16051 # Commands used to build a loadable module (assumed same as above if empty)
16052 module_cmds=$lt_module_cmds_F77
16053 module_expsym_cmds=$lt_module_expsym_cmds_F77
16054
16055 # Commands to strip libraries.
16056 old_striplib=$lt_old_striplib
16057 striplib=$lt_striplib
16058
16059 # Dependencies to place before the objects being linked to create a
16060 # shared library.
16061 predep_objects=$lt_predep_objects_F77
16062
16063 # Dependencies to place after the objects being linked to create a
16064 # shared library.
16065 postdep_objects=$lt_postdep_objects_F77
16066
16067 # Dependencies to place before the objects being linked to create a
16068 # shared library.
16069 predeps=$lt_predeps_F77
16070
16071 # Dependencies to place after the objects being linked to create a
16072 # shared library.
16073 postdeps=$lt_postdeps_F77
16074
16075 # The library search path used internally by the compiler when linking
16076 # a shared library.
16077 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16078
16079 # Method to check whether dependent libraries are shared objects.
16080 deplibs_check_method=$lt_deplibs_check_method
16081
16082 # Command to use when deplibs_check_method == file_magic.
16083 file_magic_cmd=$lt_file_magic_cmd
16084
16085 # Flag that allows shared libraries with undefined symbols to be built.
16086 allow_undefined_flag=$lt_allow_undefined_flag_F77
16087
16088 # Flag that forces no undefined symbols.
16089 no_undefined_flag=$lt_no_undefined_flag_F77
16090
16091 # Commands used to finish a libtool library installation in a directory.
16092 finish_cmds=$lt_finish_cmds
16093
16094 # Same as above, but a single script fragment to be evaled but not shown.
16095 finish_eval=$lt_finish_eval
16096
16097 # Take the output of nm and produce a listing of raw symbols and C names.
16098 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16099
16100 # Transform the output of nm in a proper C declaration
16101 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16102
16103 # Transform the output of nm in a C name address pair
16104 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16105
16106 # This is the shared library runtime path variable.
16107 runpath_var=$runpath_var
16108
16109 # This is the shared library path variable.
16110 shlibpath_var=$shlibpath_var
16111
16112 # Is shlibpath searched before the hard-coded library search path?
16113 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16114
16115 # How to hardcode a shared library path into an executable.
16116 hardcode_action=$hardcode_action_F77
16117
16118 # Whether we should hardcode library paths into libraries.
16119 hardcode_into_libs=$hardcode_into_libs
16120
16121 # Flag to hardcode \$libdir into a binary during linking.
16122 # This must work even if \$libdir does not exist.
16123 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16124
16125 # If ld is used when linking, flag to hardcode \$libdir into
16126 # a binary during linking. This must work even if \$libdir does
16127 # not exist.
16128 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16129
16130 # Whether we need a single -rpath flag with a separated argument.
16131 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16132
16133 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16134 # resulting binary.
16135 hardcode_direct=$hardcode_direct_F77
16136
16137 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16138 # resulting binary.
16139 hardcode_minus_L=$hardcode_minus_L_F77
16140
16141 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16142 # the resulting binary.
16143 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16144
16145 # Set to yes if building a shared library automatically hardcodes DIR into the library
16146 # and all subsequent libraries and executables linked against it.
16147 hardcode_automatic=$hardcode_automatic_F77
16148
16149 # Variables whose values should be saved in libtool wrapper scripts and
16150 # restored at relink time.
16151 variables_saved_for_relink="$variables_saved_for_relink"
16152
16153 # Whether libtool must link a program against all its dependency libraries.
16154 link_all_deplibs=$link_all_deplibs_F77
16155
16156 # Compile-time system search path for libraries
16157 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16158
16159 # Run-time system search path for libraries
16160 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16161
16162 # Fix the shell variable \$srcfile for the compiler.
16163 fix_srcfile_path="$fix_srcfile_path_F77"
16164
16165 # Set to yes if exported symbols are required.
16166 always_export_symbols=$always_export_symbols_F77
16167
16168 # The commands to list exported symbols.
16169 export_symbols_cmds=$lt_export_symbols_cmds_F77
16170
16171 # The commands to extract the exported symbol list from a shared archive.
16172 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16173
16174 # Symbols that should not be listed in the preloaded symbols.
16175 exclude_expsyms=$lt_exclude_expsyms_F77
16176
16177 # Symbols that must always be exported.
16178 include_expsyms=$lt_include_expsyms_F77
16179
16180 # ### END LIBTOOL TAG CONFIG: $tagname
16181
16182 __EOF__
16183
16184
16185 else
16186   # If there is no Makefile yet, we rely on a make rule to execute
16187   # `config.status --recheck' to rerun these tests and create the
16188   # libtool script then.
16189   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16190   if test -f "$ltmain_in"; then
16191     test -f Makefile && make "$ltmain"
16192   fi
16193 fi
16194
16195
16196 ac_ext=c
16197 ac_cpp='$CPP $CPPFLAGS'
16198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16201
16202 CC="$lt_save_CC"
16203
16204         else
16205           tagname=""
16206         fi
16207         ;;
16208
16209       GCJ)
16210         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16211
16212
16213
16214 # Source file extension for Java test sources.
16215 ac_ext=java
16216
16217 # Object file extension for compiled Java test sources.
16218 objext=o
16219 objext_GCJ=$objext
16220
16221 # Code to be used in simple compile tests
16222 lt_simple_compile_test_code="class foo {}\n"
16223
16224 # Code to be used in simple link tests
16225 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16226
16227 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16228
16229 # If no C compiler was specified, use CC.
16230 LTCC=${LTCC-"$CC"}
16231
16232 # Allow CC to be a program name with arguments.
16233 compiler=$CC
16234
16235
16236 # Allow CC to be a program name with arguments.
16237 lt_save_CC="$CC"
16238 CC=${GCJ-"gcj"}
16239 compiler=$CC
16240 compiler_GCJ=$CC
16241
16242 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16243 archive_cmds_need_lc_GCJ=no
16244
16245
16246 lt_prog_compiler_no_builtin_flag_GCJ=
16247
16248 if test "$GCC" = yes; then
16249   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16250
16251
16252 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16253 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16254 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16255   echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257   lt_cv_prog_compiler_rtti_exceptions=no
16258   ac_outfile=conftest.$ac_objext
16259    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16260    lt_compiler_flag="-fno-rtti -fno-exceptions"
16261    # Insert the option either (1) after the last *FLAGS variable, or
16262    # (2) before a word containing "conftest.", or (3) at the end.
16263    # Note that $ac_compile itself does not contain backslashes and begins
16264    # with a dollar sign (not a hyphen), so the echo should work correctly.
16265    # The option is referenced via a variable to avoid confusing sed.
16266    lt_compile=`echo "$ac_compile" | $SED \
16267    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16268    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16269    -e 's:$: $lt_compiler_flag:'`
16270    (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
16271    (eval "$lt_compile" 2>conftest.err)
16272    ac_status=$?
16273    cat conftest.err >&5
16274    echo "$as_me:16274: \$? = $ac_status" >&5
16275    if (exit $ac_status) && test -s "$ac_outfile"; then
16276      # The compiler can only warn and ignore the option if not recognized
16277      # So say no if there are warnings
16278      if test ! -s conftest.err; then
16279        lt_cv_prog_compiler_rtti_exceptions=yes
16280      fi
16281    fi
16282    $rm conftest*
16283
16284 fi
16285 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16286 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16287
16288 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16289     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16290 else
16291     :
16292 fi
16293
16294 fi
16295
16296 lt_prog_compiler_wl_GCJ=
16297 lt_prog_compiler_pic_GCJ=
16298 lt_prog_compiler_static_GCJ=
16299
16300 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16301 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16302
16303   if test "$GCC" = yes; then
16304     lt_prog_compiler_wl_GCJ='-Wl,'
16305     lt_prog_compiler_static_GCJ='-static'
16306
16307     case $host_os in
16308       aix*)
16309       # All AIX code is PIC.
16310       if test "$host_cpu" = ia64; then
16311         # AIX 5 now supports IA64 processor
16312         lt_prog_compiler_static_GCJ='-Bstatic'
16313       fi
16314       ;;
16315
16316     amigaos*)
16317       # FIXME: we need at least 68020 code to build shared libraries, but
16318       # adding the `-m68020' flag to GCC prevents building anything better,
16319       # like `-m68040'.
16320       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16321       ;;
16322
16323     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16324       # PIC is the default for these OSes.
16325       ;;
16326
16327     mingw* | pw32* | os2*)
16328       # This hack is so that the source file can tell whether it is being
16329       # built for inclusion in a dll (and should export symbols for example).
16330       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16331       ;;
16332
16333     darwin* | rhapsody*)
16334       # PIC is the default on this platform
16335       # Common symbols not allowed in MH_DYLIB files
16336       lt_prog_compiler_pic_GCJ='-fno-common'
16337       ;;
16338
16339     msdosdjgpp*)
16340       # Just because we use GCC doesn't mean we suddenly get shared libraries
16341       # on systems that don't support them.
16342       lt_prog_compiler_can_build_shared_GCJ=no
16343       enable_shared=no
16344       ;;
16345
16346     sysv4*MP*)
16347       if test -d /usr/nec; then
16348         lt_prog_compiler_pic_GCJ=-Kconform_pic
16349       fi
16350       ;;
16351
16352     hpux*)
16353       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16354       # not for PA HP-UX.
16355       case "$host_cpu" in
16356       hppa*64*|ia64*)
16357         # +Z the default
16358         ;;
16359       *)
16360         lt_prog_compiler_pic_GCJ='-fPIC'
16361         ;;
16362       esac
16363       ;;
16364
16365     *)
16366       lt_prog_compiler_pic_GCJ='-fPIC'
16367       ;;
16368     esac
16369   else
16370     # PORTME Check for flag to pass linker flags through the system compiler.
16371     case $host_os in
16372     aix*)
16373       lt_prog_compiler_wl_GCJ='-Wl,'
16374       if test "$host_cpu" = ia64; then
16375         # AIX 5 now supports IA64 processor
16376         lt_prog_compiler_static_GCJ='-Bstatic'
16377       else
16378         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16379       fi
16380       ;;
16381
16382     mingw* | pw32* | os2*)
16383       # This hack is so that the source file can tell whether it is being
16384       # built for inclusion in a dll (and should export symbols for example).
16385       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16386       ;;
16387
16388     hpux9* | hpux10* | hpux11*)
16389       lt_prog_compiler_wl_GCJ='-Wl,'
16390       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16391       # not for PA HP-UX.
16392       case "$host_cpu" in
16393       hppa*64*|ia64*)
16394         # +Z the default
16395         ;;
16396       *)
16397         lt_prog_compiler_pic_GCJ='+Z'
16398         ;;
16399       esac
16400       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16401       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16402       ;;
16403
16404     irix5* | irix6* | nonstopux*)
16405       lt_prog_compiler_wl_GCJ='-Wl,'
16406       # PIC (with -KPIC) is the default.
16407       lt_prog_compiler_static_GCJ='-non_shared'
16408       ;;
16409
16410     newsos6)
16411       lt_prog_compiler_pic_GCJ='-KPIC'
16412       lt_prog_compiler_static_GCJ='-Bstatic'
16413       ;;
16414
16415     linux*)
16416       case $CC in
16417       icc* | ecc*)
16418         lt_prog_compiler_wl_GCJ='-Wl,'
16419         lt_prog_compiler_pic_GCJ='-KPIC'
16420         lt_prog_compiler_static_GCJ='-static'
16421         ;;
16422       ccc*)
16423         lt_prog_compiler_wl_GCJ='-Wl,'
16424         # All Alpha code is PIC.
16425         lt_prog_compiler_static_GCJ='-non_shared'
16426         ;;
16427       esac
16428       ;;
16429
16430     osf3* | osf4* | osf5*)
16431       lt_prog_compiler_wl_GCJ='-Wl,'
16432       # All OSF/1 code is PIC.
16433       lt_prog_compiler_static_GCJ='-non_shared'
16434       ;;
16435
16436     sco3.2v5*)
16437       lt_prog_compiler_pic_GCJ='-Kpic'
16438       lt_prog_compiler_static_GCJ='-dn'
16439       ;;
16440
16441     solaris*)
16442       lt_prog_compiler_wl_GCJ='-Wl,'
16443       lt_prog_compiler_pic_GCJ='-KPIC'
16444       lt_prog_compiler_static_GCJ='-Bstatic'
16445       ;;
16446
16447     sunos4*)
16448       lt_prog_compiler_wl_GCJ='-Qoption ld '
16449       lt_prog_compiler_pic_GCJ='-PIC'
16450       lt_prog_compiler_static_GCJ='-Bstatic'
16451       ;;
16452
16453     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16454       lt_prog_compiler_wl_GCJ='-Wl,'
16455       lt_prog_compiler_pic_GCJ='-KPIC'
16456       lt_prog_compiler_static_GCJ='-Bstatic'
16457       ;;
16458
16459     sysv4*MP*)
16460       if test -d /usr/nec ;then
16461         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16462         lt_prog_compiler_static_GCJ='-Bstatic'
16463       fi
16464       ;;
16465
16466     uts4*)
16467       lt_prog_compiler_pic_GCJ='-pic'
16468       lt_prog_compiler_static_GCJ='-Bstatic'
16469       ;;
16470
16471     *)
16472       lt_prog_compiler_can_build_shared_GCJ=no
16473       ;;
16474     esac
16475   fi
16476
16477 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16478 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16479
16480 #
16481 # Check to make sure the PIC flag actually works.
16482 #
16483 if test -n "$lt_prog_compiler_pic_GCJ"; then
16484
16485 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16486 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16487 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16488   echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490   lt_prog_compiler_pic_works_GCJ=no
16491   ac_outfile=conftest.$ac_objext
16492    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16493    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16494    # Insert the option either (1) after the last *FLAGS variable, or
16495    # (2) before a word containing "conftest.", or (3) at the end.
16496    # Note that $ac_compile itself does not contain backslashes and begins
16497    # with a dollar sign (not a hyphen), so the echo should work correctly.
16498    # The option is referenced via a variable to avoid confusing sed.
16499    lt_compile=`echo "$ac_compile" | $SED \
16500    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16501    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16502    -e 's:$: $lt_compiler_flag:'`
16503    (eval echo "\"\$as_me:16503: $lt_compile\"" >&5)
16504    (eval "$lt_compile" 2>conftest.err)
16505    ac_status=$?
16506    cat conftest.err >&5
16507    echo "$as_me:16507: \$? = $ac_status" >&5
16508    if (exit $ac_status) && test -s "$ac_outfile"; then
16509      # The compiler can only warn and ignore the option if not recognized
16510      # So say no if there are warnings
16511      if test ! -s conftest.err; then
16512        lt_prog_compiler_pic_works_GCJ=yes
16513      fi
16514    fi
16515    $rm conftest*
16516
16517 fi
16518 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16519 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16520
16521 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16522     case $lt_prog_compiler_pic_GCJ in
16523      "" | " "*) ;;
16524      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16525      esac
16526 else
16527     lt_prog_compiler_pic_GCJ=
16528      lt_prog_compiler_can_build_shared_GCJ=no
16529 fi
16530
16531 fi
16532 case "$host_os" in
16533   # For platforms which do not support PIC, -DPIC is meaningless:
16534   *djgpp*)
16535     lt_prog_compiler_pic_GCJ=
16536     ;;
16537   *)
16538     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16539     ;;
16540 esac
16541
16542 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16544 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16545   echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547   lt_cv_prog_compiler_c_o_GCJ=no
16548    $rm -r conftest 2>/dev/null
16549    mkdir conftest
16550    cd conftest
16551    mkdir out
16552    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16553
16554    lt_compiler_flag="-o out/conftest2.$ac_objext"
16555    # Insert the option either (1) after the last *FLAGS variable, or
16556    # (2) before a word containing "conftest.", or (3) at the end.
16557    # Note that $ac_compile itself does not contain backslashes and begins
16558    # with a dollar sign (not a hyphen), so the echo should work correctly.
16559    lt_compile=`echo "$ac_compile" | $SED \
16560    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16561    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16562    -e 's:$: $lt_compiler_flag:'`
16563    (eval echo "\"\$as_me:16563: $lt_compile\"" >&5)
16564    (eval "$lt_compile" 2>out/conftest.err)
16565    ac_status=$?
16566    cat out/conftest.err >&5
16567    echo "$as_me:16567: \$? = $ac_status" >&5
16568    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16569    then
16570      # The compiler can only warn and ignore the option if not recognized
16571      # So say no if there are warnings
16572      if test ! -s out/conftest.err; then
16573        lt_cv_prog_compiler_c_o_GCJ=yes
16574      fi
16575    fi
16576    chmod u+w .
16577    $rm conftest*
16578    # SGI C++ compiler will create directory out/ii_files/ for
16579    # template instantiation
16580    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16581    $rm out/* && rmdir out
16582    cd ..
16583    rmdir conftest
16584    $rm conftest*
16585
16586 fi
16587 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16589
16590
16591 hard_links="nottested"
16592 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16593   # do not overwrite the value of need_locks provided by the user
16594   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16595 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16596   hard_links=yes
16597   $rm conftest*
16598   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16599   touch conftest.a
16600   ln conftest.a conftest.b 2>&5 || hard_links=no
16601   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16602   echo "$as_me:$LINENO: result: $hard_links" >&5
16603 echo "${ECHO_T}$hard_links" >&6
16604   if test "$hard_links" = no; then
16605     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16606 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16607     need_locks=warn
16608   fi
16609 else
16610   need_locks=no
16611 fi
16612
16613 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16615
16616   runpath_var=
16617   allow_undefined_flag_GCJ=
16618   enable_shared_with_static_runtimes_GCJ=no
16619   archive_cmds_GCJ=
16620   archive_expsym_cmds_GCJ=
16621   old_archive_From_new_cmds_GCJ=
16622   old_archive_from_expsyms_cmds_GCJ=
16623   export_dynamic_flag_spec_GCJ=
16624   whole_archive_flag_spec_GCJ=
16625   thread_safe_flag_spec_GCJ=
16626   hardcode_libdir_flag_spec_GCJ=
16627   hardcode_libdir_flag_spec_ld_GCJ=
16628   hardcode_libdir_separator_GCJ=
16629   hardcode_direct_GCJ=no
16630   hardcode_minus_L_GCJ=no
16631   hardcode_shlibpath_var_GCJ=unsupported
16632   link_all_deplibs_GCJ=unknown
16633   hardcode_automatic_GCJ=no
16634   module_cmds_GCJ=
16635   module_expsym_cmds_GCJ=
16636   always_export_symbols_GCJ=no
16637   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16638   # include_expsyms should be a list of space-separated symbols to be *always*
16639   # included in the symbol list
16640   include_expsyms_GCJ=
16641   # exclude_expsyms can be an extended regexp of symbols to exclude
16642   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16643   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16644   # as well as any symbol that contains `d'.
16645   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16646   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16647   # platforms (ab)use it in PIC code, but their linkers get confused if
16648   # the symbol is explicitly referenced.  Since portable code cannot
16649   # rely on this symbol name, it's probably fine to never include it in
16650   # preloaded symbol tables.
16651   extract_expsyms_cmds=
16652
16653   case $host_os in
16654   cygwin* | mingw* | pw32*)
16655     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16656     # When not using gcc, we currently assume that we are using
16657     # Microsoft Visual C++.
16658     if test "$GCC" != yes; then
16659       with_gnu_ld=no
16660     fi
16661     ;;
16662   openbsd*)
16663     with_gnu_ld=no
16664     ;;
16665   esac
16666
16667   ld_shlibs_GCJ=yes
16668   if test "$with_gnu_ld" = yes; then
16669     # If archive_cmds runs LD, not CC, wlarc should be empty
16670     wlarc='${wl}'
16671
16672     # See if GNU ld supports shared libraries.
16673     case $host_os in
16674     aix3* | aix4* | aix5*)
16675       # On AIX/PPC, the GNU linker is very broken
16676       if test "$host_cpu" != ia64; then
16677         ld_shlibs_GCJ=no
16678         cat <<EOF 1>&2
16679
16680 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16681 *** to be unable to reliably create shared libraries on AIX.
16682 *** Therefore, libtool is disabling shared libraries support.  If you
16683 *** really care for shared libraries, you may want to modify your PATH
16684 *** so that a non-GNU linker is found, and then restart.
16685
16686 EOF
16687       fi
16688       ;;
16689
16690     amigaos*)
16691       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)'
16692       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16693       hardcode_minus_L_GCJ=yes
16694
16695       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16696       # that the semantics of dynamic libraries on AmigaOS, at least up
16697       # to version 4, is to share data among multiple programs linked
16698       # with the same dynamic library.  Since this doesn't match the
16699       # behavior of shared libraries on other platforms, we can't use
16700       # them.
16701       ld_shlibs_GCJ=no
16702       ;;
16703
16704     beos*)
16705       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16706         allow_undefined_flag_GCJ=unsupported
16707         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16708         # support --undefined.  This deserves some investigation.  FIXME
16709         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16710       else
16711         ld_shlibs_GCJ=no
16712       fi
16713       ;;
16714
16715     cygwin* | mingw* | pw32*)
16716       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16717       # as there is no search path for DLLs.
16718       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16719       allow_undefined_flag_GCJ=unsupported
16720       always_export_symbols_GCJ=no
16721       enable_shared_with_static_runtimes_GCJ=yes
16722       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16723
16724       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16725         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16726         # If the export-symbols file already is a .def file (1st line
16727         # is EXPORTS), use it as is; otherwise, prepend...
16728         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16729           cp $export_symbols $output_objdir/$soname.def;
16730         else
16731           echo EXPORTS > $output_objdir/$soname.def;
16732           cat $export_symbols >> $output_objdir/$soname.def;
16733         fi~
16734         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16735       else
16736         ld_shlibs=no
16737       fi
16738       ;;
16739
16740     netbsd*)
16741       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16742         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16743         wlarc=
16744       else
16745         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16746         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16747       fi
16748       ;;
16749
16750     solaris* | sysv5*)
16751       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16752         ld_shlibs_GCJ=no
16753         cat <<EOF 1>&2
16754
16755 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16756 *** create shared libraries on Solaris systems.  Therefore, libtool
16757 *** is disabling shared libraries support.  We urge you to upgrade GNU
16758 *** binutils to release 2.9.1 or newer.  Another option is to modify
16759 *** your PATH or compiler configuration so that the native linker is
16760 *** used, and then restart.
16761
16762 EOF
16763       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16764         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16765         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16766       else
16767         ld_shlibs_GCJ=no
16768       fi
16769       ;;
16770
16771     sunos4*)
16772       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16773       wlarc=
16774       hardcode_direct_GCJ=yes
16775       hardcode_shlibpath_var_GCJ=no
16776       ;;
16777
16778   linux*)
16779     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16780         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16781         archive_cmds_GCJ="$tmp_archive_cmds"
16782       supports_anon_versioning=no
16783       case `$LD -v 2>/dev/null` in
16784         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16785         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16786         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16787         *\ 2.11.*) ;; # other 2.11 versions
16788         *) supports_anon_versioning=yes ;;
16789       esac
16790       if test $supports_anon_versioning = yes; then
16791         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16793 $echo "local: *; };" >> $output_objdir/$libname.ver~
16794         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16795       else
16796         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16797       fi
16798     else
16799       ld_shlibs_GCJ=no
16800     fi
16801     ;;
16802
16803     *)
16804       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16805         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16806         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16807       else
16808         ld_shlibs_GCJ=no
16809       fi
16810       ;;
16811     esac
16812
16813     if test "$ld_shlibs_GCJ" = yes; then
16814       runpath_var=LD_RUN_PATH
16815       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16816       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16817       # ancient GNU ld didn't support --whole-archive et. al.
16818       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16819         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16820       else
16821         whole_archive_flag_spec_GCJ=
16822       fi
16823     fi
16824   else
16825     # PORTME fill in a description of your system's linker (not GNU ld)
16826     case $host_os in
16827     aix3*)
16828       allow_undefined_flag_GCJ=unsupported
16829       always_export_symbols_GCJ=yes
16830       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'
16831       # Note: this linker hardcodes the directories in LIBPATH if there
16832       # are no directories specified by -L.
16833       hardcode_minus_L_GCJ=yes
16834       if test "$GCC" = yes && test -z "$link_static_flag"; then
16835         # Neither direct hardcoding nor static linking is supported with a
16836         # broken collect2.
16837         hardcode_direct_GCJ=unsupported
16838       fi
16839       ;;
16840
16841     aix4* | aix5*)
16842       if test "$host_cpu" = ia64; then
16843         # On IA64, the linker does run time linking by default, so we don't
16844         # have to do anything special.
16845         aix_use_runtimelinking=no
16846         exp_sym_flag='-Bexport'
16847         no_entry_flag=""
16848       else
16849         # If we're using GNU nm, then we don't want the "-C" option.
16850         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16851         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16852           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'
16853         else
16854           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'
16855         fi
16856         aix_use_runtimelinking=no
16857
16858         # Test if we are trying to use run time linking or normal
16859         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16860         # need to do runtime linking.
16861         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16862           for ld_flag in $LDFLAGS; do
16863           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16864             aix_use_runtimelinking=yes
16865             break
16866           fi
16867           done
16868         esac
16869
16870         exp_sym_flag='-bexport'
16871         no_entry_flag='-bnoentry'
16872       fi
16873
16874       # When large executables or shared objects are built, AIX ld can
16875       # have problems creating the table of contents.  If linking a library
16876       # or program results in "error TOC overflow" add -mminimal-toc to
16877       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16878       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16879
16880       archive_cmds_GCJ=''
16881       hardcode_direct_GCJ=yes
16882       hardcode_libdir_separator_GCJ=':'
16883       link_all_deplibs_GCJ=yes
16884
16885       if test "$GCC" = yes; then
16886         case $host_os in aix4.012|aix4.012.*)
16887         # We only want to do this on AIX 4.2 and lower, the check
16888         # below for broken collect2 doesn't work under 4.3+
16889           collect2name=`${CC} -print-prog-name=collect2`
16890           if test -f "$collect2name" && \
16891            strings "$collect2name" | grep resolve_lib_name >/dev/null
16892           then
16893           # We have reworked collect2
16894           hardcode_direct_GCJ=yes
16895           else
16896           # We have old collect2
16897           hardcode_direct_GCJ=unsupported
16898           # It fails to find uninstalled libraries when the uninstalled
16899           # path is not listed in the libpath.  Setting hardcode_minus_L
16900           # to unsupported forces relinking
16901           hardcode_minus_L_GCJ=yes
16902           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16903           hardcode_libdir_separator_GCJ=
16904           fi
16905         esac
16906         shared_flag='-shared'
16907       else
16908         # not using gcc
16909         if test "$host_cpu" = ia64; then
16910         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16911         # chokes on -Wl,-G. The following line is correct:
16912           shared_flag='-G'
16913         else
16914         if test "$aix_use_runtimelinking" = yes; then
16915             shared_flag='${wl}-G'
16916           else
16917             shared_flag='${wl}-bM:SRE'
16918         fi
16919         fi
16920       fi
16921
16922       # It seems that -bexpall does not export symbols beginning with
16923       # underscore (_), so it is better to generate a list of symbols to export.
16924       always_export_symbols_GCJ=yes
16925       if test "$aix_use_runtimelinking" = yes; then
16926         # Warning - without using the other runtime loading flags (-brtl),
16927         # -berok will link without error, but may produce a broken library.
16928         allow_undefined_flag_GCJ='-berok'
16929        # Determine the default libpath from the value encoded in an empty executable.
16930        cat >conftest.$ac_ext <<_ACEOF
16931 /* confdefs.h.  */
16932 _ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h.  */
16936
16937 int
16938 main ()
16939 {
16940
16941   ;
16942   return 0;
16943 }
16944 _ACEOF
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16947   (eval $ac_link) 2>conftest.er1
16948   ac_status=$?
16949   grep -v '^ *+' conftest.er1 >conftest.err
16950   rm -f conftest.er1
16951   cat conftest.err >&5
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } &&
16954          { ac_try='test -z "$ac_c_werror_flag"
16955                          || test ! -s conftest.err'
16956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957   (eval $ac_try) 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); }; } &&
16961          { ac_try='test -s conftest$ac_exeext'
16962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963   (eval $ac_try) 2>&5
16964   ac_status=$?
16965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); }; }; then
16967
16968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16969 }'`
16970 # Check for a 64-bit object if we didn't find anything.
16971 if 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; }
16972 }'`; fi
16973 else
16974   echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16976
16977 fi
16978 rm -f conftest.err conftest.$ac_objext \
16979       conftest$ac_exeext conftest.$ac_ext
16980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16981
16982        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16983         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"
16984        else
16985         if test "$host_cpu" = ia64; then
16986           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16987           allow_undefined_flag_GCJ="-z nodefs"
16988           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"
16989         else
16990          # Determine the default libpath from the value encoded in an empty executable.
16991          cat >conftest.$ac_ext <<_ACEOF
16992 /* confdefs.h.  */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h.  */
16997
16998 int
16999 main ()
17000 {
17001
17002   ;
17003   return 0;
17004 }
17005 _ACEOF
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17008   (eval $ac_link) 2>conftest.er1
17009   ac_status=$?
17010   grep -v '^ *+' conftest.er1 >conftest.err
17011   rm -f conftest.er1
17012   cat conftest.err >&5
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); } &&
17015          { ac_try='test -z "$ac_c_werror_flag"
17016                          || test ! -s conftest.err'
17017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018   (eval $ac_try) 2>&5
17019   ac_status=$?
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); }; } &&
17022          { ac_try='test -s conftest$ac_exeext'
17023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024   (eval $ac_try) 2>&5
17025   ac_status=$?
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); }; }; then
17028
17029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17030 }'`
17031 # Check for a 64-bit object if we didn't find anything.
17032 if 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; }
17033 }'`; fi
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038 fi
17039 rm -f conftest.err conftest.$ac_objext \
17040       conftest$ac_exeext conftest.$ac_ext
17041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17042
17043          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17044           # Warning - without using the other run time loading flags,
17045           # -berok will link without error, but may produce a broken library.
17046           no_undefined_flag_GCJ=' ${wl}-bernotok'
17047           allow_undefined_flag_GCJ=' ${wl}-berok'
17048           # -bexpall does not export symbols beginning with underscore (_)
17049           always_export_symbols_GCJ=yes
17050           # Exported symbols can be pulled into shared objects from archives
17051           whole_archive_flag_spec_GCJ=' '
17052           archive_cmds_need_lc_GCJ=yes
17053           # This is similar to how AIX traditionally builds it's shared libraries.
17054           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'
17055         fi
17056       fi
17057       ;;
17058
17059     amigaos*)
17060       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)'
17061       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17062       hardcode_minus_L_GCJ=yes
17063       # see comment about different semantics on the GNU ld section
17064       ld_shlibs_GCJ=no
17065       ;;
17066
17067     bsdi4*)
17068       export_dynamic_flag_spec_GCJ=-rdynamic
17069       ;;
17070
17071     cygwin* | mingw* | pw32*)
17072       # When not using gcc, we currently assume that we are using
17073       # Microsoft Visual C++.
17074       # hardcode_libdir_flag_spec is actually meaningless, as there is
17075       # no search path for DLLs.
17076       hardcode_libdir_flag_spec_GCJ=' '
17077       allow_undefined_flag_GCJ=unsupported
17078       # Tell ltmain to make .lib files, not .a files.
17079       libext=lib
17080       # Tell ltmain to make .dll files, not .so files.
17081       shrext=".dll"
17082       # FIXME: Setting linknames here is a bad hack.
17083       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17084       # The linker will automatically build a .lib file if we build a DLL.
17085       old_archive_From_new_cmds_GCJ='true'
17086       # FIXME: Should let the user specify the lib program.
17087       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17088       fix_srcfile_path='`cygpath -w "$srcfile"`'
17089       enable_shared_with_static_runtimes_GCJ=yes
17090       ;;
17091
17092     darwin* | rhapsody*)
17093     if test "$GXX" = yes ; then
17094       archive_cmds_need_lc_GCJ=no
17095       case "$host_os" in
17096       rhapsody* | darwin1.[012])
17097         allow_undefined_flag_GCJ='-undefined suppress'
17098         ;;
17099       *) # Darwin 1.3 on
17100       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17101         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17102       else
17103         case ${MACOSX_DEPLOYMENT_TARGET} in
17104           10.[012])
17105             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17106             ;;
17107           10.*)
17108             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17109             ;;
17110         esac
17111       fi
17112         ;;
17113       esac
17114         lt_int_apple_cc_single_mod=no
17115         output_verbose_link_cmd='echo'
17116         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17117           lt_int_apple_cc_single_mod=yes
17118         fi
17119         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17120           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17121         else
17122         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'
17123       fi
17124       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17125       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17126         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17127           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}'
17128         else
17129           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}'
17130         fi
17131           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}'
17132       hardcode_direct_GCJ=no
17133       hardcode_automatic_GCJ=yes
17134       hardcode_shlibpath_var_GCJ=unsupported
17135       whole_archive_flag_spec_GCJ='-all_load $convenience'
17136       link_all_deplibs_GCJ=yes
17137     else
17138       ld_shlibs_GCJ=no
17139     fi
17140       ;;
17141
17142     dgux*)
17143       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17144       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17145       hardcode_shlibpath_var_GCJ=no
17146       ;;
17147
17148     freebsd1*)
17149       ld_shlibs_GCJ=no
17150       ;;
17151
17152     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17153     # support.  Future versions do this automatically, but an explicit c++rt0.o
17154     # does not break anything, and helps significantly (at the cost of a little
17155     # extra space).
17156     freebsd2.2*)
17157       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17158       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17159       hardcode_direct_GCJ=yes
17160       hardcode_shlibpath_var_GCJ=no
17161       ;;
17162
17163     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17164     freebsd2*)
17165       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17166       hardcode_direct_GCJ=yes
17167       hardcode_minus_L_GCJ=yes
17168       hardcode_shlibpath_var_GCJ=no
17169       ;;
17170
17171     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17172     freebsd* | kfreebsd*-gnu)
17173       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17174       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17175       hardcode_direct_GCJ=yes
17176       hardcode_shlibpath_var_GCJ=no
17177       ;;
17178
17179     hpux9*)
17180       if test "$GCC" = yes; then
17181         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'
17182       else
17183         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'
17184       fi
17185       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17186       hardcode_libdir_separator_GCJ=:
17187       hardcode_direct_GCJ=yes
17188
17189       # hardcode_minus_L: Not really in the search PATH,
17190       # but as the default location of the library.
17191       hardcode_minus_L_GCJ=yes
17192       export_dynamic_flag_spec_GCJ='${wl}-E'
17193       ;;
17194
17195     hpux10* | hpux11*)
17196       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17197         case "$host_cpu" in
17198         hppa*64*|ia64*)
17199           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17200           ;;
17201         *)
17202           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17203           ;;
17204         esac
17205       else
17206         case "$host_cpu" in
17207         hppa*64*|ia64*)
17208           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17209           ;;
17210         *)
17211           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17212           ;;
17213         esac
17214       fi
17215       if test "$with_gnu_ld" = no; then
17216         case "$host_cpu" in
17217         hppa*64*)
17218           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17219           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17220           hardcode_libdir_separator_GCJ=:
17221           hardcode_direct_GCJ=no
17222           hardcode_shlibpath_var_GCJ=no
17223           ;;
17224         ia64*)
17225           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17226           hardcode_direct_GCJ=no
17227           hardcode_shlibpath_var_GCJ=no
17228
17229           # hardcode_minus_L: Not really in the search PATH,
17230           # but as the default location of the library.
17231           hardcode_minus_L_GCJ=yes
17232           ;;
17233         *)
17234           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17235           hardcode_libdir_separator_GCJ=:
17236           hardcode_direct_GCJ=yes
17237           export_dynamic_flag_spec_GCJ='${wl}-E'
17238
17239           # hardcode_minus_L: Not really in the search PATH,
17240           # but as the default location of the library.
17241           hardcode_minus_L_GCJ=yes
17242           ;;
17243         esac
17244       fi
17245       ;;
17246
17247     irix5* | irix6* | nonstopux*)
17248       if test "$GCC" = yes; then
17249         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'
17250       else
17251         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'
17252         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17253       fi
17254       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17255       hardcode_libdir_separator_GCJ=:
17256       link_all_deplibs_GCJ=yes
17257       ;;
17258
17259     netbsd*)
17260       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17261         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17262       else
17263         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17264       fi
17265       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17266       hardcode_direct_GCJ=yes
17267       hardcode_shlibpath_var_GCJ=no
17268       ;;
17269
17270     newsos6)
17271       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17272       hardcode_direct_GCJ=yes
17273       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17274       hardcode_libdir_separator_GCJ=:
17275       hardcode_shlibpath_var_GCJ=no
17276       ;;
17277
17278     openbsd*)
17279       hardcode_direct_GCJ=yes
17280       hardcode_shlibpath_var_GCJ=no
17281       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17282         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17283         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17284         export_dynamic_flag_spec_GCJ='${wl}-E'
17285       else
17286        case $host_os in
17287          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17288            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17289            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17290            ;;
17291          *)
17292            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17293            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17294            ;;
17295        esac
17296       fi
17297       ;;
17298
17299     os2*)
17300       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17301       hardcode_minus_L_GCJ=yes
17302       allow_undefined_flag_GCJ=unsupported
17303       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'
17304       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17305       ;;
17306
17307     osf3*)
17308       if test "$GCC" = yes; then
17309         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17310         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'
17311       else
17312         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17313         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'
17314       fi
17315       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17316       hardcode_libdir_separator_GCJ=:
17317       ;;
17318
17319     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17320       if test "$GCC" = yes; then
17321         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17322         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'
17323         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17324       else
17325         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17326         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'
17327         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~
17328         $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'
17329
17330         # Both c and cxx compiler support -rpath directly
17331         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17332       fi
17333       hardcode_libdir_separator_GCJ=:
17334       ;;
17335
17336     sco3.2v5*)
17337       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17338       hardcode_shlibpath_var_GCJ=no
17339       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17340       runpath_var=LD_RUN_PATH
17341       hardcode_runpath_var=yes
17342       ;;
17343
17344     solaris*)
17345       no_undefined_flag_GCJ=' -z text'
17346       if test "$GCC" = yes; then
17347         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17348         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17349           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17350       else
17351         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17352         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17353         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17354       fi
17355       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17356       hardcode_shlibpath_var_GCJ=no
17357       case $host_os in
17358       solaris2.[0-5] | solaris2.[0-5].*) ;;
17359       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17360         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17361       esac
17362       link_all_deplibs_GCJ=yes
17363       ;;
17364
17365     sunos4*)
17366       if test "x$host_vendor" = xsequent; then
17367         # Use $CC to link under sequent, because it throws in some extra .o
17368         # files that make .init and .fini sections work.
17369         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17370       else
17371         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17372       fi
17373       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17374       hardcode_direct_GCJ=yes
17375       hardcode_minus_L_GCJ=yes
17376       hardcode_shlibpath_var_GCJ=no
17377       ;;
17378
17379     sysv4)
17380       case $host_vendor in
17381         sni)
17382           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17383           hardcode_direct_GCJ=yes # is this really true???
17384         ;;
17385         siemens)
17386           ## LD is ld it makes a PLAMLIB
17387           ## CC just makes a GrossModule.
17388           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17389           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17390           hardcode_direct_GCJ=no
17391         ;;
17392         motorola)
17393           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17394           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17395         ;;
17396       esac
17397       runpath_var='LD_RUN_PATH'
17398       hardcode_shlibpath_var_GCJ=no
17399       ;;
17400
17401     sysv4.3*)
17402       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403       hardcode_shlibpath_var_GCJ=no
17404       export_dynamic_flag_spec_GCJ='-Bexport'
17405       ;;
17406
17407     sysv4*MP*)
17408       if test -d /usr/nec; then
17409         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17410         hardcode_shlibpath_var_GCJ=no
17411         runpath_var=LD_RUN_PATH
17412         hardcode_runpath_var=yes
17413         ld_shlibs_GCJ=yes
17414       fi
17415       ;;
17416
17417     sysv4.2uw2*)
17418       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17419       hardcode_direct_GCJ=yes
17420       hardcode_minus_L_GCJ=no
17421       hardcode_shlibpath_var_GCJ=no
17422       hardcode_runpath_var=yes
17423       runpath_var=LD_RUN_PATH
17424       ;;
17425
17426    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17427       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17428       if test "$GCC" = yes; then
17429         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17430       else
17431         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17432       fi
17433       runpath_var='LD_RUN_PATH'
17434       hardcode_shlibpath_var_GCJ=no
17435       ;;
17436
17437     sysv5*)
17438       no_undefined_flag_GCJ=' -z text'
17439       # $CC -shared without GNU ld will not create a library from C++
17440       # object files and a static libstdc++, better avoid it by now
17441       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17442       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17443                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17444       hardcode_libdir_flag_spec_GCJ=
17445       hardcode_shlibpath_var_GCJ=no
17446       runpath_var='LD_RUN_PATH'
17447       ;;
17448
17449     uts4*)
17450       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17451       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17452       hardcode_shlibpath_var_GCJ=no
17453       ;;
17454
17455     *)
17456       ld_shlibs_GCJ=no
17457       ;;
17458     esac
17459   fi
17460
17461 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17462 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17463 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17464
17465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17466 if test "$GCC" = yes; then
17467   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17468 fi
17469
17470 #
17471 # Do we need to explicitly link libc?
17472 #
17473 case "x$archive_cmds_need_lc_GCJ" in
17474 x|xyes)
17475   # Assume -lc should be added
17476   archive_cmds_need_lc_GCJ=yes
17477
17478   if test "$enable_shared" = yes && test "$GCC" = yes; then
17479     case $archive_cmds_GCJ in
17480     *'~'*)
17481       # FIXME: we may have to deal with multi-command sequences.
17482       ;;
17483     '$CC '*)
17484       # Test whether the compiler implicitly links with -lc since on some
17485       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17486       # to ld, don't add -lc before -lgcc.
17487       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17488 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17489       $rm conftest*
17490       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17491
17492       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493   (eval $ac_compile) 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); } 2>conftest.err; then
17497         soname=conftest
17498         lib=conftest
17499         libobjs=conftest.$ac_objext
17500         deplibs=
17501         wl=$lt_prog_compiler_wl_GCJ
17502         compiler_flags=-v
17503         linker_flags=-v
17504         verstring=
17505         output_objdir=.
17506         libname=conftest
17507         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17508         allow_undefined_flag_GCJ=
17509         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17510   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17511   ac_status=$?
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); }
17514         then
17515           archive_cmds_need_lc_GCJ=no
17516         else
17517           archive_cmds_need_lc_GCJ=yes
17518         fi
17519         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17520       else
17521         cat conftest.err 1>&5
17522       fi
17523       $rm conftest*
17524       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17525 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17526       ;;
17527     esac
17528   fi
17529   ;;
17530 esac
17531
17532 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17533 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17534 library_names_spec=
17535 libname_spec='lib$name'
17536 soname_spec=
17537 shrext=".so"
17538 postinstall_cmds=
17539 postuninstall_cmds=
17540 finish_cmds=
17541 finish_eval=
17542 shlibpath_var=
17543 shlibpath_overrides_runpath=unknown
17544 version_type=none
17545 dynamic_linker="$host_os ld.so"
17546 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17547 if test "$GCC" = yes; then
17548   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17549   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17550     # if the path contains ";" then we assume it to be the separator
17551     # otherwise default to the standard path separator (i.e. ":") - it is
17552     # assumed that no part of a normal pathname contains ";" but that should
17553     # okay in the real world where ";" in dirpaths is itself problematic.
17554     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17555   else
17556     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17557   fi
17558 else
17559   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17560 fi
17561 need_lib_prefix=unknown
17562 hardcode_into_libs=no
17563
17564 # when you set need_version to no, make sure it does not cause -set_version
17565 # flags to be left without arguments
17566 need_version=unknown
17567
17568 case $host_os in
17569 aix3*)
17570   version_type=linux
17571   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17572   shlibpath_var=LIBPATH
17573
17574   # AIX 3 has no versioning support, so we append a major version to the name.
17575   soname_spec='${libname}${release}${shared_ext}$major'
17576   ;;
17577
17578 aix4* | aix5*)
17579   version_type=linux
17580   need_lib_prefix=no
17581   need_version=no
17582   hardcode_into_libs=yes
17583   if test "$host_cpu" = ia64; then
17584     # AIX 5 supports IA64
17585     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17586     shlibpath_var=LD_LIBRARY_PATH
17587   else
17588     # With GCC up to 2.95.x, collect2 would create an import file
17589     # for dependence libraries.  The import file would start with
17590     # the line `#! .'.  This would cause the generated library to
17591     # depend on `.', always an invalid library.  This was fixed in
17592     # development snapshots of GCC prior to 3.0.
17593     case $host_os in
17594       aix4 | aix4.[01] | aix4.[01].*)
17595       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17596            echo ' yes '
17597            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17598         :
17599       else
17600         can_build_shared=no
17601       fi
17602       ;;
17603     esac
17604     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17605     # soname into executable. Probably we can add versioning support to
17606     # collect2, so additional links can be useful in future.
17607     if test "$aix_use_runtimelinking" = yes; then
17608       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17609       # instead of lib<name>.a to let people know that these are not
17610       # typical AIX shared libraries.
17611       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612     else
17613       # We preserve .a as extension for shared libraries through AIX4.2
17614       # and later when we are not doing run time linking.
17615       library_names_spec='${libname}${release}.a $libname.a'
17616       soname_spec='${libname}${release}${shared_ext}$major'
17617     fi
17618     shlibpath_var=LIBPATH
17619   fi
17620   ;;
17621
17622 amigaos*)
17623   library_names_spec='$libname.ixlibrary $libname.a'
17624   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17625   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'
17626   ;;
17627
17628 beos*)
17629   library_names_spec='${libname}${shared_ext}'
17630   dynamic_linker="$host_os ld.so"
17631   shlibpath_var=LIBRARY_PATH
17632   ;;
17633
17634 bsdi4*)
17635   version_type=linux
17636   need_version=no
17637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638   soname_spec='${libname}${release}${shared_ext}$major'
17639   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17640   shlibpath_var=LD_LIBRARY_PATH
17641   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17642   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17643   # the default ld.so.conf also contains /usr/contrib/lib and
17644   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17645   # libtool to hard-code these into programs
17646   ;;
17647
17648 cygwin* | mingw* | pw32*)
17649   version_type=windows
17650   shrext=".dll"
17651   need_version=no
17652   need_lib_prefix=no
17653
17654   case $GCC,$host_os in
17655   yes,cygwin* | yes,mingw* | yes,pw32*)
17656     library_names_spec='$libname.dll.a'
17657     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17658     postinstall_cmds='base_file=`basename \${file}`~
17659       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17660       dldir=$destdir/`dirname \$dlpath`~
17661       test -d \$dldir || mkdir -p \$dldir~
17662       $install_prog $dir/$dlname \$dldir/$dlname'
17663     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17664       dlpath=$dir/\$dldll~
17665        $rm \$dlpath'
17666     shlibpath_overrides_runpath=yes
17667
17668     case $host_os in
17669     cygwin*)
17670       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17671       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17672       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17673       ;;
17674     mingw*)
17675       # MinGW DLLs use traditional 'lib' prefix
17676       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17677       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17678       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17679         # It is most probably a Windows format PATH printed by
17680         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17681         # path with ; separators, and with drive letters. We can handle the
17682         # drive letters (cygwin fileutils understands them), so leave them,
17683         # especially as we might pass files found there to a mingw objdump,
17684         # which wouldn't understand a cygwinified path. Ahh.
17685         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17686       else
17687         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17688       fi
17689       ;;
17690     pw32*)
17691       # pw32 DLLs use 'pw' prefix rather than 'lib'
17692       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17693       ;;
17694     esac
17695     ;;
17696
17697   *)
17698     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17699     ;;
17700   esac
17701   dynamic_linker='Win32 ld.exe'
17702   # FIXME: first we should search . and the directory the executable is in
17703   shlibpath_var=PATH
17704   ;;
17705
17706 darwin* | rhapsody*)
17707   dynamic_linker="$host_os dyld"
17708   version_type=darwin
17709   need_lib_prefix=no
17710   need_version=no
17711   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17712   soname_spec='${libname}${release}${major}$shared_ext'
17713   shlibpath_overrides_runpath=yes
17714   shlibpath_var=DYLD_LIBRARY_PATH
17715   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17716   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17717   if test "$GCC" = yes; then
17718     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"`
17719   else
17720     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17721   fi
17722   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17723   ;;
17724
17725 dgux*)
17726   version_type=linux
17727   need_lib_prefix=no
17728   need_version=no
17729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17730   soname_spec='${libname}${release}${shared_ext}$major'
17731   shlibpath_var=LD_LIBRARY_PATH
17732   ;;
17733
17734 freebsd1*)
17735   dynamic_linker=no
17736   ;;
17737
17738 kfreebsd*-gnu)
17739   version_type=linux
17740   need_lib_prefix=no
17741   need_version=no
17742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17743   soname_spec='${libname}${release}${shared_ext}$major'
17744   shlibpath_var=LD_LIBRARY_PATH
17745   shlibpath_overrides_runpath=no
17746   hardcode_into_libs=yes
17747   dynamic_linker='GNU ld.so'
17748   ;;
17749
17750 freebsd*)
17751   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17752   version_type=freebsd-$objformat
17753   case $version_type in
17754     freebsd-elf*)
17755       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17756       need_version=no
17757       need_lib_prefix=no
17758       ;;
17759     freebsd-*)
17760       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17761       need_version=yes
17762       ;;
17763   esac
17764   shlibpath_var=LD_LIBRARY_PATH
17765   case $host_os in
17766   freebsd2*)
17767     shlibpath_overrides_runpath=yes
17768     ;;
17769   freebsd3.01* | freebsdelf3.01*)
17770     shlibpath_overrides_runpath=yes
17771     hardcode_into_libs=yes
17772     ;;
17773   *) # from 3.2 on
17774     shlibpath_overrides_runpath=no
17775     hardcode_into_libs=yes
17776     ;;
17777   esac
17778   ;;
17779
17780 gnu*)
17781   version_type=linux
17782   need_lib_prefix=no
17783   need_version=no
17784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17785   soname_spec='${libname}${release}${shared_ext}$major'
17786   shlibpath_var=LD_LIBRARY_PATH
17787   hardcode_into_libs=yes
17788   ;;
17789
17790 hpux9* | hpux10* | hpux11*)
17791   # Give a soname corresponding to the major version so that dld.sl refuses to
17792   # link against other versions.
17793   version_type=sunos
17794   need_lib_prefix=no
17795   need_version=no
17796   case "$host_cpu" in
17797   ia64*)
17798     shrext='.so'
17799     hardcode_into_libs=yes
17800     dynamic_linker="$host_os dld.so"
17801     shlibpath_var=LD_LIBRARY_PATH
17802     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17804     soname_spec='${libname}${release}${shared_ext}$major'
17805     if test "X$HPUX_IA64_MODE" = X32; then
17806       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17807     else
17808       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17809     fi
17810     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17811     ;;
17812    hppa*64*)
17813      shrext='.sl'
17814      hardcode_into_libs=yes
17815      dynamic_linker="$host_os dld.sl"
17816      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17817      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17818      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819      soname_spec='${libname}${release}${shared_ext}$major'
17820      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17821      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17822      ;;
17823    *)
17824     shrext='.sl'
17825     dynamic_linker="$host_os dld.sl"
17826     shlibpath_var=SHLIB_PATH
17827     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829     soname_spec='${libname}${release}${shared_ext}$major'
17830     ;;
17831   esac
17832   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17833   postinstall_cmds='chmod 555 $lib'
17834   ;;
17835
17836 irix5* | irix6* | nonstopux*)
17837   case $host_os in
17838     nonstopux*) version_type=nonstopux ;;
17839     *)
17840         if test "$lt_cv_prog_gnu_ld" = yes; then
17841                 version_type=linux
17842         else
17843                 version_type=irix
17844         fi ;;
17845   esac
17846   need_lib_prefix=no
17847   need_version=no
17848   soname_spec='${libname}${release}${shared_ext}$major'
17849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17850   case $host_os in
17851   irix5* | nonstopux*)
17852     libsuff= shlibsuff=
17853     ;;
17854   *)
17855     case $LD in # libtool.m4 will add one of these switches to LD
17856     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17857       libsuff= shlibsuff= libmagic=32-bit;;
17858     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17859       libsuff=32 shlibsuff=N32 libmagic=N32;;
17860     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17861       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17862     *) libsuff= shlibsuff= libmagic=never-match;;
17863     esac
17864     ;;
17865   esac
17866   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17867   shlibpath_overrides_runpath=no
17868   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17869   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17870   hardcode_into_libs=yes
17871   ;;
17872
17873 # No shared lib support for Linux oldld, aout, or coff.
17874 linux*oldld* | linux*aout* | linux*coff*)
17875   dynamic_linker=no
17876   ;;
17877
17878 # This must be Linux ELF.
17879 linux*)
17880   version_type=linux
17881   need_lib_prefix=no
17882   need_version=no
17883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17884   soname_spec='${libname}${release}${shared_ext}$major'
17885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17886   shlibpath_var=LD_LIBRARY_PATH
17887   shlibpath_overrides_runpath=no
17888   # This implies no fast_install, which is unacceptable.
17889   # Some rework will be needed to allow for fast_install
17890   # before this can be enabled.
17891   hardcode_into_libs=yes
17892
17893   # Append ld.so.conf contents to the search path
17894   if test -f /etc/ld.so.conf; then
17895     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17896     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17897   fi
17898
17899   # We used to test for /lib/ld.so.1 and disable shared libraries on
17900   # powerpc, because MkLinux only supported shared libraries with the
17901   # GNU dynamic linker.  Since this was broken with cross compilers,
17902   # most powerpc-linux boxes support dynamic linking these days and
17903   # people can always --disable-shared, the test was removed, and we
17904   # assume the GNU/Linux dynamic linker is in use.
17905   dynamic_linker='GNU/Linux ld.so'
17906   ;;
17907
17908 knetbsd*-gnu)
17909   version_type=linux
17910   need_lib_prefix=no
17911   need_version=no
17912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17913   soname_spec='${libname}${release}${shared_ext}$major'
17914   shlibpath_var=LD_LIBRARY_PATH
17915   shlibpath_overrides_runpath=no
17916   hardcode_into_libs=yes
17917   dynamic_linker='GNU ld.so'
17918   ;;
17919
17920 netbsd*)
17921   version_type=sunos
17922   need_lib_prefix=no
17923   need_version=no
17924   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17926     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17927     dynamic_linker='NetBSD (a.out) ld.so'
17928   else
17929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17930     soname_spec='${libname}${release}${shared_ext}$major'
17931     dynamic_linker='NetBSD ld.elf_so'
17932   fi
17933   shlibpath_var=LD_LIBRARY_PATH
17934   shlibpath_overrides_runpath=yes
17935   hardcode_into_libs=yes
17936   ;;
17937
17938 newsos6)
17939   version_type=linux
17940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941   shlibpath_var=LD_LIBRARY_PATH
17942   shlibpath_overrides_runpath=yes
17943   ;;
17944
17945 nto-qnx*)
17946   version_type=linux
17947   need_lib_prefix=no
17948   need_version=no
17949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17950   soname_spec='${libname}${release}${shared_ext}$major'
17951   shlibpath_var=LD_LIBRARY_PATH
17952   shlibpath_overrides_runpath=yes
17953   ;;
17954
17955 openbsd*)
17956   version_type=sunos
17957   need_lib_prefix=no
17958   need_version=yes
17959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17960   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17961   shlibpath_var=LD_LIBRARY_PATH
17962   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17963     case $host_os in
17964       openbsd2.[89] | openbsd2.[89].*)
17965         shlibpath_overrides_runpath=no
17966         ;;
17967       *)
17968         shlibpath_overrides_runpath=yes
17969         ;;
17970       esac
17971   else
17972     shlibpath_overrides_runpath=yes
17973   fi
17974   ;;
17975
17976 os2*)
17977   libname_spec='$name'
17978   shrext=".dll"
17979   need_lib_prefix=no
17980   library_names_spec='$libname${shared_ext} $libname.a'
17981   dynamic_linker='OS/2 ld.exe'
17982   shlibpath_var=LIBPATH
17983   ;;
17984
17985 osf3* | osf4* | osf5*)
17986   version_type=osf
17987   need_lib_prefix=no
17988   need_version=no
17989   soname_spec='${libname}${release}${shared_ext}$major'
17990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991   shlibpath_var=LD_LIBRARY_PATH
17992   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17993   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17994   ;;
17995
17996 sco3.2v5*)
17997   version_type=osf
17998   soname_spec='${libname}${release}${shared_ext}$major'
17999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18000   shlibpath_var=LD_LIBRARY_PATH
18001   ;;
18002
18003 solaris*)
18004   version_type=linux
18005   need_lib_prefix=no
18006   need_version=no
18007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18008   soname_spec='${libname}${release}${shared_ext}$major'
18009   shlibpath_var=LD_LIBRARY_PATH
18010   shlibpath_overrides_runpath=yes
18011   hardcode_into_libs=yes
18012   # ldd complains unless libraries are executable
18013   postinstall_cmds='chmod +x $lib'
18014   ;;
18015
18016 sunos4*)
18017   version_type=sunos
18018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18019   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18020   shlibpath_var=LD_LIBRARY_PATH
18021   shlibpath_overrides_runpath=yes
18022   if test "$with_gnu_ld" = yes; then
18023     need_lib_prefix=no
18024   fi
18025   need_version=yes
18026   ;;
18027
18028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18029   version_type=linux
18030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18031   soname_spec='${libname}${release}${shared_ext}$major'
18032   shlibpath_var=LD_LIBRARY_PATH
18033   case $host_vendor in
18034     sni)
18035       shlibpath_overrides_runpath=no
18036       need_lib_prefix=no
18037       export_dynamic_flag_spec='${wl}-Blargedynsym'
18038       runpath_var=LD_RUN_PATH
18039       ;;
18040     siemens)
18041       need_lib_prefix=no
18042       ;;
18043     motorola)
18044       need_lib_prefix=no
18045       need_version=no
18046       shlibpath_overrides_runpath=no
18047       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18048       ;;
18049   esac
18050   ;;
18051
18052 sysv4*MP*)
18053   if test -d /usr/nec ;then
18054     version_type=linux
18055     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18056     soname_spec='$libname${shared_ext}.$major'
18057     shlibpath_var=LD_LIBRARY_PATH
18058   fi
18059   ;;
18060
18061 uts4*)
18062   version_type=linux
18063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064   soname_spec='${libname}${release}${shared_ext}$major'
18065   shlibpath_var=LD_LIBRARY_PATH
18066   ;;
18067
18068 *)
18069   dynamic_linker=no
18070   ;;
18071 esac
18072 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18073 echo "${ECHO_T}$dynamic_linker" >&6
18074 test "$dynamic_linker" = no && can_build_shared=no
18075
18076 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18078 hardcode_action_GCJ=
18079 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18080    test -n "$runpath_var GCJ" || \
18081    test "X$hardcode_automatic_GCJ"="Xyes" ; then
18082
18083   # We can hardcode non-existant directories.
18084   if test "$hardcode_direct_GCJ" != no &&
18085      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18086      # have to relink, otherwise we might link with an installed library
18087      # when we should be linking with a yet-to-be-installed one
18088      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18089      test "$hardcode_minus_L_GCJ" != no; then
18090     # Linking always hardcodes the temporary library directory.
18091     hardcode_action_GCJ=relink
18092   else
18093     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18094     hardcode_action_GCJ=immediate
18095   fi
18096 else
18097   # We cannot hardcode anything, or else we can only hardcode existing
18098   # directories.
18099   hardcode_action_GCJ=unsupported
18100 fi
18101 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18102 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18103
18104 if test "$hardcode_action_GCJ" = relink; then
18105   # Fast installation is not supported
18106   enable_fast_install=no
18107 elif test "$shlibpath_overrides_runpath" = yes ||
18108      test "$enable_shared" = no; then
18109   # Fast installation is not necessary
18110   enable_fast_install=needless
18111 fi
18112
18113 striplib=
18114 old_striplib=
18115 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18116 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18117 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18118   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18119   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18120   echo "$as_me:$LINENO: result: yes" >&5
18121 echo "${ECHO_T}yes" >&6
18122 else
18123 # FIXME - insert some real tests, host_os isn't really good enough
18124   case $host_os in
18125    darwin*)
18126        if test -n "$STRIP" ; then
18127          striplib="$STRIP -x"
18128          echo "$as_me:$LINENO: result: yes" >&5
18129 echo "${ECHO_T}yes" >&6
18130        else
18131   echo "$as_me:$LINENO: result: no" >&5
18132 echo "${ECHO_T}no" >&6
18133 fi
18134        ;;
18135    *)
18136   echo "$as_me:$LINENO: result: no" >&5
18137 echo "${ECHO_T}no" >&6
18138     ;;
18139   esac
18140 fi
18141
18142 if test "x$enable_dlopen" != xyes; then
18143   enable_dlopen=unknown
18144   enable_dlopen_self=unknown
18145   enable_dlopen_self_static=unknown
18146 else
18147   lt_cv_dlopen=no
18148   lt_cv_dlopen_libs=
18149
18150   case $host_os in
18151   beos*)
18152     lt_cv_dlopen="load_add_on"
18153     lt_cv_dlopen_libs=
18154     lt_cv_dlopen_self=yes
18155     ;;
18156
18157   mingw* | pw32*)
18158     lt_cv_dlopen="LoadLibrary"
18159     lt_cv_dlopen_libs=
18160    ;;
18161
18162   cygwin*)
18163     lt_cv_dlopen="dlopen"
18164     lt_cv_dlopen_libs=
18165    ;;
18166
18167   darwin*)
18168   # if libdl is installed we need to link against it
18169     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18170 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18171 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18172   echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174   ac_check_lib_save_LIBS=$LIBS
18175 LIBS="-ldl  $LIBS"
18176 cat >conftest.$ac_ext <<_ACEOF
18177 /* confdefs.h.  */
18178 _ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h.  */
18182
18183 /* Override any gcc2 internal prototype to avoid an error.  */
18184 #ifdef __cplusplus
18185 extern "C"
18186 #endif
18187 /* We use char because int might match the return type of a gcc2
18188    builtin and then its argument prototype would still apply.  */
18189 char dlopen ();
18190 int
18191 main ()
18192 {
18193 dlopen ();
18194   ;
18195   return 0;
18196 }
18197 _ACEOF
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200   (eval $ac_link) 2>conftest.er1
18201   ac_status=$?
18202   grep -v '^ *+' conftest.er1 >conftest.err
18203   rm -f conftest.er1
18204   cat conftest.err >&5
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); } &&
18207          { ac_try='test -z "$ac_c_werror_flag"
18208                          || test ! -s conftest.err'
18209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210   (eval $ac_try) 2>&5
18211   ac_status=$?
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); }; } &&
18214          { ac_try='test -s conftest$ac_exeext'
18215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216   (eval $ac_try) 2>&5
18217   ac_status=$?
18218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); }; }; then
18220   ac_cv_lib_dl_dlopen=yes
18221 else
18222   echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18224
18225 ac_cv_lib_dl_dlopen=no
18226 fi
18227 rm -f conftest.err conftest.$ac_objext \
18228       conftest$ac_exeext conftest.$ac_ext
18229 LIBS=$ac_check_lib_save_LIBS
18230 fi
18231 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18232 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18233 if test $ac_cv_lib_dl_dlopen = yes; then
18234   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18235 else
18236
18237     lt_cv_dlopen="dyld"
18238     lt_cv_dlopen_libs=
18239     lt_cv_dlopen_self=yes
18240
18241 fi
18242
18243    ;;
18244
18245   *)
18246     echo "$as_me:$LINENO: checking for shl_load" >&5
18247 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18248 if test "${ac_cv_func_shl_load+set}" = set; then
18249   echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251   cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h.  */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h.  */
18257 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18259 #define shl_load innocuous_shl_load
18260
18261 /* System header to define __stub macros and hopefully few prototypes,
18262     which can conflict with char shl_load (); below.
18263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18264     <limits.h> exists even on freestanding compilers.  */
18265
18266 #ifdef __STDC__
18267 # include <limits.h>
18268 #else
18269 # include <assert.h>
18270 #endif
18271
18272 #undef shl_load
18273
18274 /* Override any gcc2 internal prototype to avoid an error.  */
18275 #ifdef __cplusplus
18276 extern "C"
18277 {
18278 #endif
18279 /* We use char because int might match the return type of a gcc2
18280    builtin and then its argument prototype would still apply.  */
18281 char shl_load ();
18282 /* The GNU C library defines this for functions which it implements
18283     to always fail with ENOSYS.  Some functions are actually named
18284     something starting with __ and the normal name is an alias.  */
18285 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18286 choke me
18287 #else
18288 char (*f) () = shl_load;
18289 #endif
18290 #ifdef __cplusplus
18291 }
18292 #endif
18293
18294 int
18295 main ()
18296 {
18297 return f != shl_load;
18298   ;
18299   return 0;
18300 }
18301 _ACEOF
18302 rm -f conftest.$ac_objext conftest$ac_exeext
18303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304   (eval $ac_link) 2>conftest.er1
18305   ac_status=$?
18306   grep -v '^ *+' conftest.er1 >conftest.err
18307   rm -f conftest.er1
18308   cat conftest.err >&5
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); } &&
18311          { ac_try='test -z "$ac_c_werror_flag"
18312                          || test ! -s conftest.err'
18313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314   (eval $ac_try) 2>&5
18315   ac_status=$?
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); }; } &&
18318          { ac_try='test -s conftest$ac_exeext'
18319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320   (eval $ac_try) 2>&5
18321   ac_status=$?
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); }; }; then
18324   ac_cv_func_shl_load=yes
18325 else
18326   echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18328
18329 ac_cv_func_shl_load=no
18330 fi
18331 rm -f conftest.err conftest.$ac_objext \
18332       conftest$ac_exeext conftest.$ac_ext
18333 fi
18334 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18335 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18336 if test $ac_cv_func_shl_load = yes; then
18337   lt_cv_dlopen="shl_load"
18338 else
18339   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18340 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18341 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18342   echo $ECHO_N "(cached) $ECHO_C" >&6
18343 else
18344   ac_check_lib_save_LIBS=$LIBS
18345 LIBS="-ldld  $LIBS"
18346 cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h.  */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h.  */
18352
18353 /* Override any gcc2 internal prototype to avoid an error.  */
18354 #ifdef __cplusplus
18355 extern "C"
18356 #endif
18357 /* We use char because int might match the return type of a gcc2
18358    builtin and then its argument prototype would still apply.  */
18359 char shl_load ();
18360 int
18361 main ()
18362 {
18363 shl_load ();
18364   ;
18365   return 0;
18366 }
18367 _ACEOF
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370   (eval $ac_link) 2>conftest.er1
18371   ac_status=$?
18372   grep -v '^ *+' conftest.er1 >conftest.err
18373   rm -f conftest.er1
18374   cat conftest.err >&5
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); } &&
18377          { ac_try='test -z "$ac_c_werror_flag"
18378                          || test ! -s conftest.err'
18379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380   (eval $ac_try) 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; } &&
18384          { ac_try='test -s conftest$ac_exeext'
18385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386   (eval $ac_try) 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; }; then
18390   ac_cv_lib_dld_shl_load=yes
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 ac_cv_lib_dld_shl_load=no
18396 fi
18397 rm -f conftest.err conftest.$ac_objext \
18398       conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18400 fi
18401 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18402 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18403 if test $ac_cv_lib_dld_shl_load = yes; then
18404   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18405 else
18406   echo "$as_me:$LINENO: checking for dlopen" >&5
18407 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18408 if test "${ac_cv_func_dlopen+set}" = set; then
18409   echo $ECHO_N "(cached) $ECHO_C" >&6
18410 else
18411   cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h.  */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h.  */
18417 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18419 #define dlopen innocuous_dlopen
18420
18421 /* System header to define __stub macros and hopefully few prototypes,
18422     which can conflict with char dlopen (); below.
18423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18424     <limits.h> exists even on freestanding compilers.  */
18425
18426 #ifdef __STDC__
18427 # include <limits.h>
18428 #else
18429 # include <assert.h>
18430 #endif
18431
18432 #undef dlopen
18433
18434 /* Override any gcc2 internal prototype to avoid an error.  */
18435 #ifdef __cplusplus
18436 extern "C"
18437 {
18438 #endif
18439 /* We use char because int might match the return type of a gcc2
18440    builtin and then its argument prototype would still apply.  */
18441 char dlopen ();
18442 /* The GNU C library defines this for functions which it implements
18443     to always fail with ENOSYS.  Some functions are actually named
18444     something starting with __ and the normal name is an alias.  */
18445 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18446 choke me
18447 #else
18448 char (*f) () = dlopen;
18449 #endif
18450 #ifdef __cplusplus
18451 }
18452 #endif
18453
18454 int
18455 main ()
18456 {
18457 return f != dlopen;
18458   ;
18459   return 0;
18460 }
18461 _ACEOF
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18464   (eval $ac_link) 2>conftest.er1
18465   ac_status=$?
18466   grep -v '^ *+' conftest.er1 >conftest.err
18467   rm -f conftest.er1
18468   cat conftest.err >&5
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); } &&
18471          { ac_try='test -z "$ac_c_werror_flag"
18472                          || test ! -s conftest.err'
18473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474   (eval $ac_try) 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; } &&
18478          { ac_try='test -s conftest$ac_exeext'
18479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480   (eval $ac_try) 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); }; }; then
18484   ac_cv_func_dlopen=yes
18485 else
18486   echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18488
18489 ac_cv_func_dlopen=no
18490 fi
18491 rm -f conftest.err conftest.$ac_objext \
18492       conftest$ac_exeext conftest.$ac_ext
18493 fi
18494 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18495 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18496 if test $ac_cv_func_dlopen = yes; then
18497   lt_cv_dlopen="dlopen"
18498 else
18499   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18500 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18502   echo $ECHO_N "(cached) $ECHO_C" >&6
18503 else
18504   ac_check_lib_save_LIBS=$LIBS
18505 LIBS="-ldl  $LIBS"
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512
18513 /* Override any gcc2 internal prototype to avoid an error.  */
18514 #ifdef __cplusplus
18515 extern "C"
18516 #endif
18517 /* We use char because int might match the return type of a gcc2
18518    builtin and then its argument prototype would still apply.  */
18519 char dlopen ();
18520 int
18521 main ()
18522 {
18523 dlopen ();
18524   ;
18525   return 0;
18526 }
18527 _ACEOF
18528 rm -f conftest.$ac_objext conftest$ac_exeext
18529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18530   (eval $ac_link) 2>conftest.er1
18531   ac_status=$?
18532   grep -v '^ *+' conftest.er1 >conftest.err
18533   rm -f conftest.er1
18534   cat conftest.err >&5
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } &&
18537          { ac_try='test -z "$ac_c_werror_flag"
18538                          || test ! -s conftest.err'
18539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540   (eval $ac_try) 2>&5
18541   ac_status=$?
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); }; } &&
18544          { ac_try='test -s conftest$ac_exeext'
18545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546   (eval $ac_try) 2>&5
18547   ac_status=$?
18548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549   (exit $ac_status); }; }; then
18550   ac_cv_lib_dl_dlopen=yes
18551 else
18552   echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18554
18555 ac_cv_lib_dl_dlopen=no
18556 fi
18557 rm -f conftest.err conftest.$ac_objext \
18558       conftest$ac_exeext conftest.$ac_ext
18559 LIBS=$ac_check_lib_save_LIBS
18560 fi
18561 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18562 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18563 if test $ac_cv_lib_dl_dlopen = yes; then
18564   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18565 else
18566   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18567 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18568 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18569   echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571   ac_check_lib_save_LIBS=$LIBS
18572 LIBS="-lsvld  $LIBS"
18573 cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h.  */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h.  */
18579
18580 /* Override any gcc2 internal prototype to avoid an error.  */
18581 #ifdef __cplusplus
18582 extern "C"
18583 #endif
18584 /* We use char because int might match the return type of a gcc2
18585    builtin and then its argument prototype would still apply.  */
18586 char dlopen ();
18587 int
18588 main ()
18589 {
18590 dlopen ();
18591   ;
18592   return 0;
18593 }
18594 _ACEOF
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18597   (eval $ac_link) 2>conftest.er1
18598   ac_status=$?
18599   grep -v '^ *+' conftest.er1 >conftest.err
18600   rm -f conftest.er1
18601   cat conftest.err >&5
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); } &&
18604          { ac_try='test -z "$ac_c_werror_flag"
18605                          || test ! -s conftest.err'
18606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607   (eval $ac_try) 2>&5
18608   ac_status=$?
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); }; } &&
18611          { ac_try='test -s conftest$ac_exeext'
18612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613   (eval $ac_try) 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; }; then
18617   ac_cv_lib_svld_dlopen=yes
18618 else
18619   echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622 ac_cv_lib_svld_dlopen=no
18623 fi
18624 rm -f conftest.err conftest.$ac_objext \
18625       conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18627 fi
18628 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18630 if test $ac_cv_lib_svld_dlopen = yes; then
18631   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18632 else
18633   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18636   echo $ECHO_N "(cached) $ECHO_C" >&6
18637 else
18638   ac_check_lib_save_LIBS=$LIBS
18639 LIBS="-ldld  $LIBS"
18640 cat >conftest.$ac_ext <<_ACEOF
18641 /* confdefs.h.  */
18642 _ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h.  */
18646
18647 /* Override any gcc2 internal prototype to avoid an error.  */
18648 #ifdef __cplusplus
18649 extern "C"
18650 #endif
18651 /* We use char because int might match the return type of a gcc2
18652    builtin and then its argument prototype would still apply.  */
18653 char dld_link ();
18654 int
18655 main ()
18656 {
18657 dld_link ();
18658   ;
18659   return 0;
18660 }
18661 _ACEOF
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18664   (eval $ac_link) 2>conftest.er1
18665   ac_status=$?
18666   grep -v '^ *+' conftest.er1 >conftest.err
18667   rm -f conftest.er1
18668   cat conftest.err >&5
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); } &&
18671          { ac_try='test -z "$ac_c_werror_flag"
18672                          || test ! -s conftest.err'
18673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674   (eval $ac_try) 2>&5
18675   ac_status=$?
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); }; } &&
18678          { ac_try='test -s conftest$ac_exeext'
18679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680   (eval $ac_try) 2>&5
18681   ac_status=$?
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); }; }; then
18684   ac_cv_lib_dld_dld_link=yes
18685 else
18686   echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 ac_cv_lib_dld_dld_link=no
18690 fi
18691 rm -f conftest.err conftest.$ac_objext \
18692       conftest$ac_exeext conftest.$ac_ext
18693 LIBS=$ac_check_lib_save_LIBS
18694 fi
18695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18696 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18697 if test $ac_cv_lib_dld_dld_link = yes; then
18698   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18699 fi
18700
18701
18702 fi
18703
18704
18705 fi
18706
18707
18708 fi
18709
18710
18711 fi
18712
18713
18714 fi
18715
18716     ;;
18717   esac
18718
18719   if test "x$lt_cv_dlopen" != xno; then
18720     enable_dlopen=yes
18721   else
18722     enable_dlopen=no
18723   fi
18724
18725   case $lt_cv_dlopen in
18726   dlopen)
18727     save_CPPFLAGS="$CPPFLAGS"
18728     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18729
18730     save_LDFLAGS="$LDFLAGS"
18731     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18732
18733     save_LIBS="$LIBS"
18734     LIBS="$lt_cv_dlopen_libs $LIBS"
18735
18736     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18737 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18738 if test "${lt_cv_dlopen_self+set}" = set; then
18739   echo $ECHO_N "(cached) $ECHO_C" >&6
18740 else
18741           if test "$cross_compiling" = yes; then :
18742   lt_cv_dlopen_self=cross
18743 else
18744   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18745   lt_status=$lt_dlunknown
18746   cat > conftest.$ac_ext <<EOF
18747 #line 18747 "configure"
18748 #include "confdefs.h"
18749
18750 #if HAVE_DLFCN_H
18751 #include <dlfcn.h>
18752 #endif
18753
18754 #include <stdio.h>
18755
18756 #ifdef RTLD_GLOBAL
18757 #  define LT_DLGLOBAL           RTLD_GLOBAL
18758 #else
18759 #  ifdef DL_GLOBAL
18760 #    define LT_DLGLOBAL         DL_GLOBAL
18761 #  else
18762 #    define LT_DLGLOBAL         0
18763 #  endif
18764 #endif
18765
18766 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18767    find out it does not work in some platform. */
18768 #ifndef LT_DLLAZY_OR_NOW
18769 #  ifdef RTLD_LAZY
18770 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18771 #  else
18772 #    ifdef DL_LAZY
18773 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18774 #    else
18775 #      ifdef RTLD_NOW
18776 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18777 #      else
18778 #        ifdef DL_NOW
18779 #          define LT_DLLAZY_OR_NOW      DL_NOW
18780 #        else
18781 #          define LT_DLLAZY_OR_NOW      0
18782 #        endif
18783 #      endif
18784 #    endif
18785 #  endif
18786 #endif
18787
18788 #ifdef __cplusplus
18789 extern "C" void exit (int);
18790 #endif
18791
18792 void fnord() { int i=42;}
18793 int main ()
18794 {
18795   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18796   int status = $lt_dlunknown;
18797
18798   if (self)
18799     {
18800       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18801       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18802       /* dlclose (self); */
18803     }
18804
18805     exit (status);
18806 }
18807 EOF
18808   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18809   (eval $ac_link) 2>&5
18810   ac_status=$?
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18813     (./conftest; exit; ) 2>/dev/null
18814     lt_status=$?
18815     case x$lt_status in
18816       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18817       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18818       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18819     esac
18820   else :
18821     # compilation failed
18822     lt_cv_dlopen_self=no
18823   fi
18824 fi
18825 rm -fr conftest*
18826
18827
18828 fi
18829 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18830 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18831
18832     if test "x$lt_cv_dlopen_self" = xyes; then
18833       LDFLAGS="$LDFLAGS $link_static_flag"
18834       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18835 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18836 if test "${lt_cv_dlopen_self_static+set}" = set; then
18837   echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839           if test "$cross_compiling" = yes; then :
18840   lt_cv_dlopen_self_static=cross
18841 else
18842   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18843   lt_status=$lt_dlunknown
18844   cat > conftest.$ac_ext <<EOF
18845 #line 18845 "configure"
18846 #include "confdefs.h"
18847
18848 #if HAVE_DLFCN_H
18849 #include <dlfcn.h>
18850 #endif
18851
18852 #include <stdio.h>
18853
18854 #ifdef RTLD_GLOBAL
18855 #  define LT_DLGLOBAL           RTLD_GLOBAL
18856 #else
18857 #  ifdef DL_GLOBAL
18858 #    define LT_DLGLOBAL         DL_GLOBAL
18859 #  else
18860 #    define LT_DLGLOBAL         0
18861 #  endif
18862 #endif
18863
18864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18865    find out it does not work in some platform. */
18866 #ifndef LT_DLLAZY_OR_NOW
18867 #  ifdef RTLD_LAZY
18868 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18869 #  else
18870 #    ifdef DL_LAZY
18871 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18872 #    else
18873 #      ifdef RTLD_NOW
18874 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18875 #      else
18876 #        ifdef DL_NOW
18877 #          define LT_DLLAZY_OR_NOW      DL_NOW
18878 #        else
18879 #          define LT_DLLAZY_OR_NOW      0
18880 #        endif
18881 #      endif
18882 #    endif
18883 #  endif
18884 #endif
18885
18886 #ifdef __cplusplus
18887 extern "C" void exit (int);
18888 #endif
18889
18890 void fnord() { int i=42;}
18891 int main ()
18892 {
18893   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18894   int status = $lt_dlunknown;
18895
18896   if (self)
18897     {
18898       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18899       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18900       /* dlclose (self); */
18901     }
18902
18903     exit (status);
18904 }
18905 EOF
18906   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18907   (eval $ac_link) 2>&5
18908   ac_status=$?
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18911     (./conftest; exit; ) 2>/dev/null
18912     lt_status=$?
18913     case x$lt_status in
18914       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18915       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18916       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18917     esac
18918   else :
18919     # compilation failed
18920     lt_cv_dlopen_self_static=no
18921   fi
18922 fi
18923 rm -fr conftest*
18924
18925
18926 fi
18927 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18928 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18929     fi
18930
18931     CPPFLAGS="$save_CPPFLAGS"
18932     LDFLAGS="$save_LDFLAGS"
18933     LIBS="$save_LIBS"
18934     ;;
18935   esac
18936
18937   case $lt_cv_dlopen_self in
18938   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18939   *) enable_dlopen_self=unknown ;;
18940   esac
18941
18942   case $lt_cv_dlopen_self_static in
18943   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18944   *) enable_dlopen_self_static=unknown ;;
18945   esac
18946 fi
18947
18948
18949 # The else clause should only fire when bootstrapping the
18950 # libtool distribution, otherwise you forgot to ship ltmain.sh
18951 # with your package, and you will get complaints that there are
18952 # no rules to generate ltmain.sh.
18953 if test -f "$ltmain"; then
18954   # See if we are running on zsh, and set the options which allow our commands through
18955   # without removal of \ escapes.
18956   if test -n "${ZSH_VERSION+set}" ; then
18957     setopt NO_GLOB_SUBST
18958   fi
18959   # Now quote all the things that may contain metacharacters while being
18960   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18961   # variables and quote the copies for generation of the libtool script.
18962   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18963     SED SHELL STRIP \
18964     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18965     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18966     deplibs_check_method reload_flag reload_cmds need_locks \
18967     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18968     lt_cv_sys_global_symbol_to_c_name_address \
18969     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18970     old_postinstall_cmds old_postuninstall_cmds \
18971     compiler_GCJ \
18972     CC_GCJ \
18973     LD_GCJ \
18974     lt_prog_compiler_wl_GCJ \
18975     lt_prog_compiler_pic_GCJ \
18976     lt_prog_compiler_static_GCJ \
18977     lt_prog_compiler_no_builtin_flag_GCJ \
18978     export_dynamic_flag_spec_GCJ \
18979     thread_safe_flag_spec_GCJ \
18980     whole_archive_flag_spec_GCJ \
18981     enable_shared_with_static_runtimes_GCJ \
18982     old_archive_cmds_GCJ \
18983     old_archive_from_new_cmds_GCJ \
18984     predep_objects_GCJ \
18985     postdep_objects_GCJ \
18986     predeps_GCJ \
18987     postdeps_GCJ \
18988     compiler_lib_search_path_GCJ \
18989     archive_cmds_GCJ \
18990     archive_expsym_cmds_GCJ \
18991     postinstall_cmds_GCJ \
18992     postuninstall_cmds_GCJ \
18993     old_archive_from_expsyms_cmds_GCJ \
18994     allow_undefined_flag_GCJ \
18995     no_undefined_flag_GCJ \
18996     export_symbols_cmds_GCJ \
18997     hardcode_libdir_flag_spec_GCJ \
18998     hardcode_libdir_flag_spec_ld_GCJ \
18999     hardcode_libdir_separator_GCJ \
19000     hardcode_automatic_GCJ \
19001     module_cmds_GCJ \
19002     module_expsym_cmds_GCJ \
19003     lt_cv_prog_compiler_c_o_GCJ \
19004     exclude_expsyms_GCJ \
19005     include_expsyms_GCJ; do
19006
19007     case $var in
19008     old_archive_cmds_GCJ | \
19009     old_archive_from_new_cmds_GCJ | \
19010     archive_cmds_GCJ | \
19011     archive_expsym_cmds_GCJ | \
19012     module_cmds_GCJ | \
19013     module_expsym_cmds_GCJ | \
19014     old_archive_from_expsyms_cmds_GCJ | \
19015     export_symbols_cmds_GCJ | \
19016     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19017     postinstall_cmds | postuninstall_cmds | \
19018     old_postinstall_cmds | old_postuninstall_cmds | \
19019     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19020       # Double-quote double-evaled strings.
19021       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19022       ;;
19023     *)
19024       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19025       ;;
19026     esac
19027   done
19028
19029   case $lt_echo in
19030   *'\$0 --fallback-echo"')
19031     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19032     ;;
19033   esac
19034
19035 cfgfile="$ofile"
19036
19037   cat <<__EOF__ >> "$cfgfile"
19038 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19039
19040 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19041
19042 # Shell to use when invoking shell scripts.
19043 SHELL=$lt_SHELL
19044
19045 # Whether or not to build shared libraries.
19046 build_libtool_libs=$enable_shared
19047
19048 # Whether or not to build static libraries.
19049 build_old_libs=$enable_static
19050
19051 # Whether or not to add -lc for building shared libraries.
19052 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19053
19054 # Whether or not to disallow shared libs when runtime libs are static
19055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19056
19057 # Whether or not to optimize for fast installation.
19058 fast_install=$enable_fast_install
19059
19060 # The host system.
19061 host_alias=$host_alias
19062 host=$host
19063
19064 # An echo program that does not interpret backslashes.
19065 echo=$lt_echo
19066
19067 # The archiver.
19068 AR=$lt_AR
19069 AR_FLAGS=$lt_AR_FLAGS
19070
19071 # A C compiler.
19072 LTCC=$lt_LTCC
19073
19074 # A language-specific compiler.
19075 CC=$lt_compiler_GCJ
19076
19077 # Is the compiler the GNU C compiler?
19078 with_gcc=$GCC_GCJ
19079
19080 # An ERE matcher.
19081 EGREP=$lt_EGREP
19082
19083 # The linker used to build libraries.
19084 LD=$lt_LD_GCJ
19085
19086 # Whether we need hard or soft links.
19087 LN_S=$lt_LN_S
19088
19089 # A BSD-compatible nm program.
19090 NM=$lt_NM
19091
19092 # A symbol stripping program
19093 STRIP=$lt_STRIP
19094
19095 # Used to examine libraries when file_magic_cmd begins "file"
19096 MAGIC_CMD=$MAGIC_CMD
19097
19098 # Used on cygwin: DLL creation program.
19099 DLLTOOL="$DLLTOOL"
19100
19101 # Used on cygwin: object dumper.
19102 OBJDUMP="$OBJDUMP"
19103
19104 # Used on cygwin: assembler.
19105 AS="$AS"
19106
19107 # The name of the directory that contains temporary libtool files.
19108 objdir=$objdir
19109
19110 # How to create reloadable object files.
19111 reload_flag=$lt_reload_flag
19112 reload_cmds=$lt_reload_cmds
19113
19114 # How to pass a linker flag through the compiler.
19115 wl=$lt_lt_prog_compiler_wl_GCJ
19116
19117 # Object file suffix (normally "o").
19118 objext="$ac_objext"
19119
19120 # Old archive suffix (normally "a").
19121 libext="$libext"
19122
19123 # Shared library suffix (normally ".so").
19124 shrext='$shrext'
19125
19126 # Executable file suffix (normally "").
19127 exeext="$exeext"
19128
19129 # Additional compiler flags for building library objects.
19130 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19131 pic_mode=$pic_mode
19132
19133 # What is the maximum length of a command?
19134 max_cmd_len=$lt_cv_sys_max_cmd_len
19135
19136 # Does compiler simultaneously support -c and -o options?
19137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19138
19139 # Must we lock files when doing compilation ?
19140 need_locks=$lt_need_locks
19141
19142 # Do we need the lib prefix for modules?
19143 need_lib_prefix=$need_lib_prefix
19144
19145 # Do we need a version for libraries?
19146 need_version=$need_version
19147
19148 # Whether dlopen is supported.
19149 dlopen_support=$enable_dlopen
19150
19151 # Whether dlopen of programs is supported.
19152 dlopen_self=$enable_dlopen_self
19153
19154 # Whether dlopen of statically linked programs is supported.
19155 dlopen_self_static=$enable_dlopen_self_static
19156
19157 # Compiler flag to prevent dynamic linking.
19158 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19159
19160 # Compiler flag to turn off builtin functions.
19161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19162
19163 # Compiler flag to allow reflexive dlopens.
19164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19165
19166 # Compiler flag to generate shared objects directly from archives.
19167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19168
19169 # Compiler flag to generate thread-safe objects.
19170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19171
19172 # Library versioning type.
19173 version_type=$version_type
19174
19175 # Format of library name prefix.
19176 libname_spec=$lt_libname_spec
19177
19178 # List of archive names.  First name is the real one, the rest are links.
19179 # The last name is the one that the linker finds with -lNAME.
19180 library_names_spec=$lt_library_names_spec
19181
19182 # The coded name of the library, if different from the real name.
19183 soname_spec=$lt_soname_spec
19184
19185 # Commands used to build and install an old-style archive.
19186 RANLIB=$lt_RANLIB
19187 old_archive_cmds=$lt_old_archive_cmds_GCJ
19188 old_postinstall_cmds=$lt_old_postinstall_cmds
19189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19190
19191 # Create an old-style archive from a shared archive.
19192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19193
19194 # Create a temporary old-style archive to link instead of a shared archive.
19195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19196
19197 # Commands used to build and install a shared archive.
19198 archive_cmds=$lt_archive_cmds_GCJ
19199 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19200 postinstall_cmds=$lt_postinstall_cmds
19201 postuninstall_cmds=$lt_postuninstall_cmds
19202
19203 # Commands used to build a loadable module (assumed same as above if empty)
19204 module_cmds=$lt_module_cmds_GCJ
19205 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19206
19207 # Commands to strip libraries.
19208 old_striplib=$lt_old_striplib
19209 striplib=$lt_striplib
19210
19211 # Dependencies to place before the objects being linked to create a
19212 # shared library.
19213 predep_objects=$lt_predep_objects_GCJ
19214
19215 # Dependencies to place after the objects being linked to create a
19216 # shared library.
19217 postdep_objects=$lt_postdep_objects_GCJ
19218
19219 # Dependencies to place before the objects being linked to create a
19220 # shared library.
19221 predeps=$lt_predeps_GCJ
19222
19223 # Dependencies to place after the objects being linked to create a
19224 # shared library.
19225 postdeps=$lt_postdeps_GCJ
19226
19227 # The library search path used internally by the compiler when linking
19228 # a shared library.
19229 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19230
19231 # Method to check whether dependent libraries are shared objects.
19232 deplibs_check_method=$lt_deplibs_check_method
19233
19234 # Command to use when deplibs_check_method == file_magic.
19235 file_magic_cmd=$lt_file_magic_cmd
19236
19237 # Flag that allows shared libraries with undefined symbols to be built.
19238 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19239
19240 # Flag that forces no undefined symbols.
19241 no_undefined_flag=$lt_no_undefined_flag_GCJ
19242
19243 # Commands used to finish a libtool library installation in a directory.
19244 finish_cmds=$lt_finish_cmds
19245
19246 # Same as above, but a single script fragment to be evaled but not shown.
19247 finish_eval=$lt_finish_eval
19248
19249 # Take the output of nm and produce a listing of raw symbols and C names.
19250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19251
19252 # Transform the output of nm in a proper C declaration
19253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19254
19255 # Transform the output of nm in a C name address pair
19256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19257
19258 # This is the shared library runtime path variable.
19259 runpath_var=$runpath_var
19260
19261 # This is the shared library path variable.
19262 shlibpath_var=$shlibpath_var
19263
19264 # Is shlibpath searched before the hard-coded library search path?
19265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19266
19267 # How to hardcode a shared library path into an executable.
19268 hardcode_action=$hardcode_action_GCJ
19269
19270 # Whether we should hardcode library paths into libraries.
19271 hardcode_into_libs=$hardcode_into_libs
19272
19273 # Flag to hardcode \$libdir into a binary during linking.
19274 # This must work even if \$libdir does not exist.
19275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19276
19277 # If ld is used when linking, flag to hardcode \$libdir into
19278 # a binary during linking. This must work even if \$libdir does
19279 # not exist.
19280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19281
19282 # Whether we need a single -rpath flag with a separated argument.
19283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19284
19285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19286 # resulting binary.
19287 hardcode_direct=$hardcode_direct_GCJ
19288
19289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19290 # resulting binary.
19291 hardcode_minus_L=$hardcode_minus_L_GCJ
19292
19293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19294 # the resulting binary.
19295 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19296
19297 # Set to yes if building a shared library automatically hardcodes DIR into the library
19298 # and all subsequent libraries and executables linked against it.
19299 hardcode_automatic=$hardcode_automatic_GCJ
19300
19301 # Variables whose values should be saved in libtool wrapper scripts and
19302 # restored at relink time.
19303 variables_saved_for_relink="$variables_saved_for_relink"
19304
19305 # Whether libtool must link a program against all its dependency libraries.
19306 link_all_deplibs=$link_all_deplibs_GCJ
19307
19308 # Compile-time system search path for libraries
19309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19310
19311 # Run-time system search path for libraries
19312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19313
19314 # Fix the shell variable \$srcfile for the compiler.
19315 fix_srcfile_path="$fix_srcfile_path_GCJ"
19316
19317 # Set to yes if exported symbols are required.
19318 always_export_symbols=$always_export_symbols_GCJ
19319
19320 # The commands to list exported symbols.
19321 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19322
19323 # The commands to extract the exported symbol list from a shared archive.
19324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19325
19326 # Symbols that should not be listed in the preloaded symbols.
19327 exclude_expsyms=$lt_exclude_expsyms_GCJ
19328
19329 # Symbols that must always be exported.
19330 include_expsyms=$lt_include_expsyms_GCJ
19331
19332 # ### END LIBTOOL TAG CONFIG: $tagname
19333
19334 __EOF__
19335
19336
19337 else
19338   # If there is no Makefile yet, we rely on a make rule to execute
19339   # `config.status --recheck' to rerun these tests and create the
19340   # libtool script then.
19341   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19342   if test -f "$ltmain_in"; then
19343     test -f Makefile && make "$ltmain"
19344   fi
19345 fi
19346
19347
19348 ac_ext=c
19349 ac_cpp='$CPP $CPPFLAGS'
19350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19353
19354 CC="$lt_save_CC"
19355
19356         else
19357           tagname=""
19358         fi
19359         ;;
19360
19361       RC)
19362
19363
19364
19365 # Source file extension for RC test sources.
19366 ac_ext=rc
19367
19368 # Object file extension for compiled RC test sources.
19369 objext=o
19370 objext_RC=$objext
19371
19372 # Code to be used in simple compile tests
19373 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19374
19375 # Code to be used in simple link tests
19376 lt_simple_link_test_code="$lt_simple_compile_test_code"
19377
19378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19379
19380 # If no C compiler was specified, use CC.
19381 LTCC=${LTCC-"$CC"}
19382
19383 # Allow CC to be a program name with arguments.
19384 compiler=$CC
19385
19386
19387 # Allow CC to be a program name with arguments.
19388 lt_save_CC="$CC"
19389 CC=${RC-"windres"}
19390 compiler=$CC
19391 compiler_RC=$CC
19392 lt_cv_prog_compiler_c_o_RC=yes
19393
19394 # The else clause should only fire when bootstrapping the
19395 # libtool distribution, otherwise you forgot to ship ltmain.sh
19396 # with your package, and you will get complaints that there are
19397 # no rules to generate ltmain.sh.
19398 if test -f "$ltmain"; then
19399   # See if we are running on zsh, and set the options which allow our commands through
19400   # without removal of \ escapes.
19401   if test -n "${ZSH_VERSION+set}" ; then
19402     setopt NO_GLOB_SUBST
19403   fi
19404   # Now quote all the things that may contain metacharacters while being
19405   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19406   # variables and quote the copies for generation of the libtool script.
19407   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19408     SED SHELL STRIP \
19409     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19410     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19411     deplibs_check_method reload_flag reload_cmds need_locks \
19412     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19413     lt_cv_sys_global_symbol_to_c_name_address \
19414     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19415     old_postinstall_cmds old_postuninstall_cmds \
19416     compiler_RC \
19417     CC_RC \
19418     LD_RC \
19419     lt_prog_compiler_wl_RC \
19420     lt_prog_compiler_pic_RC \
19421     lt_prog_compiler_static_RC \
19422     lt_prog_compiler_no_builtin_flag_RC \
19423     export_dynamic_flag_spec_RC \
19424     thread_safe_flag_spec_RC \
19425     whole_archive_flag_spec_RC \
19426     enable_shared_with_static_runtimes_RC \
19427     old_archive_cmds_RC \
19428     old_archive_from_new_cmds_RC \
19429     predep_objects_RC \
19430     postdep_objects_RC \
19431     predeps_RC \
19432     postdeps_RC \
19433     compiler_lib_search_path_RC \
19434     archive_cmds_RC \
19435     archive_expsym_cmds_RC \
19436     postinstall_cmds_RC \
19437     postuninstall_cmds_RC \
19438     old_archive_from_expsyms_cmds_RC \
19439     allow_undefined_flag_RC \
19440     no_undefined_flag_RC \
19441     export_symbols_cmds_RC \
19442     hardcode_libdir_flag_spec_RC \
19443     hardcode_libdir_flag_spec_ld_RC \
19444     hardcode_libdir_separator_RC \
19445     hardcode_automatic_RC \
19446     module_cmds_RC \
19447     module_expsym_cmds_RC \
19448     lt_cv_prog_compiler_c_o_RC \
19449     exclude_expsyms_RC \
19450     include_expsyms_RC; do
19451
19452     case $var in
19453     old_archive_cmds_RC | \
19454     old_archive_from_new_cmds_RC | \
19455     archive_cmds_RC | \
19456     archive_expsym_cmds_RC | \
19457     module_cmds_RC | \
19458     module_expsym_cmds_RC | \
19459     old_archive_from_expsyms_cmds_RC | \
19460     export_symbols_cmds_RC | \
19461     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19462     postinstall_cmds | postuninstall_cmds | \
19463     old_postinstall_cmds | old_postuninstall_cmds | \
19464     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19465       # Double-quote double-evaled strings.
19466       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19467       ;;
19468     *)
19469       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19470       ;;
19471     esac
19472   done
19473
19474   case $lt_echo in
19475   *'\$0 --fallback-echo"')
19476     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19477     ;;
19478   esac
19479
19480 cfgfile="$ofile"
19481
19482   cat <<__EOF__ >> "$cfgfile"
19483 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19484
19485 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19486
19487 # Shell to use when invoking shell scripts.
19488 SHELL=$lt_SHELL
19489
19490 # Whether or not to build shared libraries.
19491 build_libtool_libs=$enable_shared
19492
19493 # Whether or not to build static libraries.
19494 build_old_libs=$enable_static
19495
19496 # Whether or not to add -lc for building shared libraries.
19497 build_libtool_need_lc=$archive_cmds_need_lc_RC
19498
19499 # Whether or not to disallow shared libs when runtime libs are static
19500 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19501
19502 # Whether or not to optimize for fast installation.
19503 fast_install=$enable_fast_install
19504
19505 # The host system.
19506 host_alias=$host_alias
19507 host=$host
19508
19509 # An echo program that does not interpret backslashes.
19510 echo=$lt_echo
19511
19512 # The archiver.
19513 AR=$lt_AR
19514 AR_FLAGS=$lt_AR_FLAGS
19515
19516 # A C compiler.
19517 LTCC=$lt_LTCC
19518
19519 # A language-specific compiler.
19520 CC=$lt_compiler_RC
19521
19522 # Is the compiler the GNU C compiler?
19523 with_gcc=$GCC_RC
19524
19525 # An ERE matcher.
19526 EGREP=$lt_EGREP
19527
19528 # The linker used to build libraries.
19529 LD=$lt_LD_RC
19530
19531 # Whether we need hard or soft links.
19532 LN_S=$lt_LN_S
19533
19534 # A BSD-compatible nm program.
19535 NM=$lt_NM
19536
19537 # A symbol stripping program
19538 STRIP=$lt_STRIP
19539
19540 # Used to examine libraries when file_magic_cmd begins "file"
19541 MAGIC_CMD=$MAGIC_CMD
19542
19543 # Used on cygwin: DLL creation program.
19544 DLLTOOL="$DLLTOOL"
19545
19546 # Used on cygwin: object dumper.
19547 OBJDUMP="$OBJDUMP"
19548
19549 # Used on cygwin: assembler.
19550 AS="$AS"
19551
19552 # The name of the directory that contains temporary libtool files.
19553 objdir=$objdir
19554
19555 # How to create reloadable object files.
19556 reload_flag=$lt_reload_flag
19557 reload_cmds=$lt_reload_cmds
19558
19559 # How to pass a linker flag through the compiler.
19560 wl=$lt_lt_prog_compiler_wl_RC
19561
19562 # Object file suffix (normally "o").
19563 objext="$ac_objext"
19564
19565 # Old archive suffix (normally "a").
19566 libext="$libext"
19567
19568 # Shared library suffix (normally ".so").
19569 shrext='$shrext'
19570
19571 # Executable file suffix (normally "").
19572 exeext="$exeext"
19573
19574 # Additional compiler flags for building library objects.
19575 pic_flag=$lt_lt_prog_compiler_pic_RC
19576 pic_mode=$pic_mode
19577
19578 # What is the maximum length of a command?
19579 max_cmd_len=$lt_cv_sys_max_cmd_len
19580
19581 # Does compiler simultaneously support -c and -o options?
19582 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19583
19584 # Must we lock files when doing compilation ?
19585 need_locks=$lt_need_locks
19586
19587 # Do we need the lib prefix for modules?
19588 need_lib_prefix=$need_lib_prefix
19589
19590 # Do we need a version for libraries?
19591 need_version=$need_version
19592
19593 # Whether dlopen is supported.
19594 dlopen_support=$enable_dlopen
19595
19596 # Whether dlopen of programs is supported.
19597 dlopen_self=$enable_dlopen_self
19598
19599 # Whether dlopen of statically linked programs is supported.
19600 dlopen_self_static=$enable_dlopen_self_static
19601
19602 # Compiler flag to prevent dynamic linking.
19603 link_static_flag=$lt_lt_prog_compiler_static_RC
19604
19605 # Compiler flag to turn off builtin functions.
19606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19607
19608 # Compiler flag to allow reflexive dlopens.
19609 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19610
19611 # Compiler flag to generate shared objects directly from archives.
19612 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19613
19614 # Compiler flag to generate thread-safe objects.
19615 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19616
19617 # Library versioning type.
19618 version_type=$version_type
19619
19620 # Format of library name prefix.
19621 libname_spec=$lt_libname_spec
19622
19623 # List of archive names.  First name is the real one, the rest are links.
19624 # The last name is the one that the linker finds with -lNAME.
19625 library_names_spec=$lt_library_names_spec
19626
19627 # The coded name of the library, if different from the real name.
19628 soname_spec=$lt_soname_spec
19629
19630 # Commands used to build and install an old-style archive.
19631 RANLIB=$lt_RANLIB
19632 old_archive_cmds=$lt_old_archive_cmds_RC
19633 old_postinstall_cmds=$lt_old_postinstall_cmds
19634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19635
19636 # Create an old-style archive from a shared archive.
19637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19638
19639 # Create a temporary old-style archive to link instead of a shared archive.
19640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19641
19642 # Commands used to build and install a shared archive.
19643 archive_cmds=$lt_archive_cmds_RC
19644 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19645 postinstall_cmds=$lt_postinstall_cmds
19646 postuninstall_cmds=$lt_postuninstall_cmds
19647
19648 # Commands used to build a loadable module (assumed same as above if empty)
19649 module_cmds=$lt_module_cmds_RC
19650 module_expsym_cmds=$lt_module_expsym_cmds_RC
19651
19652 # Commands to strip libraries.
19653 old_striplib=$lt_old_striplib
19654 striplib=$lt_striplib
19655
19656 # Dependencies to place before the objects being linked to create a
19657 # shared library.
19658 predep_objects=$lt_predep_objects_RC
19659
19660 # Dependencies to place after the objects being linked to create a
19661 # shared library.
19662 postdep_objects=$lt_postdep_objects_RC
19663
19664 # Dependencies to place before the objects being linked to create a
19665 # shared library.
19666 predeps=$lt_predeps_RC
19667
19668 # Dependencies to place after the objects being linked to create a
19669 # shared library.
19670 postdeps=$lt_postdeps_RC
19671
19672 # The library search path used internally by the compiler when linking
19673 # a shared library.
19674 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19675
19676 # Method to check whether dependent libraries are shared objects.
19677 deplibs_check_method=$lt_deplibs_check_method
19678
19679 # Command to use when deplibs_check_method == file_magic.
19680 file_magic_cmd=$lt_file_magic_cmd
19681
19682 # Flag that allows shared libraries with undefined symbols to be built.
19683 allow_undefined_flag=$lt_allow_undefined_flag_RC
19684
19685 # Flag that forces no undefined symbols.
19686 no_undefined_flag=$lt_no_undefined_flag_RC
19687
19688 # Commands used to finish a libtool library installation in a directory.
19689 finish_cmds=$lt_finish_cmds
19690
19691 # Same as above, but a single script fragment to be evaled but not shown.
19692 finish_eval=$lt_finish_eval
19693
19694 # Take the output of nm and produce a listing of raw symbols and C names.
19695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19696
19697 # Transform the output of nm in a proper C declaration
19698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19699
19700 # Transform the output of nm in a C name address pair
19701 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19702
19703 # This is the shared library runtime path variable.
19704 runpath_var=$runpath_var
19705
19706 # This is the shared library path variable.
19707 shlibpath_var=$shlibpath_var
19708
19709 # Is shlibpath searched before the hard-coded library search path?
19710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19711
19712 # How to hardcode a shared library path into an executable.
19713 hardcode_action=$hardcode_action_RC
19714
19715 # Whether we should hardcode library paths into libraries.
19716 hardcode_into_libs=$hardcode_into_libs
19717
19718 # Flag to hardcode \$libdir into a binary during linking.
19719 # This must work even if \$libdir does not exist.
19720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19721
19722 # If ld is used when linking, flag to hardcode \$libdir into
19723 # a binary during linking. This must work even if \$libdir does
19724 # not exist.
19725 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19726
19727 # Whether we need a single -rpath flag with a separated argument.
19728 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19729
19730 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19731 # resulting binary.
19732 hardcode_direct=$hardcode_direct_RC
19733
19734 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19735 # resulting binary.
19736 hardcode_minus_L=$hardcode_minus_L_RC
19737
19738 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19739 # the resulting binary.
19740 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19741
19742 # Set to yes if building a shared library automatically hardcodes DIR into the library
19743 # and all subsequent libraries and executables linked against it.
19744 hardcode_automatic=$hardcode_automatic_RC
19745
19746 # Variables whose values should be saved in libtool wrapper scripts and
19747 # restored at relink time.
19748 variables_saved_for_relink="$variables_saved_for_relink"
19749
19750 # Whether libtool must link a program against all its dependency libraries.
19751 link_all_deplibs=$link_all_deplibs_RC
19752
19753 # Compile-time system search path for libraries
19754 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19755
19756 # Run-time system search path for libraries
19757 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19758
19759 # Fix the shell variable \$srcfile for the compiler.
19760 fix_srcfile_path="$fix_srcfile_path_RC"
19761
19762 # Set to yes if exported symbols are required.
19763 always_export_symbols=$always_export_symbols_RC
19764
19765 # The commands to list exported symbols.
19766 export_symbols_cmds=$lt_export_symbols_cmds_RC
19767
19768 # The commands to extract the exported symbol list from a shared archive.
19769 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19770
19771 # Symbols that should not be listed in the preloaded symbols.
19772 exclude_expsyms=$lt_exclude_expsyms_RC
19773
19774 # Symbols that must always be exported.
19775 include_expsyms=$lt_include_expsyms_RC
19776
19777 # ### END LIBTOOL TAG CONFIG: $tagname
19778
19779 __EOF__
19780
19781
19782 else
19783   # If there is no Makefile yet, we rely on a make rule to execute
19784   # `config.status --recheck' to rerun these tests and create the
19785   # libtool script then.
19786   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19787   if test -f "$ltmain_in"; then
19788     test -f Makefile && make "$ltmain"
19789   fi
19790 fi
19791
19792
19793 ac_ext=c
19794 ac_cpp='$CPP $CPPFLAGS'
19795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19798
19799 CC="$lt_save_CC"
19800
19801         ;;
19802
19803       *)
19804         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19805 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19806    { (exit 1); exit 1; }; }
19807         ;;
19808       esac
19809
19810       # Append the new tag name to the list of available tags.
19811       if test -n "$tagname" ; then
19812       available_tags="$available_tags $tagname"
19813     fi
19814     fi
19815   done
19816   IFS="$lt_save_ifs"
19817
19818   # Now substitute the updated list of available tags.
19819   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19820     mv "${ofile}T" "$ofile"
19821     chmod +x "$ofile"
19822   else
19823     rm -f "${ofile}T"
19824     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19825 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19826    { (exit 1); exit 1; }; }
19827   fi
19828 fi
19829
19830
19831
19832 # This can be used to rebuild libtool when needed
19833 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19834
19835 # Always use our own libtool.
19836 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19837
19838 # Prevent multiple expansion
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861 WFLAGS_NOUNUSED=""
19862 WFLAGS_NOIMPLICITINT=""
19863 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
19864   # -Wno-implicit-int for broken X11 headers
19865   # leave these out for now:
19866   #   -Wcast-align doesn't work well on alpha osf/1
19867   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
19868   #   -Wmissing-declarations -Wnested-externs
19869   WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
19870   WFLAGS_NOUNUSED="-Wno-unused"
19871   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
19872 fi
19873
19874
19875
19876
19877 # Check whether --with-openldap or --without-openldap was given.
19878 if test "${with_openldap+set}" = set; then
19879   withval="$with_openldap"
19880
19881 fi;
19882
19883 # Check whether --with-openldap-lib or --without-openldap-lib was given.
19884 if test "${with_openldap_lib+set}" = set; then
19885   withval="$with_openldap_lib"
19886   if test "$withval" = "yes" -o "$withval" = "no"; then
19887   { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
19888 echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
19889    { (exit 1); exit 1; }; }
19890 elif test "X$with_openldap" = "X"; then
19891   with_openldap=yes
19892 fi
19893 fi;
19894
19895 # Check whether --with-openldap-include or --without-openldap-include was given.
19896 if test "${with_openldap_include+set}" = set; then
19897   withval="$with_openldap_include"
19898   if test "$withval" = "yes" -o "$withval" = "no"; then
19899   { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
19900 echo "$as_me: error: No argument for --with-openldap-include" >&2;}
19901    { (exit 1); exit 1; }; }
19902 elif test "X$with_openldap" = "X"; then
19903   with_openldap=yes
19904 fi
19905 fi;
19906
19907 # Check whether --with-openldap-config or --without-openldap-config was given.
19908 if test "${with_openldap_config+set}" = set; then
19909   withval="$with_openldap_config"
19910
19911 fi;
19912
19913
19914
19915 echo "$as_me:$LINENO: checking for openldap" >&5
19916 echo $ECHO_N "checking for openldap... $ECHO_C" >&6
19917
19918 case "$with_openldap" in
19919 yes|"") d='' ;;
19920 no)     d= ;;
19921 *)      d="$with_openldap" ;;
19922 esac
19923
19924 header_dirs=
19925 lib_dirs=
19926 for i in $d; do
19927         if test "$with_openldap_include" = ""; then
19928                 if test -d "$i/include/openldap"; then
19929                         header_dirs="$header_dirs $i/include/openldap"
19930                 fi
19931                 if test -d "$i/include"; then
19932                         header_dirs="$header_dirs $i/include"
19933                 fi
19934         fi
19935         if test "$with_openldap_lib" = ""; then
19936                 if test -d "$i/lib$abilibdirext"; then
19937                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
19938                 fi
19939         fi
19940 done
19941
19942 if test "$with_openldap_include"; then
19943         header_dirs="$with_openldap_include $header_dirs"
19944 fi
19945 if test "$with_openldap_lib"; then
19946         lib_dirs="$with_openldap_lib $lib_dirs"
19947 fi
19948
19949 if test "$with_openldap_config" = ""; then
19950         with_openldap_config=''
19951 fi
19952
19953 openldap_cflags=
19954 openldap_libs=
19955
19956 case "$with_openldap_config" in
19957 yes|no|"")
19958         ;;
19959 *)
19960         openldap_cflags="`$with_openldap_config --cflags 2>&1`"
19961         openldap_libs="`$with_openldap_config --libs 2>&1`"
19962         ;;
19963 esac
19964
19965 found=no
19966 if test "$with_openldap" != no; then
19967         save_CFLAGS="$CFLAGS"
19968         save_LIBS="$LIBS"
19969         if test "$openldap_cflags" -a "$openldap_libs"; then
19970                 CFLAGS="$openldap_cflags $save_CFLAGS"
19971                 LIBS="$openldap_libs $save_LIBS"
19972                 cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978 #include <lber.h>
19979 #include <ldap.h>
19980 int
19981 main ()
19982 {
19983
19984   ;
19985   return 0;
19986 }
19987 _ACEOF
19988 rm -f conftest.$ac_objext conftest$ac_exeext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990   (eval $ac_link) 2>conftest.er1
19991   ac_status=$?
19992   grep -v '^ *+' conftest.er1 >conftest.err
19993   rm -f conftest.er1
19994   cat conftest.err >&5
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } &&
19997          { ac_try='test -z "$ac_c_werror_flag"
19998                          || test ! -s conftest.err'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; } &&
20004          { ac_try='test -s conftest$ac_exeext'
20005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006   (eval $ac_try) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }; }; then
20010
20011                         INCLUDE_openldap="$openldap_cflags"
20012                         LIB_openldap="$openldap_libs"
20013                         echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
20014 echo "${ECHO_T}from $with_openldap_config" >&6
20015                         found=yes
20016 else
20017   echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20019
20020 fi
20021 rm -f conftest.err conftest.$ac_objext \
20022       conftest$ac_exeext conftest.$ac_ext
20023         fi
20024         if test "$found" = no; then
20025                 ires= lres=
20026                 for i in $header_dirs; do
20027                         CFLAGS="-I$i $save_CFLAGS"
20028                         cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h.  */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h.  */
20034 #include <lber.h>
20035 #include <ldap.h>
20036 int
20037 main ()
20038 {
20039
20040   ;
20041   return 0;
20042 }
20043 _ACEOF
20044 rm -f conftest.$ac_objext
20045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046   (eval $ac_compile) 2>conftest.er1
20047   ac_status=$?
20048   grep -v '^ *+' conftest.er1 >conftest.err
20049   rm -f conftest.er1
20050   cat conftest.err >&5
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); } &&
20053          { ac_try='test -z "$ac_c_werror_flag"
20054                          || test ! -s conftest.err'
20055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056   (eval $ac_try) 2>&5
20057   ac_status=$?
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); }; } &&
20060          { ac_try='test -s conftest.$ac_objext'
20061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062   (eval $ac_try) 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); }; }; then
20066   ires=$i;break
20067 else
20068   echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20070
20071 fi
20072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20073                 done
20074                 for i in $lib_dirs; do
20075                         LIBS="-L$i -lldap -llber  $save_LIBS"
20076                         cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h.  */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h.  */
20082 #include <lber.h>
20083 #include <ldap.h>
20084 int
20085 main ()
20086 {
20087
20088   ;
20089   return 0;
20090 }
20091 _ACEOF
20092 rm -f conftest.$ac_objext conftest$ac_exeext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20094   (eval $ac_link) 2>conftest.er1
20095   ac_status=$?
20096   grep -v '^ *+' conftest.er1 >conftest.err
20097   rm -f conftest.er1
20098   cat conftest.err >&5
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); } &&
20101          { ac_try='test -z "$ac_c_werror_flag"
20102                          || test ! -s conftest.err'
20103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104   (eval $ac_try) 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); }; } &&
20108          { ac_try='test -s conftest$ac_exeext'
20109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110   (eval $ac_try) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; }; then
20114   lres=$i;break
20115 else
20116   echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 fi
20120 rm -f conftest.err conftest.$ac_objext \
20121       conftest$ac_exeext conftest.$ac_ext
20122                 done
20123                 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
20124                         INCLUDE_openldap="-I$ires"
20125                         LIB_openldap="-L$lres -lldap -llber "
20126                         found=yes
20127                         echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
20128 echo "${ECHO_T}headers $ires, libraries $lres" >&6
20129                 fi
20130         fi
20131         CFLAGS="$save_CFLAGS"
20132         LIBS="$save_LIBS"
20133 fi
20134
20135 if test "$found" = yes; then
20136
20137 cat >>confdefs.h <<_ACEOF
20138 #define OPENLDAP 1
20139 _ACEOF
20140
20141         with_openldap=yes
20142 else
20143         with_openldap=no
20144         INCLUDE_openldap=
20145         LIB_openldap=
20146         echo "$as_me:$LINENO: result: no" >&5
20147 echo "${ECHO_T}no" >&6
20148 fi
20149
20150
20151
20152
20153
20154
20155
20156 # Check whether --with-krb4 or --without-krb4 was given.
20157 if test "${with_krb4+set}" = set; then
20158   withval="$with_krb4"
20159
20160 fi;
20161
20162 # Check whether --with-krb4-lib or --without-krb4-lib was given.
20163 if test "${with_krb4_lib+set}" = set; then
20164   withval="$with_krb4_lib"
20165   if test "$withval" = "yes" -o "$withval" = "no"; then
20166   { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
20167 echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
20168    { (exit 1); exit 1; }; }
20169 elif test "X$with_krb4" = "X"; then
20170   with_krb4=yes
20171 fi
20172 fi;
20173
20174 # Check whether --with-krb4-include or --without-krb4-include was given.
20175 if test "${with_krb4_include+set}" = set; then
20176   withval="$with_krb4_include"
20177   if test "$withval" = "yes" -o "$withval" = "no"; then
20178   { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
20179 echo "$as_me: error: No argument for --with-krb4-include" >&2;}
20180    { (exit 1); exit 1; }; }
20181 elif test "X$with_krb4" = "X"; then
20182   with_krb4=yes
20183 fi
20184 fi;
20185
20186 # Check whether --with-krb4-config or --without-krb4-config was given.
20187 if test "${with_krb4_config+set}" = set; then
20188   withval="$with_krb4_config"
20189
20190 fi;
20191
20192
20193
20194 echo "$as_me:$LINENO: checking for krb4" >&5
20195 echo $ECHO_N "checking for krb4... $ECHO_C" >&6
20196
20197 case "$with_krb4" in
20198 yes|"") d='/usr/athena' ;;
20199 no)     d= ;;
20200 *)      d="$with_krb4" ;;
20201 esac
20202
20203 header_dirs=
20204 lib_dirs=
20205 for i in $d; do
20206         if test "$with_krb4_include" = ""; then
20207                 if test -d "$i/include/krb4"; then
20208                         header_dirs="$header_dirs $i/include/krb4"
20209                 fi
20210                 if test -d "$i/include"; then
20211                         header_dirs="$header_dirs $i/include"
20212                 fi
20213         fi
20214         if test "$with_krb4_lib" = ""; then
20215                 if test -d "$i/lib$abilibdirext"; then
20216                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
20217                 fi
20218         fi
20219 done
20220
20221 if test "$with_krb4_include"; then
20222         header_dirs="$with_krb4_include $header_dirs"
20223 fi
20224 if test "$with_krb4_lib"; then
20225         lib_dirs="$with_krb4_lib $lib_dirs"
20226 fi
20227
20228 if test "$with_krb4_config" = ""; then
20229         with_krb4_config='krb4-config'
20230 fi
20231
20232 krb4_cflags=
20233 krb4_libs=
20234
20235 case "$with_krb4_config" in
20236 yes|no|"")
20237         ;;
20238 *)
20239         krb4_cflags="`$with_krb4_config --cflags 2>&1`"
20240         krb4_libs="`$with_krb4_config --libs 2>&1`"
20241         ;;
20242 esac
20243
20244 found=no
20245 if test "$with_krb4" != no; then
20246         save_CFLAGS="$CFLAGS"
20247         save_LIBS="$LIBS"
20248         if test "$krb4_cflags" -a "$krb4_libs"; then
20249                 CFLAGS="$krb4_cflags $save_CFLAGS"
20250                 LIBS="$krb4_libs $save_LIBS"
20251                 cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h.  */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h.  */
20257 #include <krb.h>
20258 int
20259 main ()
20260 {
20261
20262   ;
20263   return 0;
20264 }
20265 _ACEOF
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20268   (eval $ac_link) 2>conftest.er1
20269   ac_status=$?
20270   grep -v '^ *+' conftest.er1 >conftest.err
20271   rm -f conftest.er1
20272   cat conftest.err >&5
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); } &&
20275          { ac_try='test -z "$ac_c_werror_flag"
20276                          || test ! -s conftest.err'
20277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278   (eval $ac_try) 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; } &&
20282          { ac_try='test -s conftest$ac_exeext'
20283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284   (eval $ac_try) 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; }; then
20288
20289                         INCLUDE_krb4="$krb4_cflags"
20290                         LIB_krb4="$krb4_libs"
20291                         echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
20292 echo "${ECHO_T}from $with_krb4_config" >&6
20293                         found=yes
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 fi
20299 rm -f conftest.err conftest.$ac_objext \
20300       conftest$ac_exeext conftest.$ac_ext
20301         fi
20302         if test "$found" = no; then
20303                 ires= lres=
20304                 for i in $header_dirs; do
20305                         CFLAGS="-I$i $save_CFLAGS"
20306                         cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312 #include <krb.h>
20313 int
20314 main ()
20315 {
20316
20317   ;
20318   return 0;
20319 }
20320 _ACEOF
20321 rm -f conftest.$ac_objext
20322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20323   (eval $ac_compile) 2>conftest.er1
20324   ac_status=$?
20325   grep -v '^ *+' conftest.er1 >conftest.err
20326   rm -f conftest.er1
20327   cat conftest.err >&5
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); } &&
20330          { ac_try='test -z "$ac_c_werror_flag"
20331                          || test ! -s conftest.err'
20332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333   (eval $ac_try) 2>&5
20334   ac_status=$?
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); }; } &&
20337          { ac_try='test -s conftest.$ac_objext'
20338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339   (eval $ac_try) 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); }; }; then
20343   ires=$i;break
20344 else
20345   echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 fi
20349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20350                 done
20351                 for i in $lib_dirs; do
20352                         LIBS="-L$i -lkrb -ldes $save_LIBS"
20353                         cat >conftest.$ac_ext <<_ACEOF
20354 /* confdefs.h.  */
20355 _ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h.  */
20359 #include <krb.h>
20360 int
20361 main ()
20362 {
20363
20364   ;
20365   return 0;
20366 }
20367 _ACEOF
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20370   (eval $ac_link) 2>conftest.er1
20371   ac_status=$?
20372   grep -v '^ *+' conftest.er1 >conftest.err
20373   rm -f conftest.er1
20374   cat conftest.err >&5
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); } &&
20377          { ac_try='test -z "$ac_c_werror_flag"
20378                          || test ! -s conftest.err'
20379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380   (eval $ac_try) 2>&5
20381   ac_status=$?
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); }; } &&
20384          { ac_try='test -s conftest$ac_exeext'
20385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386   (eval $ac_try) 2>&5
20387   ac_status=$?
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); }; }; then
20390   lres=$i;break
20391 else
20392   echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20394
20395 fi
20396 rm -f conftest.err conftest.$ac_objext \
20397       conftest$ac_exeext conftest.$ac_ext
20398                 done
20399                 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
20400                         INCLUDE_krb4="-I$ires"
20401                         LIB_krb4="-L$lres -lkrb -ldes"
20402                         found=yes
20403                         echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
20404 echo "${ECHO_T}headers $ires, libraries $lres" >&6
20405                 fi
20406         fi
20407         CFLAGS="$save_CFLAGS"
20408         LIBS="$save_LIBS"
20409 fi
20410
20411 if test "$found" = yes; then
20412
20413 cat >>confdefs.h <<_ACEOF
20414 #define KRB4 1
20415 _ACEOF
20416
20417         with_krb4=yes
20418 else
20419         with_krb4=no
20420         INCLUDE_krb4=
20421         LIB_krb4=
20422         echo "$as_me:$LINENO: result: no" >&5
20423 echo "${ECHO_T}no" >&6
20424 fi
20425
20426
20427
20428
20429
20430 LIB_kdb=
20431 if test "$with_krb4" != "no"; then
20432         save_CFLAGS="$CFLAGS"
20433         CFLAGS="$CFLAGS $INCLUDE_krb4"
20434         save_LIBS="$LIBS"
20435         LIBS="$LIB_krb4 $LIBS"
20436         EXTRA_LIB45=lib45.a
20437
20438         echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
20439 echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
20440 if test "${ac_cv_func_krb_put_int_four+set}" = set; then
20441   echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443   cat >conftest.$ac_ext <<_ACEOF
20444 /* confdefs.h.  */
20445 _ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h.  */
20449 #include <krb.h>
20450 int
20451 main ()
20452 {
20453
20454                 char tmp[4];
20455                 krb_put_int(17, tmp, 4, sizeof(tmp));
20456   ;
20457   return 0;
20458 }
20459 _ACEOF
20460 rm -f conftest.$ac_objext
20461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20462   (eval $ac_compile) 2>conftest.er1
20463   ac_status=$?
20464   grep -v '^ *+' conftest.er1 >conftest.err
20465   rm -f conftest.er1
20466   cat conftest.err >&5
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); } &&
20469          { ac_try='test -z "$ac_c_werror_flag"
20470                          || test ! -s conftest.err'
20471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472   (eval $ac_try) 2>&5
20473   ac_status=$?
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); }; } &&
20476          { ac_try='test -s conftest.$ac_objext'
20477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478   (eval $ac_try) 2>&5
20479   ac_status=$?
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); }; }; then
20482   ac_cv_func_krb_put_int_four=yes
20483 else
20484   echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20486
20487 ac_cv_func_krb_put_int_four=no
20488 fi
20489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20490
20491 fi
20492 echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
20493 echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
20494         if test "$ac_cv_func_krb_put_int_four" = yes; then
20495
20496 cat >>confdefs.h <<\_ACEOF
20497 #define HAVE_FOUR_VALUED_KRB_PUT_INT 1
20498 _ACEOF
20499
20500         fi
20501
20502
20503         echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
20504 echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
20505 if test "${ac_cv_func_krb_verify_secure+set}" = set; then
20506   echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508   cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h.  */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h.  */
20514 #include <krb.h>
20515 int
20516 main ()
20517 {
20518
20519                 int x = KRB_VERIFY_SECURE
20520   ;
20521   return 0;
20522 }
20523 _ACEOF
20524 rm -f conftest.$ac_objext
20525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20526   (eval $ac_compile) 2>conftest.er1
20527   ac_status=$?
20528   grep -v '^ *+' conftest.er1 >conftest.err
20529   rm -f conftest.er1
20530   cat conftest.err >&5
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); } &&
20533          { ac_try='test -z "$ac_c_werror_flag"
20534                          || test ! -s conftest.err'
20535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536   (eval $ac_try) 2>&5
20537   ac_status=$?
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); }; } &&
20540          { ac_try='test -s conftest.$ac_objext'
20541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542   (eval $ac_try) 2>&5
20543   ac_status=$?
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); }; }; then
20546   ac_cv_func_krb_verify_secure=yes
20547 else
20548   echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551 ac_cv_func_krb_verify_secure=no
20552 fi
20553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20554
20555 fi
20556 echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
20557 echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
20558         if test "$ac_cv_func_krb_verify_secure" != yes; then
20559
20560 cat >>confdefs.h <<\_ACEOF
20561 #define KRB_VERIFY_SECURE 1
20562 _ACEOF
20563
20564
20565 cat >>confdefs.h <<\_ACEOF
20566 #define KRB_VERIFY_SECURE_FAIL 2
20567 _ACEOF
20568
20569         fi
20570         echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
20571 echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
20572 if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
20573   echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575   cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h.  */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h.  */
20581 #include <krb.h>
20582 int
20583 main ()
20584 {
20585
20586                 int x = KRB_VERIFY_NOT_SECURE
20587   ;
20588   return 0;
20589 }
20590 _ACEOF
20591 rm -f conftest.$ac_objext
20592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20593   (eval $ac_compile) 2>conftest.er1
20594   ac_status=$?
20595   grep -v '^ *+' conftest.er1 >conftest.err
20596   rm -f conftest.er1
20597   cat conftest.err >&5
20598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599   (exit $ac_status); } &&
20600          { ac_try='test -z "$ac_c_werror_flag"
20601                          || test ! -s conftest.err'
20602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603   (eval $ac_try) 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); }; } &&
20607          { ac_try='test -s conftest.$ac_objext'
20608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609   (eval $ac_try) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); }; }; then
20613   ac_cv_func_krb_verify_not_secure=yes
20614 else
20615   echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20617
20618 ac_cv_func_krb_verify_not_secure=no
20619 fi
20620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20621
20622 fi
20623 echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
20624 echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
20625         if test "$ac_cv_func_krb_verify_not_secure" != yes; then
20626
20627 cat >>confdefs.h <<\_ACEOF
20628 #define KRB_VERIFY_NOT_SECURE 0
20629 _ACEOF
20630
20631         fi
20632
20633
20634
20635
20636 echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
20637 echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
20638 if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
20639   echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641
20642 if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
20643         ac_save_LIBS="$LIBS"
20644         for ac_lib in "" ; do
20645                 case "$ac_lib" in
20646                 "") ;;
20647                 yes) ac_lib="" ;;
20648                 no) continue ;;
20649                 -l*) ;;
20650                 *) ac_lib="-l$ac_lib" ;;
20651                 esac
20652                 LIBS=" $ac_lib  $ac_save_LIBS"
20653                 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659
20660 int
20661 main ()
20662 {
20663 krb_enable_debug()
20664   ;
20665   return 0;
20666 }
20667 _ACEOF
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670   (eval $ac_link) 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } &&
20677          { ac_try='test -z "$ac_c_werror_flag"
20678                          || test ! -s conftest.err'
20679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680   (eval $ac_try) 2>&5
20681   ac_status=$?
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); }; } &&
20684          { ac_try='test -s conftest$ac_exeext'
20685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686   (eval $ac_try) 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; }; then
20690   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
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 fi
20696 rm -f conftest.err conftest.$ac_objext \
20697       conftest$ac_exeext conftest.$ac_ext
20698         done
20699         eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
20700         LIBS="$ac_save_LIBS"
20701 fi
20702
20703 fi
20704
20705
20706 eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
20707
20708 if false; then
20709
20710 for ac_func in krb_enable_debug
20711 do
20712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20713 echo "$as_me:$LINENO: checking for $ac_func" >&5
20714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20715 if eval "test \"\${$as_ac_var+set}\" = set"; then
20716   echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718   cat >conftest.$ac_ext <<_ACEOF
20719 /* confdefs.h.  */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h.  */
20724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20726 #define $ac_func innocuous_$ac_func
20727
20728 /* System header to define __stub macros and hopefully few prototypes,
20729     which can conflict with char $ac_func (); below.
20730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20731     <limits.h> exists even on freestanding compilers.  */
20732
20733 #ifdef __STDC__
20734 # include <limits.h>
20735 #else
20736 # include <assert.h>
20737 #endif
20738
20739 #undef $ac_func
20740
20741 /* Override any gcc2 internal prototype to avoid an error.  */
20742 #ifdef __cplusplus
20743 extern "C"
20744 {
20745 #endif
20746 /* We use char because int might match the return type of a gcc2
20747    builtin and then its argument prototype would still apply.  */
20748 char $ac_func ();
20749 /* The GNU C library defines this for functions which it implements
20750     to always fail with ENOSYS.  Some functions are actually named
20751     something starting with __ and the normal name is an alias.  */
20752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20753 choke me
20754 #else
20755 char (*f) () = $ac_func;
20756 #endif
20757 #ifdef __cplusplus
20758 }
20759 #endif
20760
20761 int
20762 main ()
20763 {
20764 return f != $ac_func;
20765   ;
20766   return 0;
20767 }
20768 _ACEOF
20769 rm -f conftest.$ac_objext conftest$ac_exeext
20770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20771   (eval $ac_link) 2>conftest.er1
20772   ac_status=$?
20773   grep -v '^ *+' conftest.er1 >conftest.err
20774   rm -f conftest.er1
20775   cat conftest.err >&5
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); } &&
20778          { ac_try='test -z "$ac_c_werror_flag"
20779                          || test ! -s conftest.err'
20780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781   (eval $ac_try) 2>&5
20782   ac_status=$?
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); }; } &&
20785          { ac_try='test -s conftest$ac_exeext'
20786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787   (eval $ac_try) 2>&5
20788   ac_status=$?
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); }; }; then
20791   eval "$as_ac_var=yes"
20792 else
20793   echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20795
20796 eval "$as_ac_var=no"
20797 fi
20798 rm -f conftest.err conftest.$ac_objext \
20799       conftest$ac_exeext conftest.$ac_ext
20800 fi
20801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20803 if test `eval echo '${'$as_ac_var'}'` = yes; then
20804   cat >>confdefs.h <<_ACEOF
20805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20806 _ACEOF
20807
20808 fi
20809 done
20810
20811 fi
20812 # krb_enable_debug
20813 eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
20814 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
20815 eval "LIB_krb_enable_debug=$ac_res"
20816
20817 case "$ac_res" in
20818         yes)
20819         eval "ac_cv_func_krb_enable_debug=yes"
20820         eval "LIB_krb_enable_debug="
20821         cat >>confdefs.h <<_ACEOF
20822 #define $ac_tr_func 1
20823 _ACEOF
20824
20825         echo "$as_me:$LINENO: result: yes" >&5
20826 echo "${ECHO_T}yes" >&6
20827         ;;
20828         no)
20829         eval "ac_cv_func_krb_enable_debug=no"
20830         eval "LIB_krb_enable_debug="
20831         echo "$as_me:$LINENO: result: no" >&5
20832 echo "${ECHO_T}no" >&6
20833         ;;
20834         *)
20835         eval "ac_cv_func_krb_enable_debug=yes"
20836         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
20837         cat >>confdefs.h <<_ACEOF
20838 #define $ac_tr_func 1
20839 _ACEOF
20840
20841         cat >>confdefs.h <<_ACEOF
20842 #define $ac_tr_lib 1
20843 _ACEOF
20844
20845         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
20846 echo "${ECHO_T}yes, in $ac_res" >&6
20847         ;;
20848 esac
20849
20850
20851 if test -n "$LIB_krb_enable_debug"; then
20852         LIBS="$LIB_krb_enable_debug $LIBS"
20853 fi
20854
20855
20856
20857
20858
20859 echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
20860 echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
20861 if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
20862   echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864
20865 if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
20866         ac_save_LIBS="$LIBS"
20867         for ac_lib in "" ; do
20868                 case "$ac_lib" in
20869                 "") ;;
20870                 yes) ac_lib="" ;;
20871                 no) continue ;;
20872                 -l*) ;;
20873                 *) ac_lib="-l$ac_lib" ;;
20874                 esac
20875                 LIBS=" $ac_lib  $ac_save_LIBS"
20876                 cat >conftest.$ac_ext <<_ACEOF
20877 /* confdefs.h.  */
20878 _ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h.  */
20882
20883 int
20884 main ()
20885 {
20886 krb_disable_debug()
20887   ;
20888   return 0;
20889 }
20890 _ACEOF
20891 rm -f conftest.$ac_objext conftest$ac_exeext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20893   (eval $ac_link) 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } &&
20900          { ac_try='test -z "$ac_c_werror_flag"
20901                          || test ! -s conftest.err'
20902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903   (eval $ac_try) 2>&5
20904   ac_status=$?
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); }; } &&
20907          { ac_try='test -s conftest$ac_exeext'
20908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909   (eval $ac_try) 2>&5
20910   ac_status=$?
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); }; }; then
20913   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
20914 else
20915   echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20917
20918 fi
20919 rm -f conftest.err conftest.$ac_objext \
20920       conftest$ac_exeext conftest.$ac_ext
20921         done
20922         eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
20923         LIBS="$ac_save_LIBS"
20924 fi
20925
20926 fi
20927
20928
20929 eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
20930
20931 if false; then
20932
20933 for ac_func in krb_disable_debug
20934 do
20935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20936 echo "$as_me:$LINENO: checking for $ac_func" >&5
20937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20938 if eval "test \"\${$as_ac_var+set}\" = set"; then
20939   echo $ECHO_N "(cached) $ECHO_C" >&6
20940 else
20941   cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h.  */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h.  */
20947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20949 #define $ac_func innocuous_$ac_func
20950
20951 /* System header to define __stub macros and hopefully few prototypes,
20952     which can conflict with char $ac_func (); below.
20953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20954     <limits.h> exists even on freestanding compilers.  */
20955
20956 #ifdef __STDC__
20957 # include <limits.h>
20958 #else
20959 # include <assert.h>
20960 #endif
20961
20962 #undef $ac_func
20963
20964 /* Override any gcc2 internal prototype to avoid an error.  */
20965 #ifdef __cplusplus
20966 extern "C"
20967 {
20968 #endif
20969 /* We use char because int might match the return type of a gcc2
20970    builtin and then its argument prototype would still apply.  */
20971 char $ac_func ();
20972 /* The GNU C library defines this for functions which it implements
20973     to always fail with ENOSYS.  Some functions are actually named
20974     something starting with __ and the normal name is an alias.  */
20975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20976 choke me
20977 #else
20978 char (*f) () = $ac_func;
20979 #endif
20980 #ifdef __cplusplus
20981 }
20982 #endif
20983
20984 int
20985 main ()
20986 {
20987 return f != $ac_func;
20988   ;
20989   return 0;
20990 }
20991 _ACEOF
20992 rm -f conftest.$ac_objext conftest$ac_exeext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20994   (eval $ac_link) 2>conftest.er1
20995   ac_status=$?
20996   grep -v '^ *+' conftest.er1 >conftest.err
20997   rm -f conftest.er1
20998   cat conftest.err >&5
20999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000   (exit $ac_status); } &&
21001          { ac_try='test -z "$ac_c_werror_flag"
21002                          || test ! -s conftest.err'
21003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004   (eval $ac_try) 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; } &&
21008          { ac_try='test -s conftest$ac_exeext'
21009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; }; then
21014   eval "$as_ac_var=yes"
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 eval "$as_ac_var=no"
21020 fi
21021 rm -f conftest.err conftest.$ac_objext \
21022       conftest$ac_exeext conftest.$ac_ext
21023 fi
21024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21026 if test `eval echo '${'$as_ac_var'}'` = yes; then
21027   cat >>confdefs.h <<_ACEOF
21028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029 _ACEOF
21030
21031 fi
21032 done
21033
21034 fi
21035 # krb_disable_debug
21036 eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21037 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21038 eval "LIB_krb_disable_debug=$ac_res"
21039
21040 case "$ac_res" in
21041         yes)
21042         eval "ac_cv_func_krb_disable_debug=yes"
21043         eval "LIB_krb_disable_debug="
21044         cat >>confdefs.h <<_ACEOF
21045 #define $ac_tr_func 1
21046 _ACEOF
21047
21048         echo "$as_me:$LINENO: result: yes" >&5
21049 echo "${ECHO_T}yes" >&6
21050         ;;
21051         no)
21052         eval "ac_cv_func_krb_disable_debug=no"
21053         eval "LIB_krb_disable_debug="
21054         echo "$as_me:$LINENO: result: no" >&5
21055 echo "${ECHO_T}no" >&6
21056         ;;
21057         *)
21058         eval "ac_cv_func_krb_disable_debug=yes"
21059         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21060         cat >>confdefs.h <<_ACEOF
21061 #define $ac_tr_func 1
21062 _ACEOF
21063
21064         cat >>confdefs.h <<_ACEOF
21065 #define $ac_tr_lib 1
21066 _ACEOF
21067
21068         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21069 echo "${ECHO_T}yes, in $ac_res" >&6
21070         ;;
21071 esac
21072
21073
21074 if test -n "$LIB_krb_disable_debug"; then
21075         LIBS="$LIB_krb_disable_debug $LIBS"
21076 fi
21077
21078
21079
21080
21081
21082 echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
21083 echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
21084 if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
21085   echo $ECHO_N "(cached) $ECHO_C" >&6
21086 else
21087
21088 if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
21089         ac_save_LIBS="$LIBS"
21090         for ac_lib in "" ; do
21091                 case "$ac_lib" in
21092                 "") ;;
21093                 yes) ac_lib="" ;;
21094                 no) continue ;;
21095                 -l*) ;;
21096                 *) ac_lib="-l$ac_lib" ;;
21097                 esac
21098                 LIBS=" $ac_lib  $ac_save_LIBS"
21099                 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105
21106 int
21107 main ()
21108 {
21109 krb_get_our_ip_for_realm()
21110   ;
21111   return 0;
21112 }
21113 _ACEOF
21114 rm -f conftest.$ac_objext conftest$ac_exeext
21115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21116   (eval $ac_link) 2>conftest.er1
21117   ac_status=$?
21118   grep -v '^ *+' conftest.er1 >conftest.err
21119   rm -f conftest.er1
21120   cat conftest.err >&5
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } &&
21123          { ac_try='test -z "$ac_c_werror_flag"
21124                          || test ! -s conftest.err'
21125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126   (eval $ac_try) 2>&5
21127   ac_status=$?
21128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129   (exit $ac_status); }; } &&
21130          { ac_try='test -s conftest$ac_exeext'
21131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132   (eval $ac_try) 2>&5
21133   ac_status=$?
21134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135   (exit $ac_status); }; }; then
21136   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
21137 else
21138   echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21140
21141 fi
21142 rm -f conftest.err conftest.$ac_objext \
21143       conftest$ac_exeext conftest.$ac_ext
21144         done
21145         eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
21146         LIBS="$ac_save_LIBS"
21147 fi
21148
21149 fi
21150
21151
21152 eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
21153
21154 if false; then
21155
21156 for ac_func in krb_get_our_ip_for_realm
21157 do
21158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21159 echo "$as_me:$LINENO: checking for $ac_func" >&5
21160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21161 if eval "test \"\${$as_ac_var+set}\" = set"; then
21162   echo $ECHO_N "(cached) $ECHO_C" >&6
21163 else
21164   cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h.  */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h.  */
21170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21172 #define $ac_func innocuous_$ac_func
21173
21174 /* System header to define __stub macros and hopefully few prototypes,
21175     which can conflict with char $ac_func (); below.
21176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21177     <limits.h> exists even on freestanding compilers.  */
21178
21179 #ifdef __STDC__
21180 # include <limits.h>
21181 #else
21182 # include <assert.h>
21183 #endif
21184
21185 #undef $ac_func
21186
21187 /* Override any gcc2 internal prototype to avoid an error.  */
21188 #ifdef __cplusplus
21189 extern "C"
21190 {
21191 #endif
21192 /* We use char because int might match the return type of a gcc2
21193    builtin and then its argument prototype would still apply.  */
21194 char $ac_func ();
21195 /* The GNU C library defines this for functions which it implements
21196     to always fail with ENOSYS.  Some functions are actually named
21197     something starting with __ and the normal name is an alias.  */
21198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21199 choke me
21200 #else
21201 char (*f) () = $ac_func;
21202 #endif
21203 #ifdef __cplusplus
21204 }
21205 #endif
21206
21207 int
21208 main ()
21209 {
21210 return f != $ac_func;
21211   ;
21212   return 0;
21213 }
21214 _ACEOF
21215 rm -f conftest.$ac_objext conftest$ac_exeext
21216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21217   (eval $ac_link) 2>conftest.er1
21218   ac_status=$?
21219   grep -v '^ *+' conftest.er1 >conftest.err
21220   rm -f conftest.er1
21221   cat conftest.err >&5
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); } &&
21224          { ac_try='test -z "$ac_c_werror_flag"
21225                          || test ! -s conftest.err'
21226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227   (eval $ac_try) 2>&5
21228   ac_status=$?
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); }; } &&
21231          { ac_try='test -s conftest$ac_exeext'
21232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233   (eval $ac_try) 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); }; }; then
21237   eval "$as_ac_var=yes"
21238 else
21239   echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21241
21242 eval "$as_ac_var=no"
21243 fi
21244 rm -f conftest.err conftest.$ac_objext \
21245       conftest$ac_exeext conftest.$ac_ext
21246 fi
21247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21249 if test `eval echo '${'$as_ac_var'}'` = yes; then
21250   cat >>confdefs.h <<_ACEOF
21251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21252 _ACEOF
21253
21254 fi
21255 done
21256
21257 fi
21258 # krb_get_our_ip_for_realm
21259 eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21260 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21261 eval "LIB_krb_get_our_ip_for_realm=$ac_res"
21262
21263 case "$ac_res" in
21264         yes)
21265         eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
21266         eval "LIB_krb_get_our_ip_for_realm="
21267         cat >>confdefs.h <<_ACEOF
21268 #define $ac_tr_func 1
21269 _ACEOF
21270
21271         echo "$as_me:$LINENO: result: yes" >&5
21272 echo "${ECHO_T}yes" >&6
21273         ;;
21274         no)
21275         eval "ac_cv_func_krb_get_our_ip_for_realm=no"
21276         eval "LIB_krb_get_our_ip_for_realm="
21277         echo "$as_me:$LINENO: result: no" >&5
21278 echo "${ECHO_T}no" >&6
21279         ;;
21280         *)
21281         eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
21282         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21283         cat >>confdefs.h <<_ACEOF
21284 #define $ac_tr_func 1
21285 _ACEOF
21286
21287         cat >>confdefs.h <<_ACEOF
21288 #define $ac_tr_lib 1
21289 _ACEOF
21290
21291         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21292 echo "${ECHO_T}yes, in $ac_res" >&6
21293         ;;
21294 esac
21295
21296
21297 if test -n "$LIB_krb_get_our_ip_for_realm"; then
21298         LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
21299 fi
21300
21301
21302
21303
21304
21305 echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
21306 echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
21307 if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
21308   echo $ECHO_N "(cached) $ECHO_C" >&6
21309 else
21310
21311 if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
21312         ac_save_LIBS="$LIBS"
21313         for ac_lib in "" ; do
21314                 case "$ac_lib" in
21315                 "") ;;
21316                 yes) ac_lib="" ;;
21317                 no) continue ;;
21318                 -l*) ;;
21319                 *) ac_lib="-l$ac_lib" ;;
21320                 esac
21321                 LIBS=" $ac_lib  $ac_save_LIBS"
21322                 cat >conftest.$ac_ext <<_ACEOF
21323 /* confdefs.h.  */
21324 _ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h.  */
21328
21329 int
21330 main ()
21331 {
21332 krb_kdctimeofday()
21333   ;
21334   return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext conftest$ac_exeext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339   (eval $ac_link) 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } &&
21346          { ac_try='test -z "$ac_c_werror_flag"
21347                          || test ! -s conftest.err'
21348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349   (eval $ac_try) 2>&5
21350   ac_status=$?
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); }; } &&
21353          { ac_try='test -s conftest$ac_exeext'
21354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355   (eval $ac_try) 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); }; }; then
21359   eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
21360 else
21361   echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 fi
21365 rm -f conftest.err conftest.$ac_objext \
21366       conftest$ac_exeext conftest.$ac_ext
21367         done
21368         eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
21369         LIBS="$ac_save_LIBS"
21370 fi
21371
21372 fi
21373
21374
21375 eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"
21376
21377 if false; then
21378
21379 for ac_func in krb_kdctimeofday
21380 do
21381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21382 echo "$as_me:$LINENO: checking for $ac_func" >&5
21383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21384 if eval "test \"\${$as_ac_var+set}\" = set"; then
21385   echo $ECHO_N "(cached) $ECHO_C" >&6
21386 else
21387   cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21395 #define $ac_func innocuous_$ac_func
21396
21397 /* System header to define __stub macros and hopefully few prototypes,
21398     which can conflict with char $ac_func (); below.
21399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21400     <limits.h> exists even on freestanding compilers.  */
21401
21402 #ifdef __STDC__
21403 # include <limits.h>
21404 #else
21405 # include <assert.h>
21406 #endif
21407
21408 #undef $ac_func
21409
21410 /* Override any gcc2 internal prototype to avoid an error.  */
21411 #ifdef __cplusplus
21412 extern "C"
21413 {
21414 #endif
21415 /* We use char because int might match the return type of a gcc2
21416    builtin and then its argument prototype would still apply.  */
21417 char $ac_func ();
21418 /* The GNU C library defines this for functions which it implements
21419     to always fail with ENOSYS.  Some functions are actually named
21420     something starting with __ and the normal name is an alias.  */
21421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21422 choke me
21423 #else
21424 char (*f) () = $ac_func;
21425 #endif
21426 #ifdef __cplusplus
21427 }
21428 #endif
21429
21430 int
21431 main ()
21432 {
21433 return f != $ac_func;
21434   ;
21435   return 0;
21436 }
21437 _ACEOF
21438 rm -f conftest.$ac_objext conftest$ac_exeext
21439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21440   (eval $ac_link) 2>conftest.er1
21441   ac_status=$?
21442   grep -v '^ *+' conftest.er1 >conftest.err
21443   rm -f conftest.er1
21444   cat conftest.err >&5
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); } &&
21447          { ac_try='test -z "$ac_c_werror_flag"
21448                          || test ! -s conftest.err'
21449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450   (eval $ac_try) 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; } &&
21454          { ac_try='test -s conftest$ac_exeext'
21455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456   (eval $ac_try) 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); }; }; then
21460   eval "$as_ac_var=yes"
21461 else
21462   echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21464
21465 eval "$as_ac_var=no"
21466 fi
21467 rm -f conftest.err conftest.$ac_objext \
21468       conftest$ac_exeext conftest.$ac_ext
21469 fi
21470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21472 if test `eval echo '${'$as_ac_var'}'` = yes; then
21473   cat >>confdefs.h <<_ACEOF
21474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21475 _ACEOF
21476
21477 fi
21478 done
21479
21480 fi
21481 # krb_kdctimeofday
21482 eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21483 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21484 eval "LIB_krb_kdctimeofday=$ac_res"
21485
21486 case "$ac_res" in
21487         yes)
21488         eval "ac_cv_func_krb_kdctimeofday=yes"
21489         eval "LIB_krb_kdctimeofday="
21490         cat >>confdefs.h <<_ACEOF
21491 #define $ac_tr_func 1
21492 _ACEOF
21493
21494         echo "$as_me:$LINENO: result: yes" >&5
21495 echo "${ECHO_T}yes" >&6
21496         ;;
21497         no)
21498         eval "ac_cv_func_krb_kdctimeofday=no"
21499         eval "LIB_krb_kdctimeofday="
21500         echo "$as_me:$LINENO: result: no" >&5
21501 echo "${ECHO_T}no" >&6
21502         ;;
21503         *)
21504         eval "ac_cv_func_krb_kdctimeofday=yes"
21505         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21506         cat >>confdefs.h <<_ACEOF
21507 #define $ac_tr_func 1
21508 _ACEOF
21509
21510         cat >>confdefs.h <<_ACEOF
21511 #define $ac_tr_lib 1
21512 _ACEOF
21513
21514         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21515 echo "${ECHO_T}yes, in $ac_res" >&6
21516         ;;
21517 esac
21518
21519
21520 if test -n "$LIB_krb_kdctimeofday"; then
21521         LIBS="$LIB_krb_kdctimeofday $LIBS"
21522 fi
21523
21524
21525
21526
21527
21528
21529
21530 echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
21531 echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
21532 if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
21533   echo $ECHO_N "(cached) $ECHO_C" >&6
21534 else
21535
21536 if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
21537         ac_save_LIBS="$LIBS"
21538         for ac_lib in "" ; do
21539                 case "$ac_lib" in
21540                 "") ;;
21541                 yes) ac_lib="" ;;
21542                 no) continue ;;
21543                 -l*) ;;
21544                 *) ac_lib="-l$ac_lib" ;;
21545                 esac
21546                 LIBS=" $ac_lib  $ac_save_LIBS"
21547                 cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553
21554 int
21555 main ()
21556 {
21557 krb_get_kdc_time_diff()
21558   ;
21559   return 0;
21560 }
21561 _ACEOF
21562 rm -f conftest.$ac_objext conftest$ac_exeext
21563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21564   (eval $ac_link) 2>conftest.er1
21565   ac_status=$?
21566   grep -v '^ *+' conftest.er1 >conftest.err
21567   rm -f conftest.er1
21568   cat conftest.err >&5
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); } &&
21571          { ac_try='test -z "$ac_c_werror_flag"
21572                          || test ! -s conftest.err'
21573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574   (eval $ac_try) 2>&5
21575   ac_status=$?
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); }; } &&
21578          { ac_try='test -s conftest$ac_exeext'
21579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580   (eval $ac_try) 2>&5
21581   ac_status=$?
21582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583   (exit $ac_status); }; }; then
21584   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
21585 else
21586   echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21588
21589 fi
21590 rm -f conftest.err conftest.$ac_objext \
21591       conftest$ac_exeext conftest.$ac_ext
21592         done
21593         eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
21594         LIBS="$ac_save_LIBS"
21595 fi
21596
21597 fi
21598
21599
21600 eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
21601
21602 if false; then
21603
21604 for ac_func in krb_get_kdc_time_diff
21605 do
21606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21607 echo "$as_me:$LINENO: checking for $ac_func" >&5
21608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21609 if eval "test \"\${$as_ac_var+set}\" = set"; then
21610   echo $ECHO_N "(cached) $ECHO_C" >&6
21611 else
21612   cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h.  */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h.  */
21618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21620 #define $ac_func innocuous_$ac_func
21621
21622 /* System header to define __stub macros and hopefully few prototypes,
21623     which can conflict with char $ac_func (); below.
21624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21625     <limits.h> exists even on freestanding compilers.  */
21626
21627 #ifdef __STDC__
21628 # include <limits.h>
21629 #else
21630 # include <assert.h>
21631 #endif
21632
21633 #undef $ac_func
21634
21635 /* Override any gcc2 internal prototype to avoid an error.  */
21636 #ifdef __cplusplus
21637 extern "C"
21638 {
21639 #endif
21640 /* We use char because int might match the return type of a gcc2
21641    builtin and then its argument prototype would still apply.  */
21642 char $ac_func ();
21643 /* The GNU C library defines this for functions which it implements
21644     to always fail with ENOSYS.  Some functions are actually named
21645     something starting with __ and the normal name is an alias.  */
21646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21647 choke me
21648 #else
21649 char (*f) () = $ac_func;
21650 #endif
21651 #ifdef __cplusplus
21652 }
21653 #endif
21654
21655 int
21656 main ()
21657 {
21658 return f != $ac_func;
21659   ;
21660   return 0;
21661 }
21662 _ACEOF
21663 rm -f conftest.$ac_objext conftest$ac_exeext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21665   (eval $ac_link) 2>conftest.er1
21666   ac_status=$?
21667   grep -v '^ *+' conftest.er1 >conftest.err
21668   rm -f conftest.er1
21669   cat conftest.err >&5
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } &&
21672          { ac_try='test -z "$ac_c_werror_flag"
21673                          || test ! -s conftest.err'
21674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675   (eval $ac_try) 2>&5
21676   ac_status=$?
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); }; } &&
21679          { ac_try='test -s conftest$ac_exeext'
21680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681   (eval $ac_try) 2>&5
21682   ac_status=$?
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); }; }; then
21685   eval "$as_ac_var=yes"
21686 else
21687   echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21689
21690 eval "$as_ac_var=no"
21691 fi
21692 rm -f conftest.err conftest.$ac_objext \
21693       conftest$ac_exeext conftest.$ac_ext
21694 fi
21695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21697 if test `eval echo '${'$as_ac_var'}'` = yes; then
21698   cat >>confdefs.h <<_ACEOF
21699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21700 _ACEOF
21701
21702 fi
21703 done
21704
21705 fi
21706 # krb_get_kdc_time_diff
21707 eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21708 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21709 eval "LIB_krb_get_kdc_time_diff=$ac_res"
21710
21711 case "$ac_res" in
21712         yes)
21713         eval "ac_cv_func_krb_get_kdc_time_diff=yes"
21714         eval "LIB_krb_get_kdc_time_diff="
21715         cat >>confdefs.h <<_ACEOF
21716 #define $ac_tr_func 1
21717 _ACEOF
21718
21719         echo "$as_me:$LINENO: result: yes" >&5
21720 echo "${ECHO_T}yes" >&6
21721         ;;
21722         no)
21723         eval "ac_cv_func_krb_get_kdc_time_diff=no"
21724         eval "LIB_krb_get_kdc_time_diff="
21725         echo "$as_me:$LINENO: result: no" >&5
21726 echo "${ECHO_T}no" >&6
21727         ;;
21728         *)
21729         eval "ac_cv_func_krb_get_kdc_time_diff=yes"
21730         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21731         cat >>confdefs.h <<_ACEOF
21732 #define $ac_tr_func 1
21733 _ACEOF
21734
21735         cat >>confdefs.h <<_ACEOF
21736 #define $ac_tr_lib 1
21737 _ACEOF
21738
21739         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21740 echo "${ECHO_T}yes, in $ac_res" >&6
21741         ;;
21742 esac
21743
21744
21745 if test -n "$LIB_krb_get_kdc_time_diff"; then
21746         LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
21747 fi
21748
21749
21750
21751         echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
21752 echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
21753 if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
21754   echo $ECHO_N "(cached) $ECHO_C" >&6
21755 else
21756   cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h.  */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h.  */
21762 #include <krb.h>
21763                         #include <prot.h>
21764 int
21765 main ()
21766 {
21767
21768                 char *x = KRB_SENDAUTH_VERS
21769   ;
21770   return 0;
21771 }
21772 _ACEOF
21773 rm -f conftest.$ac_objext
21774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21775   (eval $ac_compile) 2>conftest.er1
21776   ac_status=$?
21777   grep -v '^ *+' conftest.er1 >conftest.err
21778   rm -f conftest.er1
21779   cat conftest.err >&5
21780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781   (exit $ac_status); } &&
21782          { ac_try='test -z "$ac_c_werror_flag"
21783                          || test ! -s conftest.err'
21784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785   (eval $ac_try) 2>&5
21786   ac_status=$?
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); }; } &&
21789          { ac_try='test -s conftest.$ac_objext'
21790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791   (eval $ac_try) 2>&5
21792   ac_status=$?
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); }; }; then
21795   ac_cv_func_krb_sendauth_vers=yes
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800 ac_cv_func_krb_sendauth_vers=no
21801 fi
21802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21803
21804 fi
21805 echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
21806 echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
21807         if test "$ac_cv_func_krb_sendauth_vers" != yes; then
21808
21809 cat >>confdefs.h <<\_ACEOF
21810 #define KRB_SENDAUTH_VERS "AUTHV0.1"
21811 _ACEOF
21812
21813         fi
21814         echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
21815 echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
21816 if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
21817   echo $ECHO_N "(cached) $ECHO_C" >&6
21818 else
21819   cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h.  */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h.  */
21825 #include <krb.h>
21826                 int krb_mk_req(KTEXT a, const char *s, const char *i,
21827                                const char *r, int32_t checksum)
21828                 { return 17; }
21829 int
21830 main ()
21831 {
21832
21833   ;
21834   return 0;
21835 }
21836 _ACEOF
21837 rm -f conftest.$ac_objext
21838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21839   (eval $ac_compile) 2>conftest.er1
21840   ac_status=$?
21841   grep -v '^ *+' conftest.er1 >conftest.err
21842   rm -f conftest.er1
21843   cat conftest.err >&5
21844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845   (exit $ac_status); } &&
21846          { ac_try='test -z "$ac_c_werror_flag"
21847                          || test ! -s conftest.err'
21848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849   (eval $ac_try) 2>&5
21850   ac_status=$?
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; } &&
21853          { ac_try='test -s conftest.$ac_objext'
21854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855   (eval $ac_try) 2>&5
21856   ac_status=$?
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); }; }; then
21859   ac_cv_func_krb_mk_req_const=yes
21860 else
21861   echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864 ac_cv_func_krb_mk_req_const=no
21865 fi
21866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21867
21868 fi
21869 echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
21870 echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
21871         if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
21872
21873 cat >>confdefs.h <<\_ACEOF
21874 #define KRB_MK_REQ_CONST 1
21875 _ACEOF
21876
21877         fi
21878
21879         LIBS="$save_LIBS"
21880         CFLAGS="$save_CFLAGS"
21881         LIB_kdb="-lkdb -lkrb"
21882 fi
21883
21884
21885 if test "$with_krb4" != "no"; then
21886   KRB4_TRUE=
21887   KRB4_FALSE='#'
21888 else
21889   KRB4_TRUE='#'
21890   KRB4_FALSE=
21891 fi
21892
21893
21894
21895 if true; then
21896   KRB5_TRUE=
21897   KRB5_FALSE='#'
21898 else
21899   KRB5_TRUE='#'
21900   KRB5_FALSE=
21901 fi
21902
21903
21904
21905 if true; then
21906   do_roken_rename_TRUE=
21907   do_roken_rename_FALSE='#'
21908 else
21909   do_roken_rename_TRUE='#'
21910   do_roken_rename_FALSE=
21911 fi
21912
21913
21914
21915 cat >>confdefs.h <<\_ACEOF
21916 #define KRB5 1
21917 _ACEOF
21918
21919
21920 crypto_lib=unknown
21921
21922
21923 # Check whether --with-openssl or --without-openssl was given.
21924 if test "${with_openssl+set}" = set; then
21925   withval="$with_openssl"
21926
21927 fi;
21928
21929
21930 # Check whether --with-openssl-lib or --without-openssl-lib was given.
21931 if test "${with_openssl_lib+set}" = set; then
21932   withval="$with_openssl_lib"
21933   if test "$withval" = "yes" -o "$withval" = "no"; then
21934   { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
21935 echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
21936    { (exit 1); exit 1; }; }
21937 elif test "X$with_openssl" = "X"; then
21938   with_openssl=yes
21939 fi
21940 fi;
21941
21942
21943 # Check whether --with-openssl-include or --without-openssl-include was given.
21944 if test "${with_openssl_include+set}" = set; then
21945   withval="$with_openssl_include"
21946   if test "$withval" = "yes" -o "$withval" = "no"; then
21947   { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
21948 echo "$as_me: error: No argument for --with-openssl-include" >&2;}
21949    { (exit 1); exit 1; }; }
21950 elif test "X$with_openssl" = "X"; then
21951   with_openssl=yes
21952 fi
21953 fi;
21954
21955 case "$with_openssl" in
21956 yes)    ;;
21957 no)     ;;
21958 "")     ;;
21959 *)      if test "$with_openssl_include" = ""; then
21960                 with_openssl_include="$with_openssl/include"
21961         fi
21962         if test "$with_openssl_lib" = ""; then
21963                 with_openssl_lib="$with_openssl/lib$abilibdirext"
21964         fi
21965         ;;
21966 esac
21967
21968
21969 DIR_des=
21970
21971 echo "$as_me:$LINENO: checking for crypto library" >&5
21972 echo $ECHO_N "checking for crypto library... $ECHO_C" >&6
21973
21974 openssl=no
21975 old_hash=no
21976
21977 if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
21978         save_CPPFLAGS="$CPPFLAGS"
21979         save_LIBS="$LIBS"
21980
21981         cdirs= clibs=
21982         for i in $LIB_krb4; do
21983                 case "$i" in
21984                 -L*) cdirs="$cdirs $i";;
21985                 -l*) clibs="$clibs $i";;
21986                 esac
21987         done
21988
21989         ires=
21990         for i in $INCLUDE_krb4; do
21991                 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
21992                 for j in $cdirs; do
21993                         for k in $clibs; do
21994                                 LIBS="$j $k $save_LIBS"
21995                                 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001
22002                 #undef KRB5 /* makes md4.h et al unhappy */
22003                 #ifdef HAVE_OPENSSL
22004                 #include <openssl/md4.h>
22005                 #include <openssl/md5.h>
22006                 #include <openssl/sha.h>
22007                 #define OPENSSL_DES_LIBDES_COMPATIBILITY
22008                 #include <openssl/des.h>
22009                 #include <openssl/rc4.h>
22010                 #include <openssl/rand.h>
22011                 #else
22012                 #include <md4.h>
22013                 #include <md5.h>
22014                 #include <sha.h>
22015                 #include <des.h>
22016                 #include <rc4.h>
22017                 #endif
22018                 #ifdef OLD_HASH_NAMES
22019                 typedef struct md4 MD4_CTX;
22020                 #define MD4_Init(C) md4_init((C))
22021                 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
22022                 #define MD4_Final(D, C) md4_finito((C), (D))
22023                 typedef struct md5 MD5_CTX;
22024                 #define MD5_Init(C) md5_init((C))
22025                 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
22026                 #define MD5_Final(D, C) md5_finito((C), (D))
22027                 typedef struct sha SHA_CTX;
22028                 #define SHA1_Init(C) sha_init((C))
22029                 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22030                 #define SHA1_Final(D, C) sha_finito((C), (D))
22031                 #endif
22032
22033 int
22034 main ()
22035 {
22036
22037                 void *schedule = 0;
22038                 MD4_CTX md4;
22039                 MD5_CTX md5;
22040                 SHA_CTX sha1;
22041
22042                 MD4_Init(&md4);
22043                 MD5_Init(&md5);
22044                 SHA1_Init(&sha1);
22045                 #ifdef HAVE_OPENSSL
22046                 RAND_status();
22047                 #endif
22048
22049                 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22050                 RC4(0, 0, 0, 0);
22051   ;
22052   return 0;
22053 }
22054 _ACEOF
22055 rm -f conftest.$ac_objext conftest$ac_exeext
22056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22057   (eval $ac_link) 2>conftest.er1
22058   ac_status=$?
22059   grep -v '^ *+' conftest.er1 >conftest.err
22060   rm -f conftest.er1
22061   cat conftest.err >&5
22062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063   (exit $ac_status); } &&
22064          { ac_try='test -z "$ac_c_werror_flag"
22065                          || test ! -s conftest.err'
22066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067   (eval $ac_try) 2>&5
22068   ac_status=$?
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); }; } &&
22071          { ac_try='test -s conftest$ac_exeext'
22072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073   (eval $ac_try) 2>&5
22074   ac_status=$?
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); }; }; then
22077   openssl=yes ires="$i" lres="$j $k"; break 3
22078 else
22079   echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22081
22082 fi
22083 rm -f conftest.err conftest.$ac_objext \
22084       conftest$ac_exeext conftest.$ac_ext
22085                         done
22086                 done
22087                 CFLAGS="$i $save_CFLAGS"
22088                 for j in $cdirs; do
22089                         for k in $clibs; do
22090                                 LIBS="$j $k $save_LIBS"
22091                                 cat >conftest.$ac_ext <<_ACEOF
22092 /* confdefs.h.  */
22093 _ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h.  */
22097
22098                 #undef KRB5 /* makes md4.h et al unhappy */
22099                 #ifdef HAVE_OPENSSL
22100                 #include <openssl/md4.h>
22101                 #include <openssl/md5.h>
22102                 #include <openssl/sha.h>
22103                 #define OPENSSL_DES_LIBDES_COMPATIBILITY
22104                 #include <openssl/des.h>
22105                 #include <openssl/rc4.h>
22106                 #include <openssl/rand.h>
22107                 #else
22108                 #include <md4.h>
22109                 #include <md5.h>
22110                 #include <sha.h>
22111                 #include <des.h>
22112                 #include <rc4.h>
22113                 #endif
22114                 #ifdef OLD_HASH_NAMES
22115                 typedef struct md4 MD4_CTX;
22116                 #define MD4_Init(C) md4_init((C))
22117                 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
22118                 #define MD4_Final(D, C) md4_finito((C), (D))
22119                 typedef struct md5 MD5_CTX;
22120                 #define MD5_Init(C) md5_init((C))
22121                 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
22122                 #define MD5_Final(D, C) md5_finito((C), (D))
22123                 typedef struct sha SHA_CTX;
22124                 #define SHA1_Init(C) sha_init((C))
22125                 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22126                 #define SHA1_Final(D, C) sha_finito((C), (D))
22127                 #endif
22128
22129 int
22130 main ()
22131 {
22132
22133                 void *schedule = 0;
22134                 MD4_CTX md4;
22135                 MD5_CTX md5;
22136                 SHA_CTX sha1;
22137
22138                 MD4_Init(&md4);
22139                 MD5_Init(&md5);
22140                 SHA1_Init(&sha1);
22141                 #ifdef HAVE_OPENSSL
22142                 RAND_status();
22143                 #endif
22144
22145                 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22146                 RC4(0, 0, 0, 0);
22147   ;
22148   return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext conftest$ac_exeext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153   (eval $ac_link) 2>conftest.er1
22154   ac_status=$?
22155   grep -v '^ *+' conftest.er1 >conftest.err
22156   rm -f conftest.er1
22157   cat conftest.err >&5
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); } &&
22160          { ac_try='test -z "$ac_c_werror_flag"
22161                          || test ! -s conftest.err'
22162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163   (eval $ac_try) 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); }; } &&
22167          { ac_try='test -s conftest$ac_exeext'
22168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169   (eval $ac_try) 2>&5
22170   ac_status=$?
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); }; }; then
22173   openssl=no ires="$i" lres="$j $k"; break 3
22174 else
22175   echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22177
22178 fi
22179 rm -f conftest.err conftest.$ac_objext \
22180       conftest$ac_exeext conftest.$ac_ext
22181                         done
22182                 done
22183                 CFLAGS="-DHAVE_OLD_HASH_NAMES $i $save_CFLAGS"
22184                 for j in $cdirs; do
22185                         for k in $clibs; do
22186                                 LIBS="$j $k $save_LIBS"
22187                                 cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h.  */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h.  */
22193
22194                 #undef KRB5 /* makes md4.h et al unhappy */
22195                 #ifdef HAVE_OPENSSL
22196                 #include <openssl/md4.h>
22197                 #include <openssl/md5.h>
22198                 #include <openssl/sha.h>
22199                 #define OPENSSL_DES_LIBDES_COMPATIBILITY
22200                 #include <openssl/des.h>
22201                 #include <openssl/rc4.h>
22202                 #include <openssl/rand.h>
22203                 #else
22204                 #include <md4.h>
22205                 #include <md5.h>
22206                 #include <sha.h>
22207                 #include <des.h>
22208                 #include <rc4.h>
22209                 #endif
22210                 #ifdef OLD_HASH_NAMES
22211                 typedef struct md4 MD4_CTX;
22212                 #define MD4_Init(C) md4_init((C))
22213                 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
22214                 #define MD4_Final(D, C) md4_finito((C), (D))
22215                 typedef struct md5 MD5_CTX;
22216                 #define MD5_Init(C) md5_init((C))
22217                 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
22218                 #define MD5_Final(D, C) md5_finito((C), (D))
22219                 typedef struct sha SHA_CTX;
22220                 #define SHA1_Init(C) sha_init((C))
22221                 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22222                 #define SHA1_Final(D, C) sha_finito((C), (D))
22223                 #endif
22224
22225 int
22226 main ()
22227 {
22228
22229                 void *schedule = 0;
22230                 MD4_CTX md4;
22231                 MD5_CTX md5;
22232                 SHA_CTX sha1;
22233
22234                 MD4_Init(&md4);
22235                 MD5_Init(&md5);
22236                 SHA1_Init(&sha1);
22237                 #ifdef HAVE_OPENSSL
22238                 RAND_status();
22239                 #endif
22240
22241                 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22242                 RC4(0, 0, 0, 0);
22243   ;
22244   return 0;
22245 }
22246 _ACEOF
22247 rm -f conftest.$ac_objext conftest$ac_exeext
22248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22249   (eval $ac_link) 2>conftest.er1
22250   ac_status=$?
22251   grep -v '^ *+' conftest.er1 >conftest.err
22252   rm -f conftest.er1
22253   cat conftest.err >&5
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); } &&
22256          { ac_try='test -z "$ac_c_werror_flag"
22257                          || test ! -s conftest.err'
22258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259   (eval $ac_try) 2>&5
22260   ac_status=$?
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); }; } &&
22263          { ac_try='test -s conftest$ac_exeext'
22264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265   (eval $ac_try) 2>&5
22266   ac_status=$?
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); }; }; then
22269   openssl=no ires="$i" lres="$j $k"; break 3
22270 else
22271   echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22273
22274 fi
22275 rm -f conftest.err conftest.$ac_objext \
22276       conftest$ac_exeext conftest.$ac_ext
22277                         done
22278                 done
22279         done
22280
22281         CFLAGS="$save_CFLAGS"
22282         LIBS="$save_LIBS"
22283         if test "$ires" -a "$lres"; then
22284                 INCLUDE_des="$ires"
22285                 LIB_des="$lres"
22286                 crypto_lib=krb4
22287                 echo "$as_me:$LINENO: result: same as krb4" >&5
22288 echo "${ECHO_T}same as krb4" >&6
22289                 LIB_des_a='$(LIB_des)'
22290                 LIB_des_so='$(LIB_des)'
22291                 LIB_des_appl='$(LIB_des)'
22292         fi
22293 fi
22294
22295 if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
22296         save_CFLAGS="$CFLAGS"
22297         save_LIBS="$LIBS"
22298         INCLUDE_des=
22299         LIB_des=
22300         if test "$with_openssl_include" != ""; then
22301                 INCLUDE_des="-I${with_openssl_include}"
22302         fi
22303         if test "$with_openssl_lib" != ""; then
22304                 LIB_des="-L${with_openssl_lib}"
22305         fi
22306         CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
22307         saved_LIB_des="$LIB_des"
22308         for lres in "" "-lnsl -lsocket"; do
22309                 LIB_des="${saved_LIB_des} -lcrypto $lres"
22310                 LIB_des_a="$LIB_des"
22311                 LIB_des_so="$LIB_des"
22312                 LIB_des_appl="$LIB_des"
22313                 LIBS="${LIBS} ${LIB_des}"
22314                 cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h.  */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h.  */
22320
22321                 #undef KRB5 /* makes md4.h et al unhappy */
22322                 #ifdef HAVE_OPENSSL
22323                 #include <openssl/md4.h>
22324                 #include <openssl/md5.h>
22325                 #include <openssl/sha.h>
22326                 #define OPENSSL_DES_LIBDES_COMPATIBILITY
22327                 #include <openssl/des.h>
22328                 #include <openssl/rc4.h>
22329                 #include <openssl/rand.h>
22330                 #else
22331                 #include <md4.h>
22332                 #include <md5.h>
22333                 #include <sha.h>
22334                 #include <des.h>
22335                 #include <rc4.h>
22336                 #endif
22337                 #ifdef OLD_HASH_NAMES
22338                 typedef struct md4 MD4_CTX;
22339                 #define MD4_Init(C) md4_init((C))
22340                 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
22341                 #define MD4_Final(D, C) md4_finito((C), (D))
22342                 typedef struct md5 MD5_CTX;
22343                 #define MD5_Init(C) md5_init((C))
22344                 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
22345                 #define MD5_Final(D, C) md5_finito((C), (D))
22346                 typedef struct sha SHA_CTX;
22347                 #define SHA1_Init(C) sha_init((C))
22348                 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22349                 #define SHA1_Final(D, C) sha_finito((C), (D))
22350                 #endif
22351
22352 int
22353 main ()
22354 {
22355
22356                 void *schedule = 0;
22357                 MD4_CTX md4;
22358                 MD5_CTX md5;
22359                 SHA_CTX sha1;
22360
22361                 MD4_Init(&md4);
22362                 MD5_Init(&md5);
22363                 SHA1_Init(&sha1);
22364                 #ifdef HAVE_OPENSSL
22365                 RAND_status();
22366                 #endif
22367
22368                 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22369                 RC4(0, 0, 0, 0);
22370   ;
22371   return 0;
22372 }
22373 _ACEOF
22374 rm -f conftest.$ac_objext conftest$ac_exeext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22376   (eval $ac_link) 2>conftest.er1
22377   ac_status=$?
22378   grep -v '^ *+' conftest.er1 >conftest.err
22379   rm -f conftest.er1
22380   cat conftest.err >&5
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); } &&
22383          { ac_try='test -z "$ac_c_werror_flag"
22384                          || test ! -s conftest.err'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; } &&
22390          { ac_try='test -s conftest$ac_exeext'
22391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392   (eval $ac_try) 2>&5
22393   ac_status=$?
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); }; }; then
22396
22397                         crypto_lib=libcrypto openssl=yes
22398                         echo "$as_me:$LINENO: result: libcrypto" >&5
22399 echo "${ECHO_T}libcrypto" >&6
22400
22401 else
22402   echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22404
22405 fi
22406 rm -f conftest.err conftest.$ac_objext \
22407       conftest$ac_exeext conftest.$ac_ext
22408                 if test "$crypto_lib" = libcrypto ; then
22409                         break;
22410                 fi
22411         done
22412         CFLAGS="$save_CFLAGS"
22413         LIBS="$save_LIBS"
22414 fi
22415
22416 if test "$crypto_lib" = "unknown"; then
22417
22418   DIR_des='des'
22419   LIB_des='$(top_builddir)/lib/des/libdes.la'
22420   LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
22421   LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
22422   LIB_des_appl="-ldes"
22423
22424   echo "$as_me:$LINENO: result: included libdes" >&5
22425 echo "${ECHO_T}included libdes" >&6
22426
22427 fi
22428
22429 if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
22430         { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
22431 required by Kerberos 5; to continue, you need to install a newer
22432 Kerberos 4 or configure --without-krb4" >&5
22433 echo "$as_me: error: the crypto library used by krb4 lacks features
22434 required by Kerberos 5; to continue, you need to install a newer
22435 Kerberos 4 or configure --without-krb4" >&2;}
22436    { (exit 1); exit 1; }; }
22437 fi
22438
22439 if test "$openssl" = "yes"; then
22440
22441 cat >>confdefs.h <<\_ACEOF
22442 #define HAVE_OPENSSL 1
22443 _ACEOF
22444
22445 fi
22446 if test "$old_hash" = yes; then
22447
22448 cat >>confdefs.h <<\_ACEOF
22449 #define HAVE_OLD_HASH_NAMES 1
22450 _ACEOF
22451
22452 fi
22453
22454
22455 if test "$openssl" = yes; then
22456   HAVE_OPENSSL_TRUE=
22457   HAVE_OPENSSL_FALSE='#'
22458 else
22459   HAVE_OPENSSL_TRUE='#'
22460   HAVE_OPENSSL_FALSE=
22461 fi
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471 # Check whether --enable-dce or --disable-dce was given.
22472 if test "${enable_dce+set}" = set; then
22473   enableval="$enable_dce"
22474
22475 fi;
22476 if test "$enable_dce" = yes; then
22477
22478 cat >>confdefs.h <<\_ACEOF
22479 #define DCE 1
22480 _ACEOF
22481
22482 fi
22483
22484
22485 if test "$enable_dce" = yes; then
22486   DCE_TRUE=
22487   DCE_FALSE='#'
22488 else
22489   DCE_TRUE='#'
22490   DCE_FALSE=
22491 fi
22492
22493
22494 ## XXX quite horrible:
22495 if test -f /etc/ibmcxx.cfg; then
22496         dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
22497         dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
22498         dpagaix_ldflags=
22499 else
22500         dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
22501         dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
22502         dpagaix_ldflags="-Wl,-bI:dfspag.exp"
22503 fi
22504
22505
22506
22507
22508
22509 # Check whether --enable-berkeley-db or --disable-berkeley-db was given.
22510 if test "${enable_berkeley_db+set}" = set; then
22511   enableval="$enable_berkeley_db"
22512
22513
22514 fi;
22515
22516 have_ndbm=no
22517 db_type=unknown
22518
22519 if test "$enable_berkeley_db" != no; then
22520
22521
22522
22523
22524
22525 for ac_header in                                \
22526         db4/db.h                                \
22527         db3/db.h                                \
22528         db.h                                    \
22529         db_185.h                                \
22530
22531 do
22532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22534   echo "$as_me:$LINENO: checking for $ac_header" >&5
22535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22537   echo $ECHO_N "(cached) $ECHO_C" >&6
22538 fi
22539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22541 else
22542   # Is the header compilable?
22543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22545 cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h.  */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h.  */
22551 $ac_includes_default
22552 #include <$ac_header>
22553 _ACEOF
22554 rm -f conftest.$ac_objext
22555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22556   (eval $ac_compile) 2>conftest.er1
22557   ac_status=$?
22558   grep -v '^ *+' conftest.er1 >conftest.err
22559   rm -f conftest.er1
22560   cat conftest.err >&5
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); } &&
22563          { ac_try='test -z "$ac_c_werror_flag"
22564                          || test ! -s conftest.err'
22565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566   (eval $ac_try) 2>&5
22567   ac_status=$?
22568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569   (exit $ac_status); }; } &&
22570          { ac_try='test -s conftest.$ac_objext'
22571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572   (eval $ac_try) 2>&5
22573   ac_status=$?
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); }; }; then
22576   ac_header_compiler=yes
22577 else
22578   echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22580
22581 ac_header_compiler=no
22582 fi
22583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22585 echo "${ECHO_T}$ac_header_compiler" >&6
22586
22587 # Is the header present?
22588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22590 cat >conftest.$ac_ext <<_ACEOF
22591 /* confdefs.h.  */
22592 _ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h.  */
22596 #include <$ac_header>
22597 _ACEOF
22598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22600   ac_status=$?
22601   grep -v '^ *+' conftest.er1 >conftest.err
22602   rm -f conftest.er1
22603   cat conftest.err >&5
22604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605   (exit $ac_status); } >/dev/null; then
22606   if test -s conftest.err; then
22607     ac_cpp_err=$ac_c_preproc_warn_flag
22608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22609   else
22610     ac_cpp_err=
22611   fi
22612 else
22613   ac_cpp_err=yes
22614 fi
22615 if test -z "$ac_cpp_err"; then
22616   ac_header_preproc=yes
22617 else
22618   echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22620
22621   ac_header_preproc=no
22622 fi
22623 rm -f conftest.err conftest.$ac_ext
22624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22625 echo "${ECHO_T}$ac_header_preproc" >&6
22626
22627 # So?  What about this header?
22628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22629   yes:no: )
22630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22634     ac_header_preproc=yes
22635     ;;
22636   no:yes:* )
22637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22649     (
22650       cat <<\_ASBOX
22651 ## -------------------------------------- ##
22652 ## Report this to heimdal-bugs@pdc.kth.se ##
22653 ## -------------------------------------- ##
22654 _ASBOX
22655     ) |
22656       sed "s/^/$as_me: WARNING:     /" >&2
22657     ;;
22658 esac
22659 echo "$as_me:$LINENO: checking for $ac_header" >&5
22660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22662   echo $ECHO_N "(cached) $ECHO_C" >&6
22663 else
22664   eval "$as_ac_Header=\$ac_header_preproc"
22665 fi
22666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22668
22669 fi
22670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22671   cat >>confdefs.h <<_ACEOF
22672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22673 _ACEOF
22674
22675 fi
22676
22677 done
22678
22679
22680
22681
22682
22683
22684 echo "$as_me:$LINENO: checking for db_create" >&5
22685 echo $ECHO_N "checking for db_create... $ECHO_C" >&6
22686 if test "${ac_cv_funclib_db_create+set}" = set; then
22687   echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689
22690 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
22691         ac_save_LIBS="$LIBS"
22692         for ac_lib in "" db4 db3 db; do
22693                 case "$ac_lib" in
22694                 "") ;;
22695                 yes) ac_lib="" ;;
22696                 no) continue ;;
22697                 -l*) ;;
22698                 *) ac_lib="-l$ac_lib" ;;
22699                 esac
22700                 LIBS=" $ac_lib  $ac_save_LIBS"
22701                 cat >conftest.$ac_ext <<_ACEOF
22702 /* confdefs.h.  */
22703 _ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h.  */
22707
22708   #include <stdio.h>
22709   #ifdef HAVE_DB4_DB_H
22710   #include <db4/db.h>
22711   #elif defined(HAVE_DB3_DB_H)
22712   #include <db3/db.h>
22713   #else
22714   #include <db.h>
22715   #endif
22716
22717 int
22718 main ()
22719 {
22720 db_create(NULL, NULL, 0)
22721   ;
22722   return 0;
22723 }
22724 _ACEOF
22725 rm -f conftest.$ac_objext conftest$ac_exeext
22726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727   (eval $ac_link) 2>conftest.er1
22728   ac_status=$?
22729   grep -v '^ *+' conftest.er1 >conftest.err
22730   rm -f conftest.er1
22731   cat conftest.err >&5
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); } &&
22734          { ac_try='test -z "$ac_c_werror_flag"
22735                          || test ! -s conftest.err'
22736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737   (eval $ac_try) 2>&5
22738   ac_status=$?
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); }; } &&
22741          { ac_try='test -s conftest$ac_exeext'
22742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743   (eval $ac_try) 2>&5
22744   ac_status=$?
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); }; }; then
22747   eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
22748 else
22749   echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752 fi
22753 rm -f conftest.err conftest.$ac_objext \
22754       conftest$ac_exeext conftest.$ac_ext
22755         done
22756         eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
22757         LIBS="$ac_save_LIBS"
22758 fi
22759
22760 fi
22761
22762
22763 eval "ac_res=\$ac_cv_funclib_db_create"
22764
22765 if false; then
22766
22767 for ac_func in db_create
22768 do
22769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22770 echo "$as_me:$LINENO: checking for $ac_func" >&5
22771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22772 if eval "test \"\${$as_ac_var+set}\" = set"; then
22773   echo $ECHO_N "(cached) $ECHO_C" >&6
22774 else
22775   cat >conftest.$ac_ext <<_ACEOF
22776 /* confdefs.h.  */
22777 _ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h.  */
22781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22783 #define $ac_func innocuous_$ac_func
22784
22785 /* System header to define __stub macros and hopefully few prototypes,
22786     which can conflict with char $ac_func (); below.
22787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22788     <limits.h> exists even on freestanding compilers.  */
22789
22790 #ifdef __STDC__
22791 # include <limits.h>
22792 #else
22793 # include <assert.h>
22794 #endif
22795
22796 #undef $ac_func
22797
22798 /* Override any gcc2 internal prototype to avoid an error.  */
22799 #ifdef __cplusplus
22800 extern "C"
22801 {
22802 #endif
22803 /* We use char because int might match the return type of a gcc2
22804    builtin and then its argument prototype would still apply.  */
22805 char $ac_func ();
22806 /* The GNU C library defines this for functions which it implements
22807     to always fail with ENOSYS.  Some functions are actually named
22808     something starting with __ and the normal name is an alias.  */
22809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22810 choke me
22811 #else
22812 char (*f) () = $ac_func;
22813 #endif
22814 #ifdef __cplusplus
22815 }
22816 #endif
22817
22818 int
22819 main ()
22820 {
22821 return f != $ac_func;
22822   ;
22823   return 0;
22824 }
22825 _ACEOF
22826 rm -f conftest.$ac_objext conftest$ac_exeext
22827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22828   (eval $ac_link) 2>conftest.er1
22829   ac_status=$?
22830   grep -v '^ *+' conftest.er1 >conftest.err
22831   rm -f conftest.er1
22832   cat conftest.err >&5
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); } &&
22835          { ac_try='test -z "$ac_c_werror_flag"
22836                          || test ! -s conftest.err'
22837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838   (eval $ac_try) 2>&5
22839   ac_status=$?
22840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841   (exit $ac_status); }; } &&
22842          { ac_try='test -s conftest$ac_exeext'
22843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844   (eval $ac_try) 2>&5
22845   ac_status=$?
22846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); }; }; then
22848   eval "$as_ac_var=yes"
22849 else
22850   echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22852
22853 eval "$as_ac_var=no"
22854 fi
22855 rm -f conftest.err conftest.$ac_objext \
22856       conftest$ac_exeext conftest.$ac_ext
22857 fi
22858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22860 if test `eval echo '${'$as_ac_var'}'` = yes; then
22861   cat >>confdefs.h <<_ACEOF
22862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22863 _ACEOF
22864
22865 fi
22866 done
22867
22868 fi
22869 # db_create
22870 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22871 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22872 eval "LIB_db_create=$ac_res"
22873
22874 case "$ac_res" in
22875         yes)
22876         eval "ac_cv_func_db_create=yes"
22877         eval "LIB_db_create="
22878         cat >>confdefs.h <<_ACEOF
22879 #define $ac_tr_func 1
22880 _ACEOF
22881
22882         echo "$as_me:$LINENO: result: yes" >&5
22883 echo "${ECHO_T}yes" >&6
22884         ;;
22885         no)
22886         eval "ac_cv_func_db_create=no"
22887         eval "LIB_db_create="
22888         echo "$as_me:$LINENO: result: no" >&5
22889 echo "${ECHO_T}no" >&6
22890         ;;
22891         *)
22892         eval "ac_cv_func_db_create=yes"
22893         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22894         cat >>confdefs.h <<_ACEOF
22895 #define $ac_tr_func 1
22896 _ACEOF
22897
22898         cat >>confdefs.h <<_ACEOF
22899 #define $ac_tr_lib 1
22900 _ACEOF
22901
22902         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
22903 echo "${ECHO_T}yes, in $ac_res" >&6
22904         ;;
22905 esac
22906
22907
22908
22909   if test "$ac_cv_func_db_create" = "yes"; then
22910     db_type=db3
22911     if test "$ac_cv_funclib_db_create" != "yes"; then
22912       DBLIB="$ac_cv_funclib_db_create"
22913     else
22914       DBLIB=""
22915     fi
22916
22917 cat >>confdefs.h <<\_ACEOF
22918 #define HAVE_DB3 1
22919 _ACEOF
22920
22921   else
22922
22923
22924
22925
22926
22927 echo "$as_me:$LINENO: checking for dbopen" >&5
22928 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
22929 if test "${ac_cv_funclib_dbopen+set}" = set; then
22930   echo $ECHO_N "(cached) $ECHO_C" >&6
22931 else
22932
22933 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
22934         ac_save_LIBS="$LIBS"
22935         for ac_lib in "" db2 db; do
22936                 case "$ac_lib" in
22937                 "") ;;
22938                 yes) ac_lib="" ;;
22939                 no) continue ;;
22940                 -l*) ;;
22941                 *) ac_lib="-l$ac_lib" ;;
22942                 esac
22943                 LIBS=" $ac_lib  $ac_save_LIBS"
22944                 cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h.  */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h.  */
22950
22951     #include <stdio.h>
22952     #if defined(HAVE_DB2_DB_H)
22953     #include <db2/db.h>
22954     #elif defined(HAVE_DB_185_H)
22955     #include <db_185.h>
22956     #elif defined(HAVE_DB_H)
22957     #include <db.h>
22958     #else
22959     #error no db.h
22960     #endif
22961
22962 int
22963 main ()
22964 {
22965 dbopen(NULL, 0, 0, 0, NULL)
22966   ;
22967   return 0;
22968 }
22969 _ACEOF
22970 rm -f conftest.$ac_objext conftest$ac_exeext
22971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22972   (eval $ac_link) 2>conftest.er1
22973   ac_status=$?
22974   grep -v '^ *+' conftest.er1 >conftest.err
22975   rm -f conftest.er1
22976   cat conftest.err >&5
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); } &&
22979          { ac_try='test -z "$ac_c_werror_flag"
22980                          || test ! -s conftest.err'
22981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982   (eval $ac_try) 2>&5
22983   ac_status=$?
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); }; } &&
22986          { ac_try='test -s conftest$ac_exeext'
22987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988   (eval $ac_try) 2>&5
22989   ac_status=$?
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); }; }; then
22992   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
22993 else
22994   echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22996
22997 fi
22998 rm -f conftest.err conftest.$ac_objext \
22999       conftest$ac_exeext conftest.$ac_ext
23000         done
23001         eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
23002         LIBS="$ac_save_LIBS"
23003 fi
23004
23005 fi
23006
23007
23008 eval "ac_res=\$ac_cv_funclib_dbopen"
23009
23010 if false; then
23011
23012 for ac_func in dbopen
23013 do
23014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23015 echo "$as_me:$LINENO: checking for $ac_func" >&5
23016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23017 if eval "test \"\${$as_ac_var+set}\" = set"; then
23018   echo $ECHO_N "(cached) $ECHO_C" >&6
23019 else
23020   cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23028 #define $ac_func innocuous_$ac_func
23029
23030 /* System header to define __stub macros and hopefully few prototypes,
23031     which can conflict with char $ac_func (); below.
23032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23033     <limits.h> exists even on freestanding compilers.  */
23034
23035 #ifdef __STDC__
23036 # include <limits.h>
23037 #else
23038 # include <assert.h>
23039 #endif
23040
23041 #undef $ac_func
23042
23043 /* Override any gcc2 internal prototype to avoid an error.  */
23044 #ifdef __cplusplus
23045 extern "C"
23046 {
23047 #endif
23048 /* We use char because int might match the return type of a gcc2
23049    builtin and then its argument prototype would still apply.  */
23050 char $ac_func ();
23051 /* The GNU C library defines this for functions which it implements
23052     to always fail with ENOSYS.  Some functions are actually named
23053     something starting with __ and the normal name is an alias.  */
23054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23055 choke me
23056 #else
23057 char (*f) () = $ac_func;
23058 #endif
23059 #ifdef __cplusplus
23060 }
23061 #endif
23062
23063 int
23064 main ()
23065 {
23066 return f != $ac_func;
23067   ;
23068   return 0;
23069 }
23070 _ACEOF
23071 rm -f conftest.$ac_objext conftest$ac_exeext
23072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23073   (eval $ac_link) 2>conftest.er1
23074   ac_status=$?
23075   grep -v '^ *+' conftest.er1 >conftest.err
23076   rm -f conftest.er1
23077   cat conftest.err >&5
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); } &&
23080          { ac_try='test -z "$ac_c_werror_flag"
23081                          || test ! -s conftest.err'
23082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083   (eval $ac_try) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); }; } &&
23087          { ac_try='test -s conftest$ac_exeext'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; }; then
23093   eval "$as_ac_var=yes"
23094 else
23095   echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23097
23098 eval "$as_ac_var=no"
23099 fi
23100 rm -f conftest.err conftest.$ac_objext \
23101       conftest$ac_exeext conftest.$ac_ext
23102 fi
23103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23105 if test `eval echo '${'$as_ac_var'}'` = yes; then
23106   cat >>confdefs.h <<_ACEOF
23107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23108 _ACEOF
23109
23110 fi
23111 done
23112
23113 fi
23114 # dbopen
23115 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23116 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23117 eval "LIB_dbopen=$ac_res"
23118
23119 case "$ac_res" in
23120         yes)
23121         eval "ac_cv_func_dbopen=yes"
23122         eval "LIB_dbopen="
23123         cat >>confdefs.h <<_ACEOF
23124 #define $ac_tr_func 1
23125 _ACEOF
23126
23127         echo "$as_me:$LINENO: result: yes" >&5
23128 echo "${ECHO_T}yes" >&6
23129         ;;
23130         no)
23131         eval "ac_cv_func_dbopen=no"
23132         eval "LIB_dbopen="
23133         echo "$as_me:$LINENO: result: no" >&5
23134 echo "${ECHO_T}no" >&6
23135         ;;
23136         *)
23137         eval "ac_cv_func_dbopen=yes"
23138         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23139         cat >>confdefs.h <<_ACEOF
23140 #define $ac_tr_func 1
23141 _ACEOF
23142
23143         cat >>confdefs.h <<_ACEOF
23144 #define $ac_tr_lib 1
23145 _ACEOF
23146
23147         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23148 echo "${ECHO_T}yes, in $ac_res" >&6
23149         ;;
23150 esac
23151
23152
23153
23154     if test "$ac_cv_func_dbopen" = "yes"; then
23155       db_type=db1
23156       if test "$ac_cv_funclib_dbopen" != "yes"; then
23157         DBLIB="$ac_cv_funclib_dbopen"
23158       else
23159         DBLIB=""
23160       fi
23161
23162 cat >>confdefs.h <<\_ACEOF
23163 #define HAVE_DB1 1
23164 _ACEOF
23165
23166     fi
23167   fi
23168
23169
23170   if test "$ac_cv_func_dbm_firstkey" != yes; then
23171
23172
23173 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23174 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23175 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23176   echo $ECHO_N "(cached) $ECHO_C" >&6
23177 else
23178
23179 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23180         ac_save_LIBS="$LIBS"
23181         for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
23182                 case "$ac_lib" in
23183                 "") ;;
23184                 yes) ac_lib="" ;;
23185                 no) continue ;;
23186                 -l*) ;;
23187                 *) ac_lib="-l$ac_lib" ;;
23188                 esac
23189                 LIBS=" $ac_lib  $ac_save_LIBS"
23190                 cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h.  */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h.  */
23196
23197     #include <stdio.h>
23198     #define DB_DBM_HSEARCH 1
23199     #include <db.h>
23200     DBM *dbm;
23201
23202 int
23203 main ()
23204 {
23205 dbm_firstkey(NULL)
23206   ;
23207   return 0;
23208 }
23209 _ACEOF
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23212   (eval $ac_link) 2>conftest.er1
23213   ac_status=$?
23214   grep -v '^ *+' conftest.er1 >conftest.err
23215   rm -f conftest.er1
23216   cat conftest.err >&5
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } &&
23219          { ac_try='test -z "$ac_c_werror_flag"
23220                          || test ! -s conftest.err'
23221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222   (eval $ac_try) 2>&5
23223   ac_status=$?
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); }; } &&
23226          { ac_try='test -s conftest$ac_exeext'
23227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228   (eval $ac_try) 2>&5
23229   ac_status=$?
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); }; }; then
23232   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
23233 else
23234   echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237 fi
23238 rm -f conftest.err conftest.$ac_objext \
23239       conftest$ac_exeext conftest.$ac_ext
23240         done
23241         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
23242         LIBS="$ac_save_LIBS"
23243 fi
23244
23245 fi
23246
23247
23248 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
23249
23250 if false; then
23251
23252 for ac_func in dbm_firstkey
23253 do
23254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23255 echo "$as_me:$LINENO: checking for $ac_func" >&5
23256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23257 if eval "test \"\${$as_ac_var+set}\" = set"; then
23258   echo $ECHO_N "(cached) $ECHO_C" >&6
23259 else
23260   cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h.  */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h.  */
23266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23268 #define $ac_func innocuous_$ac_func
23269
23270 /* System header to define __stub macros and hopefully few prototypes,
23271     which can conflict with char $ac_func (); below.
23272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23273     <limits.h> exists even on freestanding compilers.  */
23274
23275 #ifdef __STDC__
23276 # include <limits.h>
23277 #else
23278 # include <assert.h>
23279 #endif
23280
23281 #undef $ac_func
23282
23283 /* Override any gcc2 internal prototype to avoid an error.  */
23284 #ifdef __cplusplus
23285 extern "C"
23286 {
23287 #endif
23288 /* We use char because int might match the return type of a gcc2
23289    builtin and then its argument prototype would still apply.  */
23290 char $ac_func ();
23291 /* The GNU C library defines this for functions which it implements
23292     to always fail with ENOSYS.  Some functions are actually named
23293     something starting with __ and the normal name is an alias.  */
23294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23295 choke me
23296 #else
23297 char (*f) () = $ac_func;
23298 #endif
23299 #ifdef __cplusplus
23300 }
23301 #endif
23302
23303 int
23304 main ()
23305 {
23306 return f != $ac_func;
23307   ;
23308   return 0;
23309 }
23310 _ACEOF
23311 rm -f conftest.$ac_objext conftest$ac_exeext
23312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23313   (eval $ac_link) 2>conftest.er1
23314   ac_status=$?
23315   grep -v '^ *+' conftest.er1 >conftest.err
23316   rm -f conftest.er1
23317   cat conftest.err >&5
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); } &&
23320          { ac_try='test -z "$ac_c_werror_flag"
23321                          || test ! -s conftest.err'
23322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323   (eval $ac_try) 2>&5
23324   ac_status=$?
23325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326   (exit $ac_status); }; } &&
23327          { ac_try='test -s conftest$ac_exeext'
23328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329   (eval $ac_try) 2>&5
23330   ac_status=$?
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); }; }; then
23333   eval "$as_ac_var=yes"
23334 else
23335   echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23337
23338 eval "$as_ac_var=no"
23339 fi
23340 rm -f conftest.err conftest.$ac_objext \
23341       conftest$ac_exeext conftest.$ac_ext
23342 fi
23343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23345 if test `eval echo '${'$as_ac_var'}'` = yes; then
23346   cat >>confdefs.h <<_ACEOF
23347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23348 _ACEOF
23349
23350 fi
23351 done
23352
23353 fi
23354 # dbm_firstkey
23355 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23356 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23357 eval "LIB_dbm_firstkey=$ac_res"
23358
23359 case "$ac_res" in
23360         yes)
23361         eval "ac_cv_func_dbm_firstkey=yes"
23362         eval "LIB_dbm_firstkey="
23363         cat >>confdefs.h <<_ACEOF
23364 #define $ac_tr_func 1
23365 _ACEOF
23366
23367         echo "$as_me:$LINENO: result: yes" >&5
23368 echo "${ECHO_T}yes" >&6
23369         ;;
23370         no)
23371         eval "ac_cv_func_dbm_firstkey=no"
23372         eval "LIB_dbm_firstkey="
23373         echo "$as_me:$LINENO: result: no" >&5
23374 echo "${ECHO_T}no" >&6
23375         ;;
23376         *)
23377         eval "ac_cv_func_dbm_firstkey=yes"
23378         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23379         cat >>confdefs.h <<_ACEOF
23380 #define $ac_tr_func 1
23381 _ACEOF
23382
23383         cat >>confdefs.h <<_ACEOF
23384 #define $ac_tr_lib 1
23385 _ACEOF
23386
23387         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23388 echo "${ECHO_T}yes, in $ac_res" >&6
23389         ;;
23390 esac
23391
23392
23393
23394     if test "$ac_cv_func_dbm_firstkey" = "yes"; then
23395       if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
23396         LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
23397       else
23398         LIB_NDBM=""
23399       fi
23400
23401 cat >>confdefs.h <<\_ACEOF
23402 #define HAVE_DB_NDBM 1
23403 _ACEOF
23404
23405
23406 cat >>confdefs.h <<\_ACEOF
23407 #define HAVE_NEW_DB 1
23408 _ACEOF
23409
23410     else
23411       $as_unset ac_cv_func_dbm_firstkey
23412       $as_unset ac_cv_funclib_dbm_firstkey
23413     fi
23414   fi
23415
23416 fi # berkeley db
23417
23418 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
23419
23420
23421
23422 for ac_header in                                \
23423         dbm.h                                   \
23424         ndbm.h                                  \
23425
23426 do
23427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23429   echo "$as_me:$LINENO: checking for $ac_header" >&5
23430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23432   echo $ECHO_N "(cached) $ECHO_C" >&6
23433 fi
23434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23436 else
23437   # Is the header compilable?
23438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23440 cat >conftest.$ac_ext <<_ACEOF
23441 /* confdefs.h.  */
23442 _ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h.  */
23446 $ac_includes_default
23447 #include <$ac_header>
23448 _ACEOF
23449 rm -f conftest.$ac_objext
23450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23451   (eval $ac_compile) 2>conftest.er1
23452   ac_status=$?
23453   grep -v '^ *+' conftest.er1 >conftest.err
23454   rm -f conftest.er1
23455   cat conftest.err >&5
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); } &&
23458          { ac_try='test -z "$ac_c_werror_flag"
23459                          || test ! -s conftest.err'
23460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461   (eval $ac_try) 2>&5
23462   ac_status=$?
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); }; } &&
23465          { ac_try='test -s conftest.$ac_objext'
23466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467   (eval $ac_try) 2>&5
23468   ac_status=$?
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); }; }; then
23471   ac_header_compiler=yes
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476 ac_header_compiler=no
23477 fi
23478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23480 echo "${ECHO_T}$ac_header_compiler" >&6
23481
23482 # Is the header present?
23483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23485 cat >conftest.$ac_ext <<_ACEOF
23486 /* confdefs.h.  */
23487 _ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h.  */
23491 #include <$ac_header>
23492 _ACEOF
23493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23495   ac_status=$?
23496   grep -v '^ *+' conftest.er1 >conftest.err
23497   rm -f conftest.er1
23498   cat conftest.err >&5
23499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500   (exit $ac_status); } >/dev/null; then
23501   if test -s conftest.err; then
23502     ac_cpp_err=$ac_c_preproc_warn_flag
23503     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23504   else
23505     ac_cpp_err=
23506   fi
23507 else
23508   ac_cpp_err=yes
23509 fi
23510 if test -z "$ac_cpp_err"; then
23511   ac_header_preproc=yes
23512 else
23513   echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23515
23516   ac_header_preproc=no
23517 fi
23518 rm -f conftest.err conftest.$ac_ext
23519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23520 echo "${ECHO_T}$ac_header_preproc" >&6
23521
23522 # So?  What about this header?
23523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23524   yes:no: )
23525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23529     ac_header_preproc=yes
23530     ;;
23531   no:yes:* )
23532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23534     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23535 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23538     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23539 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23544     (
23545       cat <<\_ASBOX
23546 ## -------------------------------------- ##
23547 ## Report this to heimdal-bugs@pdc.kth.se ##
23548 ## -------------------------------------- ##
23549 _ASBOX
23550     ) |
23551       sed "s/^/$as_me: WARNING:     /" >&2
23552     ;;
23553 esac
23554 echo "$as_me:$LINENO: checking for $ac_header" >&5
23555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23557   echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23559   eval "$as_ac_Header=\$ac_header_preproc"
23560 fi
23561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23563
23564 fi
23565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23566   cat >>confdefs.h <<_ACEOF
23567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23568 _ACEOF
23569
23570 fi
23571
23572 done
23573
23574
23575
23576
23577
23578 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23579 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23580 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23581   echo $ECHO_N "(cached) $ECHO_C" >&6
23582 else
23583
23584 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23585         ac_save_LIBS="$LIBS"
23586         for ac_lib in "" ndbm; do
23587                 case "$ac_lib" in
23588                 "") ;;
23589                 yes) ac_lib="" ;;
23590                 no) continue ;;
23591                 -l*) ;;
23592                 *) ac_lib="-l$ac_lib" ;;
23593                 esac
23594                 LIBS=" $ac_lib  $ac_save_LIBS"
23595                 cat >conftest.$ac_ext <<_ACEOF
23596 /* confdefs.h.  */
23597 _ACEOF
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h.  */
23601
23602   #include <stdio.h>
23603   #if defined(HAVE_NDBM_H)
23604   #include <ndbm.h>
23605   #elif defined(HAVE_DBM_H)
23606   #include <dbm.h>
23607   #endif
23608   DBM *dbm;
23609
23610 int
23611 main ()
23612 {
23613 dbm_firstkey(NULL)
23614   ;
23615   return 0;
23616 }
23617 _ACEOF
23618 rm -f conftest.$ac_objext conftest$ac_exeext
23619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23620   (eval $ac_link) 2>conftest.er1
23621   ac_status=$?
23622   grep -v '^ *+' conftest.er1 >conftest.err
23623   rm -f conftest.er1
23624   cat conftest.err >&5
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); } &&
23627          { ac_try='test -z "$ac_c_werror_flag"
23628                          || test ! -s conftest.err'
23629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630   (eval $ac_try) 2>&5
23631   ac_status=$?
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); }; } &&
23634          { ac_try='test -s conftest$ac_exeext'
23635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636   (eval $ac_try) 2>&5
23637   ac_status=$?
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); }; }; then
23640   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
23641 else
23642   echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23644
23645 fi
23646 rm -f conftest.err conftest.$ac_objext \
23647       conftest$ac_exeext conftest.$ac_ext
23648         done
23649         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
23650         LIBS="$ac_save_LIBS"
23651 fi
23652
23653 fi
23654
23655
23656 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
23657
23658 if false; then
23659
23660 for ac_func in dbm_firstkey
23661 do
23662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23663 echo "$as_me:$LINENO: checking for $ac_func" >&5
23664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23665 if eval "test \"\${$as_ac_var+set}\" = set"; then
23666   echo $ECHO_N "(cached) $ECHO_C" >&6
23667 else
23668   cat >conftest.$ac_ext <<_ACEOF
23669 /* confdefs.h.  */
23670 _ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h.  */
23674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23676 #define $ac_func innocuous_$ac_func
23677
23678 /* System header to define __stub macros and hopefully few prototypes,
23679     which can conflict with char $ac_func (); below.
23680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23681     <limits.h> exists even on freestanding compilers.  */
23682
23683 #ifdef __STDC__
23684 # include <limits.h>
23685 #else
23686 # include <assert.h>
23687 #endif
23688
23689 #undef $ac_func
23690
23691 /* Override any gcc2 internal prototype to avoid an error.  */
23692 #ifdef __cplusplus
23693 extern "C"
23694 {
23695 #endif
23696 /* We use char because int might match the return type of a gcc2
23697    builtin and then its argument prototype would still apply.  */
23698 char $ac_func ();
23699 /* The GNU C library defines this for functions which it implements
23700     to always fail with ENOSYS.  Some functions are actually named
23701     something starting with __ and the normal name is an alias.  */
23702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23703 choke me
23704 #else
23705 char (*f) () = $ac_func;
23706 #endif
23707 #ifdef __cplusplus
23708 }
23709 #endif
23710
23711 int
23712 main ()
23713 {
23714 return f != $ac_func;
23715   ;
23716   return 0;
23717 }
23718 _ACEOF
23719 rm -f conftest.$ac_objext conftest$ac_exeext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23721   (eval $ac_link) 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } &&
23728          { ac_try='test -z "$ac_c_werror_flag"
23729                          || test ! -s conftest.err'
23730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731   (eval $ac_try) 2>&5
23732   ac_status=$?
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); }; } &&
23735          { ac_try='test -s conftest$ac_exeext'
23736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737   (eval $ac_try) 2>&5
23738   ac_status=$?
23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); }; }; then
23741   eval "$as_ac_var=yes"
23742 else
23743   echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 eval "$as_ac_var=no"
23747 fi
23748 rm -f conftest.err conftest.$ac_objext \
23749       conftest$ac_exeext conftest.$ac_ext
23750 fi
23751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23753 if test `eval echo '${'$as_ac_var'}'` = yes; then
23754   cat >>confdefs.h <<_ACEOF
23755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23756 _ACEOF
23757
23758 fi
23759 done
23760
23761 fi
23762 # dbm_firstkey
23763 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23764 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23765 eval "LIB_dbm_firstkey=$ac_res"
23766
23767 case "$ac_res" in
23768         yes)
23769         eval "ac_cv_func_dbm_firstkey=yes"
23770         eval "LIB_dbm_firstkey="
23771         cat >>confdefs.h <<_ACEOF
23772 #define $ac_tr_func 1
23773 _ACEOF
23774
23775         echo "$as_me:$LINENO: result: yes" >&5
23776 echo "${ECHO_T}yes" >&6
23777         ;;
23778         no)
23779         eval "ac_cv_func_dbm_firstkey=no"
23780         eval "LIB_dbm_firstkey="
23781         echo "$as_me:$LINENO: result: no" >&5
23782 echo "${ECHO_T}no" >&6
23783         ;;
23784         *)
23785         eval "ac_cv_func_dbm_firstkey=yes"
23786         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23787         cat >>confdefs.h <<_ACEOF
23788 #define $ac_tr_func 1
23789 _ACEOF
23790
23791         cat >>confdefs.h <<_ACEOF
23792 #define $ac_tr_lib 1
23793 _ACEOF
23794
23795         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23796 echo "${ECHO_T}yes, in $ac_res" >&6
23797         ;;
23798 esac
23799
23800
23801
23802   if test "$ac_cv_func_dbm_firstkey" = "yes"; then
23803     if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
23804       LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
23805     else
23806       LIB_NDBM=""
23807     fi
23808
23809 cat >>confdefs.h <<\_ACEOF
23810 #define HAVE_NDBM 1
23811 _ACEOF
23812     have_ndbm=yes
23813     if test "$db_type" = "unknown"; then
23814       db_type=ndbm
23815       DBLIB="$LIB_NDBM"
23816     fi
23817   else
23818
23819     $as_unset ac_cv_func_dbm_firstkey
23820     $as_unset ac_cv_funclib_dbm_firstkey
23821
23822
23823 for ac_header in                                \
23824           gdbm/ndbm.h                           \
23825
23826 do
23827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23829   echo "$as_me:$LINENO: checking for $ac_header" >&5
23830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23832   echo $ECHO_N "(cached) $ECHO_C" >&6
23833 fi
23834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23836 else
23837   # Is the header compilable?
23838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23840 cat >conftest.$ac_ext <<_ACEOF
23841 /* confdefs.h.  */
23842 _ACEOF
23843 cat confdefs.h >>conftest.$ac_ext
23844 cat >>conftest.$ac_ext <<_ACEOF
23845 /* end confdefs.h.  */
23846 $ac_includes_default
23847 #include <$ac_header>
23848 _ACEOF
23849 rm -f conftest.$ac_objext
23850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23851   (eval $ac_compile) 2>conftest.er1
23852   ac_status=$?
23853   grep -v '^ *+' conftest.er1 >conftest.err
23854   rm -f conftest.er1
23855   cat conftest.err >&5
23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); } &&
23858          { ac_try='test -z "$ac_c_werror_flag"
23859                          || test ! -s conftest.err'
23860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861   (eval $ac_try) 2>&5
23862   ac_status=$?
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); }; } &&
23865          { ac_try='test -s conftest.$ac_objext'
23866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867   (eval $ac_try) 2>&5
23868   ac_status=$?
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); }; }; then
23871   ac_header_compiler=yes
23872 else
23873   echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23875
23876 ac_header_compiler=no
23877 fi
23878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23880 echo "${ECHO_T}$ac_header_compiler" >&6
23881
23882 # Is the header present?
23883 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23885 cat >conftest.$ac_ext <<_ACEOF
23886 /* confdefs.h.  */
23887 _ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h.  */
23891 #include <$ac_header>
23892 _ACEOF
23893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23894   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23895   ac_status=$?
23896   grep -v '^ *+' conftest.er1 >conftest.err
23897   rm -f conftest.er1
23898   cat conftest.err >&5
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); } >/dev/null; then
23901   if test -s conftest.err; then
23902     ac_cpp_err=$ac_c_preproc_warn_flag
23903     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23904   else
23905     ac_cpp_err=
23906   fi
23907 else
23908   ac_cpp_err=yes
23909 fi
23910 if test -z "$ac_cpp_err"; then
23911   ac_header_preproc=yes
23912 else
23913   echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23915
23916   ac_header_preproc=no
23917 fi
23918 rm -f conftest.err conftest.$ac_ext
23919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23920 echo "${ECHO_T}$ac_header_preproc" >&6
23921
23922 # So?  What about this header?
23923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23924   yes:no: )
23925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23929     ac_header_preproc=yes
23930     ;;
23931   no:yes:* )
23932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23944     (
23945       cat <<\_ASBOX
23946 ## -------------------------------------- ##
23947 ## Report this to heimdal-bugs@pdc.kth.se ##
23948 ## -------------------------------------- ##
23949 _ASBOX
23950     ) |
23951       sed "s/^/$as_me: WARNING:     /" >&2
23952     ;;
23953 esac
23954 echo "$as_me:$LINENO: checking for $ac_header" >&5
23955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23957   echo $ECHO_N "(cached) $ECHO_C" >&6
23958 else
23959   eval "$as_ac_Header=\$ac_header_preproc"
23960 fi
23961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23963
23964 fi
23965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23966   cat >>confdefs.h <<_ACEOF
23967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23968 _ACEOF
23969
23970 fi
23971
23972 done
23973
23974
23975
23976
23977
23978 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23979 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23980 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23981   echo $ECHO_N "(cached) $ECHO_C" >&6
23982 else
23983
23984 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23985         ac_save_LIBS="$LIBS"
23986         for ac_lib in "" gdbm; do
23987                 case "$ac_lib" in
23988                 "") ;;
23989                 yes) ac_lib="" ;;
23990                 no) continue ;;
23991                 -l*) ;;
23992                 *) ac_lib="-l$ac_lib" ;;
23993                 esac
23994                 LIBS=" $ac_lib  $ac_save_LIBS"
23995                 cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h.  */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h.  */
24001
24002     #include <stdio.h>
24003     #include <gdbm/ndbm.h>
24004     DBM *dbm;
24005
24006 int
24007 main ()
24008 {
24009 dbm_firstkey(NULL)
24010   ;
24011   return 0;
24012 }
24013 _ACEOF
24014 rm -f conftest.$ac_objext conftest$ac_exeext
24015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24016   (eval $ac_link) 2>conftest.er1
24017   ac_status=$?
24018   grep -v '^ *+' conftest.er1 >conftest.err
24019   rm -f conftest.er1
24020   cat conftest.err >&5
24021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022   (exit $ac_status); } &&
24023          { ac_try='test -z "$ac_c_werror_flag"
24024                          || test ! -s conftest.err'
24025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24026   (eval $ac_try) 2>&5
24027   ac_status=$?
24028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029   (exit $ac_status); }; } &&
24030          { ac_try='test -s conftest$ac_exeext'
24031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032   (eval $ac_try) 2>&5
24033   ac_status=$?
24034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035   (exit $ac_status); }; }; then
24036   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
24037 else
24038   echo "$as_me: failed program was:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24040
24041 fi
24042 rm -f conftest.err conftest.$ac_objext \
24043       conftest$ac_exeext conftest.$ac_ext
24044         done
24045         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
24046         LIBS="$ac_save_LIBS"
24047 fi
24048
24049 fi
24050
24051
24052 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
24053
24054 if false; then
24055
24056 for ac_func in dbm_firstkey
24057 do
24058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24059 echo "$as_me:$LINENO: checking for $ac_func" >&5
24060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24061 if eval "test \"\${$as_ac_var+set}\" = set"; then
24062   echo $ECHO_N "(cached) $ECHO_C" >&6
24063 else
24064   cat >conftest.$ac_ext <<_ACEOF
24065 /* confdefs.h.  */
24066 _ACEOF
24067 cat confdefs.h >>conftest.$ac_ext
24068 cat >>conftest.$ac_ext <<_ACEOF
24069 /* end confdefs.h.  */
24070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24072 #define $ac_func innocuous_$ac_func
24073
24074 /* System header to define __stub macros and hopefully few prototypes,
24075     which can conflict with char $ac_func (); below.
24076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24077     <limits.h> exists even on freestanding compilers.  */
24078
24079 #ifdef __STDC__
24080 # include <limits.h>
24081 #else
24082 # include <assert.h>
24083 #endif
24084
24085 #undef $ac_func
24086
24087 /* Override any gcc2 internal prototype to avoid an error.  */
24088 #ifdef __cplusplus
24089 extern "C"
24090 {
24091 #endif
24092 /* We use char because int might match the return type of a gcc2
24093    builtin and then its argument prototype would still apply.  */
24094 char $ac_func ();
24095 /* The GNU C library defines this for functions which it implements
24096     to always fail with ENOSYS.  Some functions are actually named
24097     something starting with __ and the normal name is an alias.  */
24098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24099 choke me
24100 #else
24101 char (*f) () = $ac_func;
24102 #endif
24103 #ifdef __cplusplus
24104 }
24105 #endif
24106
24107 int
24108 main ()
24109 {
24110 return f != $ac_func;
24111   ;
24112   return 0;
24113 }
24114 _ACEOF
24115 rm -f conftest.$ac_objext conftest$ac_exeext
24116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24117   (eval $ac_link) 2>conftest.er1
24118   ac_status=$?
24119   grep -v '^ *+' conftest.er1 >conftest.err
24120   rm -f conftest.er1
24121   cat conftest.err >&5
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); } &&
24124          { ac_try='test -z "$ac_c_werror_flag"
24125                          || test ! -s conftest.err'
24126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127   (eval $ac_try) 2>&5
24128   ac_status=$?
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); }; } &&
24131          { ac_try='test -s conftest$ac_exeext'
24132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133   (eval $ac_try) 2>&5
24134   ac_status=$?
24135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136   (exit $ac_status); }; }; then
24137   eval "$as_ac_var=yes"
24138 else
24139   echo "$as_me: failed program was:" >&5
24140 sed 's/^/| /' conftest.$ac_ext >&5
24141
24142 eval "$as_ac_var=no"
24143 fi
24144 rm -f conftest.err conftest.$ac_objext \
24145       conftest$ac_exeext conftest.$ac_ext
24146 fi
24147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24149 if test `eval echo '${'$as_ac_var'}'` = yes; then
24150   cat >>confdefs.h <<_ACEOF
24151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24152 _ACEOF
24153
24154 fi
24155 done
24156
24157 fi
24158 # dbm_firstkey
24159 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24160 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24161 eval "LIB_dbm_firstkey=$ac_res"
24162
24163 case "$ac_res" in
24164         yes)
24165         eval "ac_cv_func_dbm_firstkey=yes"
24166         eval "LIB_dbm_firstkey="
24167         cat >>confdefs.h <<_ACEOF
24168 #define $ac_tr_func 1
24169 _ACEOF
24170
24171         echo "$as_me:$LINENO: result: yes" >&5
24172 echo "${ECHO_T}yes" >&6
24173         ;;
24174         no)
24175         eval "ac_cv_func_dbm_firstkey=no"
24176         eval "LIB_dbm_firstkey="
24177         echo "$as_me:$LINENO: result: no" >&5
24178 echo "${ECHO_T}no" >&6
24179         ;;
24180         *)
24181         eval "ac_cv_func_dbm_firstkey=yes"
24182         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
24183         cat >>confdefs.h <<_ACEOF
24184 #define $ac_tr_func 1
24185 _ACEOF
24186
24187         cat >>confdefs.h <<_ACEOF
24188 #define $ac_tr_lib 1
24189 _ACEOF
24190
24191         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
24192 echo "${ECHO_T}yes, in $ac_res" >&6
24193         ;;
24194 esac
24195
24196
24197
24198     if test "$ac_cv_func_dbm_firstkey" = "yes"; then
24199       if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
24200         LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
24201       else
24202         LIB_NDBM=""
24203       fi
24204
24205 cat >>confdefs.h <<\_ACEOF
24206 #define HAVE_NDBM 1
24207 _ACEOF
24208       have_ndbm=yes
24209       if test "$db_type" = "unknown"; then
24210         db_type=ndbm
24211         DBLIB="$LIB_NDBM"
24212       fi
24213     fi
24214   fi
24215
24216 fi # unknown
24217
24218 if test "$have_ndbm" = "yes"; then
24219   echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
24220 echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
24221   if test "$cross_compiling" = yes; then
24222   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24223 See \`config.log' for more details." >&5
24224 echo "$as_me: error: cannot run test program while cross compiling
24225 See \`config.log' for more details." >&2;}
24226    { (exit 1); exit 1; }; }
24227 else
24228   cat >conftest.$ac_ext <<_ACEOF
24229 /* confdefs.h.  */
24230 _ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h.  */
24234
24235 #include <unistd.h>
24236 #include <fcntl.h>
24237 #if defined(HAVE_GDBM_NDBM_H)
24238 #include <gdbm/ndbm.h>
24239 #elif defined(HAVE_NDBM_H)
24240 #include <ndbm.h>
24241 #elif defined(HAVE_DBM_H)
24242 #include <dbm.h>
24243 #endif
24244 int main()
24245 {
24246   DBM *d;
24247
24248   d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
24249   if (d == NULL)
24250     return 1;
24251   dbm_close(d);
24252   return 0;
24253 }
24254 _ACEOF
24255 rm -f conftest$ac_exeext
24256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24257   (eval $ac_link) 2>&5
24258   ac_status=$?
24259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262   (eval $ac_try) 2>&5
24263   ac_status=$?
24264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265   (exit $ac_status); }; }; then
24266
24267     if test -f conftest.db; then
24268       echo "$as_me:$LINENO: result: yes" >&5
24269 echo "${ECHO_T}yes" >&6
24270
24271 cat >>confdefs.h <<\_ACEOF
24272 #define HAVE_NEW_DB 1
24273 _ACEOF
24274
24275     else
24276       echo "$as_me:$LINENO: result: no" >&5
24277 echo "${ECHO_T}no" >&6
24278     fi
24279 else
24280   echo "$as_me: program exited with status $ac_status" >&5
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24283
24284 ( exit $ac_status )
24285 echo "$as_me:$LINENO: result: no" >&5
24286 echo "${ECHO_T}no" >&6
24287 fi
24288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24289 fi
24290 fi
24291
24292
24293
24294 if test "$db_type" = db1; then
24295   HAVE_DB1_TRUE=
24296   HAVE_DB1_FALSE='#'
24297 else
24298   HAVE_DB1_TRUE='#'
24299   HAVE_DB1_FALSE=
24300 fi
24301
24302
24303 if test "$db_type" = db3; then
24304   HAVE_DB3_TRUE=
24305   HAVE_DB3_FALSE='#'
24306 else
24307   HAVE_DB3_TRUE='#'
24308   HAVE_DB3_FALSE=
24309 fi
24310
24311
24312 if test "$db_type" = ndbm; then
24313   HAVE_NDBM_TRUE=
24314   HAVE_NDBM_FALSE='#'
24315 else
24316   HAVE_NDBM_TRUE='#'
24317   HAVE_NDBM_FALSE=
24318 fi
24319
24320 ## it's probably not correct to include LDFLAGS here, but we might
24321 ## need it, for now just add any possible -L
24322 z=""
24323 for i in $LDFLAGS; do
24324         case "$i" in
24325         -L*) z="$z $i";;
24326         esac
24327 done
24328 DBLIB="$z $DBLIB"
24329
24330
24331
24332
24333
24334 echo "$as_me:$LINENO: checking for inline" >&5
24335 echo $ECHO_N "checking for inline... $ECHO_C" >&6
24336 if test "${ac_cv_c_inline+set}" = set; then
24337   echo $ECHO_N "(cached) $ECHO_C" >&6
24338 else
24339   ac_cv_c_inline=no
24340 for ac_kw in inline __inline__ __inline; do
24341   cat >conftest.$ac_ext <<_ACEOF
24342 /* confdefs.h.  */
24343 _ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h.  */
24347 #ifndef __cplusplus
24348 typedef int foo_t;
24349 static $ac_kw foo_t static_foo () {return 0; }
24350 $ac_kw foo_t foo () {return 0; }
24351 #endif
24352
24353 _ACEOF
24354 rm -f conftest.$ac_objext
24355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24356   (eval $ac_compile) 2>conftest.er1
24357   ac_status=$?
24358   grep -v '^ *+' conftest.er1 >conftest.err
24359   rm -f conftest.er1
24360   cat conftest.err >&5
24361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362   (exit $ac_status); } &&
24363          { ac_try='test -z "$ac_c_werror_flag"
24364                          || test ! -s conftest.err'
24365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366   (eval $ac_try) 2>&5
24367   ac_status=$?
24368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369   (exit $ac_status); }; } &&
24370          { ac_try='test -s conftest.$ac_objext'
24371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24372   (eval $ac_try) 2>&5
24373   ac_status=$?
24374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375   (exit $ac_status); }; }; then
24376   ac_cv_c_inline=$ac_kw; break
24377 else
24378   echo "$as_me: failed program was:" >&5
24379 sed 's/^/| /' conftest.$ac_ext >&5
24380
24381 fi
24382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24383 done
24384
24385 fi
24386 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24387 echo "${ECHO_T}$ac_cv_c_inline" >&6
24388
24389
24390 case $ac_cv_c_inline in
24391   inline | yes) ;;
24392   *)
24393     case $ac_cv_c_inline in
24394       no) ac_val=;;
24395       *) ac_val=$ac_cv_c_inline;;
24396     esac
24397     cat >>confdefs.h <<_ACEOF
24398 #ifndef __cplusplus
24399 #define inline $ac_val
24400 #endif
24401 _ACEOF
24402     ;;
24403 esac
24404
24405 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24406 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24407 if test "${ac_cv_c_const+set}" = set; then
24408   echo $ECHO_N "(cached) $ECHO_C" >&6
24409 else
24410   cat >conftest.$ac_ext <<_ACEOF
24411 /* confdefs.h.  */
24412 _ACEOF
24413 cat confdefs.h >>conftest.$ac_ext
24414 cat >>conftest.$ac_ext <<_ACEOF
24415 /* end confdefs.h.  */
24416
24417 int
24418 main ()
24419 {
24420 /* FIXME: Include the comments suggested by Paul. */
24421 #ifndef __cplusplus
24422   /* Ultrix mips cc rejects this.  */
24423   typedef int charset[2];
24424   const charset x;
24425   /* SunOS 4.1.1 cc rejects this.  */
24426   char const *const *ccp;
24427   char **p;
24428   /* NEC SVR4.0.2 mips cc rejects this.  */
24429   struct point {int x, y;};
24430   static struct point const zero = {0,0};
24431   /* AIX XL C 1.02.0.0 rejects this.
24432      It does not let you subtract one const X* pointer from another in
24433      an arm of an if-expression whose if-part is not a constant
24434      expression */
24435   const char *g = "string";
24436   ccp = &g + (g ? g-g : 0);
24437   /* HPUX 7.0 cc rejects these. */
24438   ++ccp;
24439   p = (char**) ccp;
24440   ccp = (char const *const *) p;
24441   { /* SCO 3.2v4 cc rejects this.  */
24442     char *t;
24443     char const *s = 0 ? (char *) 0 : (char const *) 0;
24444
24445     *t++ = 0;
24446   }
24447   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24448     int x[] = {25, 17};
24449     const int *foo = &x[0];
24450     ++foo;
24451   }
24452   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24453     typedef const int *iptr;
24454     iptr p = 0;
24455     ++p;
24456   }
24457   { /* AIX XL C 1.02.0.0 rejects this saying
24458        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24459     struct s { int j; const int *ap[3]; };
24460     struct s *b; b->j = 5;
24461   }
24462   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24463     const int foo = 10;
24464   }
24465 #endif
24466
24467   ;
24468   return 0;
24469 }
24470 _ACEOF
24471 rm -f conftest.$ac_objext
24472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24473   (eval $ac_compile) 2>conftest.er1
24474   ac_status=$?
24475   grep -v '^ *+' conftest.er1 >conftest.err
24476   rm -f conftest.er1
24477   cat conftest.err >&5
24478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479   (exit $ac_status); } &&
24480          { ac_try='test -z "$ac_c_werror_flag"
24481                          || test ! -s conftest.err'
24482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483   (eval $ac_try) 2>&5
24484   ac_status=$?
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); }; } &&
24487          { ac_try='test -s conftest.$ac_objext'
24488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489   (eval $ac_try) 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; }; then
24493   ac_cv_c_const=yes
24494 else
24495   echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498 ac_cv_c_const=no
24499 fi
24500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24501 fi
24502 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24503 echo "${ECHO_T}$ac_cv_c_const" >&6
24504 if test $ac_cv_c_const = no; then
24505
24506 cat >>confdefs.h <<\_ACEOF
24507 #define const
24508 _ACEOF
24509
24510 fi
24511
24512 echo "$as_me:$LINENO: checking for size_t" >&5
24513 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
24514 if test "${ac_cv_type_size_t+set}" = set; then
24515   echo $ECHO_N "(cached) $ECHO_C" >&6
24516 else
24517   cat >conftest.$ac_ext <<_ACEOF
24518 /* confdefs.h.  */
24519 _ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h.  */
24523 $ac_includes_default
24524 int
24525 main ()
24526 {
24527 if ((size_t *) 0)
24528   return 0;
24529 if (sizeof (size_t))
24530   return 0;
24531   ;
24532   return 0;
24533 }
24534 _ACEOF
24535 rm -f conftest.$ac_objext
24536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24537   (eval $ac_compile) 2>conftest.er1
24538   ac_status=$?
24539   grep -v '^ *+' conftest.er1 >conftest.err
24540   rm -f conftest.er1
24541   cat conftest.err >&5
24542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543   (exit $ac_status); } &&
24544          { ac_try='test -z "$ac_c_werror_flag"
24545                          || test ! -s conftest.err'
24546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547   (eval $ac_try) 2>&5
24548   ac_status=$?
24549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550   (exit $ac_status); }; } &&
24551          { ac_try='test -s conftest.$ac_objext'
24552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24553   (eval $ac_try) 2>&5
24554   ac_status=$?
24555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556   (exit $ac_status); }; }; then
24557   ac_cv_type_size_t=yes
24558 else
24559   echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24561
24562 ac_cv_type_size_t=no
24563 fi
24564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24565 fi
24566 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24567 echo "${ECHO_T}$ac_cv_type_size_t" >&6
24568 if test $ac_cv_type_size_t = yes; then
24569   :
24570 else
24571
24572 cat >>confdefs.h <<_ACEOF
24573 #define size_t unsigned
24574 _ACEOF
24575
24576 fi
24577
24578 echo "$as_me:$LINENO: checking for pid_t" >&5
24579 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
24580 if test "${ac_cv_type_pid_t+set}" = set; then
24581   echo $ECHO_N "(cached) $ECHO_C" >&6
24582 else
24583   cat >conftest.$ac_ext <<_ACEOF
24584 /* confdefs.h.  */
24585 _ACEOF
24586 cat confdefs.h >>conftest.$ac_ext
24587 cat >>conftest.$ac_ext <<_ACEOF
24588 /* end confdefs.h.  */
24589 $ac_includes_default
24590 int
24591 main ()
24592 {
24593 if ((pid_t *) 0)
24594   return 0;
24595 if (sizeof (pid_t))
24596   return 0;
24597   ;
24598   return 0;
24599 }
24600 _ACEOF
24601 rm -f conftest.$ac_objext
24602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24603   (eval $ac_compile) 2>conftest.er1
24604   ac_status=$?
24605   grep -v '^ *+' conftest.er1 >conftest.err
24606   rm -f conftest.er1
24607   cat conftest.err >&5
24608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609   (exit $ac_status); } &&
24610          { ac_try='test -z "$ac_c_werror_flag"
24611                          || test ! -s conftest.err'
24612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613   (eval $ac_try) 2>&5
24614   ac_status=$?
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); }; } &&
24617          { ac_try='test -s conftest.$ac_objext'
24618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619   (eval $ac_try) 2>&5
24620   ac_status=$?
24621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622   (exit $ac_status); }; }; then
24623   ac_cv_type_pid_t=yes
24624 else
24625   echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24627
24628 ac_cv_type_pid_t=no
24629 fi
24630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24631 fi
24632 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24633 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
24634 if test $ac_cv_type_pid_t = yes; then
24635   :
24636 else
24637
24638 cat >>confdefs.h <<_ACEOF
24639 #define pid_t int
24640 _ACEOF
24641
24642 fi
24643
24644 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24645 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
24646 if test "${ac_cv_type_uid_t+set}" = set; then
24647   echo $ECHO_N "(cached) $ECHO_C" >&6
24648 else
24649   cat >conftest.$ac_ext <<_ACEOF
24650 /* confdefs.h.  */
24651 _ACEOF
24652 cat confdefs.h >>conftest.$ac_ext
24653 cat >>conftest.$ac_ext <<_ACEOF
24654 /* end confdefs.h.  */
24655 #include <sys/types.h>
24656
24657 _ACEOF
24658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24659   $EGREP "uid_t" >/dev/null 2>&1; then
24660   ac_cv_type_uid_t=yes
24661 else
24662   ac_cv_type_uid_t=no
24663 fi
24664 rm -f conftest*
24665
24666 fi
24667 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24668 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
24669 if test $ac_cv_type_uid_t = no; then
24670
24671 cat >>confdefs.h <<\_ACEOF
24672 #define uid_t int
24673 _ACEOF
24674
24675
24676 cat >>confdefs.h <<\_ACEOF
24677 #define gid_t int
24678 _ACEOF
24679
24680 fi
24681
24682
24683 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24684 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
24685 if test "${ac_cv_type_signal+set}" = set; then
24686   echo $ECHO_N "(cached) $ECHO_C" >&6
24687 else
24688   cat >conftest.$ac_ext <<_ACEOF
24689 /* confdefs.h.  */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h.  */
24694 #include <sys/types.h>
24695 #include <signal.h>
24696 #ifdef signal
24697 # undef signal
24698 #endif
24699 #ifdef __cplusplus
24700 extern "C" void (*signal (int, void (*)(int)))(int);
24701 #else
24702 void (*signal ()) ();
24703 #endif
24704
24705 int
24706 main ()
24707 {
24708 int i;
24709   ;
24710   return 0;
24711 }
24712 _ACEOF
24713 rm -f conftest.$ac_objext
24714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24715   (eval $ac_compile) 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } &&
24722          { ac_try='test -z "$ac_c_werror_flag"
24723                          || test ! -s conftest.err'
24724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725   (eval $ac_try) 2>&5
24726   ac_status=$?
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); }; } &&
24729          { ac_try='test -s conftest.$ac_objext'
24730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731   (eval $ac_try) 2>&5
24732   ac_status=$?
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); }; }; then
24735   ac_cv_type_signal=void
24736 else
24737   echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24739
24740 ac_cv_type_signal=int
24741 fi
24742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24743 fi
24744 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24745 echo "${ECHO_T}$ac_cv_type_signal" >&6
24746
24747 cat >>confdefs.h <<_ACEOF
24748 #define RETSIGTYPE $ac_cv_type_signal
24749 _ACEOF
24750
24751
24752 if test "$ac_cv_type_signal" = "void" ; then
24753
24754 cat >>confdefs.h <<\_ACEOF
24755 #define VOID_RETSIGTYPE 1
24756 _ACEOF
24757
24758 fi
24759
24760
24761
24762
24763 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24764 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
24765 if test "${ac_cv_header_time+set}" = set; then
24766   echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24768   cat >conftest.$ac_ext <<_ACEOF
24769 /* confdefs.h.  */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h.  */
24774 #include <sys/types.h>
24775 #include <sys/time.h>
24776 #include <time.h>
24777
24778 int
24779 main ()
24780 {
24781 if ((struct tm *) 0)
24782 return 0;
24783   ;
24784   return 0;
24785 }
24786 _ACEOF
24787 rm -f conftest.$ac_objext
24788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24789   (eval $ac_compile) 2>conftest.er1
24790   ac_status=$?
24791   grep -v '^ *+' conftest.er1 >conftest.err
24792   rm -f conftest.er1
24793   cat conftest.err >&5
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); } &&
24796          { ac_try='test -z "$ac_c_werror_flag"
24797                          || test ! -s conftest.err'
24798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799   (eval $ac_try) 2>&5
24800   ac_status=$?
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); }; } &&
24803          { ac_try='test -s conftest.$ac_objext'
24804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805   (eval $ac_try) 2>&5
24806   ac_status=$?
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); }; }; then
24809   ac_cv_header_time=yes
24810 else
24811   echo "$as_me: failed program was:" >&5
24812 sed 's/^/| /' conftest.$ac_ext >&5
24813
24814 ac_cv_header_time=no
24815 fi
24816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24817 fi
24818 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24819 echo "${ECHO_T}$ac_cv_header_time" >&6
24820 if test $ac_cv_header_time = yes; then
24821
24822 cat >>confdefs.h <<\_ACEOF
24823 #define TIME_WITH_SYS_TIME 1
24824 _ACEOF
24825
24826 fi
24827
24828
24829
24830 for ac_header in standards.h
24831 do
24832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24834   echo "$as_me:$LINENO: checking for $ac_header" >&5
24835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24837   echo $ECHO_N "(cached) $ECHO_C" >&6
24838 fi
24839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24841 else
24842   # Is the header compilable?
24843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24845 cat >conftest.$ac_ext <<_ACEOF
24846 /* confdefs.h.  */
24847 _ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h.  */
24851 $ac_includes_default
24852 #include <$ac_header>
24853 _ACEOF
24854 rm -f conftest.$ac_objext
24855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24856   (eval $ac_compile) 2>conftest.er1
24857   ac_status=$?
24858   grep -v '^ *+' conftest.er1 >conftest.err
24859   rm -f conftest.er1
24860   cat conftest.err >&5
24861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862   (exit $ac_status); } &&
24863          { ac_try='test -z "$ac_c_werror_flag"
24864                          || test ! -s conftest.err'
24865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24866   (eval $ac_try) 2>&5
24867   ac_status=$?
24868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869   (exit $ac_status); }; } &&
24870          { ac_try='test -s conftest.$ac_objext'
24871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24872   (eval $ac_try) 2>&5
24873   ac_status=$?
24874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875   (exit $ac_status); }; }; then
24876   ac_header_compiler=yes
24877 else
24878   echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24880
24881 ac_header_compiler=no
24882 fi
24883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24885 echo "${ECHO_T}$ac_header_compiler" >&6
24886
24887 # Is the header present?
24888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24890 cat >conftest.$ac_ext <<_ACEOF
24891 /* confdefs.h.  */
24892 _ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h.  */
24896 #include <$ac_header>
24897 _ACEOF
24898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24900   ac_status=$?
24901   grep -v '^ *+' conftest.er1 >conftest.err
24902   rm -f conftest.er1
24903   cat conftest.err >&5
24904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); } >/dev/null; then
24906   if test -s conftest.err; then
24907     ac_cpp_err=$ac_c_preproc_warn_flag
24908     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24909   else
24910     ac_cpp_err=
24911   fi
24912 else
24913   ac_cpp_err=yes
24914 fi
24915 if test -z "$ac_cpp_err"; then
24916   ac_header_preproc=yes
24917 else
24918   echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921   ac_header_preproc=no
24922 fi
24923 rm -f conftest.err conftest.$ac_ext
24924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24925 echo "${ECHO_T}$ac_header_preproc" >&6
24926
24927 # So?  What about this header?
24928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24929   yes:no: )
24930     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24934     ac_header_preproc=yes
24935     ;;
24936   no:yes:* )
24937     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24939     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24940 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24941     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24943     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24944 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24947     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24949     (
24950       cat <<\_ASBOX
24951 ## -------------------------------------- ##
24952 ## Report this to heimdal-bugs@pdc.kth.se ##
24953 ## -------------------------------------- ##
24954 _ASBOX
24955     ) |
24956       sed "s/^/$as_me: WARNING:     /" >&2
24957     ;;
24958 esac
24959 echo "$as_me:$LINENO: checking for $ac_header" >&5
24960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24962   echo $ECHO_N "(cached) $ECHO_C" >&6
24963 else
24964   eval "$as_ac_Header=\$ac_header_preproc"
24965 fi
24966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24968
24969 fi
24970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24971   cat >>confdefs.h <<_ACEOF
24972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24973 _ACEOF
24974
24975 fi
24976
24977 done
24978
24979 for i in netinet/ip.h netinet/tcp.h; do
24980
24981 cv=`echo "$i" | sed 'y%./+-%__p_%'`
24982
24983 echo "$as_me:$LINENO: checking for $i" >&5
24984 echo $ECHO_N "checking for $i... $ECHO_C" >&6
24985 if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
24986   echo $ECHO_N "(cached) $ECHO_C" >&6
24987 else
24988   cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h.  */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h.  */
24994 \
24995 #ifdef HAVE_STANDARDS_H
24996 #include <standards.h>
24997 #endif
24998 #include <$i>
24999
25000 _ACEOF
25001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25003   ac_status=$?
25004   grep -v '^ *+' conftest.er1 >conftest.err
25005   rm -f conftest.er1
25006   cat conftest.err >&5
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); } >/dev/null; then
25009   if test -s conftest.err; then
25010     ac_cpp_err=$ac_c_preproc_warn_flag
25011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25012   else
25013     ac_cpp_err=
25014   fi
25015 else
25016   ac_cpp_err=yes
25017 fi
25018 if test -z "$ac_cpp_err"; then
25019   eval "ac_cv_header_$cv=yes"
25020 else
25021   echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25023
25024   eval "ac_cv_header_$cv=no"
25025 fi
25026 rm -f conftest.err conftest.$ac_ext
25027 fi
25028 echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
25029 echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
25030 ac_res=`eval echo \\$ac_cv_header_$cv`
25031 if test "$ac_res" = yes; then
25032         ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
25033         cat >>confdefs.h <<_ACEOF
25034 #define $ac_tr_hdr 1
25035 _ACEOF
25036
25037 fi
25038 done
25039 if false;then
25040
25041
25042 for ac_header in netinet/ip.h netinet/tcp.h
25043 do
25044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25046   echo "$as_me:$LINENO: checking for $ac_header" >&5
25047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25049   echo $ECHO_N "(cached) $ECHO_C" >&6
25050 fi
25051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25053 else
25054   # Is the header compilable?
25055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25057 cat >conftest.$ac_ext <<_ACEOF
25058 /* confdefs.h.  */
25059 _ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h.  */
25063 $ac_includes_default
25064 #include <$ac_header>
25065 _ACEOF
25066 rm -f conftest.$ac_objext
25067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25068   (eval $ac_compile) 2>conftest.er1
25069   ac_status=$?
25070   grep -v '^ *+' conftest.er1 >conftest.err
25071   rm -f conftest.er1
25072   cat conftest.err >&5
25073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074   (exit $ac_status); } &&
25075          { ac_try='test -z "$ac_c_werror_flag"
25076                          || test ! -s conftest.err'
25077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25078   (eval $ac_try) 2>&5
25079   ac_status=$?
25080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); }; } &&
25082          { ac_try='test -s conftest.$ac_objext'
25083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084   (eval $ac_try) 2>&5
25085   ac_status=$?
25086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087   (exit $ac_status); }; }; then
25088   ac_header_compiler=yes
25089 else
25090   echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25092
25093 ac_header_compiler=no
25094 fi
25095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25097 echo "${ECHO_T}$ac_header_compiler" >&6
25098
25099 # Is the header present?
25100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25102 cat >conftest.$ac_ext <<_ACEOF
25103 /* confdefs.h.  */
25104 _ACEOF
25105 cat confdefs.h >>conftest.$ac_ext
25106 cat >>conftest.$ac_ext <<_ACEOF
25107 /* end confdefs.h.  */
25108 #include <$ac_header>
25109 _ACEOF
25110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25112   ac_status=$?
25113   grep -v '^ *+' conftest.er1 >conftest.err
25114   rm -f conftest.er1
25115   cat conftest.err >&5
25116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117   (exit $ac_status); } >/dev/null; then
25118   if test -s conftest.err; then
25119     ac_cpp_err=$ac_c_preproc_warn_flag
25120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25121   else
25122     ac_cpp_err=
25123   fi
25124 else
25125   ac_cpp_err=yes
25126 fi
25127 if test -z "$ac_cpp_err"; then
25128   ac_header_preproc=yes
25129 else
25130   echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25132
25133   ac_header_preproc=no
25134 fi
25135 rm -f conftest.err conftest.$ac_ext
25136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25137 echo "${ECHO_T}$ac_header_preproc" >&6
25138
25139 # So?  What about this header?
25140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25141   yes:no: )
25142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25146     ac_header_preproc=yes
25147     ;;
25148   no:yes:* )
25149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25161     (
25162       cat <<\_ASBOX
25163 ## -------------------------------------- ##
25164 ## Report this to heimdal-bugs@pdc.kth.se ##
25165 ## -------------------------------------- ##
25166 _ASBOX
25167     ) |
25168       sed "s/^/$as_me: WARNING:     /" >&2
25169     ;;
25170 esac
25171 echo "$as_me:$LINENO: checking for $ac_header" >&5
25172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25174   echo $ECHO_N "(cached) $ECHO_C" >&6
25175 else
25176   eval "$as_ac_Header=\$ac_header_preproc"
25177 fi
25178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25180
25181 fi
25182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25183   cat >>confdefs.h <<_ACEOF
25184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25185 _ACEOF
25186
25187 fi
25188
25189 done
25190
25191 fi
25192
25193
25194
25195
25196 for ac_func in getlogin setlogin
25197 do
25198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25199 echo "$as_me:$LINENO: checking for $ac_func" >&5
25200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25201 if eval "test \"\${$as_ac_var+set}\" = set"; then
25202   echo $ECHO_N "(cached) $ECHO_C" >&6
25203 else
25204   cat >conftest.$ac_ext <<_ACEOF
25205 /* confdefs.h.  */
25206 _ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h.  */
25210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25212 #define $ac_func innocuous_$ac_func
25213
25214 /* System header to define __stub macros and hopefully few prototypes,
25215     which can conflict with char $ac_func (); below.
25216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25217     <limits.h> exists even on freestanding compilers.  */
25218
25219 #ifdef __STDC__
25220 # include <limits.h>
25221 #else
25222 # include <assert.h>
25223 #endif
25224
25225 #undef $ac_func
25226
25227 /* Override any gcc2 internal prototype to avoid an error.  */
25228 #ifdef __cplusplus
25229 extern "C"
25230 {
25231 #endif
25232 /* We use char because int might match the return type of a gcc2
25233    builtin and then its argument prototype would still apply.  */
25234 char $ac_func ();
25235 /* The GNU C library defines this for functions which it implements
25236     to always fail with ENOSYS.  Some functions are actually named
25237     something starting with __ and the normal name is an alias.  */
25238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25239 choke me
25240 #else
25241 char (*f) () = $ac_func;
25242 #endif
25243 #ifdef __cplusplus
25244 }
25245 #endif
25246
25247 int
25248 main ()
25249 {
25250 return f != $ac_func;
25251   ;
25252   return 0;
25253 }
25254 _ACEOF
25255 rm -f conftest.$ac_objext conftest$ac_exeext
25256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25257   (eval $ac_link) 2>conftest.er1
25258   ac_status=$?
25259   grep -v '^ *+' conftest.er1 >conftest.err
25260   rm -f conftest.er1
25261   cat conftest.err >&5
25262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263   (exit $ac_status); } &&
25264          { ac_try='test -z "$ac_c_werror_flag"
25265                          || test ! -s conftest.err'
25266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267   (eval $ac_try) 2>&5
25268   ac_status=$?
25269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); }; } &&
25271          { ac_try='test -s conftest$ac_exeext'
25272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273   (eval $ac_try) 2>&5
25274   ac_status=$?
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); }; }; then
25277   eval "$as_ac_var=yes"
25278 else
25279   echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282 eval "$as_ac_var=no"
25283 fi
25284 rm -f conftest.err conftest.$ac_objext \
25285       conftest$ac_exeext conftest.$ac_ext
25286 fi
25287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25289 if test `eval echo '${'$as_ac_var'}'` = yes; then
25290   cat >>confdefs.h <<_ACEOF
25291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25292 _ACEOF
25293
25294 fi
25295 done
25296
25297 if test "$ac_cv_func_getlogin" = yes; then
25298 echo "$as_me:$LINENO: checking if getlogin is posix" >&5
25299 echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
25300 if test "${ac_cv_func_getlogin_posix+set}" = set; then
25301   echo $ECHO_N "(cached) $ECHO_C" >&6
25302 else
25303
25304 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
25305         ac_cv_func_getlogin_posix=no
25306 else
25307         ac_cv_func_getlogin_posix=yes
25308 fi
25309
25310 fi
25311 echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
25312 echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
25313 if test "$ac_cv_func_getlogin_posix" = yes; then
25314
25315 cat >>confdefs.h <<\_ACEOF
25316 #define POSIX_GETLOGIN 1
25317 _ACEOF
25318
25319 fi
25320 fi
25321
25322
25323
25324 for ac_header in stdlib.h unistd.h
25325 do
25326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25328   echo "$as_me:$LINENO: checking for $ac_header" >&5
25329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25331   echo $ECHO_N "(cached) $ECHO_C" >&6
25332 fi
25333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25335 else
25336   # Is the header compilable?
25337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25339 cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345 $ac_includes_default
25346 #include <$ac_header>
25347 _ACEOF
25348 rm -f conftest.$ac_objext
25349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25350   (eval $ac_compile) 2>conftest.er1
25351   ac_status=$?
25352   grep -v '^ *+' conftest.er1 >conftest.err
25353   rm -f conftest.er1
25354   cat conftest.err >&5
25355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); } &&
25357          { ac_try='test -z "$ac_c_werror_flag"
25358                          || test ! -s conftest.err'
25359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360   (eval $ac_try) 2>&5
25361   ac_status=$?
25362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363   (exit $ac_status); }; } &&
25364          { ac_try='test -s conftest.$ac_objext'
25365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366   (eval $ac_try) 2>&5
25367   ac_status=$?
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); }; }; then
25370   ac_header_compiler=yes
25371 else
25372   echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25374
25375 ac_header_compiler=no
25376 fi
25377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25379 echo "${ECHO_T}$ac_header_compiler" >&6
25380
25381 # Is the header present?
25382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25384 cat >conftest.$ac_ext <<_ACEOF
25385 /* confdefs.h.  */
25386 _ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h.  */
25390 #include <$ac_header>
25391 _ACEOF
25392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25394   ac_status=$?
25395   grep -v '^ *+' conftest.er1 >conftest.err
25396   rm -f conftest.er1
25397   cat conftest.err >&5
25398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399   (exit $ac_status); } >/dev/null; then
25400   if test -s conftest.err; then
25401     ac_cpp_err=$ac_c_preproc_warn_flag
25402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25403   else
25404     ac_cpp_err=
25405   fi
25406 else
25407   ac_cpp_err=yes
25408 fi
25409 if test -z "$ac_cpp_err"; then
25410   ac_header_preproc=yes
25411 else
25412   echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25414
25415   ac_header_preproc=no
25416 fi
25417 rm -f conftest.err conftest.$ac_ext
25418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25419 echo "${ECHO_T}$ac_header_preproc" >&6
25420
25421 # So?  What about this header?
25422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25423   yes:no: )
25424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25428     ac_header_preproc=yes
25429     ;;
25430   no:yes:* )
25431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25443     (
25444       cat <<\_ASBOX
25445 ## -------------------------------------- ##
25446 ## Report this to heimdal-bugs@pdc.kth.se ##
25447 ## -------------------------------------- ##
25448 _ASBOX
25449     ) |
25450       sed "s/^/$as_me: WARNING:     /" >&2
25451     ;;
25452 esac
25453 echo "$as_me:$LINENO: checking for $ac_header" >&5
25454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25456   echo $ECHO_N "(cached) $ECHO_C" >&6
25457 else
25458   eval "$as_ac_Header=\$ac_header_preproc"
25459 fi
25460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25462
25463 fi
25464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25465   cat >>confdefs.h <<_ACEOF
25466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25467 _ACEOF
25468
25469 fi
25470
25471 done
25472
25473
25474 for ac_func in getpagesize
25475 do
25476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25477 echo "$as_me:$LINENO: checking for $ac_func" >&5
25478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25479 if eval "test \"\${$as_ac_var+set}\" = set"; then
25480   echo $ECHO_N "(cached) $ECHO_C" >&6
25481 else
25482   cat >conftest.$ac_ext <<_ACEOF
25483 /* confdefs.h.  */
25484 _ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h.  */
25488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25490 #define $ac_func innocuous_$ac_func
25491
25492 /* System header to define __stub macros and hopefully few prototypes,
25493     which can conflict with char $ac_func (); below.
25494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25495     <limits.h> exists even on freestanding compilers.  */
25496
25497 #ifdef __STDC__
25498 # include <limits.h>
25499 #else
25500 # include <assert.h>
25501 #endif
25502
25503 #undef $ac_func
25504
25505 /* Override any gcc2 internal prototype to avoid an error.  */
25506 #ifdef __cplusplus
25507 extern "C"
25508 {
25509 #endif
25510 /* We use char because int might match the return type of a gcc2
25511    builtin and then its argument prototype would still apply.  */
25512 char $ac_func ();
25513 /* The GNU C library defines this for functions which it implements
25514     to always fail with ENOSYS.  Some functions are actually named
25515     something starting with __ and the normal name is an alias.  */
25516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25517 choke me
25518 #else
25519 char (*f) () = $ac_func;
25520 #endif
25521 #ifdef __cplusplus
25522 }
25523 #endif
25524
25525 int
25526 main ()
25527 {
25528 return f != $ac_func;
25529   ;
25530   return 0;
25531 }
25532 _ACEOF
25533 rm -f conftest.$ac_objext conftest$ac_exeext
25534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25535   (eval $ac_link) 2>conftest.er1
25536   ac_status=$?
25537   grep -v '^ *+' conftest.er1 >conftest.err
25538   rm -f conftest.er1
25539   cat conftest.err >&5
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); } &&
25542          { ac_try='test -z "$ac_c_werror_flag"
25543                          || test ! -s conftest.err'
25544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545   (eval $ac_try) 2>&5
25546   ac_status=$?
25547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548   (exit $ac_status); }; } &&
25549          { ac_try='test -s conftest$ac_exeext'
25550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551   (eval $ac_try) 2>&5
25552   ac_status=$?
25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554   (exit $ac_status); }; }; then
25555   eval "$as_ac_var=yes"
25556 else
25557   echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25559
25560 eval "$as_ac_var=no"
25561 fi
25562 rm -f conftest.err conftest.$ac_objext \
25563       conftest$ac_exeext conftest.$ac_ext
25564 fi
25565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25567 if test `eval echo '${'$as_ac_var'}'` = yes; then
25568   cat >>confdefs.h <<_ACEOF
25569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25570 _ACEOF
25571
25572 fi
25573 done
25574
25575 echo "$as_me:$LINENO: checking for working mmap" >&5
25576 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25577 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25578   echo $ECHO_N "(cached) $ECHO_C" >&6
25579 else
25580   if test "$cross_compiling" = yes; then
25581   ac_cv_func_mmap_fixed_mapped=no
25582 else
25583   cat >conftest.$ac_ext <<_ACEOF
25584 /* confdefs.h.  */
25585 _ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h.  */
25589 $ac_includes_default
25590 /* malloc might have been renamed as rpl_malloc. */
25591 #undef malloc
25592
25593 /* Thanks to Mike Haertel and Jim Avera for this test.
25594    Here is a matrix of mmap possibilities:
25595         mmap private not fixed
25596         mmap private fixed at somewhere currently unmapped
25597         mmap private fixed at somewhere already mapped
25598         mmap shared not fixed
25599         mmap shared fixed at somewhere currently unmapped
25600         mmap shared fixed at somewhere already mapped
25601    For private mappings, we should verify that changes cannot be read()
25602    back from the file, nor mmap's back from the file at a different
25603    address.  (There have been systems where private was not correctly
25604    implemented like the infamous i386 svr4.0, and systems where the
25605    VM page cache was not coherent with the file system buffer cache
25606    like early versions of FreeBSD and possibly contemporary NetBSD.)
25607    For shared mappings, we should conversely verify that changes get
25608    propagated back to all the places they're supposed to be.
25609
25610    Grep wants private fixed already mapped.
25611    The main things grep needs to know about mmap are:
25612    * does it exist and is it safe to write into the mmap'd area
25613    * how to use it (BSD variants)  */
25614
25615 #include <fcntl.h>
25616 #include <sys/mman.h>
25617
25618 #if !STDC_HEADERS && !HAVE_STDLIB_H
25619 char *malloc ();
25620 #endif
25621
25622 /* This mess was copied from the GNU getpagesize.h.  */
25623 #if !HAVE_GETPAGESIZE
25624 /* Assume that all systems that can run configure have sys/param.h.  */
25625 # if !HAVE_SYS_PARAM_H
25626 #  define HAVE_SYS_PARAM_H 1
25627 # endif
25628
25629 # ifdef _SC_PAGESIZE
25630 #  define getpagesize() sysconf(_SC_PAGESIZE)
25631 # else /* no _SC_PAGESIZE */
25632 #  if HAVE_SYS_PARAM_H
25633 #   include <sys/param.h>
25634 #   ifdef EXEC_PAGESIZE
25635 #    define getpagesize() EXEC_PAGESIZE
25636 #   else /* no EXEC_PAGESIZE */
25637 #    ifdef NBPG
25638 #     define getpagesize() NBPG * CLSIZE
25639 #     ifndef CLSIZE
25640 #      define CLSIZE 1
25641 #     endif /* no CLSIZE */
25642 #    else /* no NBPG */
25643 #     ifdef NBPC
25644 #      define getpagesize() NBPC
25645 #     else /* no NBPC */
25646 #      ifdef PAGESIZE
25647 #       define getpagesize() PAGESIZE
25648 #      endif /* PAGESIZE */
25649 #     endif /* no NBPC */
25650 #    endif /* no NBPG */
25651 #   endif /* no EXEC_PAGESIZE */
25652 #  else /* no HAVE_SYS_PARAM_H */
25653 #   define getpagesize() 8192   /* punt totally */
25654 #  endif /* no HAVE_SYS_PARAM_H */
25655 # endif /* no _SC_PAGESIZE */
25656
25657 #endif /* no HAVE_GETPAGESIZE */
25658
25659 int
25660 main ()
25661 {
25662   char *data, *data2, *data3;
25663   int i, pagesize;
25664   int fd;
25665
25666   pagesize = getpagesize ();
25667
25668   /* First, make a file with some known garbage in it. */
25669   data = (char *) malloc (pagesize);
25670   if (!data)
25671     exit (1);
25672   for (i = 0; i < pagesize; ++i)
25673     *(data + i) = rand ();
25674   umask (0);
25675   fd = creat ("conftest.mmap", 0600);
25676   if (fd < 0)
25677     exit (1);
25678   if (write (fd, data, pagesize) != pagesize)
25679     exit (1);
25680   close (fd);
25681
25682   /* Next, try to mmap the file at a fixed address which already has
25683      something else allocated at it.  If we can, also make sure that
25684      we see the same garbage.  */
25685   fd = open ("conftest.mmap", O_RDWR);
25686   if (fd < 0)
25687     exit (1);
25688   data2 = (char *) malloc (2 * pagesize);
25689   if (!data2)
25690     exit (1);
25691   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
25692   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25693                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
25694     exit (1);
25695   for (i = 0; i < pagesize; ++i)
25696     if (*(data + i) != *(data2 + i))
25697       exit (1);
25698
25699   /* Finally, make sure that changes to the mapped area do not
25700      percolate back to the file as seen by read().  (This is a bug on
25701      some variants of i386 svr4.0.)  */
25702   for (i = 0; i < pagesize; ++i)
25703     *(data2 + i) = *(data2 + i) + 1;
25704   data3 = (char *) malloc (pagesize);
25705   if (!data3)
25706     exit (1);
25707   if (read (fd, data3, pagesize) != pagesize)
25708     exit (1);
25709   for (i = 0; i < pagesize; ++i)
25710     if (*(data + i) != *(data3 + i))
25711       exit (1);
25712   close (fd);
25713   exit (0);
25714 }
25715 _ACEOF
25716 rm -f conftest$ac_exeext
25717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25718   (eval $ac_link) 2>&5
25719   ac_status=$?
25720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723   (eval $ac_try) 2>&5
25724   ac_status=$?
25725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); }; }; then
25727   ac_cv_func_mmap_fixed_mapped=yes
25728 else
25729   echo "$as_me: program exited with status $ac_status" >&5
25730 echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25732
25733 ( exit $ac_status )
25734 ac_cv_func_mmap_fixed_mapped=no
25735 fi
25736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25737 fi
25738 fi
25739 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25740 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25741 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25742
25743 cat >>confdefs.h <<\_ACEOF
25744 #define HAVE_MMAP 1
25745 _ACEOF
25746
25747 fi
25748 rm -f conftest.mmap
25749
25750
25751 echo "$as_me:$LINENO: checking if realloc if broken" >&5
25752 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
25753 if test "${ac_cv_func_realloc_broken+set}" = set; then
25754   echo $ECHO_N "(cached) $ECHO_C" >&6
25755 else
25756
25757 ac_cv_func_realloc_broken=no
25758 if test "$cross_compiling" = yes; then
25759   :
25760 else
25761   cat >conftest.$ac_ext <<_ACEOF
25762 /* confdefs.h.  */
25763 _ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h.  */
25767
25768 #include <stddef.h>
25769 #include <stdlib.h>
25770
25771 int main()
25772 {
25773         return realloc(NULL, 17) == NULL;
25774 }
25775
25776 _ACEOF
25777 rm -f conftest$ac_exeext
25778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25779   (eval $ac_link) 2>&5
25780   ac_status=$?
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784   (eval $ac_try) 2>&5
25785   ac_status=$?
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); }; }; then
25788   :
25789 else
25790   echo "$as_me: program exited with status $ac_status" >&5
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25793
25794 ( exit $ac_status )
25795 ac_cv_func_realloc_broken=yes
25796 fi
25797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25798 fi
25799
25800 fi
25801 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
25802 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
25803 if test "$ac_cv_func_realloc_broken" = yes ; then
25804
25805 cat >>confdefs.h <<\_ACEOF
25806 #define BROKEN_REALLOC 1
25807 _ACEOF
25808
25809 fi
25810
25811
25812
25813
25814
25815
25816
25817 DIR_roken=roken
25818 LIB_roken='$(top_builddir)/lib/roken/libroken.la'
25819 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834 WFLAGS_NOUNUSED=""
25835 WFLAGS_NOIMPLICITINT=""
25836 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
25837   # -Wno-implicit-int for broken X11 headers
25838   # leave these out for now:
25839   #   -Wcast-align doesn't work well on alpha osf/1
25840   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
25841   #   -Wmissing-declarations -Wnested-externs
25842   WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
25843   WFLAGS_NOUNUSED="-Wno-unused"
25844   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
25845 fi
25846
25847
25848
25849
25850
25851
25852
25853
25854 cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
25855 echo "$as_me:$LINENO: checking for ssize_t" >&5
25856 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
25857 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
25858   echo $ECHO_N "(cached) $ECHO_C" >&6
25859 else
25860   cat >conftest.$ac_ext <<_ACEOF
25861 /* confdefs.h.  */
25862 _ACEOF
25863 cat confdefs.h >>conftest.$ac_ext
25864 cat >>conftest.$ac_ext <<_ACEOF
25865 /* end confdefs.h.  */
25866 #include <sys/types.h>
25867 #if STDC_HEADERS
25868 #include <stdlib.h>
25869 #include <stddef.h>
25870 #endif
25871 #include <unistd.h>
25872 int
25873 main ()
25874 {
25875 ssize_t foo;
25876   ;
25877   return 0;
25878 }
25879 _ACEOF
25880 rm -f conftest.$ac_objext
25881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25882   (eval $ac_compile) 2>conftest.er1
25883   ac_status=$?
25884   grep -v '^ *+' conftest.er1 >conftest.err
25885   rm -f conftest.er1
25886   cat conftest.err >&5
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); } &&
25889          { ac_try='test -z "$ac_c_werror_flag"
25890                          || test ! -s conftest.err'
25891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892   (eval $ac_try) 2>&5
25893   ac_status=$?
25894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895   (exit $ac_status); }; } &&
25896          { ac_try='test -s conftest.$ac_objext'
25897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898   (eval $ac_try) 2>&5
25899   ac_status=$?
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); }; }; then
25902   eval "ac_cv_type_$cv=yes"
25903 else
25904   echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25906
25907 eval "ac_cv_type_$cv=no"
25908 fi
25909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25910 fi
25911 ac_foo=`eval echo \\$ac_cv_type_$cv`
25912 echo "$as_me:$LINENO: result: $ac_foo" >&5
25913 echo "${ECHO_T}$ac_foo" >&6
25914 if test "$ac_foo" = yes; then
25915   ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
25916 if false; then
25917         echo "$as_me:$LINENO: checking for ssize_t" >&5
25918 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
25919 if test "${ac_cv_type_ssize_t+set}" = set; then
25920   echo $ECHO_N "(cached) $ECHO_C" >&6
25921 else
25922   cat >conftest.$ac_ext <<_ACEOF
25923 /* confdefs.h.  */
25924 _ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h.  */
25928 $ac_includes_default
25929 int
25930 main ()
25931 {
25932 if ((ssize_t *) 0)
25933   return 0;
25934 if (sizeof (ssize_t))
25935   return 0;
25936   ;
25937   return 0;
25938 }
25939 _ACEOF
25940 rm -f conftest.$ac_objext
25941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25942   (eval $ac_compile) 2>conftest.er1
25943   ac_status=$?
25944   grep -v '^ *+' conftest.er1 >conftest.err
25945   rm -f conftest.er1
25946   cat conftest.err >&5
25947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948   (exit $ac_status); } &&
25949          { ac_try='test -z "$ac_c_werror_flag"
25950                          || test ! -s conftest.err'
25951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952   (eval $ac_try) 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); }; } &&
25956          { ac_try='test -s conftest.$ac_objext'
25957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958   (eval $ac_try) 2>&5
25959   ac_status=$?
25960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961   (exit $ac_status); }; }; then
25962   ac_cv_type_ssize_t=yes
25963 else
25964   echo "$as_me: failed program was:" >&5
25965 sed 's/^/| /' conftest.$ac_ext >&5
25966
25967 ac_cv_type_ssize_t=no
25968 fi
25969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25970 fi
25971 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25972 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
25973 if test $ac_cv_type_ssize_t = yes; then
25974
25975 cat >>confdefs.h <<_ACEOF
25976 #define HAVE_SSIZE_T 1
25977 _ACEOF
25978
25979
25980 fi
25981
25982 fi
25983
25984 cat >>confdefs.h <<_ACEOF
25985 #define $ac_tr_hdr 1
25986 _ACEOF
25987
25988 fi
25989
25990
25991
25992
25993
25994 cv=`echo "long long" | sed 'y%./+- %__p__%'`
25995 echo "$as_me:$LINENO: checking for long long" >&5
25996 echo $ECHO_N "checking for long long... $ECHO_C" >&6
25997 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
25998   echo $ECHO_N "(cached) $ECHO_C" >&6
25999 else
26000   cat >conftest.$ac_ext <<_ACEOF
26001 /* confdefs.h.  */
26002 _ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h.  */
26006 #include <sys/types.h>
26007 #if STDC_HEADERS
26008 #include <stdlib.h>
26009 #include <stddef.h>
26010 #endif
26011
26012 int
26013 main ()
26014 {
26015 long long foo;
26016   ;
26017   return 0;
26018 }
26019 _ACEOF
26020 rm -f conftest.$ac_objext
26021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26022   (eval $ac_compile) 2>conftest.er1
26023   ac_status=$?
26024   grep -v '^ *+' conftest.er1 >conftest.err
26025   rm -f conftest.er1
26026   cat conftest.err >&5
26027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028   (exit $ac_status); } &&
26029          { ac_try='test -z "$ac_c_werror_flag"
26030                          || test ! -s conftest.err'
26031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26032   (eval $ac_try) 2>&5
26033   ac_status=$?
26034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035   (exit $ac_status); }; } &&
26036          { ac_try='test -s conftest.$ac_objext'
26037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038   (eval $ac_try) 2>&5
26039   ac_status=$?
26040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); }; }; then
26042   eval "ac_cv_type_$cv=yes"
26043 else
26044   echo "$as_me: failed program was:" >&5
26045 sed 's/^/| /' conftest.$ac_ext >&5
26046
26047 eval "ac_cv_type_$cv=no"
26048 fi
26049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26050 fi
26051 ac_foo=`eval echo \\$ac_cv_type_$cv`
26052 echo "$as_me:$LINENO: result: $ac_foo" >&5
26053 echo "${ECHO_T}$ac_foo" >&6
26054 if test "$ac_foo" = yes; then
26055   ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26056 if false; then
26057         echo "$as_me:$LINENO: checking for long long" >&5
26058 echo $ECHO_N "checking for long long... $ECHO_C" >&6
26059 if test "${ac_cv_type_long_long+set}" = set; then
26060   echo $ECHO_N "(cached) $ECHO_C" >&6
26061 else
26062   cat >conftest.$ac_ext <<_ACEOF
26063 /* confdefs.h.  */
26064 _ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h.  */
26068 $ac_includes_default
26069 int
26070 main ()
26071 {
26072 if ((long long *) 0)
26073   return 0;
26074 if (sizeof (long long))
26075   return 0;
26076   ;
26077   return 0;
26078 }
26079 _ACEOF
26080 rm -f conftest.$ac_objext
26081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26082   (eval $ac_compile) 2>conftest.er1
26083   ac_status=$?
26084   grep -v '^ *+' conftest.er1 >conftest.err
26085   rm -f conftest.er1
26086   cat conftest.err >&5
26087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088   (exit $ac_status); } &&
26089          { ac_try='test -z "$ac_c_werror_flag"
26090                          || test ! -s conftest.err'
26091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092   (eval $ac_try) 2>&5
26093   ac_status=$?
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); }; } &&
26096          { ac_try='test -s conftest.$ac_objext'
26097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098   (eval $ac_try) 2>&5
26099   ac_status=$?
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); }; }; then
26102   ac_cv_type_long_long=yes
26103 else
26104   echo "$as_me: failed program was:" >&5
26105 sed 's/^/| /' conftest.$ac_ext >&5
26106
26107 ac_cv_type_long_long=no
26108 fi
26109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26110 fi
26111 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
26112 echo "${ECHO_T}$ac_cv_type_long_long" >&6
26113 if test $ac_cv_type_long_long = yes; then
26114
26115 cat >>confdefs.h <<_ACEOF
26116 #define HAVE_LONG_LONG 1
26117 _ACEOF
26118
26119
26120 fi
26121
26122 fi
26123
26124 cat >>confdefs.h <<_ACEOF
26125 #define $ac_tr_hdr 1
26126 _ACEOF
26127
26128 fi
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
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181 for ac_header in \
26182         arpa/inet.h                             \
26183         arpa/nameser.h                          \
26184         config.h                                \
26185         crypt.h                                 \
26186         dirent.h                                \
26187         errno.h                                 \
26188         err.h                                   \
26189         fcntl.h                                 \
26190         grp.h                                   \
26191         ifaddrs.h                               \
26192         net/if.h                                \
26193         netdb.h                                 \
26194         netinet/in.h                            \
26195         netinet/in6.h                           \
26196         netinet/in_systm.h                      \
26197         netinet6/in6.h                          \
26198         netinet6/in6_var.h                      \
26199         paths.h                                 \
26200         pwd.h                                   \
26201         resolv.h                                \
26202         rpcsvc/ypclnt.h                         \
26203         shadow.h                                \
26204         sys/bswap.h                             \
26205         sys/ioctl.h                             \
26206         sys/mman.h                              \
26207         sys/param.h                             \
26208         sys/proc.h                              \
26209         sys/resource.h                          \
26210         sys/socket.h                            \
26211         sys/sockio.h                            \
26212         sys/stat.h                              \
26213         sys/sysctl.h                            \
26214         sys/time.h                              \
26215         sys/tty.h                               \
26216         sys/types.h                             \
26217         sys/uio.h                               \
26218         sys/utsname.h                           \
26219         sys/wait.h                              \
26220         syslog.h                                \
26221         termios.h                               \
26222         unistd.h                                \
26223         userconf.h                              \
26224         usersec.h                               \
26225         util.h                                  \
26226         vis.h                                   \
26227
26228 do
26229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26231   echo "$as_me:$LINENO: checking for $ac_header" >&5
26232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26234   echo $ECHO_N "(cached) $ECHO_C" >&6
26235 fi
26236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26238 else
26239   # Is the header compilable?
26240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26242 cat >conftest.$ac_ext <<_ACEOF
26243 /* confdefs.h.  */
26244 _ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h.  */
26248 $ac_includes_default
26249 #include <$ac_header>
26250 _ACEOF
26251 rm -f conftest.$ac_objext
26252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26253   (eval $ac_compile) 2>conftest.er1
26254   ac_status=$?
26255   grep -v '^ *+' conftest.er1 >conftest.err
26256   rm -f conftest.er1
26257   cat conftest.err >&5
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); } &&
26260          { ac_try='test -z "$ac_c_werror_flag"
26261                          || test ! -s conftest.err'
26262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263   (eval $ac_try) 2>&5
26264   ac_status=$?
26265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266   (exit $ac_status); }; } &&
26267          { ac_try='test -s conftest.$ac_objext'
26268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269   (eval $ac_try) 2>&5
26270   ac_status=$?
26271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272   (exit $ac_status); }; }; then
26273   ac_header_compiler=yes
26274 else
26275   echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26277
26278 ac_header_compiler=no
26279 fi
26280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26282 echo "${ECHO_T}$ac_header_compiler" >&6
26283
26284 # Is the header present?
26285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26287 cat >conftest.$ac_ext <<_ACEOF
26288 /* confdefs.h.  */
26289 _ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h.  */
26293 #include <$ac_header>
26294 _ACEOF
26295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26297   ac_status=$?
26298   grep -v '^ *+' conftest.er1 >conftest.err
26299   rm -f conftest.er1
26300   cat conftest.err >&5
26301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302   (exit $ac_status); } >/dev/null; then
26303   if test -s conftest.err; then
26304     ac_cpp_err=$ac_c_preproc_warn_flag
26305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26306   else
26307     ac_cpp_err=
26308   fi
26309 else
26310   ac_cpp_err=yes
26311 fi
26312 if test -z "$ac_cpp_err"; then
26313   ac_header_preproc=yes
26314 else
26315   echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26317
26318   ac_header_preproc=no
26319 fi
26320 rm -f conftest.err conftest.$ac_ext
26321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26322 echo "${ECHO_T}$ac_header_preproc" >&6
26323
26324 # So?  What about this header?
26325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26326   yes:no: )
26327     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26331     ac_header_preproc=yes
26332     ;;
26333   no:yes:* )
26334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26336     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26340     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26341 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26344     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26346     (
26347       cat <<\_ASBOX
26348 ## -------------------------------------- ##
26349 ## Report this to heimdal-bugs@pdc.kth.se ##
26350 ## -------------------------------------- ##
26351 _ASBOX
26352     ) |
26353       sed "s/^/$as_me: WARNING:     /" >&2
26354     ;;
26355 esac
26356 echo "$as_me:$LINENO: checking for $ac_header" >&5
26357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26359   echo $ECHO_N "(cached) $ECHO_C" >&6
26360 else
26361   eval "$as_ac_Header=\$ac_header_preproc"
26362 fi
26363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26365
26366 fi
26367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26368   cat >>confdefs.h <<_ACEOF
26369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26370 _ACEOF
26371
26372 fi
26373
26374 done
26375
26376
26377
26378
26379
26380
26381 if test "$ac_cv_header_err_h" = yes; then
26382   have_err_h_TRUE=
26383   have_err_h_FALSE='#'
26384 else
26385   have_err_h_TRUE='#'
26386   have_err_h_FALSE=
26387 fi
26388
26389
26390
26391 if test "$ac_cv_header_fnmatch_h" = yes; then
26392   have_fnmatch_h_TRUE=
26393   have_fnmatch_h_FALSE='#'
26394 else
26395   have_fnmatch_h_TRUE='#'
26396   have_fnmatch_h_FALSE=
26397 fi
26398
26399
26400
26401 if test "$ac_cv_header_ifaddrs_h" = yes; then
26402   have_ifaddrs_h_TRUE=
26403   have_ifaddrs_h_FALSE='#'
26404 else
26405   have_ifaddrs_h_TRUE='#'
26406   have_ifaddrs_h_FALSE=
26407 fi
26408
26409
26410
26411 if test "$ac_cv_header_vis_h" = yes; then
26412   have_vis_h_TRUE=
26413   have_vis_h_FALSE='#'
26414 else
26415   have_vis_h_TRUE='#'
26416   have_vis_h_FALSE=
26417 fi
26418
26419
26420
26421
26422
26423
26424
26425 echo "$as_me:$LINENO: checking for socket" >&5
26426 echo $ECHO_N "checking for socket... $ECHO_C" >&6
26427 if test "${ac_cv_funclib_socket+set}" = set; then
26428   echo $ECHO_N "(cached) $ECHO_C" >&6
26429 else
26430
26431 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
26432         ac_save_LIBS="$LIBS"
26433         for ac_lib in "" socket; do
26434                 case "$ac_lib" in
26435                 "") ;;
26436                 yes) ac_lib="" ;;
26437                 no) continue ;;
26438                 -l*) ;;
26439                 *) ac_lib="-l$ac_lib" ;;
26440                 esac
26441                 LIBS=" $ac_lib  $ac_save_LIBS"
26442                 cat >conftest.$ac_ext <<_ACEOF
26443 /* confdefs.h.  */
26444 _ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h.  */
26448
26449 int
26450 main ()
26451 {
26452 socket()
26453   ;
26454   return 0;
26455 }
26456 _ACEOF
26457 rm -f conftest.$ac_objext conftest$ac_exeext
26458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26459   (eval $ac_link) 2>conftest.er1
26460   ac_status=$?
26461   grep -v '^ *+' conftest.er1 >conftest.err
26462   rm -f conftest.er1
26463   cat conftest.err >&5
26464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465   (exit $ac_status); } &&
26466          { ac_try='test -z "$ac_c_werror_flag"
26467                          || test ! -s conftest.err'
26468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469   (eval $ac_try) 2>&5
26470   ac_status=$?
26471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472   (exit $ac_status); }; } &&
26473          { ac_try='test -s conftest$ac_exeext'
26474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475   (eval $ac_try) 2>&5
26476   ac_status=$?
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); }; }; then
26479   eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
26480 else
26481   echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26483
26484 fi
26485 rm -f conftest.err conftest.$ac_objext \
26486       conftest$ac_exeext conftest.$ac_ext
26487         done
26488         eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
26489         LIBS="$ac_save_LIBS"
26490 fi
26491
26492 fi
26493
26494
26495 eval "ac_res=\$ac_cv_funclib_socket"
26496
26497 if false; then
26498
26499 for ac_func in socket
26500 do
26501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26502 echo "$as_me:$LINENO: checking for $ac_func" >&5
26503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26504 if eval "test \"\${$as_ac_var+set}\" = set"; then
26505   echo $ECHO_N "(cached) $ECHO_C" >&6
26506 else
26507   cat >conftest.$ac_ext <<_ACEOF
26508 /* confdefs.h.  */
26509 _ACEOF
26510 cat confdefs.h >>conftest.$ac_ext
26511 cat >>conftest.$ac_ext <<_ACEOF
26512 /* end confdefs.h.  */
26513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26515 #define $ac_func innocuous_$ac_func
26516
26517 /* System header to define __stub macros and hopefully few prototypes,
26518     which can conflict with char $ac_func (); below.
26519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26520     <limits.h> exists even on freestanding compilers.  */
26521
26522 #ifdef __STDC__
26523 # include <limits.h>
26524 #else
26525 # include <assert.h>
26526 #endif
26527
26528 #undef $ac_func
26529
26530 /* Override any gcc2 internal prototype to avoid an error.  */
26531 #ifdef __cplusplus
26532 extern "C"
26533 {
26534 #endif
26535 /* We use char because int might match the return type of a gcc2
26536    builtin and then its argument prototype would still apply.  */
26537 char $ac_func ();
26538 /* The GNU C library defines this for functions which it implements
26539     to always fail with ENOSYS.  Some functions are actually named
26540     something starting with __ and the normal name is an alias.  */
26541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26542 choke me
26543 #else
26544 char (*f) () = $ac_func;
26545 #endif
26546 #ifdef __cplusplus
26547 }
26548 #endif
26549
26550 int
26551 main ()
26552 {
26553 return f != $ac_func;
26554   ;
26555   return 0;
26556 }
26557 _ACEOF
26558 rm -f conftest.$ac_objext conftest$ac_exeext
26559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26560   (eval $ac_link) 2>conftest.er1
26561   ac_status=$?
26562   grep -v '^ *+' conftest.er1 >conftest.err
26563   rm -f conftest.er1
26564   cat conftest.err >&5
26565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566   (exit $ac_status); } &&
26567          { ac_try='test -z "$ac_c_werror_flag"
26568                          || test ! -s conftest.err'
26569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570   (eval $ac_try) 2>&5
26571   ac_status=$?
26572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573   (exit $ac_status); }; } &&
26574          { ac_try='test -s conftest$ac_exeext'
26575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576   (eval $ac_try) 2>&5
26577   ac_status=$?
26578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579   (exit $ac_status); }; }; then
26580   eval "$as_ac_var=yes"
26581 else
26582   echo "$as_me: failed program was:" >&5
26583 sed 's/^/| /' conftest.$ac_ext >&5
26584
26585 eval "$as_ac_var=no"
26586 fi
26587 rm -f conftest.err conftest.$ac_objext \
26588       conftest$ac_exeext conftest.$ac_ext
26589 fi
26590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26592 if test `eval echo '${'$as_ac_var'}'` = yes; then
26593   cat >>confdefs.h <<_ACEOF
26594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26595 _ACEOF
26596
26597 fi
26598 done
26599
26600 fi
26601 # socket
26602 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26603 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26604 eval "LIB_socket=$ac_res"
26605
26606 case "$ac_res" in
26607         yes)
26608         eval "ac_cv_func_socket=yes"
26609         eval "LIB_socket="
26610         cat >>confdefs.h <<_ACEOF
26611 #define $ac_tr_func 1
26612 _ACEOF
26613
26614         echo "$as_me:$LINENO: result: yes" >&5
26615 echo "${ECHO_T}yes" >&6
26616         ;;
26617         no)
26618         eval "ac_cv_func_socket=no"
26619         eval "LIB_socket="
26620         echo "$as_me:$LINENO: result: no" >&5
26621 echo "${ECHO_T}no" >&6
26622         ;;
26623         *)
26624         eval "ac_cv_func_socket=yes"
26625         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26626         cat >>confdefs.h <<_ACEOF
26627 #define $ac_tr_func 1
26628 _ACEOF
26629
26630         cat >>confdefs.h <<_ACEOF
26631 #define $ac_tr_lib 1
26632 _ACEOF
26633
26634         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26635 echo "${ECHO_T}yes, in $ac_res" >&6
26636         ;;
26637 esac
26638
26639
26640 if test -n "$LIB_socket"; then
26641         LIBS="$LIB_socket $LIBS"
26642 fi
26643
26644
26645
26646
26647
26648 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26649 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26650 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
26651   echo $ECHO_N "(cached) $ECHO_C" >&6
26652 else
26653
26654 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
26655         ac_save_LIBS="$LIBS"
26656         for ac_lib in "" nsl; do
26657                 case "$ac_lib" in
26658                 "") ;;
26659                 yes) ac_lib="" ;;
26660                 no) continue ;;
26661                 -l*) ;;
26662                 *) ac_lib="-l$ac_lib" ;;
26663                 esac
26664                 LIBS=" $ac_lib  $ac_save_LIBS"
26665                 cat >conftest.$ac_ext <<_ACEOF
26666 /* confdefs.h.  */
26667 _ACEOF
26668 cat confdefs.h >>conftest.$ac_ext
26669 cat >>conftest.$ac_ext <<_ACEOF
26670 /* end confdefs.h.  */
26671
26672 int
26673 main ()
26674 {
26675 gethostbyname()
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 rm -f conftest.$ac_objext conftest$ac_exeext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26682   (eval $ac_link) 2>conftest.er1
26683   ac_status=$?
26684   grep -v '^ *+' conftest.er1 >conftest.err
26685   rm -f conftest.er1
26686   cat conftest.err >&5
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); } &&
26689          { ac_try='test -z "$ac_c_werror_flag"
26690                          || test ! -s conftest.err'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; } &&
26696          { ac_try='test -s conftest$ac_exeext'
26697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698   (eval $ac_try) 2>&5
26699   ac_status=$?
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); }; }; then
26702   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
26703 else
26704   echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26706
26707 fi
26708 rm -f conftest.err conftest.$ac_objext \
26709       conftest$ac_exeext conftest.$ac_ext
26710         done
26711         eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
26712         LIBS="$ac_save_LIBS"
26713 fi
26714
26715 fi
26716
26717
26718 eval "ac_res=\$ac_cv_funclib_gethostbyname"
26719
26720 if false; then
26721
26722 for ac_func in gethostbyname
26723 do
26724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26725 echo "$as_me:$LINENO: checking for $ac_func" >&5
26726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26727 if eval "test \"\${$as_ac_var+set}\" = set"; then
26728   echo $ECHO_N "(cached) $ECHO_C" >&6
26729 else
26730   cat >conftest.$ac_ext <<_ACEOF
26731 /* confdefs.h.  */
26732 _ACEOF
26733 cat confdefs.h >>conftest.$ac_ext
26734 cat >>conftest.$ac_ext <<_ACEOF
26735 /* end confdefs.h.  */
26736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26738 #define $ac_func innocuous_$ac_func
26739
26740 /* System header to define __stub macros and hopefully few prototypes,
26741     which can conflict with char $ac_func (); below.
26742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26743     <limits.h> exists even on freestanding compilers.  */
26744
26745 #ifdef __STDC__
26746 # include <limits.h>
26747 #else
26748 # include <assert.h>
26749 #endif
26750
26751 #undef $ac_func
26752
26753 /* Override any gcc2 internal prototype to avoid an error.  */
26754 #ifdef __cplusplus
26755 extern "C"
26756 {
26757 #endif
26758 /* We use char because int might match the return type of a gcc2
26759    builtin and then its argument prototype would still apply.  */
26760 char $ac_func ();
26761 /* The GNU C library defines this for functions which it implements
26762     to always fail with ENOSYS.  Some functions are actually named
26763     something starting with __ and the normal name is an alias.  */
26764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26765 choke me
26766 #else
26767 char (*f) () = $ac_func;
26768 #endif
26769 #ifdef __cplusplus
26770 }
26771 #endif
26772
26773 int
26774 main ()
26775 {
26776 return f != $ac_func;
26777   ;
26778   return 0;
26779 }
26780 _ACEOF
26781 rm -f conftest.$ac_objext conftest$ac_exeext
26782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26783   (eval $ac_link) 2>conftest.er1
26784   ac_status=$?
26785   grep -v '^ *+' conftest.er1 >conftest.err
26786   rm -f conftest.er1
26787   cat conftest.err >&5
26788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789   (exit $ac_status); } &&
26790          { ac_try='test -z "$ac_c_werror_flag"
26791                          || test ! -s conftest.err'
26792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793   (eval $ac_try) 2>&5
26794   ac_status=$?
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); }; } &&
26797          { ac_try='test -s conftest$ac_exeext'
26798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799   (eval $ac_try) 2>&5
26800   ac_status=$?
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); }; }; then
26803   eval "$as_ac_var=yes"
26804 else
26805   echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26807
26808 eval "$as_ac_var=no"
26809 fi
26810 rm -f conftest.err conftest.$ac_objext \
26811       conftest$ac_exeext conftest.$ac_ext
26812 fi
26813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26815 if test `eval echo '${'$as_ac_var'}'` = yes; then
26816   cat >>confdefs.h <<_ACEOF
26817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26818 _ACEOF
26819
26820 fi
26821 done
26822
26823 fi
26824 # gethostbyname
26825 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26826 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26827 eval "LIB_gethostbyname=$ac_res"
26828
26829 case "$ac_res" in
26830         yes)
26831         eval "ac_cv_func_gethostbyname=yes"
26832         eval "LIB_gethostbyname="
26833         cat >>confdefs.h <<_ACEOF
26834 #define $ac_tr_func 1
26835 _ACEOF
26836
26837         echo "$as_me:$LINENO: result: yes" >&5
26838 echo "${ECHO_T}yes" >&6
26839         ;;
26840         no)
26841         eval "ac_cv_func_gethostbyname=no"
26842         eval "LIB_gethostbyname="
26843         echo "$as_me:$LINENO: result: no" >&5
26844 echo "${ECHO_T}no" >&6
26845         ;;
26846         *)
26847         eval "ac_cv_func_gethostbyname=yes"
26848         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26849         cat >>confdefs.h <<_ACEOF
26850 #define $ac_tr_func 1
26851 _ACEOF
26852
26853         cat >>confdefs.h <<_ACEOF
26854 #define $ac_tr_lib 1
26855 _ACEOF
26856
26857         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26858 echo "${ECHO_T}yes, in $ac_res" >&6
26859         ;;
26860 esac
26861
26862
26863 if test -n "$LIB_gethostbyname"; then
26864         LIBS="$LIB_gethostbyname $LIBS"
26865 fi
26866
26867
26868
26869
26870
26871 echo "$as_me:$LINENO: checking for syslog" >&5
26872 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
26873 if test "${ac_cv_funclib_syslog+set}" = set; then
26874   echo $ECHO_N "(cached) $ECHO_C" >&6
26875 else
26876
26877 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
26878         ac_save_LIBS="$LIBS"
26879         for ac_lib in "" syslog; do
26880                 case "$ac_lib" in
26881                 "") ;;
26882                 yes) ac_lib="" ;;
26883                 no) continue ;;
26884                 -l*) ;;
26885                 *) ac_lib="-l$ac_lib" ;;
26886                 esac
26887                 LIBS=" $ac_lib  $ac_save_LIBS"
26888                 cat >conftest.$ac_ext <<_ACEOF
26889 /* confdefs.h.  */
26890 _ACEOF
26891 cat confdefs.h >>conftest.$ac_ext
26892 cat >>conftest.$ac_ext <<_ACEOF
26893 /* end confdefs.h.  */
26894
26895 int
26896 main ()
26897 {
26898 syslog()
26899   ;
26900   return 0;
26901 }
26902 _ACEOF
26903 rm -f conftest.$ac_objext conftest$ac_exeext
26904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26905   (eval $ac_link) 2>conftest.er1
26906   ac_status=$?
26907   grep -v '^ *+' conftest.er1 >conftest.err
26908   rm -f conftest.er1
26909   cat conftest.err >&5
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); } &&
26912          { ac_try='test -z "$ac_c_werror_flag"
26913                          || test ! -s conftest.err'
26914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915   (eval $ac_try) 2>&5
26916   ac_status=$?
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); }; } &&
26919          { ac_try='test -s conftest$ac_exeext'
26920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921   (eval $ac_try) 2>&5
26922   ac_status=$?
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); }; }; then
26925   eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
26926 else
26927   echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.$ac_ext >&5
26929
26930 fi
26931 rm -f conftest.err conftest.$ac_objext \
26932       conftest$ac_exeext conftest.$ac_ext
26933         done
26934         eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
26935         LIBS="$ac_save_LIBS"
26936 fi
26937
26938 fi
26939
26940
26941 eval "ac_res=\$ac_cv_funclib_syslog"
26942
26943 if false; then
26944
26945 for ac_func in syslog
26946 do
26947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26948 echo "$as_me:$LINENO: checking for $ac_func" >&5
26949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26950 if eval "test \"\${$as_ac_var+set}\" = set"; then
26951   echo $ECHO_N "(cached) $ECHO_C" >&6
26952 else
26953   cat >conftest.$ac_ext <<_ACEOF
26954 /* confdefs.h.  */
26955 _ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h.  */
26959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26961 #define $ac_func innocuous_$ac_func
26962
26963 /* System header to define __stub macros and hopefully few prototypes,
26964     which can conflict with char $ac_func (); below.
26965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26966     <limits.h> exists even on freestanding compilers.  */
26967
26968 #ifdef __STDC__
26969 # include <limits.h>
26970 #else
26971 # include <assert.h>
26972 #endif
26973
26974 #undef $ac_func
26975
26976 /* Override any gcc2 internal prototype to avoid an error.  */
26977 #ifdef __cplusplus
26978 extern "C"
26979 {
26980 #endif
26981 /* We use char because int might match the return type of a gcc2
26982    builtin and then its argument prototype would still apply.  */
26983 char $ac_func ();
26984 /* The GNU C library defines this for functions which it implements
26985     to always fail with ENOSYS.  Some functions are actually named
26986     something starting with __ and the normal name is an alias.  */
26987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26988 choke me
26989 #else
26990 char (*f) () = $ac_func;
26991 #endif
26992 #ifdef __cplusplus
26993 }
26994 #endif
26995
26996 int
26997 main ()
26998 {
26999 return f != $ac_func;
27000   ;
27001   return 0;
27002 }
27003 _ACEOF
27004 rm -f conftest.$ac_objext conftest$ac_exeext
27005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27006   (eval $ac_link) 2>conftest.er1
27007   ac_status=$?
27008   grep -v '^ *+' conftest.er1 >conftest.err
27009   rm -f conftest.er1
27010   cat conftest.err >&5
27011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012   (exit $ac_status); } &&
27013          { ac_try='test -z "$ac_c_werror_flag"
27014                          || test ! -s conftest.err'
27015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016   (eval $ac_try) 2>&5
27017   ac_status=$?
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); }; } &&
27020          { ac_try='test -s conftest$ac_exeext'
27021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022   (eval $ac_try) 2>&5
27023   ac_status=$?
27024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025   (exit $ac_status); }; }; then
27026   eval "$as_ac_var=yes"
27027 else
27028   echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27030
27031 eval "$as_ac_var=no"
27032 fi
27033 rm -f conftest.err conftest.$ac_objext \
27034       conftest$ac_exeext conftest.$ac_ext
27035 fi
27036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27038 if test `eval echo '${'$as_ac_var'}'` = yes; then
27039   cat >>confdefs.h <<_ACEOF
27040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27041 _ACEOF
27042
27043 fi
27044 done
27045
27046 fi
27047 # syslog
27048 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27049 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27050 eval "LIB_syslog=$ac_res"
27051
27052 case "$ac_res" in
27053         yes)
27054         eval "ac_cv_func_syslog=yes"
27055         eval "LIB_syslog="
27056         cat >>confdefs.h <<_ACEOF
27057 #define $ac_tr_func 1
27058 _ACEOF
27059
27060         echo "$as_me:$LINENO: result: yes" >&5
27061 echo "${ECHO_T}yes" >&6
27062         ;;
27063         no)
27064         eval "ac_cv_func_syslog=no"
27065         eval "LIB_syslog="
27066         echo "$as_me:$LINENO: result: no" >&5
27067 echo "${ECHO_T}no" >&6
27068         ;;
27069         *)
27070         eval "ac_cv_func_syslog=yes"
27071         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27072         cat >>confdefs.h <<_ACEOF
27073 #define $ac_tr_func 1
27074 _ACEOF
27075
27076         cat >>confdefs.h <<_ACEOF
27077 #define $ac_tr_lib 1
27078 _ACEOF
27079
27080         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27081 echo "${ECHO_T}yes, in $ac_res" >&6
27082         ;;
27083 esac
27084
27085
27086 if test -n "$LIB_syslog"; then
27087         LIBS="$LIB_syslog $LIBS"
27088 fi
27089
27090
27091
27092
27093 # Check whether --with-ipv6 or --without-ipv6 was given.
27094 if test "${with_ipv6+set}" = set; then
27095   withval="$with_ipv6"
27096
27097 if test "$withval" = "no"; then
27098         ac_cv_lib_ipv6=no
27099 fi
27100 fi;
27101 save_CFLAGS="${CFLAGS}"
27102 echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
27103 echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
27104 if test "${v6type+set}" = set; then
27105   echo $ECHO_N "(cached) $ECHO_C" >&6
27106 else
27107   v6type=unknown
27108 v6lib=none
27109
27110 for i in v6d toshiba kame inria zeta linux; do
27111         case $i in
27112         v6d)
27113                 cat >conftest.$ac_ext <<_ACEOF
27114 /* confdefs.h.  */
27115 _ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h.  */
27119
27120 #include </usr/local/v6/include/sys/types.h>
27121 #ifdef __V6D__
27122 yes
27123 #endif
27124 _ACEOF
27125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27126   $EGREP "yes" >/dev/null 2>&1; then
27127   v6type=$i; v6lib=v6;
27128                         v6libdir=/usr/local/v6/lib;
27129                         CFLAGS="-I/usr/local/v6/include $CFLAGS"
27130 fi
27131 rm -f conftest*
27132
27133                 ;;
27134         toshiba)
27135                 cat >conftest.$ac_ext <<_ACEOF
27136 /* confdefs.h.  */
27137 _ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h.  */
27141
27142 #include <sys/param.h>
27143 #ifdef _TOSHIBA_INET6
27144 yes
27145 #endif
27146 _ACEOF
27147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27148   $EGREP "yes" >/dev/null 2>&1; then
27149   v6type=$i; v6lib=inet6;
27150                         v6libdir=/usr/local/v6/lib;
27151                         CFLAGS="-DINET6 $CFLAGS"
27152 fi
27153 rm -f conftest*
27154
27155                 ;;
27156         kame)
27157                 cat >conftest.$ac_ext <<_ACEOF
27158 /* confdefs.h.  */
27159 _ACEOF
27160 cat confdefs.h >>conftest.$ac_ext
27161 cat >>conftest.$ac_ext <<_ACEOF
27162 /* end confdefs.h.  */
27163
27164 #include <netinet/in.h>
27165 #ifdef __KAME__
27166 yes
27167 #endif
27168 _ACEOF
27169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27170   $EGREP "yes" >/dev/null 2>&1; then
27171   v6type=$i; v6lib=inet6;
27172                         v6libdir=/usr/local/v6/lib;
27173                         CFLAGS="-DINET6 $CFLAGS"
27174 fi
27175 rm -f conftest*
27176
27177                 ;;
27178         inria)
27179                 cat >conftest.$ac_ext <<_ACEOF
27180 /* confdefs.h.  */
27181 _ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h.  */
27185
27186 #include <netinet/in.h>
27187 #ifdef IPV6_INRIA_VERSION
27188 yes
27189 #endif
27190 _ACEOF
27191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27192   $EGREP "yes" >/dev/null 2>&1; then
27193   v6type=$i; CFLAGS="-DINET6 $CFLAGS"
27194 fi
27195 rm -f conftest*
27196
27197                 ;;
27198         zeta)
27199                 cat >conftest.$ac_ext <<_ACEOF
27200 /* confdefs.h.  */
27201 _ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h.  */
27205
27206 #include <sys/param.h>
27207 #ifdef _ZETA_MINAMI_INET6
27208 yes
27209 #endif
27210 _ACEOF
27211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27212   $EGREP "yes" >/dev/null 2>&1; then
27213   v6type=$i; v6lib=inet6;
27214                         v6libdir=/usr/local/v6/lib;
27215                         CFLAGS="-DINET6 $CFLAGS"
27216 fi
27217 rm -f conftest*
27218
27219                 ;;
27220         linux)
27221                 if test -d /usr/inet6; then
27222                         v6type=$i
27223                         v6lib=inet6
27224                         v6libdir=/usr/inet6
27225                         CFLAGS="-DINET6 $CFLAGS"
27226                 fi
27227                 ;;
27228         esac
27229         if test "$v6type" != "unknown"; then
27230                 break
27231         fi
27232 done
27233
27234 if test "$v6lib" != "none"; then
27235         for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
27236                 if test -d $dir -a -f $dir/lib$v6lib.a; then
27237                         LIBS="-L$dir -l$v6lib $LIBS"
27238                         break
27239                 fi
27240         done
27241 fi
27242
27243 fi
27244 echo "$as_me:$LINENO: result: $v6type" >&5
27245 echo "${ECHO_T}$v6type" >&6
27246
27247 echo "$as_me:$LINENO: checking for IPv6" >&5
27248 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
27249 if test "${ac_cv_lib_ipv6+set}" = set; then
27250   echo $ECHO_N "(cached) $ECHO_C" >&6
27251 else
27252
27253 cat >conftest.$ac_ext <<_ACEOF
27254 /* confdefs.h.  */
27255 _ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h.  */
27259
27260 #ifdef HAVE_SYS_TYPES_H
27261 #include <sys/types.h>
27262 #endif
27263 #ifdef HAVE_SYS_SOCKET_H
27264 #include <sys/socket.h>
27265 #endif
27266 #ifdef HAVE_NETINET_IN_H
27267 #include <netinet/in.h>
27268 #endif
27269 #ifdef HAVE_NETINET_IN6_H
27270 #include <netinet/in6.h>
27271 #endif
27272
27273 int
27274 main ()
27275 {
27276
27277  struct sockaddr_in6 sin6;
27278  int s;
27279
27280  s = socket(AF_INET6, SOCK_DGRAM, 0);
27281
27282  sin6.sin6_family = AF_INET6;
27283  sin6.sin6_port = htons(17);
27284  sin6.sin6_addr = in6addr_any;
27285  bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
27286
27287   ;
27288   return 0;
27289 }
27290 _ACEOF
27291 rm -f conftest.$ac_objext conftest$ac_exeext
27292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27293   (eval $ac_link) 2>conftest.er1
27294   ac_status=$?
27295   grep -v '^ *+' conftest.er1 >conftest.err
27296   rm -f conftest.er1
27297   cat conftest.err >&5
27298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299   (exit $ac_status); } &&
27300          { ac_try='test -z "$ac_c_werror_flag"
27301                          || test ! -s conftest.err'
27302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303   (eval $ac_try) 2>&5
27304   ac_status=$?
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); }; } &&
27307          { ac_try='test -s conftest$ac_exeext'
27308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309   (eval $ac_try) 2>&5
27310   ac_status=$?
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); }; }; then
27313   ac_cv_lib_ipv6=yes
27314 else
27315   echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318 ac_cv_lib_ipv6=no
27319 fi
27320 rm -f conftest.err conftest.$ac_objext \
27321       conftest$ac_exeext conftest.$ac_ext
27322 fi
27323 echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
27324 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
27325 if test "$ac_cv_lib_ipv6" = yes; then
27326
27327 cat >>confdefs.h <<\_ACEOF
27328 #define HAVE_IPV6 1
27329 _ACEOF
27330
27331 else
27332   CFLAGS="${save_CFLAGS}"
27333 fi
27334
27335 ## test for AIX missing in6addr_loopback
27336 if test "$ac_cv_lib_ipv6" = yes; then
27337         echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
27338 echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
27339 if test "${ac_cv_var_in6addr_loopback+set}" = set; then
27340   echo $ECHO_N "(cached) $ECHO_C" >&6
27341 else
27342
27343         cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349
27350 #ifdef HAVE_SYS_TYPES_H
27351 #include <sys/types.h>
27352 #endif
27353 #ifdef HAVE_SYS_SOCKET_H
27354 #include <sys/socket.h>
27355 #endif
27356 #ifdef HAVE_NETINET_IN_H
27357 #include <netinet/in.h>
27358 #endif
27359 #ifdef HAVE_NETINET_IN6_H
27360 #include <netinet/in6.h>
27361 #endif
27362 int
27363 main ()
27364 {
27365
27366 struct sockaddr_in6 sin6;
27367 sin6.sin6_addr = in6addr_loopback;
27368
27369   ;
27370   return 0;
27371 }
27372 _ACEOF
27373 rm -f conftest.$ac_objext conftest$ac_exeext
27374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27375   (eval $ac_link) 2>conftest.er1
27376   ac_status=$?
27377   grep -v '^ *+' conftest.er1 >conftest.err
27378   rm -f conftest.er1
27379   cat conftest.err >&5
27380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381   (exit $ac_status); } &&
27382          { ac_try='test -z "$ac_c_werror_flag"
27383                          || test ! -s conftest.err'
27384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385   (eval $ac_try) 2>&5
27386   ac_status=$?
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); }; } &&
27389          { ac_try='test -s conftest$ac_exeext'
27390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391   (eval $ac_try) 2>&5
27392   ac_status=$?
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); }; }; then
27395   ac_cv_var_in6addr_loopback=yes
27396 else
27397   echo "$as_me: failed program was:" >&5
27398 sed 's/^/| /' conftest.$ac_ext >&5
27399
27400 ac_cv_var_in6addr_loopback=no
27401 fi
27402 rm -f conftest.err conftest.$ac_objext \
27403       conftest$ac_exeext conftest.$ac_ext
27404 fi
27405 echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
27406 echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
27407         if test "$ac_cv_var_in6addr_loopback" = yes; then
27408
27409 cat >>confdefs.h <<\_ACEOF
27410 #define HAVE_IN6ADDR_LOOPBACK 1
27411 _ACEOF
27412
27413         fi
27414 fi
27415
27416
27417
27418
27419
27420
27421 echo "$as_me:$LINENO: checking for gethostbyname2" >&5
27422 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
27423 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
27424   echo $ECHO_N "(cached) $ECHO_C" >&6
27425 else
27426
27427 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
27428         ac_save_LIBS="$LIBS"
27429         for ac_lib in "" inet6 ip6; do
27430                 case "$ac_lib" in
27431                 "") ;;
27432                 yes) ac_lib="" ;;
27433                 no) continue ;;
27434                 -l*) ;;
27435                 *) ac_lib="-l$ac_lib" ;;
27436                 esac
27437                 LIBS=" $ac_lib  $ac_save_LIBS"
27438                 cat >conftest.$ac_ext <<_ACEOF
27439 /* confdefs.h.  */
27440 _ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h.  */
27444
27445 int
27446 main ()
27447 {
27448 gethostbyname2()
27449   ;
27450   return 0;
27451 }
27452 _ACEOF
27453 rm -f conftest.$ac_objext conftest$ac_exeext
27454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27455   (eval $ac_link) 2>conftest.er1
27456   ac_status=$?
27457   grep -v '^ *+' conftest.er1 >conftest.err
27458   rm -f conftest.er1
27459   cat conftest.err >&5
27460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461   (exit $ac_status); } &&
27462          { ac_try='test -z "$ac_c_werror_flag"
27463                          || test ! -s conftest.err'
27464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465   (eval $ac_try) 2>&5
27466   ac_status=$?
27467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468   (exit $ac_status); }; } &&
27469          { ac_try='test -s conftest$ac_exeext'
27470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471   (eval $ac_try) 2>&5
27472   ac_status=$?
27473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474   (exit $ac_status); }; }; then
27475   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
27476 else
27477   echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.$ac_ext >&5
27479
27480 fi
27481 rm -f conftest.err conftest.$ac_objext \
27482       conftest$ac_exeext conftest.$ac_ext
27483         done
27484         eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
27485         LIBS="$ac_save_LIBS"
27486 fi
27487
27488 fi
27489
27490
27491 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
27492
27493 if false; then
27494
27495 for ac_func in gethostbyname2
27496 do
27497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27498 echo "$as_me:$LINENO: checking for $ac_func" >&5
27499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27500 if eval "test \"\${$as_ac_var+set}\" = set"; then
27501   echo $ECHO_N "(cached) $ECHO_C" >&6
27502 else
27503   cat >conftest.$ac_ext <<_ACEOF
27504 /* confdefs.h.  */
27505 _ACEOF
27506 cat confdefs.h >>conftest.$ac_ext
27507 cat >>conftest.$ac_ext <<_ACEOF
27508 /* end confdefs.h.  */
27509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27511 #define $ac_func innocuous_$ac_func
27512
27513 /* System header to define __stub macros and hopefully few prototypes,
27514     which can conflict with char $ac_func (); below.
27515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27516     <limits.h> exists even on freestanding compilers.  */
27517
27518 #ifdef __STDC__
27519 # include <limits.h>
27520 #else
27521 # include <assert.h>
27522 #endif
27523
27524 #undef $ac_func
27525
27526 /* Override any gcc2 internal prototype to avoid an error.  */
27527 #ifdef __cplusplus
27528 extern "C"
27529 {
27530 #endif
27531 /* We use char because int might match the return type of a gcc2
27532    builtin and then its argument prototype would still apply.  */
27533 char $ac_func ();
27534 /* The GNU C library defines this for functions which it implements
27535     to always fail with ENOSYS.  Some functions are actually named
27536     something starting with __ and the normal name is an alias.  */
27537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27538 choke me
27539 #else
27540 char (*f) () = $ac_func;
27541 #endif
27542 #ifdef __cplusplus
27543 }
27544 #endif
27545
27546 int
27547 main ()
27548 {
27549 return f != $ac_func;
27550   ;
27551   return 0;
27552 }
27553 _ACEOF
27554 rm -f conftest.$ac_objext conftest$ac_exeext
27555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27556   (eval $ac_link) 2>conftest.er1
27557   ac_status=$?
27558   grep -v '^ *+' conftest.er1 >conftest.err
27559   rm -f conftest.er1
27560   cat conftest.err >&5
27561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562   (exit $ac_status); } &&
27563          { ac_try='test -z "$ac_c_werror_flag"
27564                          || test ! -s conftest.err'
27565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27566   (eval $ac_try) 2>&5
27567   ac_status=$?
27568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569   (exit $ac_status); }; } &&
27570          { ac_try='test -s conftest$ac_exeext'
27571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572   (eval $ac_try) 2>&5
27573   ac_status=$?
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); }; }; then
27576   eval "$as_ac_var=yes"
27577 else
27578   echo "$as_me: failed program was:" >&5
27579 sed 's/^/| /' conftest.$ac_ext >&5
27580
27581 eval "$as_ac_var=no"
27582 fi
27583 rm -f conftest.err conftest.$ac_objext \
27584       conftest$ac_exeext conftest.$ac_ext
27585 fi
27586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27588 if test `eval echo '${'$as_ac_var'}'` = yes; then
27589   cat >>confdefs.h <<_ACEOF
27590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27591 _ACEOF
27592
27593 fi
27594 done
27595
27596 fi
27597 # gethostbyname2
27598 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27599 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27600 eval "LIB_gethostbyname2=$ac_res"
27601
27602 case "$ac_res" in
27603         yes)
27604         eval "ac_cv_func_gethostbyname2=yes"
27605         eval "LIB_gethostbyname2="
27606         cat >>confdefs.h <<_ACEOF
27607 #define $ac_tr_func 1
27608 _ACEOF
27609
27610         echo "$as_me:$LINENO: result: yes" >&5
27611 echo "${ECHO_T}yes" >&6
27612         ;;
27613         no)
27614         eval "ac_cv_func_gethostbyname2=no"
27615         eval "LIB_gethostbyname2="
27616         echo "$as_me:$LINENO: result: no" >&5
27617 echo "${ECHO_T}no" >&6
27618         ;;
27619         *)
27620         eval "ac_cv_func_gethostbyname2=yes"
27621         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27622         cat >>confdefs.h <<_ACEOF
27623 #define $ac_tr_func 1
27624 _ACEOF
27625
27626         cat >>confdefs.h <<_ACEOF
27627 #define $ac_tr_lib 1
27628 _ACEOF
27629
27630         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27631 echo "${ECHO_T}yes, in $ac_res" >&6
27632         ;;
27633 esac
27634
27635
27636 if test -n "$LIB_gethostbyname2"; then
27637         LIBS="$LIB_gethostbyname2 $LIBS"
27638 fi
27639
27640
27641
27642
27643
27644
27645 echo "$as_me:$LINENO: checking for res_search" >&5
27646 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
27647 if test "${ac_cv_funclib_res_search+set}" = set; then
27648   echo $ECHO_N "(cached) $ECHO_C" >&6
27649 else
27650
27651 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
27652         ac_save_LIBS="$LIBS"
27653         for ac_lib in "" resolv; do
27654                 case "$ac_lib" in
27655                 "") ;;
27656                 yes) ac_lib="" ;;
27657                 no) continue ;;
27658                 -l*) ;;
27659                 *) ac_lib="-l$ac_lib" ;;
27660                 esac
27661                 LIBS=" $ac_lib  $ac_save_LIBS"
27662                 cat >conftest.$ac_ext <<_ACEOF
27663 /* confdefs.h.  */
27664 _ACEOF
27665 cat confdefs.h >>conftest.$ac_ext
27666 cat >>conftest.$ac_ext <<_ACEOF
27667 /* end confdefs.h.  */
27668
27669 #include <stdio.h>
27670 #ifdef HAVE_SYS_TYPES_H
27671 #include <sys/types.h>
27672 #endif
27673 #ifdef HAVE_NETINET_IN_H
27674 #include <netinet/in.h>
27675 #endif
27676 #ifdef HAVE_ARPA_NAMESER_H
27677 #include <arpa/nameser.h>
27678 #endif
27679 #ifdef HAVE_RESOLV_H
27680 #include <resolv.h>
27681 #endif
27682
27683 int
27684 main ()
27685 {
27686 res_search(0,0,0,0,0)
27687   ;
27688   return 0;
27689 }
27690 _ACEOF
27691 rm -f conftest.$ac_objext conftest$ac_exeext
27692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27693   (eval $ac_link) 2>conftest.er1
27694   ac_status=$?
27695   grep -v '^ *+' conftest.er1 >conftest.err
27696   rm -f conftest.er1
27697   cat conftest.err >&5
27698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699   (exit $ac_status); } &&
27700          { ac_try='test -z "$ac_c_werror_flag"
27701                          || test ! -s conftest.err'
27702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27703   (eval $ac_try) 2>&5
27704   ac_status=$?
27705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706   (exit $ac_status); }; } &&
27707          { ac_try='test -s conftest$ac_exeext'
27708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709   (eval $ac_try) 2>&5
27710   ac_status=$?
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); }; }; then
27713   eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
27714 else
27715   echo "$as_me: failed program was:" >&5
27716 sed 's/^/| /' conftest.$ac_ext >&5
27717
27718 fi
27719 rm -f conftest.err conftest.$ac_objext \
27720       conftest$ac_exeext conftest.$ac_ext
27721         done
27722         eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
27723         LIBS="$ac_save_LIBS"
27724 fi
27725
27726 fi
27727
27728
27729 eval "ac_res=\$ac_cv_funclib_res_search"
27730
27731 if false; then
27732
27733 for ac_func in res_search
27734 do
27735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27736 echo "$as_me:$LINENO: checking for $ac_func" >&5
27737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27738 if eval "test \"\${$as_ac_var+set}\" = set"; then
27739   echo $ECHO_N "(cached) $ECHO_C" >&6
27740 else
27741   cat >conftest.$ac_ext <<_ACEOF
27742 /* confdefs.h.  */
27743 _ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h.  */
27747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27749 #define $ac_func innocuous_$ac_func
27750
27751 /* System header to define __stub macros and hopefully few prototypes,
27752     which can conflict with char $ac_func (); below.
27753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27754     <limits.h> exists even on freestanding compilers.  */
27755
27756 #ifdef __STDC__
27757 # include <limits.h>
27758 #else
27759 # include <assert.h>
27760 #endif
27761
27762 #undef $ac_func
27763
27764 /* Override any gcc2 internal prototype to avoid an error.  */
27765 #ifdef __cplusplus
27766 extern "C"
27767 {
27768 #endif
27769 /* We use char because int might match the return type of a gcc2
27770    builtin and then its argument prototype would still apply.  */
27771 char $ac_func ();
27772 /* The GNU C library defines this for functions which it implements
27773     to always fail with ENOSYS.  Some functions are actually named
27774     something starting with __ and the normal name is an alias.  */
27775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27776 choke me
27777 #else
27778 char (*f) () = $ac_func;
27779 #endif
27780 #ifdef __cplusplus
27781 }
27782 #endif
27783
27784 int
27785 main ()
27786 {
27787 return f != $ac_func;
27788   ;
27789   return 0;
27790 }
27791 _ACEOF
27792 rm -f conftest.$ac_objext conftest$ac_exeext
27793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27794   (eval $ac_link) 2>conftest.er1
27795   ac_status=$?
27796   grep -v '^ *+' conftest.er1 >conftest.err
27797   rm -f conftest.er1
27798   cat conftest.err >&5
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); } &&
27801          { ac_try='test -z "$ac_c_werror_flag"
27802                          || test ! -s conftest.err'
27803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804   (eval $ac_try) 2>&5
27805   ac_status=$?
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); }; } &&
27808          { ac_try='test -s conftest$ac_exeext'
27809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810   (eval $ac_try) 2>&5
27811   ac_status=$?
27812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813   (exit $ac_status); }; }; then
27814   eval "$as_ac_var=yes"
27815 else
27816   echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27818
27819 eval "$as_ac_var=no"
27820 fi
27821 rm -f conftest.err conftest.$ac_objext \
27822       conftest$ac_exeext conftest.$ac_ext
27823 fi
27824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27826 if test `eval echo '${'$as_ac_var'}'` = yes; then
27827   cat >>confdefs.h <<_ACEOF
27828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27829 _ACEOF
27830
27831 fi
27832 done
27833
27834 fi
27835 # res_search
27836 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27837 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27838 eval "LIB_res_search=$ac_res"
27839
27840 case "$ac_res" in
27841         yes)
27842         eval "ac_cv_func_res_search=yes"
27843         eval "LIB_res_search="
27844         cat >>confdefs.h <<_ACEOF
27845 #define $ac_tr_func 1
27846 _ACEOF
27847
27848         echo "$as_me:$LINENO: result: yes" >&5
27849 echo "${ECHO_T}yes" >&6
27850         ;;
27851         no)
27852         eval "ac_cv_func_res_search=no"
27853         eval "LIB_res_search="
27854         echo "$as_me:$LINENO: result: no" >&5
27855 echo "${ECHO_T}no" >&6
27856         ;;
27857         *)
27858         eval "ac_cv_func_res_search=yes"
27859         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27860         cat >>confdefs.h <<_ACEOF
27861 #define $ac_tr_func 1
27862 _ACEOF
27863
27864         cat >>confdefs.h <<_ACEOF
27865 #define $ac_tr_lib 1
27866 _ACEOF
27867
27868         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27869 echo "${ECHO_T}yes, in $ac_res" >&6
27870         ;;
27871 esac
27872
27873
27874 if test -n "$LIB_res_search"; then
27875         LIBS="$LIB_res_search $LIBS"
27876 fi
27877
27878
27879
27880
27881
27882
27883 echo "$as_me:$LINENO: checking for res_nsearch" >&5
27884 echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6
27885 if test "${ac_cv_funclib_res_nsearch+set}" = set; then
27886   echo $ECHO_N "(cached) $ECHO_C" >&6
27887 else
27888
27889 if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
27890         ac_save_LIBS="$LIBS"
27891         for ac_lib in "" resolv; do
27892                 case "$ac_lib" in
27893                 "") ;;
27894                 yes) ac_lib="" ;;
27895                 no) continue ;;
27896                 -l*) ;;
27897                 *) ac_lib="-l$ac_lib" ;;
27898                 esac
27899                 LIBS=" $ac_lib  $ac_save_LIBS"
27900                 cat >conftest.$ac_ext <<_ACEOF
27901 /* confdefs.h.  */
27902 _ACEOF
27903 cat confdefs.h >>conftest.$ac_ext
27904 cat >>conftest.$ac_ext <<_ACEOF
27905 /* end confdefs.h.  */
27906
27907 #include <stdio.h>
27908 #ifdef HAVE_SYS_TYPES_H
27909 #include <sys/types.h>
27910 #endif
27911 #ifdef HAVE_NETINET_IN_H
27912 #include <netinet/in.h>
27913 #endif
27914 #ifdef HAVE_ARPA_NAMESER_H
27915 #include <arpa/nameser.h>
27916 #endif
27917 #ifdef HAVE_RESOLV_H
27918 #include <resolv.h>
27919 #endif
27920
27921 int
27922 main ()
27923 {
27924 res_nsearch(0,0,0,0,0,0)
27925   ;
27926   return 0;
27927 }
27928 _ACEOF
27929 rm -f conftest.$ac_objext conftest$ac_exeext
27930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27931   (eval $ac_link) 2>conftest.er1
27932   ac_status=$?
27933   grep -v '^ *+' conftest.er1 >conftest.err
27934   rm -f conftest.er1
27935   cat conftest.err >&5
27936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937   (exit $ac_status); } &&
27938          { ac_try='test -z "$ac_c_werror_flag"
27939                          || test ! -s conftest.err'
27940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27941   (eval $ac_try) 2>&5
27942   ac_status=$?
27943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944   (exit $ac_status); }; } &&
27945          { ac_try='test -s conftest$ac_exeext'
27946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947   (eval $ac_try) 2>&5
27948   ac_status=$?
27949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950   (exit $ac_status); }; }; then
27951   eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
27952 else
27953   echo "$as_me: failed program was:" >&5
27954 sed 's/^/| /' conftest.$ac_ext >&5
27955
27956 fi
27957 rm -f conftest.err conftest.$ac_objext \
27958       conftest$ac_exeext conftest.$ac_ext
27959         done
27960         eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
27961         LIBS="$ac_save_LIBS"
27962 fi
27963
27964 fi
27965
27966
27967 eval "ac_res=\$ac_cv_funclib_res_nsearch"
27968
27969 if false; then
27970
27971 for ac_func in res_nsearch
27972 do
27973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27974 echo "$as_me:$LINENO: checking for $ac_func" >&5
27975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27976 if eval "test \"\${$as_ac_var+set}\" = set"; then
27977   echo $ECHO_N "(cached) $ECHO_C" >&6
27978 else
27979   cat >conftest.$ac_ext <<_ACEOF
27980 /* confdefs.h.  */
27981 _ACEOF
27982 cat confdefs.h >>conftest.$ac_ext
27983 cat >>conftest.$ac_ext <<_ACEOF
27984 /* end confdefs.h.  */
27985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27987 #define $ac_func innocuous_$ac_func
27988
27989 /* System header to define __stub macros and hopefully few prototypes,
27990     which can conflict with char $ac_func (); below.
27991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27992     <limits.h> exists even on freestanding compilers.  */
27993
27994 #ifdef __STDC__
27995 # include <limits.h>
27996 #else
27997 # include <assert.h>
27998 #endif
27999
28000 #undef $ac_func
28001
28002 /* Override any gcc2 internal prototype to avoid an error.  */
28003 #ifdef __cplusplus
28004 extern "C"
28005 {
28006 #endif
28007 /* We use char because int might match the return type of a gcc2
28008    builtin and then its argument prototype would still apply.  */
28009 char $ac_func ();
28010 /* The GNU C library defines this for functions which it implements
28011     to always fail with ENOSYS.  Some functions are actually named
28012     something starting with __ and the normal name is an alias.  */
28013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28014 choke me
28015 #else
28016 char (*f) () = $ac_func;
28017 #endif
28018 #ifdef __cplusplus
28019 }
28020 #endif
28021
28022 int
28023 main ()
28024 {
28025 return f != $ac_func;
28026   ;
28027   return 0;
28028 }
28029 _ACEOF
28030 rm -f conftest.$ac_objext conftest$ac_exeext
28031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28032   (eval $ac_link) 2>conftest.er1
28033   ac_status=$?
28034   grep -v '^ *+' conftest.er1 >conftest.err
28035   rm -f conftest.er1
28036   cat conftest.err >&5
28037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038   (exit $ac_status); } &&
28039          { ac_try='test -z "$ac_c_werror_flag"
28040                          || test ! -s conftest.err'
28041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042   (eval $ac_try) 2>&5
28043   ac_status=$?
28044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045   (exit $ac_status); }; } &&
28046          { ac_try='test -s conftest$ac_exeext'
28047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048   (eval $ac_try) 2>&5
28049   ac_status=$?
28050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051   (exit $ac_status); }; }; then
28052   eval "$as_ac_var=yes"
28053 else
28054   echo "$as_me: failed program was:" >&5
28055 sed 's/^/| /' conftest.$ac_ext >&5
28056
28057 eval "$as_ac_var=no"
28058 fi
28059 rm -f conftest.err conftest.$ac_objext \
28060       conftest$ac_exeext conftest.$ac_ext
28061 fi
28062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28064 if test `eval echo '${'$as_ac_var'}'` = yes; then
28065   cat >>confdefs.h <<_ACEOF
28066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28067 _ACEOF
28068
28069 fi
28070 done
28071
28072 fi
28073 # res_nsearch
28074 eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28075 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28076 eval "LIB_res_nsearch=$ac_res"
28077
28078 case "$ac_res" in
28079         yes)
28080         eval "ac_cv_func_res_nsearch=yes"
28081         eval "LIB_res_nsearch="
28082         cat >>confdefs.h <<_ACEOF
28083 #define $ac_tr_func 1
28084 _ACEOF
28085
28086         echo "$as_me:$LINENO: result: yes" >&5
28087 echo "${ECHO_T}yes" >&6
28088         ;;
28089         no)
28090         eval "ac_cv_func_res_nsearch=no"
28091         eval "LIB_res_nsearch="
28092         echo "$as_me:$LINENO: result: no" >&5
28093 echo "${ECHO_T}no" >&6
28094         ;;
28095         *)
28096         eval "ac_cv_func_res_nsearch=yes"
28097         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28098         cat >>confdefs.h <<_ACEOF
28099 #define $ac_tr_func 1
28100 _ACEOF
28101
28102         cat >>confdefs.h <<_ACEOF
28103 #define $ac_tr_lib 1
28104 _ACEOF
28105
28106         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28107 echo "${ECHO_T}yes, in $ac_res" >&6
28108         ;;
28109 esac
28110
28111
28112 if test -n "$LIB_res_nsearch"; then
28113         LIBS="$LIB_res_nsearch $LIBS"
28114 fi
28115
28116
28117
28118
28119
28120
28121 echo "$as_me:$LINENO: checking for dn_expand" >&5
28122 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
28123 if test "${ac_cv_funclib_dn_expand+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126
28127 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
28128         ac_save_LIBS="$LIBS"
28129         for ac_lib in "" resolv; do
28130                 case "$ac_lib" in
28131                 "") ;;
28132                 yes) ac_lib="" ;;
28133                 no) continue ;;
28134                 -l*) ;;
28135                 *) ac_lib="-l$ac_lib" ;;
28136                 esac
28137                 LIBS=" $ac_lib  $ac_save_LIBS"
28138                 cat >conftest.$ac_ext <<_ACEOF
28139 /* confdefs.h.  */
28140 _ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h.  */
28144
28145 #include <stdio.h>
28146 #ifdef HAVE_SYS_TYPES_H
28147 #include <sys/types.h>
28148 #endif
28149 #ifdef HAVE_NETINET_IN_H
28150 #include <netinet/in.h>
28151 #endif
28152 #ifdef HAVE_ARPA_NAMESER_H
28153 #include <arpa/nameser.h>
28154 #endif
28155 #ifdef HAVE_RESOLV_H
28156 #include <resolv.h>
28157 #endif
28158
28159 int
28160 main ()
28161 {
28162 dn_expand(0,0,0,0,0)
28163   ;
28164   return 0;
28165 }
28166 _ACEOF
28167 rm -f conftest.$ac_objext conftest$ac_exeext
28168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28169   (eval $ac_link) 2>conftest.er1
28170   ac_status=$?
28171   grep -v '^ *+' conftest.er1 >conftest.err
28172   rm -f conftest.er1
28173   cat conftest.err >&5
28174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175   (exit $ac_status); } &&
28176          { ac_try='test -z "$ac_c_werror_flag"
28177                          || test ! -s conftest.err'
28178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179   (eval $ac_try) 2>&5
28180   ac_status=$?
28181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182   (exit $ac_status); }; } &&
28183          { ac_try='test -s conftest$ac_exeext'
28184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28185   (eval $ac_try) 2>&5
28186   ac_status=$?
28187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188   (exit $ac_status); }; }; then
28189   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
28190 else
28191   echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28193
28194 fi
28195 rm -f conftest.err conftest.$ac_objext \
28196       conftest$ac_exeext conftest.$ac_ext
28197         done
28198         eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
28199         LIBS="$ac_save_LIBS"
28200 fi
28201
28202 fi
28203
28204
28205 eval "ac_res=\$ac_cv_funclib_dn_expand"
28206
28207 if false; then
28208
28209 for ac_func in dn_expand
28210 do
28211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28212 echo "$as_me:$LINENO: checking for $ac_func" >&5
28213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28214 if eval "test \"\${$as_ac_var+set}\" = set"; then
28215   echo $ECHO_N "(cached) $ECHO_C" >&6
28216 else
28217   cat >conftest.$ac_ext <<_ACEOF
28218 /* confdefs.h.  */
28219 _ACEOF
28220 cat confdefs.h >>conftest.$ac_ext
28221 cat >>conftest.$ac_ext <<_ACEOF
28222 /* end confdefs.h.  */
28223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28225 #define $ac_func innocuous_$ac_func
28226
28227 /* System header to define __stub macros and hopefully few prototypes,
28228     which can conflict with char $ac_func (); below.
28229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28230     <limits.h> exists even on freestanding compilers.  */
28231
28232 #ifdef __STDC__
28233 # include <limits.h>
28234 #else
28235 # include <assert.h>
28236 #endif
28237
28238 #undef $ac_func
28239
28240 /* Override any gcc2 internal prototype to avoid an error.  */
28241 #ifdef __cplusplus
28242 extern "C"
28243 {
28244 #endif
28245 /* We use char because int might match the return type of a gcc2
28246    builtin and then its argument prototype would still apply.  */
28247 char $ac_func ();
28248 /* The GNU C library defines this for functions which it implements
28249     to always fail with ENOSYS.  Some functions are actually named
28250     something starting with __ and the normal name is an alias.  */
28251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28252 choke me
28253 #else
28254 char (*f) () = $ac_func;
28255 #endif
28256 #ifdef __cplusplus
28257 }
28258 #endif
28259
28260 int
28261 main ()
28262 {
28263 return f != $ac_func;
28264   ;
28265   return 0;
28266 }
28267 _ACEOF
28268 rm -f conftest.$ac_objext conftest$ac_exeext
28269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28270   (eval $ac_link) 2>conftest.er1
28271   ac_status=$?
28272   grep -v '^ *+' conftest.er1 >conftest.err
28273   rm -f conftest.er1
28274   cat conftest.err >&5
28275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276   (exit $ac_status); } &&
28277          { ac_try='test -z "$ac_c_werror_flag"
28278                          || test ! -s conftest.err'
28279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280   (eval $ac_try) 2>&5
28281   ac_status=$?
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); }; } &&
28284          { ac_try='test -s conftest$ac_exeext'
28285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286   (eval $ac_try) 2>&5
28287   ac_status=$?
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); }; }; then
28290   eval "$as_ac_var=yes"
28291 else
28292   echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28294
28295 eval "$as_ac_var=no"
28296 fi
28297 rm -f conftest.err conftest.$ac_objext \
28298       conftest$ac_exeext conftest.$ac_ext
28299 fi
28300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28302 if test `eval echo '${'$as_ac_var'}'` = yes; then
28303   cat >>confdefs.h <<_ACEOF
28304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28305 _ACEOF
28306
28307 fi
28308 done
28309
28310 fi
28311 # dn_expand
28312 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28313 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28314 eval "LIB_dn_expand=$ac_res"
28315
28316 case "$ac_res" in
28317         yes)
28318         eval "ac_cv_func_dn_expand=yes"
28319         eval "LIB_dn_expand="
28320         cat >>confdefs.h <<_ACEOF
28321 #define $ac_tr_func 1
28322 _ACEOF
28323
28324         echo "$as_me:$LINENO: result: yes" >&5
28325 echo "${ECHO_T}yes" >&6
28326         ;;
28327         no)
28328         eval "ac_cv_func_dn_expand=no"
28329         eval "LIB_dn_expand="
28330         echo "$as_me:$LINENO: result: no" >&5
28331 echo "${ECHO_T}no" >&6
28332         ;;
28333         *)
28334         eval "ac_cv_func_dn_expand=yes"
28335         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28336         cat >>confdefs.h <<_ACEOF
28337 #define $ac_tr_func 1
28338 _ACEOF
28339
28340         cat >>confdefs.h <<_ACEOF
28341 #define $ac_tr_lib 1
28342 _ACEOF
28343
28344         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28345 echo "${ECHO_T}yes, in $ac_res" >&6
28346         ;;
28347 esac
28348
28349
28350 if test -n "$LIB_dn_expand"; then
28351         LIBS="$LIB_dn_expand $LIBS"
28352 fi
28353
28354
28355
28356 echo "$as_me:$LINENO: checking for _res" >&5
28357 echo $ECHO_N "checking for _res... $ECHO_C" >&6
28358 if test "${ac_cv_var__res+set}" = set; then
28359   echo $ECHO_N "(cached) $ECHO_C" >&6
28360 else
28361
28362
28363         cat >conftest.$ac_ext <<_ACEOF
28364 /* confdefs.h.  */
28365 _ACEOF
28366 cat confdefs.h >>conftest.$ac_ext
28367 cat >>conftest.$ac_ext <<_ACEOF
28368 /* end confdefs.h.  */
28369 #include <stdio.h>
28370 #ifdef HAVE_SYS_TYPES_H
28371 #include <sys/types.h>
28372 #endif
28373 #ifdef HAVE_NETINET_IN_H
28374 #include <netinet/in.h>
28375 #endif
28376 #ifdef HAVE_ARPA_NAMESER_H
28377 #include <arpa/nameser.h>
28378 #endif
28379 #ifdef HAVE_RESOLV_H
28380 #include <resolv.h>
28381 #endif
28382         void * foo() { return &_res; }
28383 int
28384 main ()
28385 {
28386 foo()
28387   ;
28388   return 0;
28389 }
28390 _ACEOF
28391 rm -f conftest.$ac_objext conftest$ac_exeext
28392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28393   (eval $ac_link) 2>conftest.er1
28394   ac_status=$?
28395   grep -v '^ *+' conftest.er1 >conftest.err
28396   rm -f conftest.er1
28397   cat conftest.err >&5
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); } &&
28400          { ac_try='test -z "$ac_c_werror_flag"
28401                          || test ! -s conftest.err'
28402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403   (eval $ac_try) 2>&5
28404   ac_status=$?
28405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406   (exit $ac_status); }; } &&
28407          { ac_try='test -s conftest$ac_exeext'
28408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409   (eval $ac_try) 2>&5
28410   ac_status=$?
28411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412   (exit $ac_status); }; }; then
28413   ac_cv_var__res=yes
28414 else
28415   echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28417
28418 ac_cv_var__res=no
28419 fi
28420 rm -f conftest.err conftest.$ac_objext \
28421       conftest$ac_exeext conftest.$ac_ext
28422 if test "$ac_cv_var__res" != yes ; then
28423 cat >conftest.$ac_ext <<_ACEOF
28424 /* confdefs.h.  */
28425 _ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h.  */
28429 extern int _res;
28430 int foo() { return _res; }
28431 int
28432 main ()
28433 {
28434 foo()
28435   ;
28436   return 0;
28437 }
28438 _ACEOF
28439 rm -f conftest.$ac_objext conftest$ac_exeext
28440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28441   (eval $ac_link) 2>conftest.er1
28442   ac_status=$?
28443   grep -v '^ *+' conftest.er1 >conftest.err
28444   rm -f conftest.er1
28445   cat conftest.err >&5
28446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447   (exit $ac_status); } &&
28448          { ac_try='test -z "$ac_c_werror_flag"
28449                          || test ! -s conftest.err'
28450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451   (eval $ac_try) 2>&5
28452   ac_status=$?
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); }; } &&
28455          { ac_try='test -s conftest$ac_exeext'
28456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457   (eval $ac_try) 2>&5
28458   ac_status=$?
28459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460   (exit $ac_status); }; }; then
28461   ac_cv_var__res=yes
28462 else
28463   echo "$as_me: failed program was:" >&5
28464 sed 's/^/| /' conftest.$ac_ext >&5
28465
28466 ac_cv_var__res=no
28467 fi
28468 rm -f conftest.err conftest.$ac_objext \
28469       conftest$ac_exeext conftest.$ac_ext
28470 fi
28471
28472 fi
28473
28474 ac_foo=`eval echo \\$ac_cv_var__res`
28475 echo "$as_me:$LINENO: result: $ac_foo" >&5
28476 echo "${ECHO_T}$ac_foo" >&6
28477 if test "$ac_foo" = yes; then
28478
28479 cat >>confdefs.h <<_ACEOF
28480 #define HAVE__RES 1
28481 _ACEOF
28482
28483
28484 echo "$as_me:$LINENO: checking if _res is properly declared" >&5
28485 echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
28486 if test "${ac_cv_var__res_declaration+set}" = set; then
28487   echo $ECHO_N "(cached) $ECHO_C" >&6
28488 else
28489
28490 cat >conftest.$ac_ext <<_ACEOF
28491 /* confdefs.h.  */
28492 _ACEOF
28493 cat confdefs.h >>conftest.$ac_ext
28494 cat >>conftest.$ac_ext <<_ACEOF
28495 /* end confdefs.h.  */
28496 #include <stdio.h>
28497 #ifdef HAVE_SYS_TYPES_H
28498 #include <sys/types.h>
28499 #endif
28500 #ifdef HAVE_NETINET_IN_H
28501 #include <netinet/in.h>
28502 #endif
28503 #ifdef HAVE_ARPA_NAMESER_H
28504 #include <arpa/nameser.h>
28505 #endif
28506 #ifdef HAVE_RESOLV_H
28507 #include <resolv.h>
28508 #endif
28509 extern struct { int foo; } _res;
28510 int
28511 main ()
28512 {
28513 _res.foo = 1;
28514   ;
28515   return 0;
28516 }
28517 _ACEOF
28518 rm -f conftest.$ac_objext
28519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28520   (eval $ac_compile) 2>conftest.er1
28521   ac_status=$?
28522   grep -v '^ *+' conftest.er1 >conftest.err
28523   rm -f conftest.er1
28524   cat conftest.err >&5
28525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526   (exit $ac_status); } &&
28527          { ac_try='test -z "$ac_c_werror_flag"
28528                          || test ! -s conftest.err'
28529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530   (eval $ac_try) 2>&5
28531   ac_status=$?
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); }; } &&
28534          { ac_try='test -s conftest.$ac_objext'
28535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536   (eval $ac_try) 2>&5
28537   ac_status=$?
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); }; }; then
28540   eval "ac_cv_var__res_declaration=no"
28541 else
28542   echo "$as_me: failed program was:" >&5
28543 sed 's/^/| /' conftest.$ac_ext >&5
28544
28545 eval "ac_cv_var__res_declaration=yes"
28546 fi
28547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28548
28549 fi
28550
28551
28552
28553
28554 echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
28555 echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
28556 if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then
28557
28558 cat >>confdefs.h <<\_ACEOF
28559 #define HAVE__RES_DECLARATION 1
28560 _ACEOF
28561
28562 fi
28563
28564
28565 fi
28566
28567
28568
28569
28570 echo "$as_me:$LINENO: checking for working snprintf" >&5
28571 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
28572 if test "${ac_cv_func_snprintf_working+set}" = set; then
28573   echo $ECHO_N "(cached) $ECHO_C" >&6
28574 else
28575   ac_cv_func_snprintf_working=yes
28576 if test "$cross_compiling" = yes; then
28577   :
28578 else
28579   cat >conftest.$ac_ext <<_ACEOF
28580 /* confdefs.h.  */
28581 _ACEOF
28582 cat confdefs.h >>conftest.$ac_ext
28583 cat >>conftest.$ac_ext <<_ACEOF
28584 /* end confdefs.h.  */
28585
28586 #include <stdio.h>
28587 #include <string.h>
28588 int main()
28589 {
28590         char foo[3];
28591         snprintf(foo, 2, "12");
28592         return strcmp(foo, "1");
28593 }
28594 _ACEOF
28595 rm -f conftest$ac_exeext
28596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28597   (eval $ac_link) 2>&5
28598   ac_status=$?
28599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602   (eval $ac_try) 2>&5
28603   ac_status=$?
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); }; }; then
28606   :
28607 else
28608   echo "$as_me: program exited with status $ac_status" >&5
28609 echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28611
28612 ( exit $ac_status )
28613 ac_cv_func_snprintf_working=no
28614 fi
28615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28616 fi
28617 fi
28618 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
28619 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
28620
28621 if test "$ac_cv_func_snprintf_working" = yes; then
28622
28623 cat >>confdefs.h <<_ACEOF
28624 #define HAVE_SNPRINTF 1
28625 _ACEOF
28626
28627 fi
28628 if test "$ac_cv_func_snprintf_working" = yes; then
28629
28630 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
28631 echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
28632 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
28633 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
28634   echo $ECHO_N "(cached) $ECHO_C" >&6
28635 else
28636   cat >conftest.$ac_ext <<_ACEOF
28637 /* confdefs.h.  */
28638 _ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h.  */
28642 #include <stdio.h>
28643 int
28644 main ()
28645 {
28646 struct foo { int foo; } xx;
28647 extern int snprintf (struct foo*);
28648 snprintf(&xx);
28649
28650   ;
28651   return 0;
28652 }
28653 _ACEOF
28654 rm -f conftest.$ac_objext
28655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28656   (eval $ac_compile) 2>conftest.er1
28657   ac_status=$?
28658   grep -v '^ *+' conftest.er1 >conftest.err
28659   rm -f conftest.er1
28660   cat conftest.err >&5
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); } &&
28663          { ac_try='test -z "$ac_c_werror_flag"
28664                          || test ! -s conftest.err'
28665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666   (eval $ac_try) 2>&5
28667   ac_status=$?
28668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669   (exit $ac_status); }; } &&
28670          { ac_try='test -s conftest.$ac_objext'
28671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672   (eval $ac_try) 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); }; }; then
28676   eval "ac_cv_func_snprintf_noproto=yes"
28677 else
28678   echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28680
28681 eval "ac_cv_func_snprintf_noproto=no"
28682 fi
28683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28684 fi
28685 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
28686 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
28687 if test "$ac_cv_func_snprintf_noproto" = yes; then
28688
28689 cat >>confdefs.h <<\_ACEOF
28690 #define NEED_SNPRINTF_PROTO 1
28691 _ACEOF
28692
28693 fi
28694 fi
28695
28696 fi
28697
28698
28699 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
28700 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
28701 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
28702   echo $ECHO_N "(cached) $ECHO_C" >&6
28703 else
28704   ac_cv_func_vsnprintf_working=yes
28705 if test "$cross_compiling" = yes; then
28706   :
28707 else
28708   cat >conftest.$ac_ext <<_ACEOF
28709 /* confdefs.h.  */
28710 _ACEOF
28711 cat confdefs.h >>conftest.$ac_ext
28712 cat >>conftest.$ac_ext <<_ACEOF
28713 /* end confdefs.h.  */
28714
28715 #include <stdio.h>
28716 #include <string.h>
28717 #include <stdarg.h>
28718
28719 int foo(int num, ...)
28720 {
28721         char bar[3];
28722         va_list arg;
28723         va_start(arg, num);
28724         vsnprintf(bar, 2, "%s", arg);
28725         va_end(arg);
28726         return strcmp(bar, "1");
28727 }
28728
28729
28730 int main()
28731 {
28732         return foo(0, "12");
28733 }
28734 _ACEOF
28735 rm -f conftest$ac_exeext
28736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737   (eval $ac_link) 2>&5
28738   ac_status=$?
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742   (eval $ac_try) 2>&5
28743   ac_status=$?
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); }; }; then
28746   :
28747 else
28748   echo "$as_me: program exited with status $ac_status" >&5
28749 echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28751
28752 ( exit $ac_status )
28753 ac_cv_func_vsnprintf_working=no
28754 fi
28755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28756 fi
28757 fi
28758 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
28759 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
28760
28761 if test "$ac_cv_func_vsnprintf_working" = yes; then
28762
28763 cat >>confdefs.h <<_ACEOF
28764 #define HAVE_VSNPRINTF 1
28765 _ACEOF
28766
28767 fi
28768 if test "$ac_cv_func_vsnprintf_working" = yes; then
28769
28770 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
28771 echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
28772 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
28773 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
28774   echo $ECHO_N "(cached) $ECHO_C" >&6
28775 else
28776   cat >conftest.$ac_ext <<_ACEOF
28777 /* confdefs.h.  */
28778 _ACEOF
28779 cat confdefs.h >>conftest.$ac_ext
28780 cat >>conftest.$ac_ext <<_ACEOF
28781 /* end confdefs.h.  */
28782 #include <stdio.h>
28783 int
28784 main ()
28785 {
28786 struct foo { int foo; } xx;
28787 extern int vsnprintf (struct foo*);
28788 vsnprintf(&xx);
28789
28790   ;
28791   return 0;
28792 }
28793 _ACEOF
28794 rm -f conftest.$ac_objext
28795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28796   (eval $ac_compile) 2>conftest.er1
28797   ac_status=$?
28798   grep -v '^ *+' conftest.er1 >conftest.err
28799   rm -f conftest.er1
28800   cat conftest.err >&5
28801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802   (exit $ac_status); } &&
28803          { ac_try='test -z "$ac_c_werror_flag"
28804                          || test ! -s conftest.err'
28805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806   (eval $ac_try) 2>&5
28807   ac_status=$?
28808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809   (exit $ac_status); }; } &&
28810          { ac_try='test -s conftest.$ac_objext'
28811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812   (eval $ac_try) 2>&5
28813   ac_status=$?
28814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815   (exit $ac_status); }; }; then
28816   eval "ac_cv_func_vsnprintf_noproto=yes"
28817 else
28818   echo "$as_me: failed program was:" >&5
28819 sed 's/^/| /' conftest.$ac_ext >&5
28820
28821 eval "ac_cv_func_vsnprintf_noproto=no"
28822 fi
28823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28824 fi
28825 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
28826 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
28827 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
28828
28829 cat >>confdefs.h <<\_ACEOF
28830 #define NEED_VSNPRINTF_PROTO 1
28831 _ACEOF
28832
28833 fi
28834 fi
28835
28836 fi
28837
28838
28839
28840 echo "$as_me:$LINENO: checking for working glob" >&5
28841 echo $ECHO_N "checking for working glob... $ECHO_C" >&6
28842 if test "${ac_cv_func_glob_working+set}" = set; then
28843   echo $ECHO_N "(cached) $ECHO_C" >&6
28844 else
28845   ac_cv_func_glob_working=yes
28846 cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h.  */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h.  */
28852
28853 #include <stdio.h>
28854 #include <glob.h>
28855 int
28856 main ()
28857 {
28858
28859 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
28860 #ifdef GLOB_MAXPATH
28861 GLOB_MAXPATH
28862 #else
28863 GLOB_LIMIT
28864 #endif
28865 ,
28866 NULL, NULL);
28867
28868   ;
28869   return 0;
28870 }
28871 _ACEOF
28872 rm -f conftest.$ac_objext conftest$ac_exeext
28873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28874   (eval $ac_link) 2>conftest.er1
28875   ac_status=$?
28876   grep -v '^ *+' conftest.er1 >conftest.err
28877   rm -f conftest.er1
28878   cat conftest.err >&5
28879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880   (exit $ac_status); } &&
28881          { ac_try='test -z "$ac_c_werror_flag"
28882                          || test ! -s conftest.err'
28883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884   (eval $ac_try) 2>&5
28885   ac_status=$?
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); }; } &&
28888          { ac_try='test -s conftest$ac_exeext'
28889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890   (eval $ac_try) 2>&5
28891   ac_status=$?
28892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893   (exit $ac_status); }; }; then
28894   :
28895 else
28896   echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.$ac_ext >&5
28898
28899 ac_cv_func_glob_working=no
28900 fi
28901 rm -f conftest.err conftest.$ac_objext \
28902       conftest$ac_exeext conftest.$ac_ext
28903 fi
28904 echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
28905 echo "${ECHO_T}$ac_cv_func_glob_working" >&6
28906
28907 if test "$ac_cv_func_glob_working" = yes; then
28908
28909 cat >>confdefs.h <<\_ACEOF
28910 #define HAVE_GLOB 1
28911 _ACEOF
28912
28913 fi
28914 if test "$ac_cv_func_glob_working" = yes; then
28915
28916 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
28917 echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
28918 echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
28919 if test "${ac_cv_func_glob_noproto+set}" = set; then
28920   echo $ECHO_N "(cached) $ECHO_C" >&6
28921 else
28922   cat >conftest.$ac_ext <<_ACEOF
28923 /* confdefs.h.  */
28924 _ACEOF
28925 cat confdefs.h >>conftest.$ac_ext
28926 cat >>conftest.$ac_ext <<_ACEOF
28927 /* end confdefs.h.  */
28928 #include <stdio.h>
28929 #include <glob.h>
28930 int
28931 main ()
28932 {
28933 struct foo { int foo; } xx;
28934 extern int glob (struct foo*);
28935 glob(&xx);
28936
28937   ;
28938   return 0;
28939 }
28940 _ACEOF
28941 rm -f conftest.$ac_objext
28942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28943   (eval $ac_compile) 2>conftest.er1
28944   ac_status=$?
28945   grep -v '^ *+' conftest.er1 >conftest.err
28946   rm -f conftest.er1
28947   cat conftest.err >&5
28948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949   (exit $ac_status); } &&
28950          { ac_try='test -z "$ac_c_werror_flag"
28951                          || test ! -s conftest.err'
28952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953   (eval $ac_try) 2>&5
28954   ac_status=$?
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); }; } &&
28957          { ac_try='test -s conftest.$ac_objext'
28958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959   (eval $ac_try) 2>&5
28960   ac_status=$?
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); }; }; then
28963   eval "ac_cv_func_glob_noproto=yes"
28964 else
28965   echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28967
28968 eval "ac_cv_func_glob_noproto=no"
28969 fi
28970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28971 fi
28972 echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
28973 echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
28974 if test "$ac_cv_func_glob_noproto" = yes; then
28975
28976 cat >>confdefs.h <<\_ACEOF
28977 #define NEED_GLOB_PROTO 1
28978 _ACEOF
28979
28980 fi
28981 fi
28982
28983 fi
28984
28985 if test "$ac_cv_func_glob_working" != yes; then
28986         case $LIBOBJS in
28987     "glob.$ac_objext"   | \
28988   *" glob.$ac_objext"   | \
28989     "glob.$ac_objext "* | \
28990   *" glob.$ac_objext "* ) ;;
28991   *) LIBOBJS="$LIBOBJS glob.$ac_objext" ;;
28992 esac
28993
28994 fi
28995
28996
28997 if test "$ac_cv_func_glob_working" = yes; then
28998   have_glob_h_TRUE=
28999   have_glob_h_FALSE='#'
29000 else
29001   have_glob_h_TRUE='#'
29002   have_glob_h_FALSE=
29003 fi
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033 for ac_func in                          \
29034         asnprintf                               \
29035         asprintf                                \
29036         atexit                                  \
29037         cgetent                                 \
29038         getconfattr                             \
29039         getprogname                             \
29040         getrlimit                               \
29041         getspnam                                \
29042         initstate                               \
29043         issetugid                               \
29044         on_exit                                 \
29045         random                                  \
29046         setprogname                             \
29047         setstate                                \
29048         strsvis                                 \
29049         strunvis                                \
29050         strvis                                  \
29051         strvisx                                 \
29052         svis                                    \
29053         sysconf                                 \
29054         sysctl                                  \
29055         uname                                   \
29056         unvis                                   \
29057         vasnprintf                              \
29058         vasprintf                               \
29059         vis                                     \
29060
29061 do
29062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29063 echo "$as_me:$LINENO: checking for $ac_func" >&5
29064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29065 if eval "test \"\${$as_ac_var+set}\" = set"; then
29066   echo $ECHO_N "(cached) $ECHO_C" >&6
29067 else
29068   cat >conftest.$ac_ext <<_ACEOF
29069 /* confdefs.h.  */
29070 _ACEOF
29071 cat confdefs.h >>conftest.$ac_ext
29072 cat >>conftest.$ac_ext <<_ACEOF
29073 /* end confdefs.h.  */
29074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29076 #define $ac_func innocuous_$ac_func
29077
29078 /* System header to define __stub macros and hopefully few prototypes,
29079     which can conflict with char $ac_func (); below.
29080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29081     <limits.h> exists even on freestanding compilers.  */
29082
29083 #ifdef __STDC__
29084 # include <limits.h>
29085 #else
29086 # include <assert.h>
29087 #endif
29088
29089 #undef $ac_func
29090
29091 /* Override any gcc2 internal prototype to avoid an error.  */
29092 #ifdef __cplusplus
29093 extern "C"
29094 {
29095 #endif
29096 /* We use char because int might match the return type of a gcc2
29097    builtin and then its argument prototype would still apply.  */
29098 char $ac_func ();
29099 /* The GNU C library defines this for functions which it implements
29100     to always fail with ENOSYS.  Some functions are actually named
29101     something starting with __ and the normal name is an alias.  */
29102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29103 choke me
29104 #else
29105 char (*f) () = $ac_func;
29106 #endif
29107 #ifdef __cplusplus
29108 }
29109 #endif
29110
29111 int
29112 main ()
29113 {
29114 return f != $ac_func;
29115   ;
29116   return 0;
29117 }
29118 _ACEOF
29119 rm -f conftest.$ac_objext conftest$ac_exeext
29120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29121   (eval $ac_link) 2>conftest.er1
29122   ac_status=$?
29123   grep -v '^ *+' conftest.er1 >conftest.err
29124   rm -f conftest.er1
29125   cat conftest.err >&5
29126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127   (exit $ac_status); } &&
29128          { ac_try='test -z "$ac_c_werror_flag"
29129                          || test ! -s conftest.err'
29130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29131   (eval $ac_try) 2>&5
29132   ac_status=$?
29133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134   (exit $ac_status); }; } &&
29135          { ac_try='test -s conftest$ac_exeext'
29136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29137   (eval $ac_try) 2>&5
29138   ac_status=$?
29139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140   (exit $ac_status); }; }; then
29141   eval "$as_ac_var=yes"
29142 else
29143   echo "$as_me: failed program was:" >&5
29144 sed 's/^/| /' conftest.$ac_ext >&5
29145
29146 eval "$as_ac_var=no"
29147 fi
29148 rm -f conftest.err conftest.$ac_objext \
29149       conftest$ac_exeext conftest.$ac_ext
29150 fi
29151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29153 if test `eval echo '${'$as_ac_var'}'` = yes; then
29154   cat >>confdefs.h <<_ACEOF
29155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29156 _ACEOF
29157
29158 fi
29159 done
29160
29161
29162 if test "$ac_cv_func_cgetent" = no; then
29163         case $LIBOBJS in
29164     "getcap.$ac_objext"   | \
29165   *" getcap.$ac_objext"   | \
29166     "getcap.$ac_objext "* | \
29167   *" getcap.$ac_objext "* ) ;;
29168   *) LIBOBJS="$LIBOBJS getcap.$ac_objext" ;;
29169 esac
29170
29171 fi
29172
29173
29174
29175
29176
29177
29178
29179
29180 echo "$as_me:$LINENO: checking for getsockopt" >&5
29181 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
29182 if test "${ac_cv_funclib_getsockopt+set}" = set; then
29183   echo $ECHO_N "(cached) $ECHO_C" >&6
29184 else
29185
29186 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
29187         ac_save_LIBS="$LIBS"
29188         for ac_lib in "" ; do
29189                 case "$ac_lib" in
29190                 "") ;;
29191                 yes) ac_lib="" ;;
29192                 no) continue ;;
29193                 -l*) ;;
29194                 *) ac_lib="-l$ac_lib" ;;
29195                 esac
29196                 LIBS=" $ac_lib  $ac_save_LIBS"
29197                 cat >conftest.$ac_ext <<_ACEOF
29198 /* confdefs.h.  */
29199 _ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h.  */
29203 #ifdef HAVE_SYS_TYPES_H
29204 #include <sys/types.h>
29205 #endif
29206 #ifdef HAVE_SYS_SOCKET_H
29207 #include <sys/socket.h>
29208 #endif
29209 int
29210 main ()
29211 {
29212 getsockopt(0,0,0,0,0)
29213   ;
29214   return 0;
29215 }
29216 _ACEOF
29217 rm -f conftest.$ac_objext conftest$ac_exeext
29218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29219   (eval $ac_link) 2>conftest.er1
29220   ac_status=$?
29221   grep -v '^ *+' conftest.er1 >conftest.err
29222   rm -f conftest.er1
29223   cat conftest.err >&5
29224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225   (exit $ac_status); } &&
29226          { ac_try='test -z "$ac_c_werror_flag"
29227                          || test ! -s conftest.err'
29228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229   (eval $ac_try) 2>&5
29230   ac_status=$?
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); }; } &&
29233          { ac_try='test -s conftest$ac_exeext'
29234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235   (eval $ac_try) 2>&5
29236   ac_status=$?
29237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238   (exit $ac_status); }; }; then
29239   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
29240 else
29241   echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29243
29244 fi
29245 rm -f conftest.err conftest.$ac_objext \
29246       conftest$ac_exeext conftest.$ac_ext
29247         done
29248         eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
29249         LIBS="$ac_save_LIBS"
29250 fi
29251
29252 fi
29253
29254
29255 eval "ac_res=\$ac_cv_funclib_getsockopt"
29256
29257 if false; then
29258
29259 for ac_func in getsockopt
29260 do
29261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29262 echo "$as_me:$LINENO: checking for $ac_func" >&5
29263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29264 if eval "test \"\${$as_ac_var+set}\" = set"; then
29265   echo $ECHO_N "(cached) $ECHO_C" >&6
29266 else
29267   cat >conftest.$ac_ext <<_ACEOF
29268 /* confdefs.h.  */
29269 _ACEOF
29270 cat confdefs.h >>conftest.$ac_ext
29271 cat >>conftest.$ac_ext <<_ACEOF
29272 /* end confdefs.h.  */
29273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29275 #define $ac_func innocuous_$ac_func
29276
29277 /* System header to define __stub macros and hopefully few prototypes,
29278     which can conflict with char $ac_func (); below.
29279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29280     <limits.h> exists even on freestanding compilers.  */
29281
29282 #ifdef __STDC__
29283 # include <limits.h>
29284 #else
29285 # include <assert.h>
29286 #endif
29287
29288 #undef $ac_func
29289
29290 /* Override any gcc2 internal prototype to avoid an error.  */
29291 #ifdef __cplusplus
29292 extern "C"
29293 {
29294 #endif
29295 /* We use char because int might match the return type of a gcc2
29296    builtin and then its argument prototype would still apply.  */
29297 char $ac_func ();
29298 /* The GNU C library defines this for functions which it implements
29299     to always fail with ENOSYS.  Some functions are actually named
29300     something starting with __ and the normal name is an alias.  */
29301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29302 choke me
29303 #else
29304 char (*f) () = $ac_func;
29305 #endif
29306 #ifdef __cplusplus
29307 }
29308 #endif
29309
29310 int
29311 main ()
29312 {
29313 return f != $ac_func;
29314   ;
29315   return 0;
29316 }
29317 _ACEOF
29318 rm -f conftest.$ac_objext conftest$ac_exeext
29319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29320   (eval $ac_link) 2>conftest.er1
29321   ac_status=$?
29322   grep -v '^ *+' conftest.er1 >conftest.err
29323   rm -f conftest.er1
29324   cat conftest.err >&5
29325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326   (exit $ac_status); } &&
29327          { ac_try='test -z "$ac_c_werror_flag"
29328                          || test ! -s conftest.err'
29329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330   (eval $ac_try) 2>&5
29331   ac_status=$?
29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333   (exit $ac_status); }; } &&
29334          { ac_try='test -s conftest$ac_exeext'
29335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336   (eval $ac_try) 2>&5
29337   ac_status=$?
29338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339   (exit $ac_status); }; }; then
29340   eval "$as_ac_var=yes"
29341 else
29342   echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29344
29345 eval "$as_ac_var=no"
29346 fi
29347 rm -f conftest.err conftest.$ac_objext \
29348       conftest$ac_exeext conftest.$ac_ext
29349 fi
29350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29352 if test `eval echo '${'$as_ac_var'}'` = yes; then
29353   cat >>confdefs.h <<_ACEOF
29354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29355 _ACEOF
29356
29357 fi
29358 done
29359
29360 fi
29361 # getsockopt
29362 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29363 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29364 eval "LIB_getsockopt=$ac_res"
29365
29366 case "$ac_res" in
29367         yes)
29368         eval "ac_cv_func_getsockopt=yes"
29369         eval "LIB_getsockopt="
29370         cat >>confdefs.h <<_ACEOF
29371 #define $ac_tr_func 1
29372 _ACEOF
29373
29374         echo "$as_me:$LINENO: result: yes" >&5
29375 echo "${ECHO_T}yes" >&6
29376         ;;
29377         no)
29378         eval "ac_cv_func_getsockopt=no"
29379         eval "LIB_getsockopt="
29380         echo "$as_me:$LINENO: result: no" >&5
29381 echo "${ECHO_T}no" >&6
29382         ;;
29383         *)
29384         eval "ac_cv_func_getsockopt=yes"
29385         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29386         cat >>confdefs.h <<_ACEOF
29387 #define $ac_tr_func 1
29388 _ACEOF
29389
29390         cat >>confdefs.h <<_ACEOF
29391 #define $ac_tr_lib 1
29392 _ACEOF
29393
29394         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29395 echo "${ECHO_T}yes, in $ac_res" >&6
29396         ;;
29397 esac
29398
29399
29400
29401
29402
29403 echo "$as_me:$LINENO: checking for setsockopt" >&5
29404 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
29405 if test "${ac_cv_funclib_setsockopt+set}" = set; then
29406   echo $ECHO_N "(cached) $ECHO_C" >&6
29407 else
29408
29409 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
29410         ac_save_LIBS="$LIBS"
29411         for ac_lib in "" ; do
29412                 case "$ac_lib" in
29413                 "") ;;
29414                 yes) ac_lib="" ;;
29415                 no) continue ;;
29416                 -l*) ;;
29417                 *) ac_lib="-l$ac_lib" ;;
29418                 esac
29419                 LIBS=" $ac_lib  $ac_save_LIBS"
29420                 cat >conftest.$ac_ext <<_ACEOF
29421 /* confdefs.h.  */
29422 _ACEOF
29423 cat confdefs.h >>conftest.$ac_ext
29424 cat >>conftest.$ac_ext <<_ACEOF
29425 /* end confdefs.h.  */
29426 #ifdef HAVE_SYS_TYPES_H
29427 #include <sys/types.h>
29428 #endif
29429 #ifdef HAVE_SYS_SOCKET_H
29430 #include <sys/socket.h>
29431 #endif
29432 int
29433 main ()
29434 {
29435 setsockopt(0,0,0,0,0)
29436   ;
29437   return 0;
29438 }
29439 _ACEOF
29440 rm -f conftest.$ac_objext conftest$ac_exeext
29441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29442   (eval $ac_link) 2>conftest.er1
29443   ac_status=$?
29444   grep -v '^ *+' conftest.er1 >conftest.err
29445   rm -f conftest.er1
29446   cat conftest.err >&5
29447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448   (exit $ac_status); } &&
29449          { ac_try='test -z "$ac_c_werror_flag"
29450                          || test ! -s conftest.err'
29451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29452   (eval $ac_try) 2>&5
29453   ac_status=$?
29454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455   (exit $ac_status); }; } &&
29456          { ac_try='test -s conftest$ac_exeext'
29457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29458   (eval $ac_try) 2>&5
29459   ac_status=$?
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); }; }; then
29462   eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
29463 else
29464   echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29466
29467 fi
29468 rm -f conftest.err conftest.$ac_objext \
29469       conftest$ac_exeext conftest.$ac_ext
29470         done
29471         eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
29472         LIBS="$ac_save_LIBS"
29473 fi
29474
29475 fi
29476
29477
29478 eval "ac_res=\$ac_cv_funclib_setsockopt"
29479
29480 if false; then
29481
29482 for ac_func in setsockopt
29483 do
29484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29485 echo "$as_me:$LINENO: checking for $ac_func" >&5
29486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29487 if eval "test \"\${$as_ac_var+set}\" = set"; then
29488   echo $ECHO_N "(cached) $ECHO_C" >&6
29489 else
29490   cat >conftest.$ac_ext <<_ACEOF
29491 /* confdefs.h.  */
29492 _ACEOF
29493 cat confdefs.h >>conftest.$ac_ext
29494 cat >>conftest.$ac_ext <<_ACEOF
29495 /* end confdefs.h.  */
29496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29498 #define $ac_func innocuous_$ac_func
29499
29500 /* System header to define __stub macros and hopefully few prototypes,
29501     which can conflict with char $ac_func (); below.
29502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29503     <limits.h> exists even on freestanding compilers.  */
29504
29505 #ifdef __STDC__
29506 # include <limits.h>
29507 #else
29508 # include <assert.h>
29509 #endif
29510
29511 #undef $ac_func
29512
29513 /* Override any gcc2 internal prototype to avoid an error.  */
29514 #ifdef __cplusplus
29515 extern "C"
29516 {
29517 #endif
29518 /* We use char because int might match the return type of a gcc2
29519    builtin and then its argument prototype would still apply.  */
29520 char $ac_func ();
29521 /* The GNU C library defines this for functions which it implements
29522     to always fail with ENOSYS.  Some functions are actually named
29523     something starting with __ and the normal name is an alias.  */
29524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29525 choke me
29526 #else
29527 char (*f) () = $ac_func;
29528 #endif
29529 #ifdef __cplusplus
29530 }
29531 #endif
29532
29533 int
29534 main ()
29535 {
29536 return f != $ac_func;
29537   ;
29538   return 0;
29539 }
29540 _ACEOF
29541 rm -f conftest.$ac_objext conftest$ac_exeext
29542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29543   (eval $ac_link) 2>conftest.er1
29544   ac_status=$?
29545   grep -v '^ *+' conftest.er1 >conftest.err
29546   rm -f conftest.er1
29547   cat conftest.err >&5
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); } &&
29550          { ac_try='test -z "$ac_c_werror_flag"
29551                          || test ! -s conftest.err'
29552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29553   (eval $ac_try) 2>&5
29554   ac_status=$?
29555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556   (exit $ac_status); }; } &&
29557          { ac_try='test -s conftest$ac_exeext'
29558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559   (eval $ac_try) 2>&5
29560   ac_status=$?
29561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562   (exit $ac_status); }; }; then
29563   eval "$as_ac_var=yes"
29564 else
29565   echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29567
29568 eval "$as_ac_var=no"
29569 fi
29570 rm -f conftest.err conftest.$ac_objext \
29571       conftest$ac_exeext conftest.$ac_ext
29572 fi
29573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29575 if test `eval echo '${'$as_ac_var'}'` = yes; then
29576   cat >>confdefs.h <<_ACEOF
29577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29578 _ACEOF
29579
29580 fi
29581 done
29582
29583 fi
29584 # setsockopt
29585 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29586 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29587 eval "LIB_setsockopt=$ac_res"
29588
29589 case "$ac_res" in
29590         yes)
29591         eval "ac_cv_func_setsockopt=yes"
29592         eval "LIB_setsockopt="
29593         cat >>confdefs.h <<_ACEOF
29594 #define $ac_tr_func 1
29595 _ACEOF
29596
29597         echo "$as_me:$LINENO: result: yes" >&5
29598 echo "${ECHO_T}yes" >&6
29599         ;;
29600         no)
29601         eval "ac_cv_func_setsockopt=no"
29602         eval "LIB_setsockopt="
29603         echo "$as_me:$LINENO: result: no" >&5
29604 echo "${ECHO_T}no" >&6
29605         ;;
29606         *)
29607         eval "ac_cv_func_setsockopt=yes"
29608         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29609         cat >>confdefs.h <<_ACEOF
29610 #define $ac_tr_func 1
29611 _ACEOF
29612
29613         cat >>confdefs.h <<_ACEOF
29614 #define $ac_tr_lib 1
29615 _ACEOF
29616
29617         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29618 echo "${ECHO_T}yes, in $ac_res" >&6
29619         ;;
29620 esac
29621
29622
29623
29624
29625
29626
29627
29628 echo "$as_me:$LINENO: checking for hstrerror" >&5
29629 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
29630 if test "${ac_cv_funclib_hstrerror+set}" = set; then
29631   echo $ECHO_N "(cached) $ECHO_C" >&6
29632 else
29633
29634 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
29635         ac_save_LIBS="$LIBS"
29636         for ac_lib in "" resolv; do
29637                 case "$ac_lib" in
29638                 "") ;;
29639                 yes) ac_lib="" ;;
29640                 no) continue ;;
29641                 -l*) ;;
29642                 *) ac_lib="-l$ac_lib" ;;
29643                 esac
29644                 LIBS=" $ac_lib  $ac_save_LIBS"
29645                 cat >conftest.$ac_ext <<_ACEOF
29646 /* confdefs.h.  */
29647 _ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h.  */
29651 #ifdef HAVE_NETDB_H
29652 #include <netdb.h>
29653 #endif
29654 int
29655 main ()
29656 {
29657 hstrerror(17)
29658   ;
29659   return 0;
29660 }
29661 _ACEOF
29662 rm -f conftest.$ac_objext conftest$ac_exeext
29663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29664   (eval $ac_link) 2>conftest.er1
29665   ac_status=$?
29666   grep -v '^ *+' conftest.er1 >conftest.err
29667   rm -f conftest.er1
29668   cat conftest.err >&5
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); } &&
29671          { ac_try='test -z "$ac_c_werror_flag"
29672                          || test ! -s conftest.err'
29673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29674   (eval $ac_try) 2>&5
29675   ac_status=$?
29676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677   (exit $ac_status); }; } &&
29678          { ac_try='test -s conftest$ac_exeext'
29679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29680   (eval $ac_try) 2>&5
29681   ac_status=$?
29682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683   (exit $ac_status); }; }; then
29684   eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
29685 else
29686   echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29688
29689 fi
29690 rm -f conftest.err conftest.$ac_objext \
29691       conftest$ac_exeext conftest.$ac_ext
29692         done
29693         eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
29694         LIBS="$ac_save_LIBS"
29695 fi
29696
29697 fi
29698
29699
29700 eval "ac_res=\$ac_cv_funclib_hstrerror"
29701
29702 if false; then
29703
29704 for ac_func in hstrerror
29705 do
29706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29707 echo "$as_me:$LINENO: checking for $ac_func" >&5
29708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29709 if eval "test \"\${$as_ac_var+set}\" = set"; then
29710   echo $ECHO_N "(cached) $ECHO_C" >&6
29711 else
29712   cat >conftest.$ac_ext <<_ACEOF
29713 /* confdefs.h.  */
29714 _ACEOF
29715 cat confdefs.h >>conftest.$ac_ext
29716 cat >>conftest.$ac_ext <<_ACEOF
29717 /* end confdefs.h.  */
29718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29720 #define $ac_func innocuous_$ac_func
29721
29722 /* System header to define __stub macros and hopefully few prototypes,
29723     which can conflict with char $ac_func (); below.
29724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29725     <limits.h> exists even on freestanding compilers.  */
29726
29727 #ifdef __STDC__
29728 # include <limits.h>
29729 #else
29730 # include <assert.h>
29731 #endif
29732
29733 #undef $ac_func
29734
29735 /* Override any gcc2 internal prototype to avoid an error.  */
29736 #ifdef __cplusplus
29737 extern "C"
29738 {
29739 #endif
29740 /* We use char because int might match the return type of a gcc2
29741    builtin and then its argument prototype would still apply.  */
29742 char $ac_func ();
29743 /* The GNU C library defines this for functions which it implements
29744     to always fail with ENOSYS.  Some functions are actually named
29745     something starting with __ and the normal name is an alias.  */
29746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29747 choke me
29748 #else
29749 char (*f) () = $ac_func;
29750 #endif
29751 #ifdef __cplusplus
29752 }
29753 #endif
29754
29755 int
29756 main ()
29757 {
29758 return f != $ac_func;
29759   ;
29760   return 0;
29761 }
29762 _ACEOF
29763 rm -f conftest.$ac_objext conftest$ac_exeext
29764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29765   (eval $ac_link) 2>conftest.er1
29766   ac_status=$?
29767   grep -v '^ *+' conftest.er1 >conftest.err
29768   rm -f conftest.er1
29769   cat conftest.err >&5
29770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771   (exit $ac_status); } &&
29772          { ac_try='test -z "$ac_c_werror_flag"
29773                          || test ! -s conftest.err'
29774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29775   (eval $ac_try) 2>&5
29776   ac_status=$?
29777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778   (exit $ac_status); }; } &&
29779          { ac_try='test -s conftest$ac_exeext'
29780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781   (eval $ac_try) 2>&5
29782   ac_status=$?
29783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784   (exit $ac_status); }; }; then
29785   eval "$as_ac_var=yes"
29786 else
29787   echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29789
29790 eval "$as_ac_var=no"
29791 fi
29792 rm -f conftest.err conftest.$ac_objext \
29793       conftest$ac_exeext conftest.$ac_ext
29794 fi
29795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29797 if test `eval echo '${'$as_ac_var'}'` = yes; then
29798   cat >>confdefs.h <<_ACEOF
29799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29800 _ACEOF
29801
29802 fi
29803 done
29804
29805 fi
29806 # hstrerror
29807 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29808 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29809 eval "LIB_hstrerror=$ac_res"
29810
29811 case "$ac_res" in
29812         yes)
29813         eval "ac_cv_func_hstrerror=yes"
29814         eval "LIB_hstrerror="
29815         cat >>confdefs.h <<_ACEOF
29816 #define $ac_tr_func 1
29817 _ACEOF
29818
29819         echo "$as_me:$LINENO: result: yes" >&5
29820 echo "${ECHO_T}yes" >&6
29821         ;;
29822         no)
29823         eval "ac_cv_func_hstrerror=no"
29824         eval "LIB_hstrerror="
29825         echo "$as_me:$LINENO: result: no" >&5
29826 echo "${ECHO_T}no" >&6
29827         ;;
29828         *)
29829         eval "ac_cv_func_hstrerror=yes"
29830         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29831         cat >>confdefs.h <<_ACEOF
29832 #define $ac_tr_func 1
29833 _ACEOF
29834
29835         cat >>confdefs.h <<_ACEOF
29836 #define $ac_tr_lib 1
29837 _ACEOF
29838
29839         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29840 echo "${ECHO_T}yes, in $ac_res" >&6
29841         ;;
29842 esac
29843
29844
29845 if test -n "$LIB_hstrerror"; then
29846         LIBS="$LIB_hstrerror $LIBS"
29847 fi
29848
29849 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
29850         case $LIBOBJS in
29851     "hstrerror.$ac_objext"   | \
29852   *" hstrerror.$ac_objext"   | \
29853     "hstrerror.$ac_objext "* | \
29854   *" hstrerror.$ac_objext "* ) ;;
29855   *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext" ;;
29856 esac
29857
29858 fi
29859
29860
29861 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
29862 echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
29863 echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
29864 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
29865   echo $ECHO_N "(cached) $ECHO_C" >&6
29866 else
29867   cat >conftest.$ac_ext <<_ACEOF
29868 /* confdefs.h.  */
29869 _ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h.  */
29873
29874 #ifdef HAVE_NETDB_H
29875 #include <netdb.h>
29876 #endif
29877 int
29878 main ()
29879 {
29880 struct foo { int foo; } xx;
29881 extern int hstrerror (struct foo*);
29882 hstrerror(&xx);
29883
29884   ;
29885   return 0;
29886 }
29887 _ACEOF
29888 rm -f conftest.$ac_objext
29889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29890   (eval $ac_compile) 2>conftest.er1
29891   ac_status=$?
29892   grep -v '^ *+' conftest.er1 >conftest.err
29893   rm -f conftest.er1
29894   cat conftest.err >&5
29895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896   (exit $ac_status); } &&
29897          { ac_try='test -z "$ac_c_werror_flag"
29898                          || test ! -s conftest.err'
29899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900   (eval $ac_try) 2>&5
29901   ac_status=$?
29902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903   (exit $ac_status); }; } &&
29904          { ac_try='test -s conftest.$ac_objext'
29905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29906   (eval $ac_try) 2>&5
29907   ac_status=$?
29908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909   (exit $ac_status); }; }; then
29910   eval "ac_cv_func_hstrerror_noproto=yes"
29911 else
29912   echo "$as_me: failed program was:" >&5
29913 sed 's/^/| /' conftest.$ac_ext >&5
29914
29915 eval "ac_cv_func_hstrerror_noproto=no"
29916 fi
29917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29918 fi
29919 echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
29920 echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
29921 if test "$ac_cv_func_hstrerror_noproto" = yes; then
29922
29923 cat >>confdefs.h <<\_ACEOF
29924 #define NEED_HSTRERROR_PROTO 1
29925 _ACEOF
29926
29927 fi
29928 fi
29929
29930
29931
29932 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
29933 echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
29934 echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
29935 if test "${ac_cv_func_asprintf_noproto+set}" = set; then
29936   echo $ECHO_N "(cached) $ECHO_C" >&6
29937 else
29938   cat >conftest.$ac_ext <<_ACEOF
29939 /* confdefs.h.  */
29940 _ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h.  */
29944
29945         #include <stdio.h>
29946         #include <string.h>
29947 int
29948 main ()
29949 {
29950 struct foo { int foo; } xx;
29951 extern int asprintf (struct foo*);
29952 asprintf(&xx);
29953
29954   ;
29955   return 0;
29956 }
29957 _ACEOF
29958 rm -f conftest.$ac_objext
29959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29960   (eval $ac_compile) 2>conftest.er1
29961   ac_status=$?
29962   grep -v '^ *+' conftest.er1 >conftest.err
29963   rm -f conftest.er1
29964   cat conftest.err >&5
29965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966   (exit $ac_status); } &&
29967          { ac_try='test -z "$ac_c_werror_flag"
29968                          || test ! -s conftest.err'
29969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29970   (eval $ac_try) 2>&5
29971   ac_status=$?
29972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973   (exit $ac_status); }; } &&
29974          { ac_try='test -s conftest.$ac_objext'
29975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29976   (eval $ac_try) 2>&5
29977   ac_status=$?
29978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979   (exit $ac_status); }; }; then
29980   eval "ac_cv_func_asprintf_noproto=yes"
29981 else
29982   echo "$as_me: failed program was:" >&5
29983 sed 's/^/| /' conftest.$ac_ext >&5
29984
29985 eval "ac_cv_func_asprintf_noproto=no"
29986 fi
29987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29988 fi
29989 echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
29990 echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
29991 if test "$ac_cv_func_asprintf_noproto" = yes; then
29992
29993 cat >>confdefs.h <<\_ACEOF
29994 #define NEED_ASPRINTF_PROTO 1
29995 _ACEOF
29996
29997 fi
29998 fi
29999
30000 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
30001 echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
30002 echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
30003 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
30004   echo $ECHO_N "(cached) $ECHO_C" >&6
30005 else
30006   cat >conftest.$ac_ext <<_ACEOF
30007 /* confdefs.h.  */
30008 _ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h.  */
30012
30013         #include <stdio.h>
30014         #include <string.h>
30015 int
30016 main ()
30017 {
30018 struct foo { int foo; } xx;
30019 extern int vasprintf (struct foo*);
30020 vasprintf(&xx);
30021
30022   ;
30023   return 0;
30024 }
30025 _ACEOF
30026 rm -f conftest.$ac_objext
30027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30028   (eval $ac_compile) 2>conftest.er1
30029   ac_status=$?
30030   grep -v '^ *+' conftest.er1 >conftest.err
30031   rm -f conftest.er1
30032   cat conftest.err >&5
30033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034   (exit $ac_status); } &&
30035          { ac_try='test -z "$ac_c_werror_flag"
30036                          || test ! -s conftest.err'
30037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038   (eval $ac_try) 2>&5
30039   ac_status=$?
30040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041   (exit $ac_status); }; } &&
30042          { ac_try='test -s conftest.$ac_objext'
30043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30044   (eval $ac_try) 2>&5
30045   ac_status=$?
30046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047   (exit $ac_status); }; }; then
30048   eval "ac_cv_func_vasprintf_noproto=yes"
30049 else
30050   echo "$as_me: failed program was:" >&5
30051 sed 's/^/| /' conftest.$ac_ext >&5
30052
30053 eval "ac_cv_func_vasprintf_noproto=no"
30054 fi
30055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30056 fi
30057 echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
30058 echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
30059 if test "$ac_cv_func_vasprintf_noproto" = yes; then
30060
30061 cat >>confdefs.h <<\_ACEOF
30062 #define NEED_VASPRINTF_PROTO 1
30063 _ACEOF
30064
30065 fi
30066 fi
30067
30068 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
30069 echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
30070 echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
30071 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
30072   echo $ECHO_N "(cached) $ECHO_C" >&6
30073 else
30074   cat >conftest.$ac_ext <<_ACEOF
30075 /* confdefs.h.  */
30076 _ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h.  */
30080
30081         #include <stdio.h>
30082         #include <string.h>
30083 int
30084 main ()
30085 {
30086 struct foo { int foo; } xx;
30087 extern int asnprintf (struct foo*);
30088 asnprintf(&xx);
30089
30090   ;
30091   return 0;
30092 }
30093 _ACEOF
30094 rm -f conftest.$ac_objext
30095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30096   (eval $ac_compile) 2>conftest.er1
30097   ac_status=$?
30098   grep -v '^ *+' conftest.er1 >conftest.err
30099   rm -f conftest.er1
30100   cat conftest.err >&5
30101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102   (exit $ac_status); } &&
30103          { ac_try='test -z "$ac_c_werror_flag"
30104                          || test ! -s conftest.err'
30105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106   (eval $ac_try) 2>&5
30107   ac_status=$?
30108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109   (exit $ac_status); }; } &&
30110          { ac_try='test -s conftest.$ac_objext'
30111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112   (eval $ac_try) 2>&5
30113   ac_status=$?
30114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115   (exit $ac_status); }; }; then
30116   eval "ac_cv_func_asnprintf_noproto=yes"
30117 else
30118   echo "$as_me: failed program was:" >&5
30119 sed 's/^/| /' conftest.$ac_ext >&5
30120
30121 eval "ac_cv_func_asnprintf_noproto=no"
30122 fi
30123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30124 fi
30125 echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
30126 echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
30127 if test "$ac_cv_func_asnprintf_noproto" = yes; then
30128
30129 cat >>confdefs.h <<\_ACEOF
30130 #define NEED_ASNPRINTF_PROTO 1
30131 _ACEOF
30132
30133 fi
30134 fi
30135
30136 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
30137 echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
30138 echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
30139 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
30140   echo $ECHO_N "(cached) $ECHO_C" >&6
30141 else
30142   cat >conftest.$ac_ext <<_ACEOF
30143 /* confdefs.h.  */
30144 _ACEOF
30145 cat confdefs.h >>conftest.$ac_ext
30146 cat >>conftest.$ac_ext <<_ACEOF
30147 /* end confdefs.h.  */
30148
30149         #include <stdio.h>
30150         #include <string.h>
30151 int
30152 main ()
30153 {
30154 struct foo { int foo; } xx;
30155 extern int vasnprintf (struct foo*);
30156 vasnprintf(&xx);
30157
30158   ;
30159   return 0;
30160 }
30161 _ACEOF
30162 rm -f conftest.$ac_objext
30163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30164   (eval $ac_compile) 2>conftest.er1
30165   ac_status=$?
30166   grep -v '^ *+' conftest.er1 >conftest.err
30167   rm -f conftest.er1
30168   cat conftest.err >&5
30169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170   (exit $ac_status); } &&
30171          { ac_try='test -z "$ac_c_werror_flag"
30172                          || test ! -s conftest.err'
30173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174   (eval $ac_try) 2>&5
30175   ac_status=$?
30176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177   (exit $ac_status); }; } &&
30178          { ac_try='test -s conftest.$ac_objext'
30179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30180   (eval $ac_try) 2>&5
30181   ac_status=$?
30182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183   (exit $ac_status); }; }; then
30184   eval "ac_cv_func_vasnprintf_noproto=yes"
30185 else
30186   echo "$as_me: failed program was:" >&5
30187 sed 's/^/| /' conftest.$ac_ext >&5
30188
30189 eval "ac_cv_func_vasnprintf_noproto=no"
30190 fi
30191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30192 fi
30193 echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
30194 echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
30195 if test "$ac_cv_func_vasnprintf_noproto" = yes; then
30196
30197 cat >>confdefs.h <<\_ACEOF
30198 #define NEED_VASNPRINTF_PROTO 1
30199 _ACEOF
30200
30201 fi
30202 fi
30203
30204
30205
30206
30207
30208 echo "$as_me:$LINENO: checking for bswap16" >&5
30209 echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
30210 if test "${ac_cv_funclib_bswap16+set}" = set; then
30211   echo $ECHO_N "(cached) $ECHO_C" >&6
30212 else
30213
30214 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
30215         ac_save_LIBS="$LIBS"
30216         for ac_lib in "" ; do
30217                 case "$ac_lib" in
30218                 "") ;;
30219                 yes) ac_lib="" ;;
30220                 no) continue ;;
30221                 -l*) ;;
30222                 *) ac_lib="-l$ac_lib" ;;
30223                 esac
30224                 LIBS=" $ac_lib  $ac_save_LIBS"
30225                 cat >conftest.$ac_ext <<_ACEOF
30226 /* confdefs.h.  */
30227 _ACEOF
30228 cat confdefs.h >>conftest.$ac_ext
30229 cat >>conftest.$ac_ext <<_ACEOF
30230 /* end confdefs.h.  */
30231 #ifdef HAVE_SYS_BSWAP_H
30232 #include <sys/bswap.h>
30233 #endif
30234 int
30235 main ()
30236 {
30237 bswap16(0)
30238   ;
30239   return 0;
30240 }
30241 _ACEOF
30242 rm -f conftest.$ac_objext conftest$ac_exeext
30243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30244   (eval $ac_link) 2>conftest.er1
30245   ac_status=$?
30246   grep -v '^ *+' conftest.er1 >conftest.err
30247   rm -f conftest.er1
30248   cat conftest.err >&5
30249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250   (exit $ac_status); } &&
30251          { ac_try='test -z "$ac_c_werror_flag"
30252                          || test ! -s conftest.err'
30253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254   (eval $ac_try) 2>&5
30255   ac_status=$?
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); }; } &&
30258          { ac_try='test -s conftest$ac_exeext'
30259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260   (eval $ac_try) 2>&5
30261   ac_status=$?
30262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263   (exit $ac_status); }; }; then
30264   eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
30265 else
30266   echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30268
30269 fi
30270 rm -f conftest.err conftest.$ac_objext \
30271       conftest$ac_exeext conftest.$ac_ext
30272         done
30273         eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
30274         LIBS="$ac_save_LIBS"
30275 fi
30276
30277 fi
30278
30279
30280 eval "ac_res=\$ac_cv_funclib_bswap16"
30281
30282 if false; then
30283
30284 for ac_func in bswap16
30285 do
30286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30287 echo "$as_me:$LINENO: checking for $ac_func" >&5
30288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30289 if eval "test \"\${$as_ac_var+set}\" = set"; then
30290   echo $ECHO_N "(cached) $ECHO_C" >&6
30291 else
30292   cat >conftest.$ac_ext <<_ACEOF
30293 /* confdefs.h.  */
30294 _ACEOF
30295 cat confdefs.h >>conftest.$ac_ext
30296 cat >>conftest.$ac_ext <<_ACEOF
30297 /* end confdefs.h.  */
30298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30300 #define $ac_func innocuous_$ac_func
30301
30302 /* System header to define __stub macros and hopefully few prototypes,
30303     which can conflict with char $ac_func (); below.
30304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30305     <limits.h> exists even on freestanding compilers.  */
30306
30307 #ifdef __STDC__
30308 # include <limits.h>
30309 #else
30310 # include <assert.h>
30311 #endif
30312
30313 #undef $ac_func
30314
30315 /* Override any gcc2 internal prototype to avoid an error.  */
30316 #ifdef __cplusplus
30317 extern "C"
30318 {
30319 #endif
30320 /* We use char because int might match the return type of a gcc2
30321    builtin and then its argument prototype would still apply.  */
30322 char $ac_func ();
30323 /* The GNU C library defines this for functions which it implements
30324     to always fail with ENOSYS.  Some functions are actually named
30325     something starting with __ and the normal name is an alias.  */
30326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30327 choke me
30328 #else
30329 char (*f) () = $ac_func;
30330 #endif
30331 #ifdef __cplusplus
30332 }
30333 #endif
30334
30335 int
30336 main ()
30337 {
30338 return f != $ac_func;
30339   ;
30340   return 0;
30341 }
30342 _ACEOF
30343 rm -f conftest.$ac_objext conftest$ac_exeext
30344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30345   (eval $ac_link) 2>conftest.er1
30346   ac_status=$?
30347   grep -v '^ *+' conftest.er1 >conftest.err
30348   rm -f conftest.er1
30349   cat conftest.err >&5
30350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); } &&
30352          { ac_try='test -z "$ac_c_werror_flag"
30353                          || test ! -s conftest.err'
30354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355   (eval $ac_try) 2>&5
30356   ac_status=$?
30357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358   (exit $ac_status); }; } &&
30359          { ac_try='test -s conftest$ac_exeext'
30360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361   (eval $ac_try) 2>&5
30362   ac_status=$?
30363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364   (exit $ac_status); }; }; then
30365   eval "$as_ac_var=yes"
30366 else
30367   echo "$as_me: failed program was:" >&5
30368 sed 's/^/| /' conftest.$ac_ext >&5
30369
30370 eval "$as_ac_var=no"
30371 fi
30372 rm -f conftest.err conftest.$ac_objext \
30373       conftest$ac_exeext conftest.$ac_ext
30374 fi
30375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30377 if test `eval echo '${'$as_ac_var'}'` = yes; then
30378   cat >>confdefs.h <<_ACEOF
30379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30380 _ACEOF
30381
30382 fi
30383 done
30384
30385 fi
30386 # bswap16
30387 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30388 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30389 eval "LIB_bswap16=$ac_res"
30390
30391 case "$ac_res" in
30392         yes)
30393         eval "ac_cv_func_bswap16=yes"
30394         eval "LIB_bswap16="
30395         cat >>confdefs.h <<_ACEOF
30396 #define $ac_tr_func 1
30397 _ACEOF
30398
30399         echo "$as_me:$LINENO: result: yes" >&5
30400 echo "${ECHO_T}yes" >&6
30401         ;;
30402         no)
30403         eval "ac_cv_func_bswap16=no"
30404         eval "LIB_bswap16="
30405         echo "$as_me:$LINENO: result: no" >&5
30406 echo "${ECHO_T}no" >&6
30407         ;;
30408         *)
30409         eval "ac_cv_func_bswap16=yes"
30410         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30411         cat >>confdefs.h <<_ACEOF
30412 #define $ac_tr_func 1
30413 _ACEOF
30414
30415         cat >>confdefs.h <<_ACEOF
30416 #define $ac_tr_lib 1
30417 _ACEOF
30418
30419         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30420 echo "${ECHO_T}yes, in $ac_res" >&6
30421         ;;
30422 esac
30423
30424
30425
30426
30427
30428
30429 echo "$as_me:$LINENO: checking for bswap32" >&5
30430 echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
30431 if test "${ac_cv_funclib_bswap32+set}" = set; then
30432   echo $ECHO_N "(cached) $ECHO_C" >&6
30433 else
30434
30435 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
30436         ac_save_LIBS="$LIBS"
30437         for ac_lib in "" ; do
30438                 case "$ac_lib" in
30439                 "") ;;
30440                 yes) ac_lib="" ;;
30441                 no) continue ;;
30442                 -l*) ;;
30443                 *) ac_lib="-l$ac_lib" ;;
30444                 esac
30445                 LIBS=" $ac_lib  $ac_save_LIBS"
30446                 cat >conftest.$ac_ext <<_ACEOF
30447 /* confdefs.h.  */
30448 _ACEOF
30449 cat confdefs.h >>conftest.$ac_ext
30450 cat >>conftest.$ac_ext <<_ACEOF
30451 /* end confdefs.h.  */
30452 #ifdef HAVE_SYS_BSWAP_H
30453 #include <sys/bswap.h>
30454 #endif
30455 int
30456 main ()
30457 {
30458 bswap32(0)
30459   ;
30460   return 0;
30461 }
30462 _ACEOF
30463 rm -f conftest.$ac_objext conftest$ac_exeext
30464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30465   (eval $ac_link) 2>conftest.er1
30466   ac_status=$?
30467   grep -v '^ *+' conftest.er1 >conftest.err
30468   rm -f conftest.er1
30469   cat conftest.err >&5
30470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471   (exit $ac_status); } &&
30472          { ac_try='test -z "$ac_c_werror_flag"
30473                          || test ! -s conftest.err'
30474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30475   (eval $ac_try) 2>&5
30476   ac_status=$?
30477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478   (exit $ac_status); }; } &&
30479          { ac_try='test -s conftest$ac_exeext'
30480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30481   (eval $ac_try) 2>&5
30482   ac_status=$?
30483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484   (exit $ac_status); }; }; then
30485   eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
30486 else
30487   echo "$as_me: failed program was:" >&5
30488 sed 's/^/| /' conftest.$ac_ext >&5
30489
30490 fi
30491 rm -f conftest.err conftest.$ac_objext \
30492       conftest$ac_exeext conftest.$ac_ext
30493         done
30494         eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
30495         LIBS="$ac_save_LIBS"
30496 fi
30497
30498 fi
30499
30500
30501 eval "ac_res=\$ac_cv_funclib_bswap32"
30502
30503 if false; then
30504
30505 for ac_func in bswap32
30506 do
30507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30508 echo "$as_me:$LINENO: checking for $ac_func" >&5
30509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30510 if eval "test \"\${$as_ac_var+set}\" = set"; then
30511   echo $ECHO_N "(cached) $ECHO_C" >&6
30512 else
30513   cat >conftest.$ac_ext <<_ACEOF
30514 /* confdefs.h.  */
30515 _ACEOF
30516 cat confdefs.h >>conftest.$ac_ext
30517 cat >>conftest.$ac_ext <<_ACEOF
30518 /* end confdefs.h.  */
30519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30521 #define $ac_func innocuous_$ac_func
30522
30523 /* System header to define __stub macros and hopefully few prototypes,
30524     which can conflict with char $ac_func (); below.
30525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30526     <limits.h> exists even on freestanding compilers.  */
30527
30528 #ifdef __STDC__
30529 # include <limits.h>
30530 #else
30531 # include <assert.h>
30532 #endif
30533
30534 #undef $ac_func
30535
30536 /* Override any gcc2 internal prototype to avoid an error.  */
30537 #ifdef __cplusplus
30538 extern "C"
30539 {
30540 #endif
30541 /* We use char because int might match the return type of a gcc2
30542    builtin and then its argument prototype would still apply.  */
30543 char $ac_func ();
30544 /* The GNU C library defines this for functions which it implements
30545     to always fail with ENOSYS.  Some functions are actually named
30546     something starting with __ and the normal name is an alias.  */
30547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30548 choke me
30549 #else
30550 char (*f) () = $ac_func;
30551 #endif
30552 #ifdef __cplusplus
30553 }
30554 #endif
30555
30556 int
30557 main ()
30558 {
30559 return f != $ac_func;
30560   ;
30561   return 0;
30562 }
30563 _ACEOF
30564 rm -f conftest.$ac_objext conftest$ac_exeext
30565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30566   (eval $ac_link) 2>conftest.er1
30567   ac_status=$?
30568   grep -v '^ *+' conftest.er1 >conftest.err
30569   rm -f conftest.er1
30570   cat conftest.err >&5
30571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572   (exit $ac_status); } &&
30573          { ac_try='test -z "$ac_c_werror_flag"
30574                          || test ! -s conftest.err'
30575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30576   (eval $ac_try) 2>&5
30577   ac_status=$?
30578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579   (exit $ac_status); }; } &&
30580          { ac_try='test -s conftest$ac_exeext'
30581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30582   (eval $ac_try) 2>&5
30583   ac_status=$?
30584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585   (exit $ac_status); }; }; then
30586   eval "$as_ac_var=yes"
30587 else
30588   echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30590
30591 eval "$as_ac_var=no"
30592 fi
30593 rm -f conftest.err conftest.$ac_objext \
30594       conftest$ac_exeext conftest.$ac_ext
30595 fi
30596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30598 if test `eval echo '${'$as_ac_var'}'` = yes; then
30599   cat >>confdefs.h <<_ACEOF
30600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30601 _ACEOF
30602
30603 fi
30604 done
30605
30606 fi
30607 # bswap32
30608 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30609 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30610 eval "LIB_bswap32=$ac_res"
30611
30612 case "$ac_res" in
30613         yes)
30614         eval "ac_cv_func_bswap32=yes"
30615         eval "LIB_bswap32="
30616         cat >>confdefs.h <<_ACEOF
30617 #define $ac_tr_func 1
30618 _ACEOF
30619
30620         echo "$as_me:$LINENO: result: yes" >&5
30621 echo "${ECHO_T}yes" >&6
30622         ;;
30623         no)
30624         eval "ac_cv_func_bswap32=no"
30625         eval "LIB_bswap32="
30626         echo "$as_me:$LINENO: result: no" >&5
30627 echo "${ECHO_T}no" >&6
30628         ;;
30629         *)
30630         eval "ac_cv_func_bswap32=yes"
30631         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30632         cat >>confdefs.h <<_ACEOF
30633 #define $ac_tr_func 1
30634 _ACEOF
30635
30636         cat >>confdefs.h <<_ACEOF
30637 #define $ac_tr_lib 1
30638 _ACEOF
30639
30640         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30641 echo "${ECHO_T}yes, in $ac_res" >&6
30642         ;;
30643 esac
30644
30645
30646
30647
30648
30649
30650 echo "$as_me:$LINENO: checking for pidfile" >&5
30651 echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
30652 if test "${ac_cv_funclib_pidfile+set}" = set; then
30653   echo $ECHO_N "(cached) $ECHO_C" >&6
30654 else
30655
30656 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
30657         ac_save_LIBS="$LIBS"
30658         for ac_lib in "" util; do
30659                 case "$ac_lib" in
30660                 "") ;;
30661                 yes) ac_lib="" ;;
30662                 no) continue ;;
30663                 -l*) ;;
30664                 *) ac_lib="-l$ac_lib" ;;
30665                 esac
30666                 LIBS=" $ac_lib  $ac_save_LIBS"
30667                 cat >conftest.$ac_ext <<_ACEOF
30668 /* confdefs.h.  */
30669 _ACEOF
30670 cat confdefs.h >>conftest.$ac_ext
30671 cat >>conftest.$ac_ext <<_ACEOF
30672 /* end confdefs.h.  */
30673 #ifdef HAVE_UTIL_H
30674 #include <util.h>
30675 #endif
30676 int
30677 main ()
30678 {
30679 pidfile(0)
30680   ;
30681   return 0;
30682 }
30683 _ACEOF
30684 rm -f conftest.$ac_objext conftest$ac_exeext
30685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30686   (eval $ac_link) 2>conftest.er1
30687   ac_status=$?
30688   grep -v '^ *+' conftest.er1 >conftest.err
30689   rm -f conftest.er1
30690   cat conftest.err >&5
30691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692   (exit $ac_status); } &&
30693          { ac_try='test -z "$ac_c_werror_flag"
30694                          || test ! -s conftest.err'
30695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30696   (eval $ac_try) 2>&5
30697   ac_status=$?
30698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699   (exit $ac_status); }; } &&
30700          { ac_try='test -s conftest$ac_exeext'
30701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30702   (eval $ac_try) 2>&5
30703   ac_status=$?
30704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705   (exit $ac_status); }; }; then
30706   eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
30707 else
30708   echo "$as_me: failed program was:" >&5
30709 sed 's/^/| /' conftest.$ac_ext >&5
30710
30711 fi
30712 rm -f conftest.err conftest.$ac_objext \
30713       conftest$ac_exeext conftest.$ac_ext
30714         done
30715         eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
30716         LIBS="$ac_save_LIBS"
30717 fi
30718
30719 fi
30720
30721
30722 eval "ac_res=\$ac_cv_funclib_pidfile"
30723
30724 if false; then
30725
30726 for ac_func in pidfile
30727 do
30728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30729 echo "$as_me:$LINENO: checking for $ac_func" >&5
30730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30731 if eval "test \"\${$as_ac_var+set}\" = set"; then
30732   echo $ECHO_N "(cached) $ECHO_C" >&6
30733 else
30734   cat >conftest.$ac_ext <<_ACEOF
30735 /* confdefs.h.  */
30736 _ACEOF
30737 cat confdefs.h >>conftest.$ac_ext
30738 cat >>conftest.$ac_ext <<_ACEOF
30739 /* end confdefs.h.  */
30740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30742 #define $ac_func innocuous_$ac_func
30743
30744 /* System header to define __stub macros and hopefully few prototypes,
30745     which can conflict with char $ac_func (); below.
30746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30747     <limits.h> exists even on freestanding compilers.  */
30748
30749 #ifdef __STDC__
30750 # include <limits.h>
30751 #else
30752 # include <assert.h>
30753 #endif
30754
30755 #undef $ac_func
30756
30757 /* Override any gcc2 internal prototype to avoid an error.  */
30758 #ifdef __cplusplus
30759 extern "C"
30760 {
30761 #endif
30762 /* We use char because int might match the return type of a gcc2
30763    builtin and then its argument prototype would still apply.  */
30764 char $ac_func ();
30765 /* The GNU C library defines this for functions which it implements
30766     to always fail with ENOSYS.  Some functions are actually named
30767     something starting with __ and the normal name is an alias.  */
30768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30769 choke me
30770 #else
30771 char (*f) () = $ac_func;
30772 #endif
30773 #ifdef __cplusplus
30774 }
30775 #endif
30776
30777 int
30778 main ()
30779 {
30780 return f != $ac_func;
30781   ;
30782   return 0;
30783 }
30784 _ACEOF
30785 rm -f conftest.$ac_objext conftest$ac_exeext
30786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30787   (eval $ac_link) 2>conftest.er1
30788   ac_status=$?
30789   grep -v '^ *+' conftest.er1 >conftest.err
30790   rm -f conftest.er1
30791   cat conftest.err >&5
30792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793   (exit $ac_status); } &&
30794          { ac_try='test -z "$ac_c_werror_flag"
30795                          || test ! -s conftest.err'
30796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797   (eval $ac_try) 2>&5
30798   ac_status=$?
30799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800   (exit $ac_status); }; } &&
30801          { ac_try='test -s conftest$ac_exeext'
30802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803   (eval $ac_try) 2>&5
30804   ac_status=$?
30805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806   (exit $ac_status); }; }; then
30807   eval "$as_ac_var=yes"
30808 else
30809   echo "$as_me: failed program was:" >&5
30810 sed 's/^/| /' conftest.$ac_ext >&5
30811
30812 eval "$as_ac_var=no"
30813 fi
30814 rm -f conftest.err conftest.$ac_objext \
30815       conftest$ac_exeext conftest.$ac_ext
30816 fi
30817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30819 if test `eval echo '${'$as_ac_var'}'` = yes; then
30820   cat >>confdefs.h <<_ACEOF
30821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30822 _ACEOF
30823
30824 fi
30825 done
30826
30827 fi
30828 # pidfile
30829 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30830 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30831 eval "LIB_pidfile=$ac_res"
30832
30833 case "$ac_res" in
30834         yes)
30835         eval "ac_cv_func_pidfile=yes"
30836         eval "LIB_pidfile="
30837         cat >>confdefs.h <<_ACEOF
30838 #define $ac_tr_func 1
30839 _ACEOF
30840
30841         echo "$as_me:$LINENO: result: yes" >&5
30842 echo "${ECHO_T}yes" >&6
30843         ;;
30844         no)
30845         eval "ac_cv_func_pidfile=no"
30846         eval "LIB_pidfile="
30847         echo "$as_me:$LINENO: result: no" >&5
30848 echo "${ECHO_T}no" >&6
30849         ;;
30850         *)
30851         eval "ac_cv_func_pidfile=yes"
30852         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30853         cat >>confdefs.h <<_ACEOF
30854 #define $ac_tr_func 1
30855 _ACEOF
30856
30857         cat >>confdefs.h <<_ACEOF
30858 #define $ac_tr_lib 1
30859 _ACEOF
30860
30861         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30862 echo "${ECHO_T}yes, in $ac_res" >&6
30863         ;;
30864 esac
30865
30866
30867
30868
30869
30870
30871
30872 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
30873 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
30874 if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
30875   echo $ECHO_N "(cached) $ECHO_C" >&6
30876 else
30877
30878 if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
30879         ac_save_LIBS="$LIBS"
30880         for ac_lib in "" ; do
30881                 case "$ac_lib" in
30882                 "") ;;
30883                 yes) ac_lib="" ;;
30884                 no) continue ;;
30885                 -l*) ;;
30886                 *) ac_lib="-l$ac_lib" ;;
30887                 esac
30888                 LIBS=" $ac_lib  $ac_save_LIBS"
30889                 cat >conftest.$ac_ext <<_ACEOF
30890 /* confdefs.h.  */
30891 _ACEOF
30892 cat confdefs.h >>conftest.$ac_ext
30893 cat >>conftest.$ac_ext <<_ACEOF
30894 /* end confdefs.h.  */
30895 #ifdef HAVE_NETDB_H
30896 #include <netdb.h>
30897 #endif
30898 int
30899 main ()
30900 {
30901 getaddrinfo(0,0,0,0)
30902   ;
30903   return 0;
30904 }
30905 _ACEOF
30906 rm -f conftest.$ac_objext conftest$ac_exeext
30907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30908   (eval $ac_link) 2>conftest.er1
30909   ac_status=$?
30910   grep -v '^ *+' conftest.er1 >conftest.err
30911   rm -f conftest.er1
30912   cat conftest.err >&5
30913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914   (exit $ac_status); } &&
30915          { ac_try='test -z "$ac_c_werror_flag"
30916                          || test ! -s conftest.err'
30917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30918   (eval $ac_try) 2>&5
30919   ac_status=$?
30920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921   (exit $ac_status); }; } &&
30922          { ac_try='test -s conftest$ac_exeext'
30923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30924   (eval $ac_try) 2>&5
30925   ac_status=$?
30926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927   (exit $ac_status); }; }; then
30928   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
30929 else
30930   echo "$as_me: failed program was:" >&5
30931 sed 's/^/| /' conftest.$ac_ext >&5
30932
30933 fi
30934 rm -f conftest.err conftest.$ac_objext \
30935       conftest$ac_exeext conftest.$ac_ext
30936         done
30937         eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
30938         LIBS="$ac_save_LIBS"
30939 fi
30940
30941 fi
30942
30943
30944 eval "ac_res=\$ac_cv_funclib_getaddrinfo"
30945
30946 if false; then
30947
30948 for ac_func in getaddrinfo
30949 do
30950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30951 echo "$as_me:$LINENO: checking for $ac_func" >&5
30952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30953 if eval "test \"\${$as_ac_var+set}\" = set"; then
30954   echo $ECHO_N "(cached) $ECHO_C" >&6
30955 else
30956   cat >conftest.$ac_ext <<_ACEOF
30957 /* confdefs.h.  */
30958 _ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h.  */
30962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30964 #define $ac_func innocuous_$ac_func
30965
30966 /* System header to define __stub macros and hopefully few prototypes,
30967     which can conflict with char $ac_func (); below.
30968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30969     <limits.h> exists even on freestanding compilers.  */
30970
30971 #ifdef __STDC__
30972 # include <limits.h>
30973 #else
30974 # include <assert.h>
30975 #endif
30976
30977 #undef $ac_func
30978
30979 /* Override any gcc2 internal prototype to avoid an error.  */
30980 #ifdef __cplusplus
30981 extern "C"
30982 {
30983 #endif
30984 /* We use char because int might match the return type of a gcc2
30985    builtin and then its argument prototype would still apply.  */
30986 char $ac_func ();
30987 /* The GNU C library defines this for functions which it implements
30988     to always fail with ENOSYS.  Some functions are actually named
30989     something starting with __ and the normal name is an alias.  */
30990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30991 choke me
30992 #else
30993 char (*f) () = $ac_func;
30994 #endif
30995 #ifdef __cplusplus
30996 }
30997 #endif
30998
30999 int
31000 main ()
31001 {
31002 return f != $ac_func;
31003   ;
31004   return 0;
31005 }
31006 _ACEOF
31007 rm -f conftest.$ac_objext conftest$ac_exeext
31008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31009   (eval $ac_link) 2>conftest.er1
31010   ac_status=$?
31011   grep -v '^ *+' conftest.er1 >conftest.err
31012   rm -f conftest.er1
31013   cat conftest.err >&5
31014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); } &&
31016          { ac_try='test -z "$ac_c_werror_flag"
31017                          || test ! -s conftest.err'
31018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31019   (eval $ac_try) 2>&5
31020   ac_status=$?
31021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022   (exit $ac_status); }; } &&
31023          { ac_try='test -s conftest$ac_exeext'
31024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31025   (eval $ac_try) 2>&5
31026   ac_status=$?
31027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028   (exit $ac_status); }; }; then
31029   eval "$as_ac_var=yes"
31030 else
31031   echo "$as_me: failed program was:" >&5
31032 sed 's/^/| /' conftest.$ac_ext >&5
31033
31034 eval "$as_ac_var=no"
31035 fi
31036 rm -f conftest.err conftest.$ac_objext \
31037       conftest$ac_exeext conftest.$ac_ext
31038 fi
31039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31041 if test `eval echo '${'$as_ac_var'}'` = yes; then
31042   cat >>confdefs.h <<_ACEOF
31043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31044 _ACEOF
31045
31046 fi
31047 done
31048
31049 fi
31050 # getaddrinfo
31051 eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31052 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31053 eval "LIB_getaddrinfo=$ac_res"
31054
31055 case "$ac_res" in
31056         yes)
31057         eval "ac_cv_func_getaddrinfo=yes"
31058         eval "LIB_getaddrinfo="
31059         cat >>confdefs.h <<_ACEOF
31060 #define $ac_tr_func 1
31061 _ACEOF
31062
31063         echo "$as_me:$LINENO: result: yes" >&5
31064 echo "${ECHO_T}yes" >&6
31065         ;;
31066         no)
31067         eval "ac_cv_func_getaddrinfo=no"
31068         eval "LIB_getaddrinfo="
31069         echo "$as_me:$LINENO: result: no" >&5
31070 echo "${ECHO_T}no" >&6
31071         ;;
31072         *)
31073         eval "ac_cv_func_getaddrinfo=yes"
31074         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31075         cat >>confdefs.h <<_ACEOF
31076 #define $ac_tr_func 1
31077 _ACEOF
31078
31079         cat >>confdefs.h <<_ACEOF
31080 #define $ac_tr_lib 1
31081 _ACEOF
31082
31083         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31084 echo "${ECHO_T}yes, in $ac_res" >&6
31085         ;;
31086 esac
31087
31088
31089 if test -n "$LIB_getaddrinfo"; then
31090         LIBS="$LIB_getaddrinfo $LIBS"
31091 fi
31092
31093 if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
31094         case $LIBOBJS in
31095     "getaddrinfo.$ac_objext"   | \
31096   *" getaddrinfo.$ac_objext"   | \
31097     "getaddrinfo.$ac_objext "* | \
31098   *" getaddrinfo.$ac_objext "* ) ;;
31099   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
31100 esac
31101
31102 fi
31103
31104
31105
31106
31107
31108
31109 echo "$as_me:$LINENO: checking for getnameinfo" >&5
31110 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
31111 if test "${ac_cv_funclib_getnameinfo+set}" = set; then
31112   echo $ECHO_N "(cached) $ECHO_C" >&6
31113 else
31114
31115 if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
31116         ac_save_LIBS="$LIBS"
31117         for ac_lib in "" ; do
31118                 case "$ac_lib" in
31119                 "") ;;
31120                 yes) ac_lib="" ;;
31121                 no) continue ;;
31122                 -l*) ;;
31123                 *) ac_lib="-l$ac_lib" ;;
31124                 esac
31125                 LIBS=" $ac_lib  $ac_save_LIBS"
31126                 cat >conftest.$ac_ext <<_ACEOF
31127 /* confdefs.h.  */
31128 _ACEOF
31129 cat confdefs.h >>conftest.$ac_ext
31130 cat >>conftest.$ac_ext <<_ACEOF
31131 /* end confdefs.h.  */
31132 #ifdef HAVE_NETDB_H
31133 #include <netdb.h>
31134 #endif
31135 int
31136 main ()
31137 {
31138 getnameinfo(0,0,0,0,0,0,0)
31139   ;
31140   return 0;
31141 }
31142 _ACEOF
31143 rm -f conftest.$ac_objext conftest$ac_exeext
31144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31145   (eval $ac_link) 2>conftest.er1
31146   ac_status=$?
31147   grep -v '^ *+' conftest.er1 >conftest.err
31148   rm -f conftest.er1
31149   cat conftest.err >&5
31150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151   (exit $ac_status); } &&
31152          { ac_try='test -z "$ac_c_werror_flag"
31153                          || test ! -s conftest.err'
31154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31155   (eval $ac_try) 2>&5
31156   ac_status=$?
31157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158   (exit $ac_status); }; } &&
31159          { ac_try='test -s conftest$ac_exeext'
31160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31161   (eval $ac_try) 2>&5
31162   ac_status=$?
31163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164   (exit $ac_status); }; }; then
31165   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
31166 else
31167   echo "$as_me: failed program was:" >&5
31168 sed 's/^/| /' conftest.$ac_ext >&5
31169
31170 fi
31171 rm -f conftest.err conftest.$ac_objext \
31172       conftest$ac_exeext conftest.$ac_ext
31173         done
31174         eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
31175         LIBS="$ac_save_LIBS"
31176 fi
31177
31178 fi
31179
31180
31181 eval "ac_res=\$ac_cv_funclib_getnameinfo"
31182
31183 if false; then
31184
31185 for ac_func in getnameinfo
31186 do
31187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31188 echo "$as_me:$LINENO: checking for $ac_func" >&5
31189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31190 if eval "test \"\${$as_ac_var+set}\" = set"; then
31191   echo $ECHO_N "(cached) $ECHO_C" >&6
31192 else
31193   cat >conftest.$ac_ext <<_ACEOF
31194 /* confdefs.h.  */
31195 _ACEOF
31196 cat confdefs.h >>conftest.$ac_ext
31197 cat >>conftest.$ac_ext <<_ACEOF
31198 /* end confdefs.h.  */
31199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31201 #define $ac_func innocuous_$ac_func
31202
31203 /* System header to define __stub macros and hopefully few prototypes,
31204     which can conflict with char $ac_func (); below.
31205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31206     <limits.h> exists even on freestanding compilers.  */
31207
31208 #ifdef __STDC__
31209 # include <limits.h>
31210 #else
31211 # include <assert.h>
31212 #endif
31213
31214 #undef $ac_func
31215
31216 /* Override any gcc2 internal prototype to avoid an error.  */
31217 #ifdef __cplusplus
31218 extern "C"
31219 {
31220 #endif
31221 /* We use char because int might match the return type of a gcc2
31222    builtin and then its argument prototype would still apply.  */
31223 char $ac_func ();
31224 /* The GNU C library defines this for functions which it implements
31225     to always fail with ENOSYS.  Some functions are actually named
31226     something starting with __ and the normal name is an alias.  */
31227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31228 choke me
31229 #else
31230 char (*f) () = $ac_func;
31231 #endif
31232 #ifdef __cplusplus
31233 }
31234 #endif
31235
31236 int
31237 main ()
31238 {
31239 return f != $ac_func;
31240   ;
31241   return 0;
31242 }
31243 _ACEOF
31244 rm -f conftest.$ac_objext conftest$ac_exeext
31245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31246   (eval $ac_link) 2>conftest.er1
31247   ac_status=$?
31248   grep -v '^ *+' conftest.er1 >conftest.err
31249   rm -f conftest.er1
31250   cat conftest.err >&5
31251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252   (exit $ac_status); } &&
31253          { ac_try='test -z "$ac_c_werror_flag"
31254                          || test ! -s conftest.err'
31255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31256   (eval $ac_try) 2>&5
31257   ac_status=$?
31258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259   (exit $ac_status); }; } &&
31260          { ac_try='test -s conftest$ac_exeext'
31261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31262   (eval $ac_try) 2>&5
31263   ac_status=$?
31264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265   (exit $ac_status); }; }; then
31266   eval "$as_ac_var=yes"
31267 else
31268   echo "$as_me: failed program was:" >&5
31269 sed 's/^/| /' conftest.$ac_ext >&5
31270
31271 eval "$as_ac_var=no"
31272 fi
31273 rm -f conftest.err conftest.$ac_objext \
31274       conftest$ac_exeext conftest.$ac_ext
31275 fi
31276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31278 if test `eval echo '${'$as_ac_var'}'` = yes; then
31279   cat >>confdefs.h <<_ACEOF
31280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31281 _ACEOF
31282
31283 fi
31284 done
31285
31286 fi
31287 # getnameinfo
31288 eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31289 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31290 eval "LIB_getnameinfo=$ac_res"
31291
31292 case "$ac_res" in
31293         yes)
31294         eval "ac_cv_func_getnameinfo=yes"
31295         eval "LIB_getnameinfo="
31296         cat >>confdefs.h <<_ACEOF
31297 #define $ac_tr_func 1
31298 _ACEOF
31299
31300         echo "$as_me:$LINENO: result: yes" >&5
31301 echo "${ECHO_T}yes" >&6
31302         ;;
31303         no)
31304         eval "ac_cv_func_getnameinfo=no"
31305         eval "LIB_getnameinfo="
31306         echo "$as_me:$LINENO: result: no" >&5
31307 echo "${ECHO_T}no" >&6
31308         ;;
31309         *)
31310         eval "ac_cv_func_getnameinfo=yes"
31311         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31312         cat >>confdefs.h <<_ACEOF
31313 #define $ac_tr_func 1
31314 _ACEOF
31315
31316         cat >>confdefs.h <<_ACEOF
31317 #define $ac_tr_lib 1
31318 _ACEOF
31319
31320         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31321 echo "${ECHO_T}yes, in $ac_res" >&6
31322         ;;
31323 esac
31324
31325
31326 if test -n "$LIB_getnameinfo"; then
31327         LIBS="$LIB_getnameinfo $LIBS"
31328 fi
31329
31330 if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
31331         case $LIBOBJS in
31332     "getnameinfo.$ac_objext"   | \
31333   *" getnameinfo.$ac_objext"   | \
31334     "getnameinfo.$ac_objext "* | \
31335   *" getnameinfo.$ac_objext "* ) ;;
31336   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" ;;
31337 esac
31338
31339 fi
31340
31341
31342
31343
31344
31345
31346 echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
31347 echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
31348 if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
31349   echo $ECHO_N "(cached) $ECHO_C" >&6
31350 else
31351
31352 if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
31353         ac_save_LIBS="$LIBS"
31354         for ac_lib in "" ; do
31355                 case "$ac_lib" in
31356                 "") ;;
31357                 yes) ac_lib="" ;;
31358                 no) continue ;;
31359                 -l*) ;;
31360                 *) ac_lib="-l$ac_lib" ;;
31361                 esac
31362                 LIBS=" $ac_lib  $ac_save_LIBS"
31363                 cat >conftest.$ac_ext <<_ACEOF
31364 /* confdefs.h.  */
31365 _ACEOF
31366 cat confdefs.h >>conftest.$ac_ext
31367 cat >>conftest.$ac_ext <<_ACEOF
31368 /* end confdefs.h.  */
31369 #ifdef HAVE_NETDB_H
31370 #include <netdb.h>
31371 #endif
31372 int
31373 main ()
31374 {
31375 freeaddrinfo(0)
31376   ;
31377   return 0;
31378 }
31379 _ACEOF
31380 rm -f conftest.$ac_objext conftest$ac_exeext
31381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31382   (eval $ac_link) 2>conftest.er1
31383   ac_status=$?
31384   grep -v '^ *+' conftest.er1 >conftest.err
31385   rm -f conftest.er1
31386   cat conftest.err >&5
31387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388   (exit $ac_status); } &&
31389          { ac_try='test -z "$ac_c_werror_flag"
31390                          || test ! -s conftest.err'
31391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392   (eval $ac_try) 2>&5
31393   ac_status=$?
31394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395   (exit $ac_status); }; } &&
31396          { ac_try='test -s conftest$ac_exeext'
31397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398   (eval $ac_try) 2>&5
31399   ac_status=$?
31400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401   (exit $ac_status); }; }; then
31402   eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
31403 else
31404   echo "$as_me: failed program was:" >&5
31405 sed 's/^/| /' conftest.$ac_ext >&5
31406
31407 fi
31408 rm -f conftest.err conftest.$ac_objext \
31409       conftest$ac_exeext conftest.$ac_ext
31410         done
31411         eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
31412         LIBS="$ac_save_LIBS"
31413 fi
31414
31415 fi
31416
31417
31418 eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
31419
31420 if false; then
31421
31422 for ac_func in freeaddrinfo
31423 do
31424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31425 echo "$as_me:$LINENO: checking for $ac_func" >&5
31426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31427 if eval "test \"\${$as_ac_var+set}\" = set"; then
31428   echo $ECHO_N "(cached) $ECHO_C" >&6
31429 else
31430   cat >conftest.$ac_ext <<_ACEOF
31431 /* confdefs.h.  */
31432 _ACEOF
31433 cat confdefs.h >>conftest.$ac_ext
31434 cat >>conftest.$ac_ext <<_ACEOF
31435 /* end confdefs.h.  */
31436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31438 #define $ac_func innocuous_$ac_func
31439
31440 /* System header to define __stub macros and hopefully few prototypes,
31441     which can conflict with char $ac_func (); below.
31442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31443     <limits.h> exists even on freestanding compilers.  */
31444
31445 #ifdef __STDC__
31446 # include <limits.h>
31447 #else
31448 # include <assert.h>
31449 #endif
31450
31451 #undef $ac_func
31452
31453 /* Override any gcc2 internal prototype to avoid an error.  */
31454 #ifdef __cplusplus
31455 extern "C"
31456 {
31457 #endif
31458 /* We use char because int might match the return type of a gcc2
31459    builtin and then its argument prototype would still apply.  */
31460 char $ac_func ();
31461 /* The GNU C library defines this for functions which it implements
31462     to always fail with ENOSYS.  Some functions are actually named
31463     something starting with __ and the normal name is an alias.  */
31464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31465 choke me
31466 #else
31467 char (*f) () = $ac_func;
31468 #endif
31469 #ifdef __cplusplus
31470 }
31471 #endif
31472
31473 int
31474 main ()
31475 {
31476 return f != $ac_func;
31477   ;
31478   return 0;
31479 }
31480 _ACEOF
31481 rm -f conftest.$ac_objext conftest$ac_exeext
31482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31483   (eval $ac_link) 2>conftest.er1
31484   ac_status=$?
31485   grep -v '^ *+' conftest.er1 >conftest.err
31486   rm -f conftest.er1
31487   cat conftest.err >&5
31488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489   (exit $ac_status); } &&
31490          { ac_try='test -z "$ac_c_werror_flag"
31491                          || test ! -s conftest.err'
31492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493   (eval $ac_try) 2>&5
31494   ac_status=$?
31495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496   (exit $ac_status); }; } &&
31497          { ac_try='test -s conftest$ac_exeext'
31498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499   (eval $ac_try) 2>&5
31500   ac_status=$?
31501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502   (exit $ac_status); }; }; then
31503   eval "$as_ac_var=yes"
31504 else
31505   echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31507
31508 eval "$as_ac_var=no"
31509 fi
31510 rm -f conftest.err conftest.$ac_objext \
31511       conftest$ac_exeext conftest.$ac_ext
31512 fi
31513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31515 if test `eval echo '${'$as_ac_var'}'` = yes; then
31516   cat >>confdefs.h <<_ACEOF
31517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31518 _ACEOF
31519
31520 fi
31521 done
31522
31523 fi
31524 # freeaddrinfo
31525 eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31526 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31527 eval "LIB_freeaddrinfo=$ac_res"
31528
31529 case "$ac_res" in
31530         yes)
31531         eval "ac_cv_func_freeaddrinfo=yes"
31532         eval "LIB_freeaddrinfo="
31533         cat >>confdefs.h <<_ACEOF
31534 #define $ac_tr_func 1
31535 _ACEOF
31536
31537         echo "$as_me:$LINENO: result: yes" >&5
31538 echo "${ECHO_T}yes" >&6
31539         ;;
31540         no)
31541         eval "ac_cv_func_freeaddrinfo=no"
31542         eval "LIB_freeaddrinfo="
31543         echo "$as_me:$LINENO: result: no" >&5
31544 echo "${ECHO_T}no" >&6
31545         ;;
31546         *)
31547         eval "ac_cv_func_freeaddrinfo=yes"
31548         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31549         cat >>confdefs.h <<_ACEOF
31550 #define $ac_tr_func 1
31551 _ACEOF
31552
31553         cat >>confdefs.h <<_ACEOF
31554 #define $ac_tr_lib 1
31555 _ACEOF
31556
31557         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31558 echo "${ECHO_T}yes, in $ac_res" >&6
31559         ;;
31560 esac
31561
31562
31563 if test -n "$LIB_freeaddrinfo"; then
31564         LIBS="$LIB_freeaddrinfo $LIBS"
31565 fi
31566
31567 if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
31568         case $LIBOBJS in
31569     "freeaddrinfo.$ac_objext"   | \
31570   *" freeaddrinfo.$ac_objext"   | \
31571     "freeaddrinfo.$ac_objext "* | \
31572   *" freeaddrinfo.$ac_objext "* ) ;;
31573   *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" ;;
31574 esac
31575
31576 fi
31577
31578
31579
31580
31581
31582
31583 echo "$as_me:$LINENO: checking for gai_strerror" >&5
31584 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
31585 if test "${ac_cv_funclib_gai_strerror+set}" = set; then
31586   echo $ECHO_N "(cached) $ECHO_C" >&6
31587 else
31588
31589 if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
31590         ac_save_LIBS="$LIBS"
31591         for ac_lib in "" ; do
31592                 case "$ac_lib" in
31593                 "") ;;
31594                 yes) ac_lib="" ;;
31595                 no) continue ;;
31596                 -l*) ;;
31597                 *) ac_lib="-l$ac_lib" ;;
31598                 esac
31599                 LIBS=" $ac_lib  $ac_save_LIBS"
31600                 cat >conftest.$ac_ext <<_ACEOF
31601 /* confdefs.h.  */
31602 _ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h.  */
31606 #ifdef HAVE_NETDB_H
31607 #include <netdb.h>
31608 #endif
31609 int
31610 main ()
31611 {
31612 gai_strerror(0)
31613   ;
31614   return 0;
31615 }
31616 _ACEOF
31617 rm -f conftest.$ac_objext conftest$ac_exeext
31618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31619   (eval $ac_link) 2>conftest.er1
31620   ac_status=$?
31621   grep -v '^ *+' conftest.er1 >conftest.err
31622   rm -f conftest.er1
31623   cat conftest.err >&5
31624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625   (exit $ac_status); } &&
31626          { ac_try='test -z "$ac_c_werror_flag"
31627                          || test ! -s conftest.err'
31628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629   (eval $ac_try) 2>&5
31630   ac_status=$?
31631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632   (exit $ac_status); }; } &&
31633          { ac_try='test -s conftest$ac_exeext'
31634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635   (eval $ac_try) 2>&5
31636   ac_status=$?
31637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638   (exit $ac_status); }; }; then
31639   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
31640 else
31641   echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31643
31644 fi
31645 rm -f conftest.err conftest.$ac_objext \
31646       conftest$ac_exeext conftest.$ac_ext
31647         done
31648         eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
31649         LIBS="$ac_save_LIBS"
31650 fi
31651
31652 fi
31653
31654
31655 eval "ac_res=\$ac_cv_funclib_gai_strerror"
31656
31657 if false; then
31658
31659 for ac_func in gai_strerror
31660 do
31661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31662 echo "$as_me:$LINENO: checking for $ac_func" >&5
31663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31664 if eval "test \"\${$as_ac_var+set}\" = set"; then
31665   echo $ECHO_N "(cached) $ECHO_C" >&6
31666 else
31667   cat >conftest.$ac_ext <<_ACEOF
31668 /* confdefs.h.  */
31669 _ACEOF
31670 cat confdefs.h >>conftest.$ac_ext
31671 cat >>conftest.$ac_ext <<_ACEOF
31672 /* end confdefs.h.  */
31673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31675 #define $ac_func innocuous_$ac_func
31676
31677 /* System header to define __stub macros and hopefully few prototypes,
31678     which can conflict with char $ac_func (); below.
31679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31680     <limits.h> exists even on freestanding compilers.  */
31681
31682 #ifdef __STDC__
31683 # include <limits.h>
31684 #else
31685 # include <assert.h>
31686 #endif
31687
31688 #undef $ac_func
31689
31690 /* Override any gcc2 internal prototype to avoid an error.  */
31691 #ifdef __cplusplus
31692 extern "C"
31693 {
31694 #endif
31695 /* We use char because int might match the return type of a gcc2
31696    builtin and then its argument prototype would still apply.  */
31697 char $ac_func ();
31698 /* The GNU C library defines this for functions which it implements
31699     to always fail with ENOSYS.  Some functions are actually named
31700     something starting with __ and the normal name is an alias.  */
31701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31702 choke me
31703 #else
31704 char (*f) () = $ac_func;
31705 #endif
31706 #ifdef __cplusplus
31707 }
31708 #endif
31709
31710 int
31711 main ()
31712 {
31713 return f != $ac_func;
31714   ;
31715   return 0;
31716 }
31717 _ACEOF
31718 rm -f conftest.$ac_objext conftest$ac_exeext
31719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31720   (eval $ac_link) 2>conftest.er1
31721   ac_status=$?
31722   grep -v '^ *+' conftest.er1 >conftest.err
31723   rm -f conftest.er1
31724   cat conftest.err >&5
31725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726   (exit $ac_status); } &&
31727          { ac_try='test -z "$ac_c_werror_flag"
31728                          || test ! -s conftest.err'
31729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31730   (eval $ac_try) 2>&5
31731   ac_status=$?
31732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733   (exit $ac_status); }; } &&
31734          { ac_try='test -s conftest$ac_exeext'
31735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736   (eval $ac_try) 2>&5
31737   ac_status=$?
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); }; }; then
31740   eval "$as_ac_var=yes"
31741 else
31742   echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31744
31745 eval "$as_ac_var=no"
31746 fi
31747 rm -f conftest.err conftest.$ac_objext \
31748       conftest$ac_exeext conftest.$ac_ext
31749 fi
31750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31752 if test `eval echo '${'$as_ac_var'}'` = yes; then
31753   cat >>confdefs.h <<_ACEOF
31754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31755 _ACEOF
31756
31757 fi
31758 done
31759
31760 fi
31761 # gai_strerror
31762 eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31763 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31764 eval "LIB_gai_strerror=$ac_res"
31765
31766 case "$ac_res" in
31767         yes)
31768         eval "ac_cv_func_gai_strerror=yes"
31769         eval "LIB_gai_strerror="
31770         cat >>confdefs.h <<_ACEOF
31771 #define $ac_tr_func 1
31772 _ACEOF
31773
31774         echo "$as_me:$LINENO: result: yes" >&5
31775 echo "${ECHO_T}yes" >&6
31776         ;;
31777         no)
31778         eval "ac_cv_func_gai_strerror=no"
31779         eval "LIB_gai_strerror="
31780         echo "$as_me:$LINENO: result: no" >&5
31781 echo "${ECHO_T}no" >&6
31782         ;;
31783         *)
31784         eval "ac_cv_func_gai_strerror=yes"
31785         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31786         cat >>confdefs.h <<_ACEOF
31787 #define $ac_tr_func 1
31788 _ACEOF
31789
31790         cat >>confdefs.h <<_ACEOF
31791 #define $ac_tr_lib 1
31792 _ACEOF
31793
31794         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31795 echo "${ECHO_T}yes, in $ac_res" >&6
31796         ;;
31797 esac
31798
31799
31800 if test -n "$LIB_gai_strerror"; then
31801         LIBS="$LIB_gai_strerror $LIBS"
31802 fi
31803
31804 if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
31805         case $LIBOBJS in
31806     "gai_strerror.$ac_objext"   | \
31807   *" gai_strerror.$ac_objext"   | \
31808     "gai_strerror.$ac_objext "* | \
31809   *" gai_strerror.$ac_objext "* ) ;;
31810   *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" ;;
31811 esac
31812
31813 fi
31814
31815
31816 echo "$as_me:$LINENO: checking for chown" >&5
31817 echo $ECHO_N "checking for chown... $ECHO_C" >&6
31818 if test "${ac_cv_func_chown+set}" = set; then
31819   echo $ECHO_N "(cached) $ECHO_C" >&6
31820 else
31821   cat >conftest.$ac_ext <<_ACEOF
31822 /* confdefs.h.  */
31823 _ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h.  */
31827 /* Define chown to an innocuous variant, in case <limits.h> declares chown.
31828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31829 #define chown innocuous_chown
31830
31831 /* System header to define __stub macros and hopefully few prototypes,
31832     which can conflict with char chown (); below.
31833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31834     <limits.h> exists even on freestanding compilers.  */
31835
31836 #ifdef __STDC__
31837 # include <limits.h>
31838 #else
31839 # include <assert.h>
31840 #endif
31841
31842 #undef chown
31843
31844 /* Override any gcc2 internal prototype to avoid an error.  */
31845 #ifdef __cplusplus
31846 extern "C"
31847 {
31848 #endif
31849 /* We use char because int might match the return type of a gcc2
31850    builtin and then its argument prototype would still apply.  */
31851 char chown ();
31852 /* The GNU C library defines this for functions which it implements
31853     to always fail with ENOSYS.  Some functions are actually named
31854     something starting with __ and the normal name is an alias.  */
31855 #if defined (__stub_chown) || defined (__stub___chown)
31856 choke me
31857 #else
31858 char (*f) () = chown;
31859 #endif
31860 #ifdef __cplusplus
31861 }
31862 #endif
31863
31864 int
31865 main ()
31866 {
31867 return f != chown;
31868   ;
31869   return 0;
31870 }
31871 _ACEOF
31872 rm -f conftest.$ac_objext conftest$ac_exeext
31873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31874   (eval $ac_link) 2>conftest.er1
31875   ac_status=$?
31876   grep -v '^ *+' conftest.er1 >conftest.err
31877   rm -f conftest.er1
31878   cat conftest.err >&5
31879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880   (exit $ac_status); } &&
31881          { ac_try='test -z "$ac_c_werror_flag"
31882                          || test ! -s conftest.err'
31883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884   (eval $ac_try) 2>&5
31885   ac_status=$?
31886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887   (exit $ac_status); }; } &&
31888          { ac_try='test -s conftest$ac_exeext'
31889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890   (eval $ac_try) 2>&5
31891   ac_status=$?
31892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893   (exit $ac_status); }; }; then
31894   ac_cv_func_chown=yes
31895 else
31896   echo "$as_me: failed program was:" >&5
31897 sed 's/^/| /' conftest.$ac_ext >&5
31898
31899 ac_cv_func_chown=no
31900 fi
31901 rm -f conftest.err conftest.$ac_objext \
31902       conftest$ac_exeext conftest.$ac_ext
31903 fi
31904 echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
31905 echo "${ECHO_T}$ac_cv_func_chown" >&6
31906 if test $ac_cv_func_chown = yes; then
31907
31908 cat >>confdefs.h <<_ACEOF
31909 #define HAVE_CHOWN 1
31910 _ACEOF
31911
31912 else
31913   case $LIBOBJS in
31914     "chown.$ac_objext"   | \
31915   *" chown.$ac_objext"   | \
31916     "chown.$ac_objext "* | \
31917   *" chown.$ac_objext "* ) ;;
31918   *) LIBOBJS="$LIBOBJS chown.$ac_objext" ;;
31919 esac
31920
31921 fi
31922 echo "$as_me:$LINENO: checking for copyhostent" >&5
31923 echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
31924 if test "${ac_cv_func_copyhostent+set}" = set; then
31925   echo $ECHO_N "(cached) $ECHO_C" >&6
31926 else
31927   cat >conftest.$ac_ext <<_ACEOF
31928 /* confdefs.h.  */
31929 _ACEOF
31930 cat confdefs.h >>conftest.$ac_ext
31931 cat >>conftest.$ac_ext <<_ACEOF
31932 /* end confdefs.h.  */
31933 /* Define copyhostent to an innocuous variant, in case <limits.h> declares copyhostent.
31934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31935 #define copyhostent innocuous_copyhostent
31936
31937 /* System header to define __stub macros and hopefully few prototypes,
31938     which can conflict with char copyhostent (); below.
31939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31940     <limits.h> exists even on freestanding compilers.  */
31941
31942 #ifdef __STDC__
31943 # include <limits.h>
31944 #else
31945 # include <assert.h>
31946 #endif
31947
31948 #undef copyhostent
31949
31950 /* Override any gcc2 internal prototype to avoid an error.  */
31951 #ifdef __cplusplus
31952 extern "C"
31953 {
31954 #endif
31955 /* We use char because int might match the return type of a gcc2
31956    builtin and then its argument prototype would still apply.  */
31957 char copyhostent ();
31958 /* The GNU C library defines this for functions which it implements
31959     to always fail with ENOSYS.  Some functions are actually named
31960     something starting with __ and the normal name is an alias.  */
31961 #if defined (__stub_copyhostent) || defined (__stub___copyhostent)
31962 choke me
31963 #else
31964 char (*f) () = copyhostent;
31965 #endif
31966 #ifdef __cplusplus
31967 }
31968 #endif
31969
31970 int
31971 main ()
31972 {
31973 return f != copyhostent;
31974   ;
31975   return 0;
31976 }
31977 _ACEOF
31978 rm -f conftest.$ac_objext conftest$ac_exeext
31979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31980   (eval $ac_link) 2>conftest.er1
31981   ac_status=$?
31982   grep -v '^ *+' conftest.er1 >conftest.err
31983   rm -f conftest.er1
31984   cat conftest.err >&5
31985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986   (exit $ac_status); } &&
31987          { ac_try='test -z "$ac_c_werror_flag"
31988                          || test ! -s conftest.err'
31989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31990   (eval $ac_try) 2>&5
31991   ac_status=$?
31992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993   (exit $ac_status); }; } &&
31994          { ac_try='test -s conftest$ac_exeext'
31995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31996   (eval $ac_try) 2>&5
31997   ac_status=$?
31998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999   (exit $ac_status); }; }; then
32000   ac_cv_func_copyhostent=yes
32001 else
32002   echo "$as_me: failed program was:" >&5
32003 sed 's/^/| /' conftest.$ac_ext >&5
32004
32005 ac_cv_func_copyhostent=no
32006 fi
32007 rm -f conftest.err conftest.$ac_objext \
32008       conftest$ac_exeext conftest.$ac_ext
32009 fi
32010 echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
32011 echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
32012 if test $ac_cv_func_copyhostent = yes; then
32013
32014 cat >>confdefs.h <<_ACEOF
32015 #define HAVE_COPYHOSTENT 1
32016 _ACEOF
32017
32018 else
32019   case $LIBOBJS in
32020     "copyhostent.$ac_objext"   | \
32021   *" copyhostent.$ac_objext"   | \
32022     "copyhostent.$ac_objext "* | \
32023   *" copyhostent.$ac_objext "* ) ;;
32024   *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext" ;;
32025 esac
32026
32027 fi
32028 echo "$as_me:$LINENO: checking for daemon" >&5
32029 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
32030 if test "${ac_cv_func_daemon+set}" = set; then
32031   echo $ECHO_N "(cached) $ECHO_C" >&6
32032 else
32033   cat >conftest.$ac_ext <<_ACEOF
32034 /* confdefs.h.  */
32035 _ACEOF
32036 cat confdefs.h >>conftest.$ac_ext
32037 cat >>conftest.$ac_ext <<_ACEOF
32038 /* end confdefs.h.  */
32039 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
32040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32041 #define daemon innocuous_daemon
32042
32043 /* System header to define __stub macros and hopefully few prototypes,
32044     which can conflict with char daemon (); below.
32045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32046     <limits.h> exists even on freestanding compilers.  */
32047
32048 #ifdef __STDC__
32049 # include <limits.h>
32050 #else
32051 # include <assert.h>
32052 #endif
32053
32054 #undef daemon
32055
32056 /* Override any gcc2 internal prototype to avoid an error.  */
32057 #ifdef __cplusplus
32058 extern "C"
32059 {
32060 #endif
32061 /* We use char because int might match the return type of a gcc2
32062    builtin and then its argument prototype would still apply.  */
32063 char daemon ();
32064 /* The GNU C library defines this for functions which it implements
32065     to always fail with ENOSYS.  Some functions are actually named
32066     something starting with __ and the normal name is an alias.  */
32067 #if defined (__stub_daemon) || defined (__stub___daemon)
32068 choke me
32069 #else
32070 char (*f) () = daemon;
32071 #endif
32072 #ifdef __cplusplus
32073 }
32074 #endif
32075
32076 int
32077 main ()
32078 {
32079 return f != daemon;
32080   ;
32081   return 0;
32082 }
32083 _ACEOF
32084 rm -f conftest.$ac_objext conftest$ac_exeext
32085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32086   (eval $ac_link) 2>conftest.er1
32087   ac_status=$?
32088   grep -v '^ *+' conftest.er1 >conftest.err
32089   rm -f conftest.er1
32090   cat conftest.err >&5
32091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092   (exit $ac_status); } &&
32093          { ac_try='test -z "$ac_c_werror_flag"
32094                          || test ! -s conftest.err'
32095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32096   (eval $ac_try) 2>&5
32097   ac_status=$?
32098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099   (exit $ac_status); }; } &&
32100          { ac_try='test -s conftest$ac_exeext'
32101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32102   (eval $ac_try) 2>&5
32103   ac_status=$?
32104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105   (exit $ac_status); }; }; then
32106   ac_cv_func_daemon=yes
32107 else
32108   echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32110
32111 ac_cv_func_daemon=no
32112 fi
32113 rm -f conftest.err conftest.$ac_objext \
32114       conftest$ac_exeext conftest.$ac_ext
32115 fi
32116 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
32117 echo "${ECHO_T}$ac_cv_func_daemon" >&6
32118 if test $ac_cv_func_daemon = yes; then
32119
32120 cat >>confdefs.h <<_ACEOF
32121 #define HAVE_DAEMON 1
32122 _ACEOF
32123
32124 else
32125   case $LIBOBJS in
32126     "daemon.$ac_objext"   | \
32127   *" daemon.$ac_objext"   | \
32128     "daemon.$ac_objext "* | \
32129   *" daemon.$ac_objext "* ) ;;
32130   *) LIBOBJS="$LIBOBJS daemon.$ac_objext" ;;
32131 esac
32132
32133 fi
32134 echo "$as_me:$LINENO: checking for ecalloc" >&5
32135 echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
32136 if test "${ac_cv_func_ecalloc+set}" = set; then
32137   echo $ECHO_N "(cached) $ECHO_C" >&6
32138 else
32139   cat >conftest.$ac_ext <<_ACEOF
32140 /* confdefs.h.  */
32141 _ACEOF
32142 cat confdefs.h >>conftest.$ac_ext
32143 cat >>conftest.$ac_ext <<_ACEOF
32144 /* end confdefs.h.  */
32145 /* Define ecalloc to an innocuous variant, in case <limits.h> declares ecalloc.
32146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32147 #define ecalloc innocuous_ecalloc
32148
32149 /* System header to define __stub macros and hopefully few prototypes,
32150     which can conflict with char ecalloc (); below.
32151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32152     <limits.h> exists even on freestanding compilers.  */
32153
32154 #ifdef __STDC__
32155 # include <limits.h>
32156 #else
32157 # include <assert.h>
32158 #endif
32159
32160 #undef ecalloc
32161
32162 /* Override any gcc2 internal prototype to avoid an error.  */
32163 #ifdef __cplusplus
32164 extern "C"
32165 {
32166 #endif
32167 /* We use char because int might match the return type of a gcc2
32168    builtin and then its argument prototype would still apply.  */
32169 char ecalloc ();
32170 /* The GNU C library defines this for functions which it implements
32171     to always fail with ENOSYS.  Some functions are actually named
32172     something starting with __ and the normal name is an alias.  */
32173 #if defined (__stub_ecalloc) || defined (__stub___ecalloc)
32174 choke me
32175 #else
32176 char (*f) () = ecalloc;
32177 #endif
32178 #ifdef __cplusplus
32179 }
32180 #endif
32181
32182 int
32183 main ()
32184 {
32185 return f != ecalloc;
32186   ;
32187   return 0;
32188 }
32189 _ACEOF
32190 rm -f conftest.$ac_objext conftest$ac_exeext
32191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32192   (eval $ac_link) 2>conftest.er1
32193   ac_status=$?
32194   grep -v '^ *+' conftest.er1 >conftest.err
32195   rm -f conftest.er1
32196   cat conftest.err >&5
32197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198   (exit $ac_status); } &&
32199          { ac_try='test -z "$ac_c_werror_flag"
32200                          || test ! -s conftest.err'
32201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32202   (eval $ac_try) 2>&5
32203   ac_status=$?
32204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205   (exit $ac_status); }; } &&
32206          { ac_try='test -s conftest$ac_exeext'
32207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208   (eval $ac_try) 2>&5
32209   ac_status=$?
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); }; }; then
32212   ac_cv_func_ecalloc=yes
32213 else
32214   echo "$as_me: failed program was:" >&5
32215 sed 's/^/| /' conftest.$ac_ext >&5
32216
32217 ac_cv_func_ecalloc=no
32218 fi
32219 rm -f conftest.err conftest.$ac_objext \
32220       conftest$ac_exeext conftest.$ac_ext
32221 fi
32222 echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
32223 echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
32224 if test $ac_cv_func_ecalloc = yes; then
32225
32226 cat >>confdefs.h <<_ACEOF
32227 #define HAVE_ECALLOC 1
32228 _ACEOF
32229
32230 else
32231   case $LIBOBJS in
32232     "ecalloc.$ac_objext"   | \
32233   *" ecalloc.$ac_objext"   | \
32234     "ecalloc.$ac_objext "* | \
32235   *" ecalloc.$ac_objext "* ) ;;
32236   *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext" ;;
32237 esac
32238
32239 fi
32240 echo "$as_me:$LINENO: checking for emalloc" >&5
32241 echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
32242 if test "${ac_cv_func_emalloc+set}" = set; then
32243   echo $ECHO_N "(cached) $ECHO_C" >&6
32244 else
32245   cat >conftest.$ac_ext <<_ACEOF
32246 /* confdefs.h.  */
32247 _ACEOF
32248 cat confdefs.h >>conftest.$ac_ext
32249 cat >>conftest.$ac_ext <<_ACEOF
32250 /* end confdefs.h.  */
32251 /* Define emalloc to an innocuous variant, in case <limits.h> declares emalloc.
32252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32253 #define emalloc innocuous_emalloc
32254
32255 /* System header to define __stub macros and hopefully few prototypes,
32256     which can conflict with char emalloc (); below.
32257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32258     <limits.h> exists even on freestanding compilers.  */
32259
32260 #ifdef __STDC__
32261 # include <limits.h>
32262 #else
32263 # include <assert.h>
32264 #endif
32265
32266 #undef emalloc
32267
32268 /* Override any gcc2 internal prototype to avoid an error.  */
32269 #ifdef __cplusplus
32270 extern "C"
32271 {
32272 #endif
32273 /* We use char because int might match the return type of a gcc2
32274    builtin and then its argument prototype would still apply.  */
32275 char emalloc ();
32276 /* The GNU C library defines this for functions which it implements
32277     to always fail with ENOSYS.  Some functions are actually named
32278     something starting with __ and the normal name is an alias.  */
32279 #if defined (__stub_emalloc) || defined (__stub___emalloc)
32280 choke me
32281 #else
32282 char (*f) () = emalloc;
32283 #endif
32284 #ifdef __cplusplus
32285 }
32286 #endif
32287
32288 int
32289 main ()
32290 {
32291 return f != emalloc;
32292   ;
32293   return 0;
32294 }
32295 _ACEOF
32296 rm -f conftest.$ac_objext conftest$ac_exeext
32297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32298   (eval $ac_link) 2>conftest.er1
32299   ac_status=$?
32300   grep -v '^ *+' conftest.er1 >conftest.err
32301   rm -f conftest.er1
32302   cat conftest.err >&5
32303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304   (exit $ac_status); } &&
32305          { ac_try='test -z "$ac_c_werror_flag"
32306                          || test ! -s conftest.err'
32307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32308   (eval $ac_try) 2>&5
32309   ac_status=$?
32310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311   (exit $ac_status); }; } &&
32312          { ac_try='test -s conftest$ac_exeext'
32313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32314   (eval $ac_try) 2>&5
32315   ac_status=$?
32316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317   (exit $ac_status); }; }; then
32318   ac_cv_func_emalloc=yes
32319 else
32320   echo "$as_me: failed program was:" >&5
32321 sed 's/^/| /' conftest.$ac_ext >&5
32322
32323 ac_cv_func_emalloc=no
32324 fi
32325 rm -f conftest.err conftest.$ac_objext \
32326       conftest$ac_exeext conftest.$ac_ext
32327 fi
32328 echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
32329 echo "${ECHO_T}$ac_cv_func_emalloc" >&6
32330 if test $ac_cv_func_emalloc = yes; then
32331
32332 cat >>confdefs.h <<_ACEOF
32333 #define HAVE_EMALLOC 1
32334 _ACEOF
32335
32336 else
32337   case $LIBOBJS in
32338     "emalloc.$ac_objext"   | \
32339   *" emalloc.$ac_objext"   | \
32340     "emalloc.$ac_objext "* | \
32341   *" emalloc.$ac_objext "* ) ;;
32342   *) LIBOBJS="$LIBOBJS emalloc.$ac_objext" ;;
32343 esac
32344
32345 fi
32346 echo "$as_me:$LINENO: checking for erealloc" >&5
32347 echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
32348 if test "${ac_cv_func_erealloc+set}" = set; then
32349   echo $ECHO_N "(cached) $ECHO_C" >&6
32350 else
32351   cat >conftest.$ac_ext <<_ACEOF
32352 /* confdefs.h.  */
32353 _ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h.  */
32357 /* Define erealloc to an innocuous variant, in case <limits.h> declares erealloc.
32358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32359 #define erealloc innocuous_erealloc
32360
32361 /* System header to define __stub macros and hopefully few prototypes,
32362     which can conflict with char erealloc (); below.
32363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32364     <limits.h> exists even on freestanding compilers.  */
32365
32366 #ifdef __STDC__
32367 # include <limits.h>
32368 #else
32369 # include <assert.h>
32370 #endif
32371
32372 #undef erealloc
32373
32374 /* Override any gcc2 internal prototype to avoid an error.  */
32375 #ifdef __cplusplus
32376 extern "C"
32377 {
32378 #endif
32379 /* We use char because int might match the return type of a gcc2
32380    builtin and then its argument prototype would still apply.  */
32381 char erealloc ();
32382 /* The GNU C library defines this for functions which it implements
32383     to always fail with ENOSYS.  Some functions are actually named
32384     something starting with __ and the normal name is an alias.  */
32385 #if defined (__stub_erealloc) || defined (__stub___erealloc)
32386 choke me
32387 #else
32388 char (*f) () = erealloc;
32389 #endif
32390 #ifdef __cplusplus
32391 }
32392 #endif
32393
32394 int
32395 main ()
32396 {
32397 return f != erealloc;
32398   ;
32399   return 0;
32400 }
32401 _ACEOF
32402 rm -f conftest.$ac_objext conftest$ac_exeext
32403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32404   (eval $ac_link) 2>conftest.er1
32405   ac_status=$?
32406   grep -v '^ *+' conftest.er1 >conftest.err
32407   rm -f conftest.er1
32408   cat conftest.err >&5
32409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410   (exit $ac_status); } &&
32411          { ac_try='test -z "$ac_c_werror_flag"
32412                          || test ! -s conftest.err'
32413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32414   (eval $ac_try) 2>&5
32415   ac_status=$?
32416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417   (exit $ac_status); }; } &&
32418          { ac_try='test -s conftest$ac_exeext'
32419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32420   (eval $ac_try) 2>&5
32421   ac_status=$?
32422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423   (exit $ac_status); }; }; then
32424   ac_cv_func_erealloc=yes
32425 else
32426   echo "$as_me: failed program was:" >&5
32427 sed 's/^/| /' conftest.$ac_ext >&5
32428
32429 ac_cv_func_erealloc=no
32430 fi
32431 rm -f conftest.err conftest.$ac_objext \
32432       conftest$ac_exeext conftest.$ac_ext
32433 fi
32434 echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
32435 echo "${ECHO_T}$ac_cv_func_erealloc" >&6
32436 if test $ac_cv_func_erealloc = yes; then
32437
32438 cat >>confdefs.h <<_ACEOF
32439 #define HAVE_EREALLOC 1
32440 _ACEOF
32441
32442 else
32443   case $LIBOBJS in
32444     "erealloc.$ac_objext"   | \
32445   *" erealloc.$ac_objext"   | \
32446     "erealloc.$ac_objext "* | \
32447   *" erealloc.$ac_objext "* ) ;;
32448   *) LIBOBJS="$LIBOBJS erealloc.$ac_objext" ;;
32449 esac
32450
32451 fi
32452 echo "$as_me:$LINENO: checking for estrdup" >&5
32453 echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
32454 if test "${ac_cv_func_estrdup+set}" = set; then
32455   echo $ECHO_N "(cached) $ECHO_C" >&6
32456 else
32457   cat >conftest.$ac_ext <<_ACEOF
32458 /* confdefs.h.  */
32459 _ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h.  */
32463 /* Define estrdup to an innocuous variant, in case <limits.h> declares estrdup.
32464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32465 #define estrdup innocuous_estrdup
32466
32467 /* System header to define __stub macros and hopefully few prototypes,
32468     which can conflict with char estrdup (); below.
32469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32470     <limits.h> exists even on freestanding compilers.  */
32471
32472 #ifdef __STDC__
32473 # include <limits.h>
32474 #else
32475 # include <assert.h>
32476 #endif
32477
32478 #undef estrdup
32479
32480 /* Override any gcc2 internal prototype to avoid an error.  */
32481 #ifdef __cplusplus
32482 extern "C"
32483 {
32484 #endif
32485 /* We use char because int might match the return type of a gcc2
32486    builtin and then its argument prototype would still apply.  */
32487 char estrdup ();
32488 /* The GNU C library defines this for functions which it implements
32489     to always fail with ENOSYS.  Some functions are actually named
32490     something starting with __ and the normal name is an alias.  */
32491 #if defined (__stub_estrdup) || defined (__stub___estrdup)
32492 choke me
32493 #else
32494 char (*f) () = estrdup;
32495 #endif
32496 #ifdef __cplusplus
32497 }
32498 #endif
32499
32500 int
32501 main ()
32502 {
32503 return f != estrdup;
32504   ;
32505   return 0;
32506 }
32507 _ACEOF
32508 rm -f conftest.$ac_objext conftest$ac_exeext
32509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32510   (eval $ac_link) 2>conftest.er1
32511   ac_status=$?
32512   grep -v '^ *+' conftest.er1 >conftest.err
32513   rm -f conftest.er1
32514   cat conftest.err >&5
32515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516   (exit $ac_status); } &&
32517          { ac_try='test -z "$ac_c_werror_flag"
32518                          || test ! -s conftest.err'
32519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32520   (eval $ac_try) 2>&5
32521   ac_status=$?
32522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523   (exit $ac_status); }; } &&
32524          { ac_try='test -s conftest$ac_exeext'
32525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32526   (eval $ac_try) 2>&5
32527   ac_status=$?
32528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529   (exit $ac_status); }; }; then
32530   ac_cv_func_estrdup=yes
32531 else
32532   echo "$as_me: failed program was:" >&5
32533 sed 's/^/| /' conftest.$ac_ext >&5
32534
32535 ac_cv_func_estrdup=no
32536 fi
32537 rm -f conftest.err conftest.$ac_objext \
32538       conftest$ac_exeext conftest.$ac_ext
32539 fi
32540 echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
32541 echo "${ECHO_T}$ac_cv_func_estrdup" >&6
32542 if test $ac_cv_func_estrdup = yes; then
32543
32544 cat >>confdefs.h <<_ACEOF
32545 #define HAVE_ESTRDUP 1
32546 _ACEOF
32547
32548 else
32549   case $LIBOBJS in
32550     "estrdup.$ac_objext"   | \
32551   *" estrdup.$ac_objext"   | \
32552     "estrdup.$ac_objext "* | \
32553   *" estrdup.$ac_objext "* ) ;;
32554   *) LIBOBJS="$LIBOBJS estrdup.$ac_objext" ;;
32555 esac
32556
32557 fi
32558 echo "$as_me:$LINENO: checking for err" >&5
32559 echo $ECHO_N "checking for err... $ECHO_C" >&6
32560 if test "${ac_cv_func_err+set}" = set; then
32561   echo $ECHO_N "(cached) $ECHO_C" >&6
32562 else
32563   cat >conftest.$ac_ext <<_ACEOF
32564 /* confdefs.h.  */
32565 _ACEOF
32566 cat confdefs.h >>conftest.$ac_ext
32567 cat >>conftest.$ac_ext <<_ACEOF
32568 /* end confdefs.h.  */
32569 /* Define err to an innocuous variant, in case <limits.h> declares err.
32570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32571 #define err innocuous_err
32572
32573 /* System header to define __stub macros and hopefully few prototypes,
32574     which can conflict with char err (); below.
32575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32576     <limits.h> exists even on freestanding compilers.  */
32577
32578 #ifdef __STDC__
32579 # include <limits.h>
32580 #else
32581 # include <assert.h>
32582 #endif
32583
32584 #undef err
32585
32586 /* Override any gcc2 internal prototype to avoid an error.  */
32587 #ifdef __cplusplus
32588 extern "C"
32589 {
32590 #endif
32591 /* We use char because int might match the return type of a gcc2
32592    builtin and then its argument prototype would still apply.  */
32593 char err ();
32594 /* The GNU C library defines this for functions which it implements
32595     to always fail with ENOSYS.  Some functions are actually named
32596     something starting with __ and the normal name is an alias.  */
32597 #if defined (__stub_err) || defined (__stub___err)
32598 choke me
32599 #else
32600 char (*f) () = err;
32601 #endif
32602 #ifdef __cplusplus
32603 }
32604 #endif
32605
32606 int
32607 main ()
32608 {
32609 return f != err;
32610   ;
32611   return 0;
32612 }
32613 _ACEOF
32614 rm -f conftest.$ac_objext conftest$ac_exeext
32615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32616   (eval $ac_link) 2>conftest.er1
32617   ac_status=$?
32618   grep -v '^ *+' conftest.er1 >conftest.err
32619   rm -f conftest.er1
32620   cat conftest.err >&5
32621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622   (exit $ac_status); } &&
32623          { ac_try='test -z "$ac_c_werror_flag"
32624                          || test ! -s conftest.err'
32625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32626   (eval $ac_try) 2>&5
32627   ac_status=$?
32628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629   (exit $ac_status); }; } &&
32630          { ac_try='test -s conftest$ac_exeext'
32631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32632   (eval $ac_try) 2>&5
32633   ac_status=$?
32634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635   (exit $ac_status); }; }; then
32636   ac_cv_func_err=yes
32637 else
32638   echo "$as_me: failed program was:" >&5
32639 sed 's/^/| /' conftest.$ac_ext >&5
32640
32641 ac_cv_func_err=no
32642 fi
32643 rm -f conftest.err conftest.$ac_objext \
32644       conftest$ac_exeext conftest.$ac_ext
32645 fi
32646 echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
32647 echo "${ECHO_T}$ac_cv_func_err" >&6
32648 if test $ac_cv_func_err = yes; then
32649
32650 cat >>confdefs.h <<_ACEOF
32651 #define HAVE_ERR 1
32652 _ACEOF
32653
32654 else
32655   case $LIBOBJS in
32656     "err.$ac_objext"   | \
32657   *" err.$ac_objext"   | \
32658     "err.$ac_objext "* | \
32659   *" err.$ac_objext "* ) ;;
32660   *) LIBOBJS="$LIBOBJS err.$ac_objext" ;;
32661 esac
32662
32663 fi
32664 echo "$as_me:$LINENO: checking for errx" >&5
32665 echo $ECHO_N "checking for errx... $ECHO_C" >&6
32666 if test "${ac_cv_func_errx+set}" = set; then
32667   echo $ECHO_N "(cached) $ECHO_C" >&6
32668 else
32669   cat >conftest.$ac_ext <<_ACEOF
32670 /* confdefs.h.  */
32671 _ACEOF
32672 cat confdefs.h >>conftest.$ac_ext
32673 cat >>conftest.$ac_ext <<_ACEOF
32674 /* end confdefs.h.  */
32675 /* Define errx to an innocuous variant, in case <limits.h> declares errx.
32676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32677 #define errx innocuous_errx
32678
32679 /* System header to define __stub macros and hopefully few prototypes,
32680     which can conflict with char errx (); below.
32681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32682     <limits.h> exists even on freestanding compilers.  */
32683
32684 #ifdef __STDC__
32685 # include <limits.h>
32686 #else
32687 # include <assert.h>
32688 #endif
32689
32690 #undef errx
32691
32692 /* Override any gcc2 internal prototype to avoid an error.  */
32693 #ifdef __cplusplus
32694 extern "C"
32695 {
32696 #endif
32697 /* We use char because int might match the return type of a gcc2
32698    builtin and then its argument prototype would still apply.  */
32699 char errx ();
32700 /* The GNU C library defines this for functions which it implements
32701     to always fail with ENOSYS.  Some functions are actually named
32702     something starting with __ and the normal name is an alias.  */
32703 #if defined (__stub_errx) || defined (__stub___errx)
32704 choke me
32705 #else
32706 char (*f) () = errx;
32707 #endif
32708 #ifdef __cplusplus
32709 }
32710 #endif
32711
32712 int
32713 main ()
32714 {
32715 return f != errx;
32716   ;
32717   return 0;
32718 }
32719 _ACEOF
32720 rm -f conftest.$ac_objext conftest$ac_exeext
32721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32722   (eval $ac_link) 2>conftest.er1
32723   ac_status=$?
32724   grep -v '^ *+' conftest.er1 >conftest.err
32725   rm -f conftest.er1
32726   cat conftest.err >&5
32727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728   (exit $ac_status); } &&
32729          { ac_try='test -z "$ac_c_werror_flag"
32730                          || test ! -s conftest.err'
32731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32732   (eval $ac_try) 2>&5
32733   ac_status=$?
32734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735   (exit $ac_status); }; } &&
32736          { ac_try='test -s conftest$ac_exeext'
32737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32738   (eval $ac_try) 2>&5
32739   ac_status=$?
32740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741   (exit $ac_status); }; }; then
32742   ac_cv_func_errx=yes
32743 else
32744   echo "$as_me: failed program was:" >&5
32745 sed 's/^/| /' conftest.$ac_ext >&5
32746
32747 ac_cv_func_errx=no
32748 fi
32749 rm -f conftest.err conftest.$ac_objext \
32750       conftest$ac_exeext conftest.$ac_ext
32751 fi
32752 echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
32753 echo "${ECHO_T}$ac_cv_func_errx" >&6
32754 if test $ac_cv_func_errx = yes; then
32755
32756 cat >>confdefs.h <<_ACEOF
32757 #define HAVE_ERRX 1
32758 _ACEOF
32759
32760 else
32761   case $LIBOBJS in
32762     "errx.$ac_objext"   | \
32763   *" errx.$ac_objext"   | \
32764     "errx.$ac_objext "* | \
32765   *" errx.$ac_objext "* ) ;;
32766   *) LIBOBJS="$LIBOBJS errx.$ac_objext" ;;
32767 esac
32768
32769 fi
32770 echo "$as_me:$LINENO: checking for fchown" >&5
32771 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
32772 if test "${ac_cv_func_fchown+set}" = set; then
32773   echo $ECHO_N "(cached) $ECHO_C" >&6
32774 else
32775   cat >conftest.$ac_ext <<_ACEOF
32776 /* confdefs.h.  */
32777 _ACEOF
32778 cat confdefs.h >>conftest.$ac_ext
32779 cat >>conftest.$ac_ext <<_ACEOF
32780 /* end confdefs.h.  */
32781 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
32782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32783 #define fchown innocuous_fchown
32784
32785 /* System header to define __stub macros and hopefully few prototypes,
32786     which can conflict with char fchown (); below.
32787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32788     <limits.h> exists even on freestanding compilers.  */
32789
32790 #ifdef __STDC__
32791 # include <limits.h>
32792 #else
32793 # include <assert.h>
32794 #endif
32795
32796 #undef fchown
32797
32798 /* Override any gcc2 internal prototype to avoid an error.  */
32799 #ifdef __cplusplus
32800 extern "C"
32801 {
32802 #endif
32803 /* We use char because int might match the return type of a gcc2
32804    builtin and then its argument prototype would still apply.  */
32805 char fchown ();
32806 /* The GNU C library defines this for functions which it implements
32807     to always fail with ENOSYS.  Some functions are actually named
32808     something starting with __ and the normal name is an alias.  */
32809 #if defined (__stub_fchown) || defined (__stub___fchown)
32810 choke me
32811 #else
32812 char (*f) () = fchown;
32813 #endif
32814 #ifdef __cplusplus
32815 }
32816 #endif
32817
32818 int
32819 main ()
32820 {
32821 return f != fchown;
32822   ;
32823   return 0;
32824 }
32825 _ACEOF
32826 rm -f conftest.$ac_objext conftest$ac_exeext
32827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32828   (eval $ac_link) 2>conftest.er1
32829   ac_status=$?
32830   grep -v '^ *+' conftest.er1 >conftest.err
32831   rm -f conftest.er1
32832   cat conftest.err >&5
32833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834   (exit $ac_status); } &&
32835          { ac_try='test -z "$ac_c_werror_flag"
32836                          || test ! -s conftest.err'
32837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838   (eval $ac_try) 2>&5
32839   ac_status=$?
32840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841   (exit $ac_status); }; } &&
32842          { ac_try='test -s conftest$ac_exeext'
32843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844   (eval $ac_try) 2>&5
32845   ac_status=$?
32846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847   (exit $ac_status); }; }; then
32848   ac_cv_func_fchown=yes
32849 else
32850   echo "$as_me: failed program was:" >&5
32851 sed 's/^/| /' conftest.$ac_ext >&5
32852
32853 ac_cv_func_fchown=no
32854 fi
32855 rm -f conftest.err conftest.$ac_objext \
32856       conftest$ac_exeext conftest.$ac_ext
32857 fi
32858 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
32859 echo "${ECHO_T}$ac_cv_func_fchown" >&6
32860 if test $ac_cv_func_fchown = yes; then
32861
32862 cat >>confdefs.h <<_ACEOF
32863 #define HAVE_FCHOWN 1
32864 _ACEOF
32865
32866 else
32867   case $LIBOBJS in
32868     "fchown.$ac_objext"   | \
32869   *" fchown.$ac_objext"   | \
32870     "fchown.$ac_objext "* | \
32871   *" fchown.$ac_objext "* ) ;;
32872   *) LIBOBJS="$LIBOBJS fchown.$ac_objext" ;;
32873 esac
32874
32875 fi
32876 echo "$as_me:$LINENO: checking for flock" >&5
32877 echo $ECHO_N "checking for flock... $ECHO_C" >&6
32878 if test "${ac_cv_func_flock+set}" = set; then
32879   echo $ECHO_N "(cached) $ECHO_C" >&6
32880 else
32881   cat >conftest.$ac_ext <<_ACEOF
32882 /* confdefs.h.  */
32883 _ACEOF
32884 cat confdefs.h >>conftest.$ac_ext
32885 cat >>conftest.$ac_ext <<_ACEOF
32886 /* end confdefs.h.  */
32887 /* Define flock to an innocuous variant, in case <limits.h> declares flock.
32888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32889 #define flock innocuous_flock
32890
32891 /* System header to define __stub macros and hopefully few prototypes,
32892     which can conflict with char flock (); below.
32893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32894     <limits.h> exists even on freestanding compilers.  */
32895
32896 #ifdef __STDC__
32897 # include <limits.h>
32898 #else
32899 # include <assert.h>
32900 #endif
32901
32902 #undef flock
32903
32904 /* Override any gcc2 internal prototype to avoid an error.  */
32905 #ifdef __cplusplus
32906 extern "C"
32907 {
32908 #endif
32909 /* We use char because int might match the return type of a gcc2
32910    builtin and then its argument prototype would still apply.  */
32911 char flock ();
32912 /* The GNU C library defines this for functions which it implements
32913     to always fail with ENOSYS.  Some functions are actually named
32914     something starting with __ and the normal name is an alias.  */
32915 #if defined (__stub_flock) || defined (__stub___flock)
32916 choke me
32917 #else
32918 char (*f) () = flock;
32919 #endif
32920 #ifdef __cplusplus
32921 }
32922 #endif
32923
32924 int
32925 main ()
32926 {
32927 return f != flock;
32928   ;
32929   return 0;
32930 }
32931 _ACEOF
32932 rm -f conftest.$ac_objext conftest$ac_exeext
32933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32934   (eval $ac_link) 2>conftest.er1
32935   ac_status=$?
32936   grep -v '^ *+' conftest.er1 >conftest.err
32937   rm -f conftest.er1
32938   cat conftest.err >&5
32939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940   (exit $ac_status); } &&
32941          { ac_try='test -z "$ac_c_werror_flag"
32942                          || test ! -s conftest.err'
32943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944   (eval $ac_try) 2>&5
32945   ac_status=$?
32946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947   (exit $ac_status); }; } &&
32948          { ac_try='test -s conftest$ac_exeext'
32949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950   (eval $ac_try) 2>&5
32951   ac_status=$?
32952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953   (exit $ac_status); }; }; then
32954   ac_cv_func_flock=yes
32955 else
32956   echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32958
32959 ac_cv_func_flock=no
32960 fi
32961 rm -f conftest.err conftest.$ac_objext \
32962       conftest$ac_exeext conftest.$ac_ext
32963 fi
32964 echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
32965 echo "${ECHO_T}$ac_cv_func_flock" >&6
32966 if test $ac_cv_func_flock = yes; then
32967
32968 cat >>confdefs.h <<_ACEOF
32969 #define HAVE_FLOCK 1
32970 _ACEOF
32971
32972 else
32973   case $LIBOBJS in
32974     "flock.$ac_objext"   | \
32975   *" flock.$ac_objext"   | \
32976     "flock.$ac_objext "* | \
32977   *" flock.$ac_objext "* ) ;;
32978   *) LIBOBJS="$LIBOBJS flock.$ac_objext" ;;
32979 esac
32980
32981 fi
32982 echo "$as_me:$LINENO: checking for fnmatch" >&5
32983 echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
32984 if test "${ac_cv_func_fnmatch+set}" = set; then
32985   echo $ECHO_N "(cached) $ECHO_C" >&6
32986 else
32987   cat >conftest.$ac_ext <<_ACEOF
32988 /* confdefs.h.  */
32989 _ACEOF
32990 cat confdefs.h >>conftest.$ac_ext
32991 cat >>conftest.$ac_ext <<_ACEOF
32992 /* end confdefs.h.  */
32993 /* Define fnmatch to an innocuous variant, in case <limits.h> declares fnmatch.
32994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32995 #define fnmatch innocuous_fnmatch
32996
32997 /* System header to define __stub macros and hopefully few prototypes,
32998     which can conflict with char fnmatch (); below.
32999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33000     <limits.h> exists even on freestanding compilers.  */
33001
33002 #ifdef __STDC__
33003 # include <limits.h>
33004 #else
33005 # include <assert.h>
33006 #endif
33007
33008 #undef fnmatch
33009
33010 /* Override any gcc2 internal prototype to avoid an error.  */
33011 #ifdef __cplusplus
33012 extern "C"
33013 {
33014 #endif
33015 /* We use char because int might match the return type of a gcc2
33016    builtin and then its argument prototype would still apply.  */
33017 char fnmatch ();
33018 /* The GNU C library defines this for functions which it implements
33019     to always fail with ENOSYS.  Some functions are actually named
33020     something starting with __ and the normal name is an alias.  */
33021 #if defined (__stub_fnmatch) || defined (__stub___fnmatch)
33022 choke me
33023 #else
33024 char (*f) () = fnmatch;
33025 #endif
33026 #ifdef __cplusplus
33027 }
33028 #endif
33029
33030 int
33031 main ()
33032 {
33033 return f != fnmatch;
33034   ;
33035   return 0;
33036 }
33037 _ACEOF
33038 rm -f conftest.$ac_objext conftest$ac_exeext
33039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33040   (eval $ac_link) 2>conftest.er1
33041   ac_status=$?
33042   grep -v '^ *+' conftest.er1 >conftest.err
33043   rm -f conftest.er1
33044   cat conftest.err >&5
33045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046   (exit $ac_status); } &&
33047          { ac_try='test -z "$ac_c_werror_flag"
33048                          || test ! -s conftest.err'
33049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050   (eval $ac_try) 2>&5
33051   ac_status=$?
33052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053   (exit $ac_status); }; } &&
33054          { ac_try='test -s conftest$ac_exeext'
33055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056   (eval $ac_try) 2>&5
33057   ac_status=$?
33058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059   (exit $ac_status); }; }; then
33060   ac_cv_func_fnmatch=yes
33061 else
33062   echo "$as_me: failed program was:" >&5
33063 sed 's/^/| /' conftest.$ac_ext >&5
33064
33065 ac_cv_func_fnmatch=no
33066 fi
33067 rm -f conftest.err conftest.$ac_objext \
33068       conftest$ac_exeext conftest.$ac_ext
33069 fi
33070 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
33071 echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
33072 if test $ac_cv_func_fnmatch = yes; then
33073
33074 cat >>confdefs.h <<_ACEOF
33075 #define HAVE_FNMATCH 1
33076 _ACEOF
33077
33078 else
33079   case $LIBOBJS in
33080     "fnmatch.$ac_objext"   | \
33081   *" fnmatch.$ac_objext"   | \
33082     "fnmatch.$ac_objext "* | \
33083   *" fnmatch.$ac_objext "* ) ;;
33084   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
33085 esac
33086
33087 fi
33088 echo "$as_me:$LINENO: checking for freehostent" >&5
33089 echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
33090 if test "${ac_cv_func_freehostent+set}" = set; then
33091   echo $ECHO_N "(cached) $ECHO_C" >&6
33092 else
33093   cat >conftest.$ac_ext <<_ACEOF
33094 /* confdefs.h.  */
33095 _ACEOF
33096 cat confdefs.h >>conftest.$ac_ext
33097 cat >>conftest.$ac_ext <<_ACEOF
33098 /* end confdefs.h.  */
33099 /* Define freehostent to an innocuous variant, in case <limits.h> declares freehostent.
33100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33101 #define freehostent innocuous_freehostent
33102
33103 /* System header to define __stub macros and hopefully few prototypes,
33104     which can conflict with char freehostent (); below.
33105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33106     <limits.h> exists even on freestanding compilers.  */
33107
33108 #ifdef __STDC__
33109 # include <limits.h>
33110 #else
33111 # include <assert.h>
33112 #endif
33113
33114 #undef freehostent
33115
33116 /* Override any gcc2 internal prototype to avoid an error.  */
33117 #ifdef __cplusplus
33118 extern "C"
33119 {
33120 #endif
33121 /* We use char because int might match the return type of a gcc2
33122    builtin and then its argument prototype would still apply.  */
33123 char freehostent ();
33124 /* The GNU C library defines this for functions which it implements
33125     to always fail with ENOSYS.  Some functions are actually named
33126     something starting with __ and the normal name is an alias.  */
33127 #if defined (__stub_freehostent) || defined (__stub___freehostent)
33128 choke me
33129 #else
33130 char (*f) () = freehostent;
33131 #endif
33132 #ifdef __cplusplus
33133 }
33134 #endif
33135
33136 int
33137 main ()
33138 {
33139 return f != freehostent;
33140   ;
33141   return 0;
33142 }
33143 _ACEOF
33144 rm -f conftest.$ac_objext conftest$ac_exeext
33145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33146   (eval $ac_link) 2>conftest.er1
33147   ac_status=$?
33148   grep -v '^ *+' conftest.er1 >conftest.err
33149   rm -f conftest.er1
33150   cat conftest.err >&5
33151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152   (exit $ac_status); } &&
33153          { ac_try='test -z "$ac_c_werror_flag"
33154                          || test ! -s conftest.err'
33155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33156   (eval $ac_try) 2>&5
33157   ac_status=$?
33158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159   (exit $ac_status); }; } &&
33160          { ac_try='test -s conftest$ac_exeext'
33161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33162   (eval $ac_try) 2>&5
33163   ac_status=$?
33164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165   (exit $ac_status); }; }; then
33166   ac_cv_func_freehostent=yes
33167 else
33168   echo "$as_me: failed program was:" >&5
33169 sed 's/^/| /' conftest.$ac_ext >&5
33170
33171 ac_cv_func_freehostent=no
33172 fi
33173 rm -f conftest.err conftest.$ac_objext \
33174       conftest$ac_exeext conftest.$ac_ext
33175 fi
33176 echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
33177 echo "${ECHO_T}$ac_cv_func_freehostent" >&6
33178 if test $ac_cv_func_freehostent = yes; then
33179
33180 cat >>confdefs.h <<_ACEOF
33181 #define HAVE_FREEHOSTENT 1
33182 _ACEOF
33183
33184 else
33185   case $LIBOBJS in
33186     "freehostent.$ac_objext"   | \
33187   *" freehostent.$ac_objext"   | \
33188     "freehostent.$ac_objext "* | \
33189   *" freehostent.$ac_objext "* ) ;;
33190   *) LIBOBJS="$LIBOBJS freehostent.$ac_objext" ;;
33191 esac
33192
33193 fi
33194 echo "$as_me:$LINENO: checking for getcwd" >&5
33195 echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
33196 if test "${ac_cv_func_getcwd+set}" = set; then
33197   echo $ECHO_N "(cached) $ECHO_C" >&6
33198 else
33199   cat >conftest.$ac_ext <<_ACEOF
33200 /* confdefs.h.  */
33201 _ACEOF
33202 cat confdefs.h >>conftest.$ac_ext
33203 cat >>conftest.$ac_ext <<_ACEOF
33204 /* end confdefs.h.  */
33205 /* Define getcwd to an innocuous variant, in case <limits.h> declares getcwd.
33206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33207 #define getcwd innocuous_getcwd
33208
33209 /* System header to define __stub macros and hopefully few prototypes,
33210     which can conflict with char getcwd (); below.
33211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33212     <limits.h> exists even on freestanding compilers.  */
33213
33214 #ifdef __STDC__
33215 # include <limits.h>
33216 #else
33217 # include <assert.h>
33218 #endif
33219
33220 #undef getcwd
33221
33222 /* Override any gcc2 internal prototype to avoid an error.  */
33223 #ifdef __cplusplus
33224 extern "C"
33225 {
33226 #endif
33227 /* We use char because int might match the return type of a gcc2
33228    builtin and then its argument prototype would still apply.  */
33229 char getcwd ();
33230 /* The GNU C library defines this for functions which it implements
33231     to always fail with ENOSYS.  Some functions are actually named
33232     something starting with __ and the normal name is an alias.  */
33233 #if defined (__stub_getcwd) || defined (__stub___getcwd)
33234 choke me
33235 #else
33236 char (*f) () = getcwd;
33237 #endif
33238 #ifdef __cplusplus
33239 }
33240 #endif
33241
33242 int
33243 main ()
33244 {
33245 return f != getcwd;
33246   ;
33247   return 0;
33248 }
33249 _ACEOF
33250 rm -f conftest.$ac_objext conftest$ac_exeext
33251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33252   (eval $ac_link) 2>conftest.er1
33253   ac_status=$?
33254   grep -v '^ *+' conftest.er1 >conftest.err
33255   rm -f conftest.er1
33256   cat conftest.err >&5
33257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258   (exit $ac_status); } &&
33259          { ac_try='test -z "$ac_c_werror_flag"
33260                          || test ! -s conftest.err'
33261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33262   (eval $ac_try) 2>&5
33263   ac_status=$?
33264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265   (exit $ac_status); }; } &&
33266          { ac_try='test -s conftest$ac_exeext'
33267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33268   (eval $ac_try) 2>&5
33269   ac_status=$?
33270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33271   (exit $ac_status); }; }; then
33272   ac_cv_func_getcwd=yes
33273 else
33274   echo "$as_me: failed program was:" >&5
33275 sed 's/^/| /' conftest.$ac_ext >&5
33276
33277 ac_cv_func_getcwd=no
33278 fi
33279 rm -f conftest.err conftest.$ac_objext \
33280       conftest$ac_exeext conftest.$ac_ext
33281 fi
33282 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
33283 echo "${ECHO_T}$ac_cv_func_getcwd" >&6
33284 if test $ac_cv_func_getcwd = yes; then
33285
33286 cat >>confdefs.h <<_ACEOF
33287 #define HAVE_GETCWD 1
33288 _ACEOF
33289
33290 else
33291   case $LIBOBJS in
33292     "getcwd.$ac_objext"   | \
33293   *" getcwd.$ac_objext"   | \
33294     "getcwd.$ac_objext "* | \
33295   *" getcwd.$ac_objext "* ) ;;
33296   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
33297 esac
33298
33299 fi
33300 echo "$as_me:$LINENO: checking for getdtablesize" >&5
33301 echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
33302 if test "${ac_cv_func_getdtablesize+set}" = set; then
33303   echo $ECHO_N "(cached) $ECHO_C" >&6
33304 else
33305   cat >conftest.$ac_ext <<_ACEOF
33306 /* confdefs.h.  */
33307 _ACEOF
33308 cat confdefs.h >>conftest.$ac_ext
33309 cat >>conftest.$ac_ext <<_ACEOF
33310 /* end confdefs.h.  */
33311 /* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
33312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33313 #define getdtablesize innocuous_getdtablesize
33314
33315 /* System header to define __stub macros and hopefully few prototypes,
33316     which can conflict with char getdtablesize (); below.
33317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33318     <limits.h> exists even on freestanding compilers.  */
33319
33320 #ifdef __STDC__
33321 # include <limits.h>
33322 #else
33323 # include <assert.h>
33324 #endif
33325
33326 #undef getdtablesize
33327
33328 /* Override any gcc2 internal prototype to avoid an error.  */
33329 #ifdef __cplusplus
33330 extern "C"
33331 {
33332 #endif
33333 /* We use char because int might match the return type of a gcc2
33334    builtin and then its argument prototype would still apply.  */
33335 char getdtablesize ();
33336 /* The GNU C library defines this for functions which it implements
33337     to always fail with ENOSYS.  Some functions are actually named
33338     something starting with __ and the normal name is an alias.  */
33339 #if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
33340 choke me
33341 #else
33342 char (*f) () = getdtablesize;
33343 #endif
33344 #ifdef __cplusplus
33345 }
33346 #endif
33347
33348 int
33349 main ()
33350 {
33351 return f != getdtablesize;
33352   ;
33353   return 0;
33354 }
33355 _ACEOF
33356 rm -f conftest.$ac_objext conftest$ac_exeext
33357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33358   (eval $ac_link) 2>conftest.er1
33359   ac_status=$?
33360   grep -v '^ *+' conftest.er1 >conftest.err
33361   rm -f conftest.er1
33362   cat conftest.err >&5
33363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364   (exit $ac_status); } &&
33365          { ac_try='test -z "$ac_c_werror_flag"
33366                          || test ! -s conftest.err'
33367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33368   (eval $ac_try) 2>&5
33369   ac_status=$?
33370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371   (exit $ac_status); }; } &&
33372          { ac_try='test -s conftest$ac_exeext'
33373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374   (eval $ac_try) 2>&5
33375   ac_status=$?
33376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377   (exit $ac_status); }; }; then
33378   ac_cv_func_getdtablesize=yes
33379 else
33380   echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33382
33383 ac_cv_func_getdtablesize=no
33384 fi
33385 rm -f conftest.err conftest.$ac_objext \
33386       conftest$ac_exeext conftest.$ac_ext
33387 fi
33388 echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
33389 echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
33390 if test $ac_cv_func_getdtablesize = yes; then
33391
33392 cat >>confdefs.h <<_ACEOF
33393 #define HAVE_GETDTABLESIZE 1
33394 _ACEOF
33395
33396 else
33397   case $LIBOBJS in
33398     "getdtablesize.$ac_objext"   | \
33399   *" getdtablesize.$ac_objext"   | \
33400     "getdtablesize.$ac_objext "* | \
33401   *" getdtablesize.$ac_objext "* ) ;;
33402   *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" ;;
33403 esac
33404
33405 fi
33406 echo "$as_me:$LINENO: checking for getegid" >&5
33407 echo $ECHO_N "checking for getegid... $ECHO_C" >&6
33408 if test "${ac_cv_func_getegid+set}" = set; then
33409   echo $ECHO_N "(cached) $ECHO_C" >&6
33410 else
33411   cat >conftest.$ac_ext <<_ACEOF
33412 /* confdefs.h.  */
33413 _ACEOF
33414 cat confdefs.h >>conftest.$ac_ext
33415 cat >>conftest.$ac_ext <<_ACEOF
33416 /* end confdefs.h.  */
33417 /* Define getegid to an innocuous variant, in case <limits.h> declares getegid.
33418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33419 #define getegid innocuous_getegid
33420
33421 /* System header to define __stub macros and hopefully few prototypes,
33422     which can conflict with char getegid (); below.
33423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33424     <limits.h> exists even on freestanding compilers.  */
33425
33426 #ifdef __STDC__
33427 # include <limits.h>
33428 #else
33429 # include <assert.h>
33430 #endif
33431
33432 #undef getegid
33433
33434 /* Override any gcc2 internal prototype to avoid an error.  */
33435 #ifdef __cplusplus
33436 extern "C"
33437 {
33438 #endif
33439 /* We use char because int might match the return type of a gcc2
33440    builtin and then its argument prototype would still apply.  */
33441 char getegid ();
33442 /* The GNU C library defines this for functions which it implements
33443     to always fail with ENOSYS.  Some functions are actually named
33444     something starting with __ and the normal name is an alias.  */
33445 #if defined (__stub_getegid) || defined (__stub___getegid)
33446 choke me
33447 #else
33448 char (*f) () = getegid;
33449 #endif
33450 #ifdef __cplusplus
33451 }
33452 #endif
33453
33454 int
33455 main ()
33456 {
33457 return f != getegid;
33458   ;
33459   return 0;
33460 }
33461 _ACEOF
33462 rm -f conftest.$ac_objext conftest$ac_exeext
33463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33464   (eval $ac_link) 2>conftest.er1
33465   ac_status=$?
33466   grep -v '^ *+' conftest.er1 >conftest.err
33467   rm -f conftest.er1
33468   cat conftest.err >&5
33469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470   (exit $ac_status); } &&
33471          { ac_try='test -z "$ac_c_werror_flag"
33472                          || test ! -s conftest.err'
33473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33474   (eval $ac_try) 2>&5
33475   ac_status=$?
33476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477   (exit $ac_status); }; } &&
33478          { ac_try='test -s conftest$ac_exeext'
33479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33480   (eval $ac_try) 2>&5
33481   ac_status=$?
33482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483   (exit $ac_status); }; }; then
33484   ac_cv_func_getegid=yes
33485 else
33486   echo "$as_me: failed program was:" >&5
33487 sed 's/^/| /' conftest.$ac_ext >&5
33488
33489 ac_cv_func_getegid=no
33490 fi
33491 rm -f conftest.err conftest.$ac_objext \
33492       conftest$ac_exeext conftest.$ac_ext
33493 fi
33494 echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
33495 echo "${ECHO_T}$ac_cv_func_getegid" >&6
33496 if test $ac_cv_func_getegid = yes; then
33497
33498 cat >>confdefs.h <<_ACEOF
33499 #define HAVE_GETEGID 1
33500 _ACEOF
33501
33502 else
33503   case $LIBOBJS in
33504     "getegid.$ac_objext"   | \
33505   *" getegid.$ac_objext"   | \
33506     "getegid.$ac_objext "* | \
33507   *" getegid.$ac_objext "* ) ;;
33508   *) LIBOBJS="$LIBOBJS getegid.$ac_objext" ;;
33509 esac
33510
33511 fi
33512 echo "$as_me:$LINENO: checking for geteuid" >&5
33513 echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
33514 if test "${ac_cv_func_geteuid+set}" = set; then
33515   echo $ECHO_N "(cached) $ECHO_C" >&6
33516 else
33517   cat >conftest.$ac_ext <<_ACEOF
33518 /* confdefs.h.  */
33519 _ACEOF
33520 cat confdefs.h >>conftest.$ac_ext
33521 cat >>conftest.$ac_ext <<_ACEOF
33522 /* end confdefs.h.  */
33523 /* Define geteuid to an innocuous variant, in case <limits.h> declares geteuid.
33524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33525 #define geteuid innocuous_geteuid
33526
33527 /* System header to define __stub macros and hopefully few prototypes,
33528     which can conflict with char geteuid (); below.
33529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33530     <limits.h> exists even on freestanding compilers.  */
33531
33532 #ifdef __STDC__
33533 # include <limits.h>
33534 #else
33535 # include <assert.h>
33536 #endif
33537
33538 #undef geteuid
33539
33540 /* Override any gcc2 internal prototype to avoid an error.  */
33541 #ifdef __cplusplus
33542 extern "C"
33543 {
33544 #endif
33545 /* We use char because int might match the return type of a gcc2
33546    builtin and then its argument prototype would still apply.  */
33547 char geteuid ();
33548 /* The GNU C library defines this for functions which it implements
33549     to always fail with ENOSYS.  Some functions are actually named
33550     something starting with __ and the normal name is an alias.  */
33551 #if defined (__stub_geteuid) || defined (__stub___geteuid)
33552 choke me
33553 #else
33554 char (*f) () = geteuid;
33555 #endif
33556 #ifdef __cplusplus
33557 }
33558 #endif
33559
33560 int
33561 main ()
33562 {
33563 return f != geteuid;
33564   ;
33565   return 0;
33566 }
33567 _ACEOF
33568 rm -f conftest.$ac_objext conftest$ac_exeext
33569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33570   (eval $ac_link) 2>conftest.er1
33571   ac_status=$?
33572   grep -v '^ *+' conftest.er1 >conftest.err
33573   rm -f conftest.er1
33574   cat conftest.err >&5
33575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576   (exit $ac_status); } &&
33577          { ac_try='test -z "$ac_c_werror_flag"
33578                          || test ! -s conftest.err'
33579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580   (eval $ac_try) 2>&5
33581   ac_status=$?
33582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583   (exit $ac_status); }; } &&
33584          { ac_try='test -s conftest$ac_exeext'
33585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33586   (eval $ac_try) 2>&5
33587   ac_status=$?
33588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589   (exit $ac_status); }; }; then
33590   ac_cv_func_geteuid=yes
33591 else
33592   echo "$as_me: failed program was:" >&5
33593 sed 's/^/| /' conftest.$ac_ext >&5
33594
33595 ac_cv_func_geteuid=no
33596 fi
33597 rm -f conftest.err conftest.$ac_objext \
33598       conftest$ac_exeext conftest.$ac_ext
33599 fi
33600 echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
33601 echo "${ECHO_T}$ac_cv_func_geteuid" >&6
33602 if test $ac_cv_func_geteuid = yes; then
33603
33604 cat >>confdefs.h <<_ACEOF
33605 #define HAVE_GETEUID 1
33606 _ACEOF
33607
33608 else
33609   case $LIBOBJS in
33610     "geteuid.$ac_objext"   | \
33611   *" geteuid.$ac_objext"   | \
33612     "geteuid.$ac_objext "* | \
33613   *" geteuid.$ac_objext "* ) ;;
33614   *) LIBOBJS="$LIBOBJS geteuid.$ac_objext" ;;
33615 esac
33616
33617 fi
33618 echo "$as_me:$LINENO: checking for getgid" >&5
33619 echo $ECHO_N "checking for getgid... $ECHO_C" >&6
33620 if test "${ac_cv_func_getgid+set}" = set; then
33621   echo $ECHO_N "(cached) $ECHO_C" >&6
33622 else
33623   cat >conftest.$ac_ext <<_ACEOF
33624 /* confdefs.h.  */
33625 _ACEOF
33626 cat confdefs.h >>conftest.$ac_ext
33627 cat >>conftest.$ac_ext <<_ACEOF
33628 /* end confdefs.h.  */
33629 /* Define getgid to an innocuous variant, in case <limits.h> declares getgid.
33630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33631 #define getgid innocuous_getgid
33632
33633 /* System header to define __stub macros and hopefully few prototypes,
33634     which can conflict with char getgid (); below.
33635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33636     <limits.h> exists even on freestanding compilers.  */
33637
33638 #ifdef __STDC__
33639 # include <limits.h>
33640 #else
33641 # include <assert.h>
33642 #endif
33643
33644 #undef getgid
33645
33646 /* Override any gcc2 internal prototype to avoid an error.  */
33647 #ifdef __cplusplus
33648 extern "C"
33649 {
33650 #endif
33651 /* We use char because int might match the return type of a gcc2
33652    builtin and then its argument prototype would still apply.  */
33653 char getgid ();
33654 /* The GNU C library defines this for functions which it implements
33655     to always fail with ENOSYS.  Some functions are actually named
33656     something starting with __ and the normal name is an alias.  */
33657 #if defined (__stub_getgid) || defined (__stub___getgid)
33658 choke me
33659 #else
33660 char (*f) () = getgid;
33661 #endif
33662 #ifdef __cplusplus
33663 }
33664 #endif
33665
33666 int
33667 main ()
33668 {
33669 return f != getgid;
33670   ;
33671   return 0;
33672 }
33673 _ACEOF
33674 rm -f conftest.$ac_objext conftest$ac_exeext
33675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33676   (eval $ac_link) 2>conftest.er1
33677   ac_status=$?
33678   grep -v '^ *+' conftest.er1 >conftest.err
33679   rm -f conftest.er1
33680   cat conftest.err >&5
33681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682   (exit $ac_status); } &&
33683          { ac_try='test -z "$ac_c_werror_flag"
33684                          || test ! -s conftest.err'
33685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33686   (eval $ac_try) 2>&5
33687   ac_status=$?
33688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689   (exit $ac_status); }; } &&
33690          { ac_try='test -s conftest$ac_exeext'
33691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692   (eval $ac_try) 2>&5
33693   ac_status=$?
33694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695   (exit $ac_status); }; }; then
33696   ac_cv_func_getgid=yes
33697 else
33698   echo "$as_me: failed program was:" >&5
33699 sed 's/^/| /' conftest.$ac_ext >&5
33700
33701 ac_cv_func_getgid=no
33702 fi
33703 rm -f conftest.err conftest.$ac_objext \
33704       conftest$ac_exeext conftest.$ac_ext
33705 fi
33706 echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
33707 echo "${ECHO_T}$ac_cv_func_getgid" >&6
33708 if test $ac_cv_func_getgid = yes; then
33709
33710 cat >>confdefs.h <<_ACEOF
33711 #define HAVE_GETGID 1
33712 _ACEOF
33713
33714 else
33715   case $LIBOBJS in
33716     "getgid.$ac_objext"   | \
33717   *" getgid.$ac_objext"   | \
33718     "getgid.$ac_objext "* | \
33719   *" getgid.$ac_objext "* ) ;;
33720   *) LIBOBJS="$LIBOBJS getgid.$ac_objext" ;;
33721 esac
33722
33723 fi
33724 echo "$as_me:$LINENO: checking for gethostname" >&5
33725 echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
33726 if test "${ac_cv_func_gethostname+set}" = set; then
33727   echo $ECHO_N "(cached) $ECHO_C" >&6
33728 else
33729   cat >conftest.$ac_ext <<_ACEOF
33730 /* confdefs.h.  */
33731 _ACEOF
33732 cat confdefs.h >>conftest.$ac_ext
33733 cat >>conftest.$ac_ext <<_ACEOF
33734 /* end confdefs.h.  */
33735 /* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
33736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33737 #define gethostname innocuous_gethostname
33738
33739 /* System header to define __stub macros and hopefully few prototypes,
33740     which can conflict with char gethostname (); below.
33741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33742     <limits.h> exists even on freestanding compilers.  */
33743
33744 #ifdef __STDC__
33745 # include <limits.h>
33746 #else
33747 # include <assert.h>
33748 #endif
33749
33750 #undef gethostname
33751
33752 /* Override any gcc2 internal prototype to avoid an error.  */
33753 #ifdef __cplusplus
33754 extern "C"
33755 {
33756 #endif
33757 /* We use char because int might match the return type of a gcc2
33758    builtin and then its argument prototype would still apply.  */
33759 char gethostname ();
33760 /* The GNU C library defines this for functions which it implements
33761     to always fail with ENOSYS.  Some functions are actually named
33762     something starting with __ and the normal name is an alias.  */
33763 #if defined (__stub_gethostname) || defined (__stub___gethostname)
33764 choke me
33765 #else
33766 char (*f) () = gethostname;
33767 #endif
33768 #ifdef __cplusplus
33769 }
33770 #endif
33771
33772 int
33773 main ()
33774 {
33775 return f != gethostname;
33776   ;
33777   return 0;
33778 }
33779 _ACEOF
33780 rm -f conftest.$ac_objext conftest$ac_exeext
33781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33782   (eval $ac_link) 2>conftest.er1
33783   ac_status=$?
33784   grep -v '^ *+' conftest.er1 >conftest.err
33785   rm -f conftest.er1
33786   cat conftest.err >&5
33787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788   (exit $ac_status); } &&
33789          { ac_try='test -z "$ac_c_werror_flag"
33790                          || test ! -s conftest.err'
33791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792   (eval $ac_try) 2>&5
33793   ac_status=$?
33794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795   (exit $ac_status); }; } &&
33796          { ac_try='test -s conftest$ac_exeext'
33797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798   (eval $ac_try) 2>&5
33799   ac_status=$?
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); }; }; then
33802   ac_cv_func_gethostname=yes
33803 else
33804   echo "$as_me: failed program was:" >&5
33805 sed 's/^/| /' conftest.$ac_ext >&5
33806
33807 ac_cv_func_gethostname=no
33808 fi
33809 rm -f conftest.err conftest.$ac_objext \
33810       conftest$ac_exeext conftest.$ac_ext
33811 fi
33812 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
33813 echo "${ECHO_T}$ac_cv_func_gethostname" >&6
33814 if test $ac_cv_func_gethostname = yes; then
33815
33816 cat >>confdefs.h <<_ACEOF
33817 #define HAVE_GETHOSTNAME 1
33818 _ACEOF
33819
33820 else
33821   case $LIBOBJS in
33822     "gethostname.$ac_objext"   | \
33823   *" gethostname.$ac_objext"   | \
33824     "gethostname.$ac_objext "* | \
33825   *" gethostname.$ac_objext "* ) ;;
33826   *) LIBOBJS="$LIBOBJS gethostname.$ac_objext" ;;
33827 esac
33828
33829 fi
33830 echo "$as_me:$LINENO: checking for getifaddrs" >&5
33831 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
33832 if test "${ac_cv_func_getifaddrs+set}" = set; then
33833   echo $ECHO_N "(cached) $ECHO_C" >&6
33834 else
33835   cat >conftest.$ac_ext <<_ACEOF
33836 /* confdefs.h.  */
33837 _ACEOF
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h.  */
33841 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
33842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33843 #define getifaddrs innocuous_getifaddrs
33844
33845 /* System header to define __stub macros and hopefully few prototypes,
33846     which can conflict with char getifaddrs (); below.
33847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33848     <limits.h> exists even on freestanding compilers.  */
33849
33850 #ifdef __STDC__
33851 # include <limits.h>
33852 #else
33853 # include <assert.h>
33854 #endif
33855
33856 #undef getifaddrs
33857
33858 /* Override any gcc2 internal prototype to avoid an error.  */
33859 #ifdef __cplusplus
33860 extern "C"
33861 {
33862 #endif
33863 /* We use char because int might match the return type of a gcc2
33864    builtin and then its argument prototype would still apply.  */
33865 char getifaddrs ();
33866 /* The GNU C library defines this for functions which it implements
33867     to always fail with ENOSYS.  Some functions are actually named
33868     something starting with __ and the normal name is an alias.  */
33869 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
33870 choke me
33871 #else
33872 char (*f) () = getifaddrs;
33873 #endif
33874 #ifdef __cplusplus
33875 }
33876 #endif
33877
33878 int
33879 main ()
33880 {
33881 return f != getifaddrs;
33882   ;
33883   return 0;
33884 }
33885 _ACEOF
33886 rm -f conftest.$ac_objext conftest$ac_exeext
33887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33888   (eval $ac_link) 2>conftest.er1
33889   ac_status=$?
33890   grep -v '^ *+' conftest.er1 >conftest.err
33891   rm -f conftest.er1
33892   cat conftest.err >&5
33893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894   (exit $ac_status); } &&
33895          { ac_try='test -z "$ac_c_werror_flag"
33896                          || test ! -s conftest.err'
33897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33898   (eval $ac_try) 2>&5
33899   ac_status=$?
33900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33901   (exit $ac_status); }; } &&
33902          { ac_try='test -s conftest$ac_exeext'
33903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33904   (eval $ac_try) 2>&5
33905   ac_status=$?
33906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907   (exit $ac_status); }; }; then
33908   ac_cv_func_getifaddrs=yes
33909 else
33910   echo "$as_me: failed program was:" >&5
33911 sed 's/^/| /' conftest.$ac_ext >&5
33912
33913 ac_cv_func_getifaddrs=no
33914 fi
33915 rm -f conftest.err conftest.$ac_objext \
33916       conftest$ac_exeext conftest.$ac_ext
33917 fi
33918 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
33919 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
33920 if test $ac_cv_func_getifaddrs = yes; then
33921
33922 cat >>confdefs.h <<_ACEOF
33923 #define HAVE_GETIFADDRS 1
33924 _ACEOF
33925
33926 else
33927   case $LIBOBJS in
33928     "getifaddrs.$ac_objext"   | \
33929   *" getifaddrs.$ac_objext"   | \
33930     "getifaddrs.$ac_objext "* | \
33931   *" getifaddrs.$ac_objext "* ) ;;
33932   *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" ;;
33933 esac
33934
33935 fi
33936 echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
33937 echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
33938 if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
33939   echo $ECHO_N "(cached) $ECHO_C" >&6
33940 else
33941   cat >conftest.$ac_ext <<_ACEOF
33942 /* confdefs.h.  */
33943 _ACEOF
33944 cat confdefs.h >>conftest.$ac_ext
33945 cat >>conftest.$ac_ext <<_ACEOF
33946 /* end confdefs.h.  */
33947 /* Define getipnodebyaddr to an innocuous variant, in case <limits.h> declares getipnodebyaddr.
33948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33949 #define getipnodebyaddr innocuous_getipnodebyaddr
33950
33951 /* System header to define __stub macros and hopefully few prototypes,
33952     which can conflict with char getipnodebyaddr (); below.
33953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33954     <limits.h> exists even on freestanding compilers.  */
33955
33956 #ifdef __STDC__
33957 # include <limits.h>
33958 #else
33959 # include <assert.h>
33960 #endif
33961
33962 #undef getipnodebyaddr
33963
33964 /* Override any gcc2 internal prototype to avoid an error.  */
33965 #ifdef __cplusplus
33966 extern "C"
33967 {
33968 #endif
33969 /* We use char because int might match the return type of a gcc2
33970    builtin and then its argument prototype would still apply.  */
33971 char getipnodebyaddr ();
33972 /* The GNU C library defines this for functions which it implements
33973     to always fail with ENOSYS.  Some functions are actually named
33974     something starting with __ and the normal name is an alias.  */
33975 #if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
33976 choke me
33977 #else
33978 char (*f) () = getipnodebyaddr;
33979 #endif
33980 #ifdef __cplusplus
33981 }
33982 #endif
33983
33984 int
33985 main ()
33986 {
33987 return f != getipnodebyaddr;
33988   ;
33989   return 0;
33990 }
33991 _ACEOF
33992 rm -f conftest.$ac_objext conftest$ac_exeext
33993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33994   (eval $ac_link) 2>conftest.er1
33995   ac_status=$?
33996   grep -v '^ *+' conftest.er1 >conftest.err
33997   rm -f conftest.er1
33998   cat conftest.err >&5
33999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000   (exit $ac_status); } &&
34001          { ac_try='test -z "$ac_c_werror_flag"
34002                          || test ! -s conftest.err'
34003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34004   (eval $ac_try) 2>&5
34005   ac_status=$?
34006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007   (exit $ac_status); }; } &&
34008          { ac_try='test -s conftest$ac_exeext'
34009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34010   (eval $ac_try) 2>&5
34011   ac_status=$?
34012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013   (exit $ac_status); }; }; then
34014   ac_cv_func_getipnodebyaddr=yes
34015 else
34016   echo "$as_me: failed program was:" >&5
34017 sed 's/^/| /' conftest.$ac_ext >&5
34018
34019 ac_cv_func_getipnodebyaddr=no
34020 fi
34021 rm -f conftest.err conftest.$ac_objext \
34022       conftest$ac_exeext conftest.$ac_ext
34023 fi
34024 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
34025 echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
34026 if test $ac_cv_func_getipnodebyaddr = yes; then
34027
34028 cat >>confdefs.h <<_ACEOF
34029 #define HAVE_GETIPNODEBYADDR 1
34030 _ACEOF
34031
34032 else
34033   case $LIBOBJS in
34034     "getipnodebyaddr.$ac_objext"   | \
34035   *" getipnodebyaddr.$ac_objext"   | \
34036     "getipnodebyaddr.$ac_objext "* | \
34037   *" getipnodebyaddr.$ac_objext "* ) ;;
34038   *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" ;;
34039 esac
34040
34041 fi
34042 echo "$as_me:$LINENO: checking for getipnodebyname" >&5
34043 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
34044 if test "${ac_cv_func_getipnodebyname+set}" = set; then
34045   echo $ECHO_N "(cached) $ECHO_C" >&6
34046 else
34047   cat >conftest.$ac_ext <<_ACEOF
34048 /* confdefs.h.  */
34049 _ACEOF
34050 cat confdefs.h >>conftest.$ac_ext
34051 cat >>conftest.$ac_ext <<_ACEOF
34052 /* end confdefs.h.  */
34053 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
34054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34055 #define getipnodebyname innocuous_getipnodebyname
34056
34057 /* System header to define __stub macros and hopefully few prototypes,
34058     which can conflict with char getipnodebyname (); below.
34059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34060     <limits.h> exists even on freestanding compilers.  */
34061
34062 #ifdef __STDC__
34063 # include <limits.h>
34064 #else
34065 # include <assert.h>
34066 #endif
34067
34068 #undef getipnodebyname
34069
34070 /* Override any gcc2 internal prototype to avoid an error.  */
34071 #ifdef __cplusplus
34072 extern "C"
34073 {
34074 #endif
34075 /* We use char because int might match the return type of a gcc2
34076    builtin and then its argument prototype would still apply.  */
34077 char getipnodebyname ();
34078 /* The GNU C library defines this for functions which it implements
34079     to always fail with ENOSYS.  Some functions are actually named
34080     something starting with __ and the normal name is an alias.  */
34081 #if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
34082 choke me
34083 #else
34084 char (*f) () = getipnodebyname;
34085 #endif
34086 #ifdef __cplusplus
34087 }
34088 #endif
34089
34090 int
34091 main ()
34092 {
34093 return f != getipnodebyname;
34094   ;
34095   return 0;
34096 }
34097 _ACEOF
34098 rm -f conftest.$ac_objext conftest$ac_exeext
34099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34100   (eval $ac_link) 2>conftest.er1
34101   ac_status=$?
34102   grep -v '^ *+' conftest.er1 >conftest.err
34103   rm -f conftest.er1
34104   cat conftest.err >&5
34105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106   (exit $ac_status); } &&
34107          { ac_try='test -z "$ac_c_werror_flag"
34108                          || test ! -s conftest.err'
34109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110   (eval $ac_try) 2>&5
34111   ac_status=$?
34112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113   (exit $ac_status); }; } &&
34114          { ac_try='test -s conftest$ac_exeext'
34115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116   (eval $ac_try) 2>&5
34117   ac_status=$?
34118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119   (exit $ac_status); }; }; then
34120   ac_cv_func_getipnodebyname=yes
34121 else
34122   echo "$as_me: failed program was:" >&5
34123 sed 's/^/| /' conftest.$ac_ext >&5
34124
34125 ac_cv_func_getipnodebyname=no
34126 fi
34127 rm -f conftest.err conftest.$ac_objext \
34128       conftest$ac_exeext conftest.$ac_ext
34129 fi
34130 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
34131 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
34132 if test $ac_cv_func_getipnodebyname = yes; then
34133
34134 cat >>confdefs.h <<_ACEOF
34135 #define HAVE_GETIPNODEBYNAME 1
34136 _ACEOF
34137
34138 else
34139   case $LIBOBJS in
34140     "getipnodebyname.$ac_objext"   | \
34141   *" getipnodebyname.$ac_objext"   | \
34142     "getipnodebyname.$ac_objext "* | \
34143   *" getipnodebyname.$ac_objext "* ) ;;
34144   *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" ;;
34145 esac
34146
34147 fi
34148 echo "$as_me:$LINENO: checking for getopt" >&5
34149 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
34150 if test "${ac_cv_func_getopt+set}" = set; then
34151   echo $ECHO_N "(cached) $ECHO_C" >&6
34152 else
34153   cat >conftest.$ac_ext <<_ACEOF
34154 /* confdefs.h.  */
34155 _ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h.  */
34159 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
34160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34161 #define getopt innocuous_getopt
34162
34163 /* System header to define __stub macros and hopefully few prototypes,
34164     which can conflict with char getopt (); below.
34165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34166     <limits.h> exists even on freestanding compilers.  */
34167
34168 #ifdef __STDC__
34169 # include <limits.h>
34170 #else
34171 # include <assert.h>
34172 #endif
34173
34174 #undef getopt
34175
34176 /* Override any gcc2 internal prototype to avoid an error.  */
34177 #ifdef __cplusplus
34178 extern "C"
34179 {
34180 #endif
34181 /* We use char because int might match the return type of a gcc2
34182    builtin and then its argument prototype would still apply.  */
34183 char getopt ();
34184 /* The GNU C library defines this for functions which it implements
34185     to always fail with ENOSYS.  Some functions are actually named
34186     something starting with __ and the normal name is an alias.  */
34187 #if defined (__stub_getopt) || defined (__stub___getopt)
34188 choke me
34189 #else
34190 char (*f) () = getopt;
34191 #endif
34192 #ifdef __cplusplus
34193 }
34194 #endif
34195
34196 int
34197 main ()
34198 {
34199 return f != getopt;
34200   ;
34201   return 0;
34202 }
34203 _ACEOF
34204 rm -f conftest.$ac_objext conftest$ac_exeext
34205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34206   (eval $ac_link) 2>conftest.er1
34207   ac_status=$?
34208   grep -v '^ *+' conftest.er1 >conftest.err
34209   rm -f conftest.er1
34210   cat conftest.err >&5
34211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212   (exit $ac_status); } &&
34213          { ac_try='test -z "$ac_c_werror_flag"
34214                          || test ! -s conftest.err'
34215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216   (eval $ac_try) 2>&5
34217   ac_status=$?
34218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219   (exit $ac_status); }; } &&
34220          { ac_try='test -s conftest$ac_exeext'
34221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222   (eval $ac_try) 2>&5
34223   ac_status=$?
34224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225   (exit $ac_status); }; }; then
34226   ac_cv_func_getopt=yes
34227 else
34228   echo "$as_me: failed program was:" >&5
34229 sed 's/^/| /' conftest.$ac_ext >&5
34230
34231 ac_cv_func_getopt=no
34232 fi
34233 rm -f conftest.err conftest.$ac_objext \
34234       conftest$ac_exeext conftest.$ac_ext
34235 fi
34236 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
34237 echo "${ECHO_T}$ac_cv_func_getopt" >&6
34238 if test $ac_cv_func_getopt = yes; then
34239
34240 cat >>confdefs.h <<_ACEOF
34241 #define HAVE_GETOPT 1
34242 _ACEOF
34243
34244 else
34245   case $LIBOBJS in
34246     "getopt.$ac_objext"   | \
34247   *" getopt.$ac_objext"   | \
34248     "getopt.$ac_objext "* | \
34249   *" getopt.$ac_objext "* ) ;;
34250   *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
34251 esac
34252
34253 fi
34254 echo "$as_me:$LINENO: checking for gettimeofday" >&5
34255 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
34256 if test "${ac_cv_func_gettimeofday+set}" = set; then
34257   echo $ECHO_N "(cached) $ECHO_C" >&6
34258 else
34259   cat >conftest.$ac_ext <<_ACEOF
34260 /* confdefs.h.  */
34261 _ACEOF
34262 cat confdefs.h >>conftest.$ac_ext
34263 cat >>conftest.$ac_ext <<_ACEOF
34264 /* end confdefs.h.  */
34265 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
34266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34267 #define gettimeofday innocuous_gettimeofday
34268
34269 /* System header to define __stub macros and hopefully few prototypes,
34270     which can conflict with char gettimeofday (); below.
34271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34272     <limits.h> exists even on freestanding compilers.  */
34273
34274 #ifdef __STDC__
34275 # include <limits.h>
34276 #else
34277 # include <assert.h>
34278 #endif
34279
34280 #undef gettimeofday
34281
34282 /* Override any gcc2 internal prototype to avoid an error.  */
34283 #ifdef __cplusplus
34284 extern "C"
34285 {
34286 #endif
34287 /* We use char because int might match the return type of a gcc2
34288    builtin and then its argument prototype would still apply.  */
34289 char gettimeofday ();
34290 /* The GNU C library defines this for functions which it implements
34291     to always fail with ENOSYS.  Some functions are actually named
34292     something starting with __ and the normal name is an alias.  */
34293 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
34294 choke me
34295 #else
34296 char (*f) () = gettimeofday;
34297 #endif
34298 #ifdef __cplusplus
34299 }
34300 #endif
34301
34302 int
34303 main ()
34304 {
34305 return f != gettimeofday;
34306   ;
34307   return 0;
34308 }
34309 _ACEOF
34310 rm -f conftest.$ac_objext conftest$ac_exeext
34311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34312   (eval $ac_link) 2>conftest.er1
34313   ac_status=$?
34314   grep -v '^ *+' conftest.er1 >conftest.err
34315   rm -f conftest.er1
34316   cat conftest.err >&5
34317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318   (exit $ac_status); } &&
34319          { ac_try='test -z "$ac_c_werror_flag"
34320                          || test ! -s conftest.err'
34321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34322   (eval $ac_try) 2>&5
34323   ac_status=$?
34324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325   (exit $ac_status); }; } &&
34326          { ac_try='test -s conftest$ac_exeext'
34327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328   (eval $ac_try) 2>&5
34329   ac_status=$?
34330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331   (exit $ac_status); }; }; then
34332   ac_cv_func_gettimeofday=yes
34333 else
34334   echo "$as_me: failed program was:" >&5
34335 sed 's/^/| /' conftest.$ac_ext >&5
34336
34337 ac_cv_func_gettimeofday=no
34338 fi
34339 rm -f conftest.err conftest.$ac_objext \
34340       conftest$ac_exeext conftest.$ac_ext
34341 fi
34342 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
34343 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
34344 if test $ac_cv_func_gettimeofday = yes; then
34345
34346 cat >>confdefs.h <<_ACEOF
34347 #define HAVE_GETTIMEOFDAY 1
34348 _ACEOF
34349
34350 else
34351   case $LIBOBJS in
34352     "gettimeofday.$ac_objext"   | \
34353   *" gettimeofday.$ac_objext"   | \
34354     "gettimeofday.$ac_objext "* | \
34355   *" gettimeofday.$ac_objext "* ) ;;
34356   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
34357 esac
34358
34359 fi
34360 echo "$as_me:$LINENO: checking for getuid" >&5
34361 echo $ECHO_N "checking for getuid... $ECHO_C" >&6
34362 if test "${ac_cv_func_getuid+set}" = set; then
34363   echo $ECHO_N "(cached) $ECHO_C" >&6
34364 else
34365   cat >conftest.$ac_ext <<_ACEOF
34366 /* confdefs.h.  */
34367 _ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h.  */
34371 /* Define getuid to an innocuous variant, in case <limits.h> declares getuid.
34372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34373 #define getuid innocuous_getuid
34374
34375 /* System header to define __stub macros and hopefully few prototypes,
34376     which can conflict with char getuid (); below.
34377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34378     <limits.h> exists even on freestanding compilers.  */
34379
34380 #ifdef __STDC__
34381 # include <limits.h>
34382 #else
34383 # include <assert.h>
34384 #endif
34385
34386 #undef getuid
34387
34388 /* Override any gcc2 internal prototype to avoid an error.  */
34389 #ifdef __cplusplus
34390 extern "C"
34391 {
34392 #endif
34393 /* We use char because int might match the return type of a gcc2
34394    builtin and then its argument prototype would still apply.  */
34395 char getuid ();
34396 /* The GNU C library defines this for functions which it implements
34397     to always fail with ENOSYS.  Some functions are actually named
34398     something starting with __ and the normal name is an alias.  */
34399 #if defined (__stub_getuid) || defined (__stub___getuid)
34400 choke me
34401 #else
34402 char (*f) () = getuid;
34403 #endif
34404 #ifdef __cplusplus
34405 }
34406 #endif
34407
34408 int
34409 main ()
34410 {
34411 return f != getuid;
34412   ;
34413   return 0;
34414 }
34415 _ACEOF
34416 rm -f conftest.$ac_objext conftest$ac_exeext
34417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34418   (eval $ac_link) 2>conftest.er1
34419   ac_status=$?
34420   grep -v '^ *+' conftest.er1 >conftest.err
34421   rm -f conftest.er1
34422   cat conftest.err >&5
34423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34424   (exit $ac_status); } &&
34425          { ac_try='test -z "$ac_c_werror_flag"
34426                          || test ! -s conftest.err'
34427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428   (eval $ac_try) 2>&5
34429   ac_status=$?
34430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431   (exit $ac_status); }; } &&
34432          { ac_try='test -s conftest$ac_exeext'
34433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34434   (eval $ac_try) 2>&5
34435   ac_status=$?
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); }; }; then
34438   ac_cv_func_getuid=yes
34439 else
34440   echo "$as_me: failed program was:" >&5
34441 sed 's/^/| /' conftest.$ac_ext >&5
34442
34443 ac_cv_func_getuid=no
34444 fi
34445 rm -f conftest.err conftest.$ac_objext \
34446       conftest$ac_exeext conftest.$ac_ext
34447 fi
34448 echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
34449 echo "${ECHO_T}$ac_cv_func_getuid" >&6
34450 if test $ac_cv_func_getuid = yes; then
34451
34452 cat >>confdefs.h <<_ACEOF
34453 #define HAVE_GETUID 1
34454 _ACEOF
34455
34456 else
34457   case $LIBOBJS in
34458     "getuid.$ac_objext"   | \
34459   *" getuid.$ac_objext"   | \
34460     "getuid.$ac_objext "* | \
34461   *" getuid.$ac_objext "* ) ;;
34462   *) LIBOBJS="$LIBOBJS getuid.$ac_objext" ;;
34463 esac
34464
34465 fi
34466 echo "$as_me:$LINENO: checking for getusershell" >&5
34467 echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
34468 if test "${ac_cv_func_getusershell+set}" = set; then
34469   echo $ECHO_N "(cached) $ECHO_C" >&6
34470 else
34471   cat >conftest.$ac_ext <<_ACEOF
34472 /* confdefs.h.  */
34473 _ACEOF
34474 cat confdefs.h >>conftest.$ac_ext
34475 cat >>conftest.$ac_ext <<_ACEOF
34476 /* end confdefs.h.  */
34477 /* Define getusershell to an innocuous variant, in case <limits.h> declares getusershell.
34478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34479 #define getusershell innocuous_getusershell
34480
34481 /* System header to define __stub macros and hopefully few prototypes,
34482     which can conflict with char getusershell (); below.
34483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34484     <limits.h> exists even on freestanding compilers.  */
34485
34486 #ifdef __STDC__
34487 # include <limits.h>
34488 #else
34489 # include <assert.h>
34490 #endif
34491
34492 #undef getusershell
34493
34494 /* Override any gcc2 internal prototype to avoid an error.  */
34495 #ifdef __cplusplus
34496 extern "C"
34497 {
34498 #endif
34499 /* We use char because int might match the return type of a gcc2
34500    builtin and then its argument prototype would still apply.  */
34501 char getusershell ();
34502 /* The GNU C library defines this for functions which it implements
34503     to always fail with ENOSYS.  Some functions are actually named
34504     something starting with __ and the normal name is an alias.  */
34505 #if defined (__stub_getusershell) || defined (__stub___getusershell)
34506 choke me
34507 #else
34508 char (*f) () = getusershell;
34509 #endif
34510 #ifdef __cplusplus
34511 }
34512 #endif
34513
34514 int
34515 main ()
34516 {
34517 return f != getusershell;
34518   ;
34519   return 0;
34520 }
34521 _ACEOF
34522 rm -f conftest.$ac_objext conftest$ac_exeext
34523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34524   (eval $ac_link) 2>conftest.er1
34525   ac_status=$?
34526   grep -v '^ *+' conftest.er1 >conftest.err
34527   rm -f conftest.er1
34528   cat conftest.err >&5
34529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530   (exit $ac_status); } &&
34531          { ac_try='test -z "$ac_c_werror_flag"
34532                          || test ! -s conftest.err'
34533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534   (eval $ac_try) 2>&5
34535   ac_status=$?
34536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537   (exit $ac_status); }; } &&
34538          { ac_try='test -s conftest$ac_exeext'
34539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34540   (eval $ac_try) 2>&5
34541   ac_status=$?
34542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543   (exit $ac_status); }; }; then
34544   ac_cv_func_getusershell=yes
34545 else
34546   echo "$as_me: failed program was:" >&5
34547 sed 's/^/| /' conftest.$ac_ext >&5
34548
34549 ac_cv_func_getusershell=no
34550 fi
34551 rm -f conftest.err conftest.$ac_objext \
34552       conftest$ac_exeext conftest.$ac_ext
34553 fi
34554 echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
34555 echo "${ECHO_T}$ac_cv_func_getusershell" >&6
34556 if test $ac_cv_func_getusershell = yes; then
34557
34558 cat >>confdefs.h <<_ACEOF
34559 #define HAVE_GETUSERSHELL 1
34560 _ACEOF
34561
34562 else
34563   case $LIBOBJS in
34564     "getusershell.$ac_objext"   | \
34565   *" getusershell.$ac_objext"   | \
34566     "getusershell.$ac_objext "* | \
34567   *" getusershell.$ac_objext "* ) ;;
34568   *) LIBOBJS="$LIBOBJS getusershell.$ac_objext" ;;
34569 esac
34570
34571 fi
34572 echo "$as_me:$LINENO: checking for initgroups" >&5
34573 echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
34574 if test "${ac_cv_func_initgroups+set}" = set; then
34575   echo $ECHO_N "(cached) $ECHO_C" >&6
34576 else
34577   cat >conftest.$ac_ext <<_ACEOF
34578 /* confdefs.h.  */
34579 _ACEOF
34580 cat confdefs.h >>conftest.$ac_ext
34581 cat >>conftest.$ac_ext <<_ACEOF
34582 /* end confdefs.h.  */
34583 /* Define initgroups to an innocuous variant, in case <limits.h> declares initgroups.
34584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34585 #define initgroups innocuous_initgroups
34586
34587 /* System header to define __stub macros and hopefully few prototypes,
34588     which can conflict with char initgroups (); below.
34589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34590     <limits.h> exists even on freestanding compilers.  */
34591
34592 #ifdef __STDC__
34593 # include <limits.h>
34594 #else
34595 # include <assert.h>
34596 #endif
34597
34598 #undef initgroups
34599
34600 /* Override any gcc2 internal prototype to avoid an error.  */
34601 #ifdef __cplusplus
34602 extern "C"
34603 {
34604 #endif
34605 /* We use char because int might match the return type of a gcc2
34606    builtin and then its argument prototype would still apply.  */
34607 char initgroups ();
34608 /* The GNU C library defines this for functions which it implements
34609     to always fail with ENOSYS.  Some functions are actually named
34610     something starting with __ and the normal name is an alias.  */
34611 #if defined (__stub_initgroups) || defined (__stub___initgroups)
34612 choke me
34613 #else
34614 char (*f) () = initgroups;
34615 #endif
34616 #ifdef __cplusplus
34617 }
34618 #endif
34619
34620 int
34621 main ()
34622 {
34623 return f != initgroups;
34624   ;
34625   return 0;
34626 }
34627 _ACEOF
34628 rm -f conftest.$ac_objext conftest$ac_exeext
34629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34630   (eval $ac_link) 2>conftest.er1
34631   ac_status=$?
34632   grep -v '^ *+' conftest.er1 >conftest.err
34633   rm -f conftest.er1
34634   cat conftest.err >&5
34635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636   (exit $ac_status); } &&
34637          { ac_try='test -z "$ac_c_werror_flag"
34638                          || test ! -s conftest.err'
34639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34640   (eval $ac_try) 2>&5
34641   ac_status=$?
34642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643   (exit $ac_status); }; } &&
34644          { ac_try='test -s conftest$ac_exeext'
34645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34646   (eval $ac_try) 2>&5
34647   ac_status=$?
34648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649   (exit $ac_status); }; }; then
34650   ac_cv_func_initgroups=yes
34651 else
34652   echo "$as_me: failed program was:" >&5
34653 sed 's/^/| /' conftest.$ac_ext >&5
34654
34655 ac_cv_func_initgroups=no
34656 fi
34657 rm -f conftest.err conftest.$ac_objext \
34658       conftest$ac_exeext conftest.$ac_ext
34659 fi
34660 echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
34661 echo "${ECHO_T}$ac_cv_func_initgroups" >&6
34662 if test $ac_cv_func_initgroups = yes; then
34663
34664 cat >>confdefs.h <<_ACEOF
34665 #define HAVE_INITGROUPS 1
34666 _ACEOF
34667
34668 else
34669   case $LIBOBJS in
34670     "initgroups.$ac_objext"   | \
34671   *" initgroups.$ac_objext"   | \
34672     "initgroups.$ac_objext "* | \
34673   *" initgroups.$ac_objext "* ) ;;
34674   *) LIBOBJS="$LIBOBJS initgroups.$ac_objext" ;;
34675 esac
34676
34677 fi
34678 echo "$as_me:$LINENO: checking for innetgr" >&5
34679 echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
34680 if test "${ac_cv_func_innetgr+set}" = set; then
34681   echo $ECHO_N "(cached) $ECHO_C" >&6
34682 else
34683   cat >conftest.$ac_ext <<_ACEOF
34684 /* confdefs.h.  */
34685 _ACEOF
34686 cat confdefs.h >>conftest.$ac_ext
34687 cat >>conftest.$ac_ext <<_ACEOF
34688 /* end confdefs.h.  */
34689 /* Define innetgr to an innocuous variant, in case <limits.h> declares innetgr.
34690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34691 #define innetgr innocuous_innetgr
34692
34693 /* System header to define __stub macros and hopefully few prototypes,
34694     which can conflict with char innetgr (); below.
34695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34696     <limits.h> exists even on freestanding compilers.  */
34697
34698 #ifdef __STDC__
34699 # include <limits.h>
34700 #else
34701 # include <assert.h>
34702 #endif
34703
34704 #undef innetgr
34705
34706 /* Override any gcc2 internal prototype to avoid an error.  */
34707 #ifdef __cplusplus
34708 extern "C"
34709 {
34710 #endif
34711 /* We use char because int might match the return type of a gcc2
34712    builtin and then its argument prototype would still apply.  */
34713 char innetgr ();
34714 /* The GNU C library defines this for functions which it implements
34715     to always fail with ENOSYS.  Some functions are actually named
34716     something starting with __ and the normal name is an alias.  */
34717 #if defined (__stub_innetgr) || defined (__stub___innetgr)
34718 choke me
34719 #else
34720 char (*f) () = innetgr;
34721 #endif
34722 #ifdef __cplusplus
34723 }
34724 #endif
34725
34726 int
34727 main ()
34728 {
34729 return f != innetgr;
34730   ;
34731   return 0;
34732 }
34733 _ACEOF
34734 rm -f conftest.$ac_objext conftest$ac_exeext
34735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34736   (eval $ac_link) 2>conftest.er1
34737   ac_status=$?
34738   grep -v '^ *+' conftest.er1 >conftest.err
34739   rm -f conftest.er1
34740   cat conftest.err >&5
34741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742   (exit $ac_status); } &&
34743          { ac_try='test -z "$ac_c_werror_flag"
34744                          || test ! -s conftest.err'
34745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34746   (eval $ac_try) 2>&5
34747   ac_status=$?
34748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34749   (exit $ac_status); }; } &&
34750          { ac_try='test -s conftest$ac_exeext'
34751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34752   (eval $ac_try) 2>&5
34753   ac_status=$?
34754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34755   (exit $ac_status); }; }; then
34756   ac_cv_func_innetgr=yes
34757 else
34758   echo "$as_me: failed program was:" >&5
34759 sed 's/^/| /' conftest.$ac_ext >&5
34760
34761 ac_cv_func_innetgr=no
34762 fi
34763 rm -f conftest.err conftest.$ac_objext \
34764       conftest$ac_exeext conftest.$ac_ext
34765 fi
34766 echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
34767 echo "${ECHO_T}$ac_cv_func_innetgr" >&6
34768 if test $ac_cv_func_innetgr = yes; then
34769
34770 cat >>confdefs.h <<_ACEOF
34771 #define HAVE_INNETGR 1
34772 _ACEOF
34773
34774 else
34775   case $LIBOBJS in
34776     "innetgr.$ac_objext"   | \
34777   *" innetgr.$ac_objext"   | \
34778     "innetgr.$ac_objext "* | \
34779   *" innetgr.$ac_objext "* ) ;;
34780   *) LIBOBJS="$LIBOBJS innetgr.$ac_objext" ;;
34781 esac
34782
34783 fi
34784 echo "$as_me:$LINENO: checking for iruserok" >&5
34785 echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
34786 if test "${ac_cv_func_iruserok+set}" = set; then
34787   echo $ECHO_N "(cached) $ECHO_C" >&6
34788 else
34789   cat >conftest.$ac_ext <<_ACEOF
34790 /* confdefs.h.  */
34791 _ACEOF
34792 cat confdefs.h >>conftest.$ac_ext
34793 cat >>conftest.$ac_ext <<_ACEOF
34794 /* end confdefs.h.  */
34795 /* Define iruserok to an innocuous variant, in case <limits.h> declares iruserok.
34796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34797 #define iruserok innocuous_iruserok
34798
34799 /* System header to define __stub macros and hopefully few prototypes,
34800     which can conflict with char iruserok (); below.
34801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34802     <limits.h> exists even on freestanding compilers.  */
34803
34804 #ifdef __STDC__
34805 # include <limits.h>
34806 #else
34807 # include <assert.h>
34808 #endif
34809
34810 #undef iruserok
34811
34812 /* Override any gcc2 internal prototype to avoid an error.  */
34813 #ifdef __cplusplus
34814 extern "C"
34815 {
34816 #endif
34817 /* We use char because int might match the return type of a gcc2
34818    builtin and then its argument prototype would still apply.  */
34819 char iruserok ();
34820 /* The GNU C library defines this for functions which it implements
34821     to always fail with ENOSYS.  Some functions are actually named
34822     something starting with __ and the normal name is an alias.  */
34823 #if defined (__stub_iruserok) || defined (__stub___iruserok)
34824 choke me
34825 #else
34826 char (*f) () = iruserok;
34827 #endif
34828 #ifdef __cplusplus
34829 }
34830 #endif
34831
34832 int
34833 main ()
34834 {
34835 return f != iruserok;
34836   ;
34837   return 0;
34838 }
34839 _ACEOF
34840 rm -f conftest.$ac_objext conftest$ac_exeext
34841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34842   (eval $ac_link) 2>conftest.er1
34843   ac_status=$?
34844   grep -v '^ *+' conftest.er1 >conftest.err
34845   rm -f conftest.er1
34846   cat conftest.err >&5
34847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848   (exit $ac_status); } &&
34849          { ac_try='test -z "$ac_c_werror_flag"
34850                          || test ! -s conftest.err'
34851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34852   (eval $ac_try) 2>&5
34853   ac_status=$?
34854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855   (exit $ac_status); }; } &&
34856          { ac_try='test -s conftest$ac_exeext'
34857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34858   (eval $ac_try) 2>&5
34859   ac_status=$?
34860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861   (exit $ac_status); }; }; then
34862   ac_cv_func_iruserok=yes
34863 else
34864   echo "$as_me: failed program was:" >&5
34865 sed 's/^/| /' conftest.$ac_ext >&5
34866
34867 ac_cv_func_iruserok=no
34868 fi
34869 rm -f conftest.err conftest.$ac_objext \
34870       conftest$ac_exeext conftest.$ac_ext
34871 fi
34872 echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
34873 echo "${ECHO_T}$ac_cv_func_iruserok" >&6
34874 if test $ac_cv_func_iruserok = yes; then
34875
34876 cat >>confdefs.h <<_ACEOF
34877 #define HAVE_IRUSEROK 1
34878 _ACEOF
34879
34880 else
34881   case $LIBOBJS in
34882     "iruserok.$ac_objext"   | \
34883   *" iruserok.$ac_objext"   | \
34884     "iruserok.$ac_objext "* | \
34885   *" iruserok.$ac_objext "* ) ;;
34886   *) LIBOBJS="$LIBOBJS iruserok.$ac_objext" ;;
34887 esac
34888
34889 fi
34890 echo "$as_me:$LINENO: checking for localtime_r" >&5
34891 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
34892 if test "${ac_cv_func_localtime_r+set}" = set; then
34893   echo $ECHO_N "(cached) $ECHO_C" >&6
34894 else
34895   cat >conftest.$ac_ext <<_ACEOF
34896 /* confdefs.h.  */
34897 _ACEOF
34898 cat confdefs.h >>conftest.$ac_ext
34899 cat >>conftest.$ac_ext <<_ACEOF
34900 /* end confdefs.h.  */
34901 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
34902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34903 #define localtime_r innocuous_localtime_r
34904
34905 /* System header to define __stub macros and hopefully few prototypes,
34906     which can conflict with char localtime_r (); below.
34907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34908     <limits.h> exists even on freestanding compilers.  */
34909
34910 #ifdef __STDC__
34911 # include <limits.h>
34912 #else
34913 # include <assert.h>
34914 #endif
34915
34916 #undef localtime_r
34917
34918 /* Override any gcc2 internal prototype to avoid an error.  */
34919 #ifdef __cplusplus
34920 extern "C"
34921 {
34922 #endif
34923 /* We use char because int might match the return type of a gcc2
34924    builtin and then its argument prototype would still apply.  */
34925 char localtime_r ();
34926 /* The GNU C library defines this for functions which it implements
34927     to always fail with ENOSYS.  Some functions are actually named
34928     something starting with __ and the normal name is an alias.  */
34929 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
34930 choke me
34931 #else
34932 char (*f) () = localtime_r;
34933 #endif
34934 #ifdef __cplusplus
34935 }
34936 #endif
34937
34938 int
34939 main ()
34940 {
34941 return f != localtime_r;
34942   ;
34943   return 0;
34944 }
34945 _ACEOF
34946 rm -f conftest.$ac_objext conftest$ac_exeext
34947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34948   (eval $ac_link) 2>conftest.er1
34949   ac_status=$?
34950   grep -v '^ *+' conftest.er1 >conftest.err
34951   rm -f conftest.er1
34952   cat conftest.err >&5
34953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954   (exit $ac_status); } &&
34955          { ac_try='test -z "$ac_c_werror_flag"
34956                          || test ! -s conftest.err'
34957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34958   (eval $ac_try) 2>&5
34959   ac_status=$?
34960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961   (exit $ac_status); }; } &&
34962          { ac_try='test -s conftest$ac_exeext'
34963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34964   (eval $ac_try) 2>&5
34965   ac_status=$?
34966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967   (exit $ac_status); }; }; then
34968   ac_cv_func_localtime_r=yes
34969 else
34970   echo "$as_me: failed program was:" >&5
34971 sed 's/^/| /' conftest.$ac_ext >&5
34972
34973 ac_cv_func_localtime_r=no
34974 fi
34975 rm -f conftest.err conftest.$ac_objext \
34976       conftest$ac_exeext conftest.$ac_ext
34977 fi
34978 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
34979 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
34980 if test $ac_cv_func_localtime_r = yes; then
34981
34982 cat >>confdefs.h <<_ACEOF
34983 #define HAVE_LOCALTIME_R 1
34984 _ACEOF
34985
34986 else
34987   case $LIBOBJS in
34988     "localtime_r.$ac_objext"   | \
34989   *" localtime_r.$ac_objext"   | \
34990     "localtime_r.$ac_objext "* | \
34991   *" localtime_r.$ac_objext "* ) ;;
34992   *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" ;;
34993 esac
34994
34995 fi
34996 echo "$as_me:$LINENO: checking for lstat" >&5
34997 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
34998 if test "${ac_cv_func_lstat+set}" = set; then
34999   echo $ECHO_N "(cached) $ECHO_C" >&6
35000 else
35001   cat >conftest.$ac_ext <<_ACEOF
35002 /* confdefs.h.  */
35003 _ACEOF
35004 cat confdefs.h >>conftest.$ac_ext
35005 cat >>conftest.$ac_ext <<_ACEOF
35006 /* end confdefs.h.  */
35007 /* Define lstat to an innocuous variant, in case <limits.h> declares lstat.
35008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35009 #define lstat innocuous_lstat
35010
35011 /* System header to define __stub macros and hopefully few prototypes,
35012     which can conflict with char lstat (); below.
35013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35014     <limits.h> exists even on freestanding compilers.  */
35015
35016 #ifdef __STDC__
35017 # include <limits.h>
35018 #else
35019 # include <assert.h>
35020 #endif
35021
35022 #undef lstat
35023
35024 /* Override any gcc2 internal prototype to avoid an error.  */
35025 #ifdef __cplusplus
35026 extern "C"
35027 {
35028 #endif
35029 /* We use char because int might match the return type of a gcc2
35030    builtin and then its argument prototype would still apply.  */
35031 char lstat ();
35032 /* The GNU C library defines this for functions which it implements
35033     to always fail with ENOSYS.  Some functions are actually named
35034     something starting with __ and the normal name is an alias.  */
35035 #if defined (__stub_lstat) || defined (__stub___lstat)
35036 choke me
35037 #else
35038 char (*f) () = lstat;
35039 #endif
35040 #ifdef __cplusplus
35041 }
35042 #endif
35043
35044 int
35045 main ()
35046 {
35047 return f != lstat;
35048   ;
35049   return 0;
35050 }
35051 _ACEOF
35052 rm -f conftest.$ac_objext conftest$ac_exeext
35053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35054   (eval $ac_link) 2>conftest.er1
35055   ac_status=$?
35056   grep -v '^ *+' conftest.er1 >conftest.err
35057   rm -f conftest.er1
35058   cat conftest.err >&5
35059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060   (exit $ac_status); } &&
35061          { ac_try='test -z "$ac_c_werror_flag"
35062                          || test ! -s conftest.err'
35063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35064   (eval $ac_try) 2>&5
35065   ac_status=$?
35066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067   (exit $ac_status); }; } &&
35068          { ac_try='test -s conftest$ac_exeext'
35069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070   (eval $ac_try) 2>&5
35071   ac_status=$?
35072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073   (exit $ac_status); }; }; then
35074   ac_cv_func_lstat=yes
35075 else
35076   echo "$as_me: failed program was:" >&5
35077 sed 's/^/| /' conftest.$ac_ext >&5
35078
35079 ac_cv_func_lstat=no
35080 fi
35081 rm -f conftest.err conftest.$ac_objext \
35082       conftest$ac_exeext conftest.$ac_ext
35083 fi
35084 echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
35085 echo "${ECHO_T}$ac_cv_func_lstat" >&6
35086 if test $ac_cv_func_lstat = yes; then
35087
35088 cat >>confdefs.h <<_ACEOF
35089 #define HAVE_LSTAT 1
35090 _ACEOF
35091
35092 else
35093   case $LIBOBJS in
35094     "lstat.$ac_objext"   | \
35095   *" lstat.$ac_objext"   | \
35096     "lstat.$ac_objext "* | \
35097   *" lstat.$ac_objext "* ) ;;
35098   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
35099 esac
35100
35101 fi
35102 echo "$as_me:$LINENO: checking for memmove" >&5
35103 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
35104 if test "${ac_cv_func_memmove+set}" = set; then
35105   echo $ECHO_N "(cached) $ECHO_C" >&6
35106 else
35107   cat >conftest.$ac_ext <<_ACEOF
35108 /* confdefs.h.  */
35109 _ACEOF
35110 cat confdefs.h >>conftest.$ac_ext
35111 cat >>conftest.$ac_ext <<_ACEOF
35112 /* end confdefs.h.  */
35113 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
35114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35115 #define memmove innocuous_memmove
35116
35117 /* System header to define __stub macros and hopefully few prototypes,
35118     which can conflict with char memmove (); below.
35119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35120     <limits.h> exists even on freestanding compilers.  */
35121
35122 #ifdef __STDC__
35123 # include <limits.h>
35124 #else
35125 # include <assert.h>
35126 #endif
35127
35128 #undef memmove
35129
35130 /* Override any gcc2 internal prototype to avoid an error.  */
35131 #ifdef __cplusplus
35132 extern "C"
35133 {
35134 #endif
35135 /* We use char because int might match the return type of a gcc2
35136    builtin and then its argument prototype would still apply.  */
35137 char memmove ();
35138 /* The GNU C library defines this for functions which it implements
35139     to always fail with ENOSYS.  Some functions are actually named
35140     something starting with __ and the normal name is an alias.  */
35141 #if defined (__stub_memmove) || defined (__stub___memmove)
35142 choke me
35143 #else
35144 char (*f) () = memmove;
35145 #endif
35146 #ifdef __cplusplus
35147 }
35148 #endif
35149
35150 int
35151 main ()
35152 {
35153 return f != memmove;
35154   ;
35155   return 0;
35156 }
35157 _ACEOF
35158 rm -f conftest.$ac_objext conftest$ac_exeext
35159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35160   (eval $ac_link) 2>conftest.er1
35161   ac_status=$?
35162   grep -v '^ *+' conftest.er1 >conftest.err
35163   rm -f conftest.er1
35164   cat conftest.err >&5
35165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166   (exit $ac_status); } &&
35167          { ac_try='test -z "$ac_c_werror_flag"
35168                          || test ! -s conftest.err'
35169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170   (eval $ac_try) 2>&5
35171   ac_status=$?
35172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173   (exit $ac_status); }; } &&
35174          { ac_try='test -s conftest$ac_exeext'
35175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176   (eval $ac_try) 2>&5
35177   ac_status=$?
35178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179   (exit $ac_status); }; }; then
35180   ac_cv_func_memmove=yes
35181 else
35182   echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35184
35185 ac_cv_func_memmove=no
35186 fi
35187 rm -f conftest.err conftest.$ac_objext \
35188       conftest$ac_exeext conftest.$ac_ext
35189 fi
35190 echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
35191 echo "${ECHO_T}$ac_cv_func_memmove" >&6
35192 if test $ac_cv_func_memmove = yes; then
35193
35194 cat >>confdefs.h <<_ACEOF
35195 #define HAVE_MEMMOVE 1
35196 _ACEOF
35197
35198 else
35199   case $LIBOBJS in
35200     "memmove.$ac_objext"   | \
35201   *" memmove.$ac_objext"   | \
35202     "memmove.$ac_objext "* | \
35203   *" memmove.$ac_objext "* ) ;;
35204   *) LIBOBJS="$LIBOBJS memmove.$ac_objext" ;;
35205 esac
35206
35207 fi
35208 echo "$as_me:$LINENO: checking for mkstemp" >&5
35209 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
35210 if test "${ac_cv_func_mkstemp+set}" = set; then
35211   echo $ECHO_N "(cached) $ECHO_C" >&6
35212 else
35213   cat >conftest.$ac_ext <<_ACEOF
35214 /* confdefs.h.  */
35215 _ACEOF
35216 cat confdefs.h >>conftest.$ac_ext
35217 cat >>conftest.$ac_ext <<_ACEOF
35218 /* end confdefs.h.  */
35219 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
35220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35221 #define mkstemp innocuous_mkstemp
35222
35223 /* System header to define __stub macros and hopefully few prototypes,
35224     which can conflict with char mkstemp (); below.
35225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35226     <limits.h> exists even on freestanding compilers.  */
35227
35228 #ifdef __STDC__
35229 # include <limits.h>
35230 #else
35231 # include <assert.h>
35232 #endif
35233
35234 #undef mkstemp
35235
35236 /* Override any gcc2 internal prototype to avoid an error.  */
35237 #ifdef __cplusplus
35238 extern "C"
35239 {
35240 #endif
35241 /* We use char because int might match the return type of a gcc2
35242    builtin and then its argument prototype would still apply.  */
35243 char mkstemp ();
35244 /* The GNU C library defines this for functions which it implements
35245     to always fail with ENOSYS.  Some functions are actually named
35246     something starting with __ and the normal name is an alias.  */
35247 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
35248 choke me
35249 #else
35250 char (*f) () = mkstemp;
35251 #endif
35252 #ifdef __cplusplus
35253 }
35254 #endif
35255
35256 int
35257 main ()
35258 {
35259 return f != mkstemp;
35260   ;
35261   return 0;
35262 }
35263 _ACEOF
35264 rm -f conftest.$ac_objext conftest$ac_exeext
35265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35266   (eval $ac_link) 2>conftest.er1
35267   ac_status=$?
35268   grep -v '^ *+' conftest.er1 >conftest.err
35269   rm -f conftest.er1
35270   cat conftest.err >&5
35271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272   (exit $ac_status); } &&
35273          { ac_try='test -z "$ac_c_werror_flag"
35274                          || test ! -s conftest.err'
35275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35276   (eval $ac_try) 2>&5
35277   ac_status=$?
35278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279   (exit $ac_status); }; } &&
35280          { ac_try='test -s conftest$ac_exeext'
35281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282   (eval $ac_try) 2>&5
35283   ac_status=$?
35284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285   (exit $ac_status); }; }; then
35286   ac_cv_func_mkstemp=yes
35287 else
35288   echo "$as_me: failed program was:" >&5
35289 sed 's/^/| /' conftest.$ac_ext >&5
35290
35291 ac_cv_func_mkstemp=no
35292 fi
35293 rm -f conftest.err conftest.$ac_objext \
35294       conftest$ac_exeext conftest.$ac_ext
35295 fi
35296 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
35297 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
35298 if test $ac_cv_func_mkstemp = yes; then
35299
35300 cat >>confdefs.h <<_ACEOF
35301 #define HAVE_MKSTEMP 1
35302 _ACEOF
35303
35304 else
35305   case $LIBOBJS in
35306     "mkstemp.$ac_objext"   | \
35307   *" mkstemp.$ac_objext"   | \
35308     "mkstemp.$ac_objext "* | \
35309   *" mkstemp.$ac_objext "* ) ;;
35310   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
35311 esac
35312
35313 fi
35314 echo "$as_me:$LINENO: checking for putenv" >&5
35315 echo $ECHO_N "checking for putenv... $ECHO_C" >&6
35316 if test "${ac_cv_func_putenv+set}" = set; then
35317   echo $ECHO_N "(cached) $ECHO_C" >&6
35318 else
35319   cat >conftest.$ac_ext <<_ACEOF
35320 /* confdefs.h.  */
35321 _ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h.  */
35325 /* Define putenv to an innocuous variant, in case <limits.h> declares putenv.
35326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35327 #define putenv innocuous_putenv
35328
35329 /* System header to define __stub macros and hopefully few prototypes,
35330     which can conflict with char putenv (); below.
35331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35332     <limits.h> exists even on freestanding compilers.  */
35333
35334 #ifdef __STDC__
35335 # include <limits.h>
35336 #else
35337 # include <assert.h>
35338 #endif
35339
35340 #undef putenv
35341
35342 /* Override any gcc2 internal prototype to avoid an error.  */
35343 #ifdef __cplusplus
35344 extern "C"
35345 {
35346 #endif
35347 /* We use char because int might match the return type of a gcc2
35348    builtin and then its argument prototype would still apply.  */
35349 char putenv ();
35350 /* The GNU C library defines this for functions which it implements
35351     to always fail with ENOSYS.  Some functions are actually named
35352     something starting with __ and the normal name is an alias.  */
35353 #if defined (__stub_putenv) || defined (__stub___putenv)
35354 choke me
35355 #else
35356 char (*f) () = putenv;
35357 #endif
35358 #ifdef __cplusplus
35359 }
35360 #endif
35361
35362 int
35363 main ()
35364 {
35365 return f != putenv;
35366   ;
35367   return 0;
35368 }
35369 _ACEOF
35370 rm -f conftest.$ac_objext conftest$ac_exeext
35371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35372   (eval $ac_link) 2>conftest.er1
35373   ac_status=$?
35374   grep -v '^ *+' conftest.er1 >conftest.err
35375   rm -f conftest.er1
35376   cat conftest.err >&5
35377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378   (exit $ac_status); } &&
35379          { ac_try='test -z "$ac_c_werror_flag"
35380                          || test ! -s conftest.err'
35381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35382   (eval $ac_try) 2>&5
35383   ac_status=$?
35384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35385   (exit $ac_status); }; } &&
35386          { ac_try='test -s conftest$ac_exeext'
35387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35388   (eval $ac_try) 2>&5
35389   ac_status=$?
35390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391   (exit $ac_status); }; }; then
35392   ac_cv_func_putenv=yes
35393 else
35394   echo "$as_me: failed program was:" >&5
35395 sed 's/^/| /' conftest.$ac_ext >&5
35396
35397 ac_cv_func_putenv=no
35398 fi
35399 rm -f conftest.err conftest.$ac_objext \
35400       conftest$ac_exeext conftest.$ac_ext
35401 fi
35402 echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
35403 echo "${ECHO_T}$ac_cv_func_putenv" >&6
35404 if test $ac_cv_func_putenv = yes; then
35405
35406 cat >>confdefs.h <<_ACEOF
35407 #define HAVE_PUTENV 1
35408 _ACEOF
35409
35410 else
35411   case $LIBOBJS in
35412     "putenv.$ac_objext"   | \
35413   *" putenv.$ac_objext"   | \
35414     "putenv.$ac_objext "* | \
35415   *" putenv.$ac_objext "* ) ;;
35416   *) LIBOBJS="$LIBOBJS putenv.$ac_objext" ;;
35417 esac
35418
35419 fi
35420 echo "$as_me:$LINENO: checking for rcmd" >&5
35421 echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
35422 if test "${ac_cv_func_rcmd+set}" = set; then
35423   echo $ECHO_N "(cached) $ECHO_C" >&6
35424 else
35425   cat >conftest.$ac_ext <<_ACEOF
35426 /* confdefs.h.  */
35427 _ACEOF
35428 cat confdefs.h >>conftest.$ac_ext
35429 cat >>conftest.$ac_ext <<_ACEOF
35430 /* end confdefs.h.  */
35431 /* Define rcmd to an innocuous variant, in case <limits.h> declares rcmd.
35432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35433 #define rcmd innocuous_rcmd
35434
35435 /* System header to define __stub macros and hopefully few prototypes,
35436     which can conflict with char rcmd (); below.
35437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35438     <limits.h> exists even on freestanding compilers.  */
35439
35440 #ifdef __STDC__
35441 # include <limits.h>
35442 #else
35443 # include <assert.h>
35444 #endif
35445
35446 #undef rcmd
35447
35448 /* Override any gcc2 internal prototype to avoid an error.  */
35449 #ifdef __cplusplus
35450 extern "C"
35451 {
35452 #endif
35453 /* We use char because int might match the return type of a gcc2
35454    builtin and then its argument prototype would still apply.  */
35455 char rcmd ();
35456 /* The GNU C library defines this for functions which it implements
35457     to always fail with ENOSYS.  Some functions are actually named
35458     something starting with __ and the normal name is an alias.  */
35459 #if defined (__stub_rcmd) || defined (__stub___rcmd)
35460 choke me
35461 #else
35462 char (*f) () = rcmd;
35463 #endif
35464 #ifdef __cplusplus
35465 }
35466 #endif
35467
35468 int
35469 main ()
35470 {
35471 return f != rcmd;
35472   ;
35473   return 0;
35474 }
35475 _ACEOF
35476 rm -f conftest.$ac_objext conftest$ac_exeext
35477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35478   (eval $ac_link) 2>conftest.er1
35479   ac_status=$?
35480   grep -v '^ *+' conftest.er1 >conftest.err
35481   rm -f conftest.er1
35482   cat conftest.err >&5
35483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484   (exit $ac_status); } &&
35485          { ac_try='test -z "$ac_c_werror_flag"
35486                          || test ! -s conftest.err'
35487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488   (eval $ac_try) 2>&5
35489   ac_status=$?
35490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491   (exit $ac_status); }; } &&
35492          { ac_try='test -s conftest$ac_exeext'
35493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35494   (eval $ac_try) 2>&5
35495   ac_status=$?
35496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497   (exit $ac_status); }; }; then
35498   ac_cv_func_rcmd=yes
35499 else
35500   echo "$as_me: failed program was:" >&5
35501 sed 's/^/| /' conftest.$ac_ext >&5
35502
35503 ac_cv_func_rcmd=no
35504 fi
35505 rm -f conftest.err conftest.$ac_objext \
35506       conftest$ac_exeext conftest.$ac_ext
35507 fi
35508 echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
35509 echo "${ECHO_T}$ac_cv_func_rcmd" >&6
35510 if test $ac_cv_func_rcmd = yes; then
35511
35512 cat >>confdefs.h <<_ACEOF
35513 #define HAVE_RCMD 1
35514 _ACEOF
35515
35516 else
35517   case $LIBOBJS in
35518     "rcmd.$ac_objext"   | \
35519   *" rcmd.$ac_objext"   | \
35520     "rcmd.$ac_objext "* | \
35521   *" rcmd.$ac_objext "* ) ;;
35522   *) LIBOBJS="$LIBOBJS rcmd.$ac_objext" ;;
35523 esac
35524
35525 fi
35526 echo "$as_me:$LINENO: checking for readv" >&5
35527 echo $ECHO_N "checking for readv... $ECHO_C" >&6
35528 if test "${ac_cv_func_readv+set}" = set; then
35529   echo $ECHO_N "(cached) $ECHO_C" >&6
35530 else
35531   cat >conftest.$ac_ext <<_ACEOF
35532 /* confdefs.h.  */
35533 _ACEOF
35534 cat confdefs.h >>conftest.$ac_ext
35535 cat >>conftest.$ac_ext <<_ACEOF
35536 /* end confdefs.h.  */
35537 /* Define readv to an innocuous variant, in case <limits.h> declares readv.
35538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35539 #define readv innocuous_readv
35540
35541 /* System header to define __stub macros and hopefully few prototypes,
35542     which can conflict with char readv (); below.
35543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35544     <limits.h> exists even on freestanding compilers.  */
35545
35546 #ifdef __STDC__
35547 # include <limits.h>
35548 #else
35549 # include <assert.h>
35550 #endif
35551
35552 #undef readv
35553
35554 /* Override any gcc2 internal prototype to avoid an error.  */
35555 #ifdef __cplusplus
35556 extern "C"
35557 {
35558 #endif
35559 /* We use char because int might match the return type of a gcc2
35560    builtin and then its argument prototype would still apply.  */
35561 char readv ();
35562 /* The GNU C library defines this for functions which it implements
35563     to always fail with ENOSYS.  Some functions are actually named
35564     something starting with __ and the normal name is an alias.  */
35565 #if defined (__stub_readv) || defined (__stub___readv)
35566 choke me
35567 #else
35568 char (*f) () = readv;
35569 #endif
35570 #ifdef __cplusplus
35571 }
35572 #endif
35573
35574 int
35575 main ()
35576 {
35577 return f != readv;
35578   ;
35579   return 0;
35580 }
35581 _ACEOF
35582 rm -f conftest.$ac_objext conftest$ac_exeext
35583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35584   (eval $ac_link) 2>conftest.er1
35585   ac_status=$?
35586   grep -v '^ *+' conftest.er1 >conftest.err
35587   rm -f conftest.er1
35588   cat conftest.err >&5
35589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590   (exit $ac_status); } &&
35591          { ac_try='test -z "$ac_c_werror_flag"
35592                          || test ! -s conftest.err'
35593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35594   (eval $ac_try) 2>&5
35595   ac_status=$?
35596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35597   (exit $ac_status); }; } &&
35598          { ac_try='test -s conftest$ac_exeext'
35599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35600   (eval $ac_try) 2>&5
35601   ac_status=$?
35602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603   (exit $ac_status); }; }; then
35604   ac_cv_func_readv=yes
35605 else
35606   echo "$as_me: failed program was:" >&5
35607 sed 's/^/| /' conftest.$ac_ext >&5
35608
35609 ac_cv_func_readv=no
35610 fi
35611 rm -f conftest.err conftest.$ac_objext \
35612       conftest$ac_exeext conftest.$ac_ext
35613 fi
35614 echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
35615 echo "${ECHO_T}$ac_cv_func_readv" >&6
35616 if test $ac_cv_func_readv = yes; then
35617
35618 cat >>confdefs.h <<_ACEOF
35619 #define HAVE_READV 1
35620 _ACEOF
35621
35622 else
35623   case $LIBOBJS in
35624     "readv.$ac_objext"   | \
35625   *" readv.$ac_objext"   | \
35626     "readv.$ac_objext "* | \
35627   *" readv.$ac_objext "* ) ;;
35628   *) LIBOBJS="$LIBOBJS readv.$ac_objext" ;;
35629 esac
35630
35631 fi
35632 echo "$as_me:$LINENO: checking for recvmsg" >&5
35633 echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
35634 if test "${ac_cv_func_recvmsg+set}" = set; then
35635   echo $ECHO_N "(cached) $ECHO_C" >&6
35636 else
35637   cat >conftest.$ac_ext <<_ACEOF
35638 /* confdefs.h.  */
35639 _ACEOF
35640 cat confdefs.h >>conftest.$ac_ext
35641 cat >>conftest.$ac_ext <<_ACEOF
35642 /* end confdefs.h.  */
35643 /* Define recvmsg to an innocuous variant, in case <limits.h> declares recvmsg.
35644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35645 #define recvmsg innocuous_recvmsg
35646
35647 /* System header to define __stub macros and hopefully few prototypes,
35648     which can conflict with char recvmsg (); below.
35649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35650     <limits.h> exists even on freestanding compilers.  */
35651
35652 #ifdef __STDC__
35653 # include <limits.h>
35654 #else
35655 # include <assert.h>
35656 #endif
35657
35658 #undef recvmsg
35659
35660 /* Override any gcc2 internal prototype to avoid an error.  */
35661 #ifdef __cplusplus
35662 extern "C"
35663 {
35664 #endif
35665 /* We use char because int might match the return type of a gcc2
35666    builtin and then its argument prototype would still apply.  */
35667 char recvmsg ();
35668 /* The GNU C library defines this for functions which it implements
35669     to always fail with ENOSYS.  Some functions are actually named
35670     something starting with __ and the normal name is an alias.  */
35671 #if defined (__stub_recvmsg) || defined (__stub___recvmsg)
35672 choke me
35673 #else
35674 char (*f) () = recvmsg;
35675 #endif
35676 #ifdef __cplusplus
35677 }
35678 #endif
35679
35680 int
35681 main ()
35682 {
35683 return f != recvmsg;
35684   ;
35685   return 0;
35686 }
35687 _ACEOF
35688 rm -f conftest.$ac_objext conftest$ac_exeext
35689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35690   (eval $ac_link) 2>conftest.er1
35691   ac_status=$?
35692   grep -v '^ *+' conftest.er1 >conftest.err
35693   rm -f conftest.er1
35694   cat conftest.err >&5
35695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); } &&
35697          { ac_try='test -z "$ac_c_werror_flag"
35698                          || test ! -s conftest.err'
35699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700   (eval $ac_try) 2>&5
35701   ac_status=$?
35702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703   (exit $ac_status); }; } &&
35704          { ac_try='test -s conftest$ac_exeext'
35705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706   (eval $ac_try) 2>&5
35707   ac_status=$?
35708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709   (exit $ac_status); }; }; then
35710   ac_cv_func_recvmsg=yes
35711 else
35712   echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35714
35715 ac_cv_func_recvmsg=no
35716 fi
35717 rm -f conftest.err conftest.$ac_objext \
35718       conftest$ac_exeext conftest.$ac_ext
35719 fi
35720 echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
35721 echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
35722 if test $ac_cv_func_recvmsg = yes; then
35723
35724 cat >>confdefs.h <<_ACEOF
35725 #define HAVE_RECVMSG 1
35726 _ACEOF
35727
35728 else
35729   case $LIBOBJS in
35730     "recvmsg.$ac_objext"   | \
35731   *" recvmsg.$ac_objext"   | \
35732     "recvmsg.$ac_objext "* | \
35733   *" recvmsg.$ac_objext "* ) ;;
35734   *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext" ;;
35735 esac
35736
35737 fi
35738 echo "$as_me:$LINENO: checking for sendmsg" >&5
35739 echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
35740 if test "${ac_cv_func_sendmsg+set}" = set; then
35741   echo $ECHO_N "(cached) $ECHO_C" >&6
35742 else
35743   cat >conftest.$ac_ext <<_ACEOF
35744 /* confdefs.h.  */
35745 _ACEOF
35746 cat confdefs.h >>conftest.$ac_ext
35747 cat >>conftest.$ac_ext <<_ACEOF
35748 /* end confdefs.h.  */
35749 /* Define sendmsg to an innocuous variant, in case <limits.h> declares sendmsg.
35750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35751 #define sendmsg innocuous_sendmsg
35752
35753 /* System header to define __stub macros and hopefully few prototypes,
35754     which can conflict with char sendmsg (); below.
35755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35756     <limits.h> exists even on freestanding compilers.  */
35757
35758 #ifdef __STDC__
35759 # include <limits.h>
35760 #else
35761 # include <assert.h>
35762 #endif
35763
35764 #undef sendmsg
35765
35766 /* Override any gcc2 internal prototype to avoid an error.  */
35767 #ifdef __cplusplus
35768 extern "C"
35769 {
35770 #endif
35771 /* We use char because int might match the return type of a gcc2
35772    builtin and then its argument prototype would still apply.  */
35773 char sendmsg ();
35774 /* The GNU C library defines this for functions which it implements
35775     to always fail with ENOSYS.  Some functions are actually named
35776     something starting with __ and the normal name is an alias.  */
35777 #if defined (__stub_sendmsg) || defined (__stub___sendmsg)
35778 choke me
35779 #else
35780 char (*f) () = sendmsg;
35781 #endif
35782 #ifdef __cplusplus
35783 }
35784 #endif
35785
35786 int
35787 main ()
35788 {
35789 return f != sendmsg;
35790   ;
35791   return 0;
35792 }
35793 _ACEOF
35794 rm -f conftest.$ac_objext conftest$ac_exeext
35795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35796   (eval $ac_link) 2>conftest.er1
35797   ac_status=$?
35798   grep -v '^ *+' conftest.er1 >conftest.err
35799   rm -f conftest.er1
35800   cat conftest.err >&5
35801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802   (exit $ac_status); } &&
35803          { ac_try='test -z "$ac_c_werror_flag"
35804                          || test ! -s conftest.err'
35805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35806   (eval $ac_try) 2>&5
35807   ac_status=$?
35808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809   (exit $ac_status); }; } &&
35810          { ac_try='test -s conftest$ac_exeext'
35811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35812   (eval $ac_try) 2>&5
35813   ac_status=$?
35814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815   (exit $ac_status); }; }; then
35816   ac_cv_func_sendmsg=yes
35817 else
35818   echo "$as_me: failed program was:" >&5
35819 sed 's/^/| /' conftest.$ac_ext >&5
35820
35821 ac_cv_func_sendmsg=no
35822 fi
35823 rm -f conftest.err conftest.$ac_objext \
35824       conftest$ac_exeext conftest.$ac_ext
35825 fi
35826 echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
35827 echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
35828 if test $ac_cv_func_sendmsg = yes; then
35829
35830 cat >>confdefs.h <<_ACEOF
35831 #define HAVE_SENDMSG 1
35832 _ACEOF
35833
35834 else
35835   case $LIBOBJS in
35836     "sendmsg.$ac_objext"   | \
35837   *" sendmsg.$ac_objext"   | \
35838     "sendmsg.$ac_objext "* | \
35839   *" sendmsg.$ac_objext "* ) ;;
35840   *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext" ;;
35841 esac
35842
35843 fi
35844 echo "$as_me:$LINENO: checking for setegid" >&5
35845 echo $ECHO_N "checking for setegid... $ECHO_C" >&6
35846 if test "${ac_cv_func_setegid+set}" = set; then
35847   echo $ECHO_N "(cached) $ECHO_C" >&6
35848 else
35849   cat >conftest.$ac_ext <<_ACEOF
35850 /* confdefs.h.  */
35851 _ACEOF
35852 cat confdefs.h >>conftest.$ac_ext
35853 cat >>conftest.$ac_ext <<_ACEOF
35854 /* end confdefs.h.  */
35855 /* Define setegid to an innocuous variant, in case <limits.h> declares setegid.
35856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35857 #define setegid innocuous_setegid
35858
35859 /* System header to define __stub macros and hopefully few prototypes,
35860     which can conflict with char setegid (); below.
35861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35862     <limits.h> exists even on freestanding compilers.  */
35863
35864 #ifdef __STDC__
35865 # include <limits.h>
35866 #else
35867 # include <assert.h>
35868 #endif
35869
35870 #undef setegid
35871
35872 /* Override any gcc2 internal prototype to avoid an error.  */
35873 #ifdef __cplusplus
35874 extern "C"
35875 {
35876 #endif
35877 /* We use char because int might match the return type of a gcc2
35878    builtin and then its argument prototype would still apply.  */
35879 char setegid ();
35880 /* The GNU C library defines this for functions which it implements
35881     to always fail with ENOSYS.  Some functions are actually named
35882     something starting with __ and the normal name is an alias.  */
35883 #if defined (__stub_setegid) || defined (__stub___setegid)
35884 choke me
35885 #else
35886 char (*f) () = setegid;
35887 #endif
35888 #ifdef __cplusplus
35889 }
35890 #endif
35891
35892 int
35893 main ()
35894 {
35895 return f != setegid;
35896   ;
35897   return 0;
35898 }
35899 _ACEOF
35900 rm -f conftest.$ac_objext conftest$ac_exeext
35901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35902   (eval $ac_link) 2>conftest.er1
35903   ac_status=$?
35904   grep -v '^ *+' conftest.er1 >conftest.err
35905   rm -f conftest.er1
35906   cat conftest.err >&5
35907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908   (exit $ac_status); } &&
35909          { ac_try='test -z "$ac_c_werror_flag"
35910                          || test ! -s conftest.err'
35911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35912   (eval $ac_try) 2>&5
35913   ac_status=$?
35914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915   (exit $ac_status); }; } &&
35916          { ac_try='test -s conftest$ac_exeext'
35917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35918   (eval $ac_try) 2>&5
35919   ac_status=$?
35920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35921   (exit $ac_status); }; }; then
35922   ac_cv_func_setegid=yes
35923 else
35924   echo "$as_me: failed program was:" >&5
35925 sed 's/^/| /' conftest.$ac_ext >&5
35926
35927 ac_cv_func_setegid=no
35928 fi
35929 rm -f conftest.err conftest.$ac_objext \
35930       conftest$ac_exeext conftest.$ac_ext
35931 fi
35932 echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
35933 echo "${ECHO_T}$ac_cv_func_setegid" >&6
35934 if test $ac_cv_func_setegid = yes; then
35935
35936 cat >>confdefs.h <<_ACEOF
35937 #define HAVE_SETEGID 1
35938 _ACEOF
35939
35940 else
35941   case $LIBOBJS in
35942     "setegid.$ac_objext"   | \
35943   *" setegid.$ac_objext"   | \
35944     "setegid.$ac_objext "* | \
35945   *" setegid.$ac_objext "* ) ;;
35946   *) LIBOBJS="$LIBOBJS setegid.$ac_objext" ;;
35947 esac
35948
35949 fi
35950 echo "$as_me:$LINENO: checking for setenv" >&5
35951 echo $ECHO_N "checking for setenv... $ECHO_C" >&6
35952 if test "${ac_cv_func_setenv+set}" = set; then
35953   echo $ECHO_N "(cached) $ECHO_C" >&6
35954 else
35955   cat >conftest.$ac_ext <<_ACEOF
35956 /* confdefs.h.  */
35957 _ACEOF
35958 cat confdefs.h >>conftest.$ac_ext
35959 cat >>conftest.$ac_ext <<_ACEOF
35960 /* end confdefs.h.  */
35961 /* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
35962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35963 #define setenv innocuous_setenv
35964
35965 /* System header to define __stub macros and hopefully few prototypes,
35966     which can conflict with char setenv (); below.
35967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35968     <limits.h> exists even on freestanding compilers.  */
35969
35970 #ifdef __STDC__
35971 # include <limits.h>
35972 #else
35973 # include <assert.h>
35974 #endif
35975
35976 #undef setenv
35977
35978 /* Override any gcc2 internal prototype to avoid an error.  */
35979 #ifdef __cplusplus
35980 extern "C"
35981 {
35982 #endif
35983 /* We use char because int might match the return type of a gcc2
35984    builtin and then its argument prototype would still apply.  */
35985 char setenv ();
35986 /* The GNU C library defines this for functions which it implements
35987     to always fail with ENOSYS.  Some functions are actually named
35988     something starting with __ and the normal name is an alias.  */
35989 #if defined (__stub_setenv) || defined (__stub___setenv)
35990 choke me
35991 #else
35992 char (*f) () = setenv;
35993 #endif
35994 #ifdef __cplusplus
35995 }
35996 #endif
35997
35998 int
35999 main ()
36000 {
36001 return f != setenv;
36002   ;
36003   return 0;
36004 }
36005 _ACEOF
36006 rm -f conftest.$ac_objext conftest$ac_exeext
36007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36008   (eval $ac_link) 2>conftest.er1
36009   ac_status=$?
36010   grep -v '^ *+' conftest.er1 >conftest.err
36011   rm -f conftest.er1
36012   cat conftest.err >&5
36013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014   (exit $ac_status); } &&
36015          { ac_try='test -z "$ac_c_werror_flag"
36016                          || test ! -s conftest.err'
36017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36018   (eval $ac_try) 2>&5
36019   ac_status=$?
36020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021   (exit $ac_status); }; } &&
36022          { ac_try='test -s conftest$ac_exeext'
36023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36024   (eval $ac_try) 2>&5
36025   ac_status=$?
36026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027   (exit $ac_status); }; }; then
36028   ac_cv_func_setenv=yes
36029 else
36030   echo "$as_me: failed program was:" >&5
36031 sed 's/^/| /' conftest.$ac_ext >&5
36032
36033 ac_cv_func_setenv=no
36034 fi
36035 rm -f conftest.err conftest.$ac_objext \
36036       conftest$ac_exeext conftest.$ac_ext
36037 fi
36038 echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
36039 echo "${ECHO_T}$ac_cv_func_setenv" >&6
36040 if test $ac_cv_func_setenv = yes; then
36041
36042 cat >>confdefs.h <<_ACEOF
36043 #define HAVE_SETENV 1
36044 _ACEOF
36045
36046 else
36047   case $LIBOBJS in
36048     "setenv.$ac_objext"   | \
36049   *" setenv.$ac_objext"   | \
36050     "setenv.$ac_objext "* | \
36051   *" setenv.$ac_objext "* ) ;;
36052   *) LIBOBJS="$LIBOBJS setenv.$ac_objext" ;;
36053 esac
36054
36055 fi
36056 echo "$as_me:$LINENO: checking for seteuid" >&5
36057 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
36058 if test "${ac_cv_func_seteuid+set}" = set; then
36059   echo $ECHO_N "(cached) $ECHO_C" >&6
36060 else
36061   cat >conftest.$ac_ext <<_ACEOF
36062 /* confdefs.h.  */
36063 _ACEOF
36064 cat confdefs.h >>conftest.$ac_ext
36065 cat >>conftest.$ac_ext <<_ACEOF
36066 /* end confdefs.h.  */
36067 /* Define seteuid to an innocuous variant, in case <limits.h> declares seteuid.
36068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36069 #define seteuid innocuous_seteuid
36070
36071 /* System header to define __stub macros and hopefully few prototypes,
36072     which can conflict with char seteuid (); below.
36073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36074     <limits.h> exists even on freestanding compilers.  */
36075
36076 #ifdef __STDC__
36077 # include <limits.h>
36078 #else
36079 # include <assert.h>
36080 #endif
36081
36082 #undef seteuid
36083
36084 /* Override any gcc2 internal prototype to avoid an error.  */
36085 #ifdef __cplusplus
36086 extern "C"
36087 {
36088 #endif
36089 /* We use char because int might match the return type of a gcc2
36090    builtin and then its argument prototype would still apply.  */
36091 char seteuid ();
36092 /* The GNU C library defines this for functions which it implements
36093     to always fail with ENOSYS.  Some functions are actually named
36094     something starting with __ and the normal name is an alias.  */
36095 #if defined (__stub_seteuid) || defined (__stub___seteuid)
36096 choke me
36097 #else
36098 char (*f) () = seteuid;
36099 #endif
36100 #ifdef __cplusplus
36101 }
36102 #endif
36103
36104 int
36105 main ()
36106 {
36107 return f != seteuid;
36108   ;
36109   return 0;
36110 }
36111 _ACEOF
36112 rm -f conftest.$ac_objext conftest$ac_exeext
36113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36114   (eval $ac_link) 2>conftest.er1
36115   ac_status=$?
36116   grep -v '^ *+' conftest.er1 >conftest.err
36117   rm -f conftest.er1
36118   cat conftest.err >&5
36119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36120   (exit $ac_status); } &&
36121          { ac_try='test -z "$ac_c_werror_flag"
36122                          || test ! -s conftest.err'
36123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36124   (eval $ac_try) 2>&5
36125   ac_status=$?
36126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127   (exit $ac_status); }; } &&
36128          { ac_try='test -s conftest$ac_exeext'
36129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130   (eval $ac_try) 2>&5
36131   ac_status=$?
36132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133   (exit $ac_status); }; }; then
36134   ac_cv_func_seteuid=yes
36135 else
36136   echo "$as_me: failed program was:" >&5
36137 sed 's/^/| /' conftest.$ac_ext >&5
36138
36139 ac_cv_func_seteuid=no
36140 fi
36141 rm -f conftest.err conftest.$ac_objext \
36142       conftest$ac_exeext conftest.$ac_ext
36143 fi
36144 echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
36145 echo "${ECHO_T}$ac_cv_func_seteuid" >&6
36146 if test $ac_cv_func_seteuid = yes; then
36147
36148 cat >>confdefs.h <<_ACEOF
36149 #define HAVE_SETEUID 1
36150 _ACEOF
36151
36152 else
36153   case $LIBOBJS in
36154     "seteuid.$ac_objext"   | \
36155   *" seteuid.$ac_objext"   | \
36156     "seteuid.$ac_objext "* | \
36157   *" seteuid.$ac_objext "* ) ;;
36158   *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" ;;
36159 esac
36160
36161 fi
36162 echo "$as_me:$LINENO: checking for strcasecmp" >&5
36163 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
36164 if test "${ac_cv_func_strcasecmp+set}" = set; then
36165   echo $ECHO_N "(cached) $ECHO_C" >&6
36166 else
36167   cat >conftest.$ac_ext <<_ACEOF
36168 /* confdefs.h.  */
36169 _ACEOF
36170 cat confdefs.h >>conftest.$ac_ext
36171 cat >>conftest.$ac_ext <<_ACEOF
36172 /* end confdefs.h.  */
36173 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
36174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36175 #define strcasecmp innocuous_strcasecmp
36176
36177 /* System header to define __stub macros and hopefully few prototypes,
36178     which can conflict with char strcasecmp (); below.
36179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36180     <limits.h> exists even on freestanding compilers.  */
36181
36182 #ifdef __STDC__
36183 # include <limits.h>
36184 #else
36185 # include <assert.h>
36186 #endif
36187
36188 #undef strcasecmp
36189
36190 /* Override any gcc2 internal prototype to avoid an error.  */
36191 #ifdef __cplusplus
36192 extern "C"
36193 {
36194 #endif
36195 /* We use char because int might match the return type of a gcc2
36196    builtin and then its argument prototype would still apply.  */
36197 char strcasecmp ();
36198 /* The GNU C library defines this for functions which it implements
36199     to always fail with ENOSYS.  Some functions are actually named
36200     something starting with __ and the normal name is an alias.  */
36201 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
36202 choke me
36203 #else
36204 char (*f) () = strcasecmp;
36205 #endif
36206 #ifdef __cplusplus
36207 }
36208 #endif
36209
36210 int
36211 main ()
36212 {
36213 return f != strcasecmp;
36214   ;
36215   return 0;
36216 }
36217 _ACEOF
36218 rm -f conftest.$ac_objext conftest$ac_exeext
36219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36220   (eval $ac_link) 2>conftest.er1
36221   ac_status=$?
36222   grep -v '^ *+' conftest.er1 >conftest.err
36223   rm -f conftest.er1
36224   cat conftest.err >&5
36225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226   (exit $ac_status); } &&
36227          { ac_try='test -z "$ac_c_werror_flag"
36228                          || test ! -s conftest.err'
36229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36230   (eval $ac_try) 2>&5
36231   ac_status=$?
36232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233   (exit $ac_status); }; } &&
36234          { ac_try='test -s conftest$ac_exeext'
36235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36236   (eval $ac_try) 2>&5
36237   ac_status=$?
36238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239   (exit $ac_status); }; }; then
36240   ac_cv_func_strcasecmp=yes
36241 else
36242   echo "$as_me: failed program was:" >&5
36243 sed 's/^/| /' conftest.$ac_ext >&5
36244
36245 ac_cv_func_strcasecmp=no
36246 fi
36247 rm -f conftest.err conftest.$ac_objext \
36248       conftest$ac_exeext conftest.$ac_ext
36249 fi
36250 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
36251 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
36252 if test $ac_cv_func_strcasecmp = yes; then
36253
36254 cat >>confdefs.h <<_ACEOF
36255 #define HAVE_STRCASECMP 1
36256 _ACEOF
36257
36258 else
36259   case $LIBOBJS in
36260     "strcasecmp.$ac_objext"   | \
36261   *" strcasecmp.$ac_objext"   | \
36262     "strcasecmp.$ac_objext "* | \
36263   *" strcasecmp.$ac_objext "* ) ;;
36264   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
36265 esac
36266
36267 fi
36268 echo "$as_me:$LINENO: checking for strdup" >&5
36269 echo $ECHO_N "checking for strdup... $ECHO_C" >&6
36270 if test "${ac_cv_func_strdup+set}" = set; then
36271   echo $ECHO_N "(cached) $ECHO_C" >&6
36272 else
36273   cat >conftest.$ac_ext <<_ACEOF
36274 /* confdefs.h.  */
36275 _ACEOF
36276 cat confdefs.h >>conftest.$ac_ext
36277 cat >>conftest.$ac_ext <<_ACEOF
36278 /* end confdefs.h.  */
36279 /* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
36280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36281 #define strdup innocuous_strdup
36282
36283 /* System header to define __stub macros and hopefully few prototypes,
36284     which can conflict with char strdup (); below.
36285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36286     <limits.h> exists even on freestanding compilers.  */
36287
36288 #ifdef __STDC__
36289 # include <limits.h>
36290 #else
36291 # include <assert.h>
36292 #endif
36293
36294 #undef strdup
36295
36296 /* Override any gcc2 internal prototype to avoid an error.  */
36297 #ifdef __cplusplus
36298 extern "C"
36299 {
36300 #endif
36301 /* We use char because int might match the return type of a gcc2
36302    builtin and then its argument prototype would still apply.  */
36303 char strdup ();
36304 /* The GNU C library defines this for functions which it implements
36305     to always fail with ENOSYS.  Some functions are actually named
36306     something starting with __ and the normal name is an alias.  */
36307 #if defined (__stub_strdup) || defined (__stub___strdup)
36308 choke me
36309 #else
36310 char (*f) () = strdup;
36311 #endif
36312 #ifdef __cplusplus
36313 }
36314 #endif
36315
36316 int
36317 main ()
36318 {
36319 return f != strdup;
36320   ;
36321   return 0;
36322 }
36323 _ACEOF
36324 rm -f conftest.$ac_objext conftest$ac_exeext
36325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36326   (eval $ac_link) 2>conftest.er1
36327   ac_status=$?
36328   grep -v '^ *+' conftest.er1 >conftest.err
36329   rm -f conftest.er1
36330   cat conftest.err >&5
36331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332   (exit $ac_status); } &&
36333          { ac_try='test -z "$ac_c_werror_flag"
36334                          || test ! -s conftest.err'
36335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36336   (eval $ac_try) 2>&5
36337   ac_status=$?
36338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339   (exit $ac_status); }; } &&
36340          { ac_try='test -s conftest$ac_exeext'
36341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36342   (eval $ac_try) 2>&5
36343   ac_status=$?
36344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36345   (exit $ac_status); }; }; then
36346   ac_cv_func_strdup=yes
36347 else
36348   echo "$as_me: failed program was:" >&5
36349 sed 's/^/| /' conftest.$ac_ext >&5
36350
36351 ac_cv_func_strdup=no
36352 fi
36353 rm -f conftest.err conftest.$ac_objext \
36354       conftest$ac_exeext conftest.$ac_ext
36355 fi
36356 echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
36357 echo "${ECHO_T}$ac_cv_func_strdup" >&6
36358 if test $ac_cv_func_strdup = yes; then
36359
36360 cat >>confdefs.h <<_ACEOF
36361 #define HAVE_STRDUP 1
36362 _ACEOF
36363
36364 else
36365   case $LIBOBJS in
36366     "strdup.$ac_objext"   | \
36367   *" strdup.$ac_objext"   | \
36368     "strdup.$ac_objext "* | \
36369   *" strdup.$ac_objext "* ) ;;
36370   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
36371 esac
36372
36373 fi
36374 echo "$as_me:$LINENO: checking for strerror" >&5
36375 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
36376 if test "${ac_cv_func_strerror+set}" = set; then
36377   echo $ECHO_N "(cached) $ECHO_C" >&6
36378 else
36379   cat >conftest.$ac_ext <<_ACEOF
36380 /* confdefs.h.  */
36381 _ACEOF
36382 cat confdefs.h >>conftest.$ac_ext
36383 cat >>conftest.$ac_ext <<_ACEOF
36384 /* end confdefs.h.  */
36385 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
36386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36387 #define strerror innocuous_strerror
36388
36389 /* System header to define __stub macros and hopefully few prototypes,
36390     which can conflict with char strerror (); below.
36391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36392     <limits.h> exists even on freestanding compilers.  */
36393
36394 #ifdef __STDC__
36395 # include <limits.h>
36396 #else
36397 # include <assert.h>
36398 #endif
36399
36400 #undef strerror
36401
36402 /* Override any gcc2 internal prototype to avoid an error.  */
36403 #ifdef __cplusplus
36404 extern "C"
36405 {
36406 #endif
36407 /* We use char because int might match the return type of a gcc2
36408    builtin and then its argument prototype would still apply.  */
36409 char strerror ();
36410 /* The GNU C library defines this for functions which it implements
36411     to always fail with ENOSYS.  Some functions are actually named
36412     something starting with __ and the normal name is an alias.  */
36413 #if defined (__stub_strerror) || defined (__stub___strerror)
36414 choke me
36415 #else
36416 char (*f) () = strerror;
36417 #endif
36418 #ifdef __cplusplus
36419 }
36420 #endif
36421
36422 int
36423 main ()
36424 {
36425 return f != strerror;
36426   ;
36427   return 0;
36428 }
36429 _ACEOF
36430 rm -f conftest.$ac_objext conftest$ac_exeext
36431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36432   (eval $ac_link) 2>conftest.er1
36433   ac_status=$?
36434   grep -v '^ *+' conftest.er1 >conftest.err
36435   rm -f conftest.er1
36436   cat conftest.err >&5
36437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438   (exit $ac_status); } &&
36439          { ac_try='test -z "$ac_c_werror_flag"
36440                          || test ! -s conftest.err'
36441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442   (eval $ac_try) 2>&5
36443   ac_status=$?
36444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445   (exit $ac_status); }; } &&
36446          { ac_try='test -s conftest$ac_exeext'
36447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448   (eval $ac_try) 2>&5
36449   ac_status=$?
36450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451   (exit $ac_status); }; }; then
36452   ac_cv_func_strerror=yes
36453 else
36454   echo "$as_me: failed program was:" >&5
36455 sed 's/^/| /' conftest.$ac_ext >&5
36456
36457 ac_cv_func_strerror=no
36458 fi
36459 rm -f conftest.err conftest.$ac_objext \
36460       conftest$ac_exeext conftest.$ac_ext
36461 fi
36462 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
36463 echo "${ECHO_T}$ac_cv_func_strerror" >&6
36464 if test $ac_cv_func_strerror = yes; then
36465
36466 cat >>confdefs.h <<_ACEOF
36467 #define HAVE_STRERROR 1
36468 _ACEOF
36469
36470 else
36471   case $LIBOBJS in
36472     "strerror.$ac_objext"   | \
36473   *" strerror.$ac_objext"   | \
36474     "strerror.$ac_objext "* | \
36475   *" strerror.$ac_objext "* ) ;;
36476   *) LIBOBJS="$LIBOBJS strerror.$ac_objext" ;;
36477 esac
36478
36479 fi
36480 echo "$as_me:$LINENO: checking for strftime" >&5
36481 echo $ECHO_N "checking for strftime... $ECHO_C" >&6
36482 if test "${ac_cv_func_strftime+set}" = set; then
36483   echo $ECHO_N "(cached) $ECHO_C" >&6
36484 else
36485   cat >conftest.$ac_ext <<_ACEOF
36486 /* confdefs.h.  */
36487 _ACEOF
36488 cat confdefs.h >>conftest.$ac_ext
36489 cat >>conftest.$ac_ext <<_ACEOF
36490 /* end confdefs.h.  */
36491 /* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
36492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36493 #define strftime innocuous_strftime
36494
36495 /* System header to define __stub macros and hopefully few prototypes,
36496     which can conflict with char strftime (); below.
36497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36498     <limits.h> exists even on freestanding compilers.  */
36499
36500 #ifdef __STDC__
36501 # include <limits.h>
36502 #else
36503 # include <assert.h>
36504 #endif
36505
36506 #undef strftime
36507
36508 /* Override any gcc2 internal prototype to avoid an error.  */
36509 #ifdef __cplusplus
36510 extern "C"
36511 {
36512 #endif
36513 /* We use char because int might match the return type of a gcc2
36514    builtin and then its argument prototype would still apply.  */
36515 char strftime ();
36516 /* The GNU C library defines this for functions which it implements
36517     to always fail with ENOSYS.  Some functions are actually named
36518     something starting with __ and the normal name is an alias.  */
36519 #if defined (__stub_strftime) || defined (__stub___strftime)
36520 choke me
36521 #else
36522 char (*f) () = strftime;
36523 #endif
36524 #ifdef __cplusplus
36525 }
36526 #endif
36527
36528 int
36529 main ()
36530 {
36531 return f != strftime;
36532   ;
36533   return 0;
36534 }
36535 _ACEOF
36536 rm -f conftest.$ac_objext conftest$ac_exeext
36537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36538   (eval $ac_link) 2>conftest.er1
36539   ac_status=$?
36540   grep -v '^ *+' conftest.er1 >conftest.err
36541   rm -f conftest.er1
36542   cat conftest.err >&5
36543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544   (exit $ac_status); } &&
36545          { ac_try='test -z "$ac_c_werror_flag"
36546                          || test ! -s conftest.err'
36547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548   (eval $ac_try) 2>&5
36549   ac_status=$?
36550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551   (exit $ac_status); }; } &&
36552          { ac_try='test -s conftest$ac_exeext'
36553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36554   (eval $ac_try) 2>&5
36555   ac_status=$?
36556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557   (exit $ac_status); }; }; then
36558   ac_cv_func_strftime=yes
36559 else
36560   echo "$as_me: failed program was:" >&5
36561 sed 's/^/| /' conftest.$ac_ext >&5
36562
36563 ac_cv_func_strftime=no
36564 fi
36565 rm -f conftest.err conftest.$ac_objext \
36566       conftest$ac_exeext conftest.$ac_ext
36567 fi
36568 echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
36569 echo "${ECHO_T}$ac_cv_func_strftime" >&6
36570 if test $ac_cv_func_strftime = yes; then
36571
36572 cat >>confdefs.h <<_ACEOF
36573 #define HAVE_STRFTIME 1
36574 _ACEOF
36575
36576 else
36577   case $LIBOBJS in
36578     "strftime.$ac_objext"   | \
36579   *" strftime.$ac_objext"   | \
36580     "strftime.$ac_objext "* | \
36581   *" strftime.$ac_objext "* ) ;;
36582   *) LIBOBJS="$LIBOBJS strftime.$ac_objext" ;;
36583 esac
36584
36585 fi
36586 echo "$as_me:$LINENO: checking for strlcat" >&5
36587 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
36588 if test "${ac_cv_func_strlcat+set}" = set; then
36589   echo $ECHO_N "(cached) $ECHO_C" >&6
36590 else
36591   cat >conftest.$ac_ext <<_ACEOF
36592 /* confdefs.h.  */
36593 _ACEOF
36594 cat confdefs.h >>conftest.$ac_ext
36595 cat >>conftest.$ac_ext <<_ACEOF
36596 /* end confdefs.h.  */
36597 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
36598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36599 #define strlcat innocuous_strlcat
36600
36601 /* System header to define __stub macros and hopefully few prototypes,
36602     which can conflict with char strlcat (); below.
36603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36604     <limits.h> exists even on freestanding compilers.  */
36605
36606 #ifdef __STDC__
36607 # include <limits.h>
36608 #else
36609 # include <assert.h>
36610 #endif
36611
36612 #undef strlcat
36613
36614 /* Override any gcc2 internal prototype to avoid an error.  */
36615 #ifdef __cplusplus
36616 extern "C"
36617 {
36618 #endif
36619 /* We use char because int might match the return type of a gcc2
36620    builtin and then its argument prototype would still apply.  */
36621 char strlcat ();
36622 /* The GNU C library defines this for functions which it implements
36623     to always fail with ENOSYS.  Some functions are actually named
36624     something starting with __ and the normal name is an alias.  */
36625 #if defined (__stub_strlcat) || defined (__stub___strlcat)
36626 choke me
36627 #else
36628 char (*f) () = strlcat;
36629 #endif
36630 #ifdef __cplusplus
36631 }
36632 #endif
36633
36634 int
36635 main ()
36636 {
36637 return f != strlcat;
36638   ;
36639   return 0;
36640 }
36641 _ACEOF
36642 rm -f conftest.$ac_objext conftest$ac_exeext
36643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36644   (eval $ac_link) 2>conftest.er1
36645   ac_status=$?
36646   grep -v '^ *+' conftest.er1 >conftest.err
36647   rm -f conftest.er1
36648   cat conftest.err >&5
36649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650   (exit $ac_status); } &&
36651          { ac_try='test -z "$ac_c_werror_flag"
36652                          || test ! -s conftest.err'
36653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36654   (eval $ac_try) 2>&5
36655   ac_status=$?
36656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657   (exit $ac_status); }; } &&
36658          { ac_try='test -s conftest$ac_exeext'
36659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660   (eval $ac_try) 2>&5
36661   ac_status=$?
36662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663   (exit $ac_status); }; }; then
36664   ac_cv_func_strlcat=yes
36665 else
36666   echo "$as_me: failed program was:" >&5
36667 sed 's/^/| /' conftest.$ac_ext >&5
36668
36669 ac_cv_func_strlcat=no
36670 fi
36671 rm -f conftest.err conftest.$ac_objext \
36672       conftest$ac_exeext conftest.$ac_ext
36673 fi
36674 echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
36675 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
36676 if test $ac_cv_func_strlcat = yes; then
36677
36678 cat >>confdefs.h <<_ACEOF
36679 #define HAVE_STRLCAT 1
36680 _ACEOF
36681
36682 else
36683   case $LIBOBJS in
36684     "strlcat.$ac_objext"   | \
36685   *" strlcat.$ac_objext"   | \
36686     "strlcat.$ac_objext "* | \
36687   *" strlcat.$ac_objext "* ) ;;
36688   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" ;;
36689 esac
36690
36691 fi
36692 echo "$as_me:$LINENO: checking for strlcpy" >&5
36693 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
36694 if test "${ac_cv_func_strlcpy+set}" = set; then
36695   echo $ECHO_N "(cached) $ECHO_C" >&6
36696 else
36697   cat >conftest.$ac_ext <<_ACEOF
36698 /* confdefs.h.  */
36699 _ACEOF
36700 cat confdefs.h >>conftest.$ac_ext
36701 cat >>conftest.$ac_ext <<_ACEOF
36702 /* end confdefs.h.  */
36703 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
36704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36705 #define strlcpy innocuous_strlcpy
36706
36707 /* System header to define __stub macros and hopefully few prototypes,
36708     which can conflict with char strlcpy (); below.
36709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36710     <limits.h> exists even on freestanding compilers.  */
36711
36712 #ifdef __STDC__
36713 # include <limits.h>
36714 #else
36715 # include <assert.h>
36716 #endif
36717
36718 #undef strlcpy
36719
36720 /* Override any gcc2 internal prototype to avoid an error.  */
36721 #ifdef __cplusplus
36722 extern "C"
36723 {
36724 #endif
36725 /* We use char because int might match the return type of a gcc2
36726    builtin and then its argument prototype would still apply.  */
36727 char strlcpy ();
36728 /* The GNU C library defines this for functions which it implements
36729     to always fail with ENOSYS.  Some functions are actually named
36730     something starting with __ and the normal name is an alias.  */
36731 #if defined (__stub_strlcpy) || defined (__stub___strlcpy)
36732 choke me
36733 #else
36734 char (*f) () = strlcpy;
36735 #endif
36736 #ifdef __cplusplus
36737 }
36738 #endif
36739
36740 int
36741 main ()
36742 {
36743 return f != strlcpy;
36744   ;
36745   return 0;
36746 }
36747 _ACEOF
36748 rm -f conftest.$ac_objext conftest$ac_exeext
36749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36750   (eval $ac_link) 2>conftest.er1
36751   ac_status=$?
36752   grep -v '^ *+' conftest.er1 >conftest.err
36753   rm -f conftest.er1
36754   cat conftest.err >&5
36755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756   (exit $ac_status); } &&
36757          { ac_try='test -z "$ac_c_werror_flag"
36758                          || test ! -s conftest.err'
36759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36760   (eval $ac_try) 2>&5
36761   ac_status=$?
36762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36763   (exit $ac_status); }; } &&
36764          { ac_try='test -s conftest$ac_exeext'
36765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36766   (eval $ac_try) 2>&5
36767   ac_status=$?
36768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769   (exit $ac_status); }; }; then
36770   ac_cv_func_strlcpy=yes
36771 else
36772   echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36774
36775 ac_cv_func_strlcpy=no
36776 fi
36777 rm -f conftest.err conftest.$ac_objext \
36778       conftest$ac_exeext conftest.$ac_ext
36779 fi
36780 echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
36781 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
36782 if test $ac_cv_func_strlcpy = yes; then
36783
36784 cat >>confdefs.h <<_ACEOF
36785 #define HAVE_STRLCPY 1
36786 _ACEOF
36787
36788 else
36789   case $LIBOBJS in
36790     "strlcpy.$ac_objext"   | \
36791   *" strlcpy.$ac_objext"   | \
36792     "strlcpy.$ac_objext "* | \
36793   *" strlcpy.$ac_objext "* ) ;;
36794   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" ;;
36795 esac
36796
36797 fi
36798 echo "$as_me:$LINENO: checking for strlwr" >&5
36799 echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
36800 if test "${ac_cv_func_strlwr+set}" = set; then
36801   echo $ECHO_N "(cached) $ECHO_C" >&6
36802 else
36803   cat >conftest.$ac_ext <<_ACEOF
36804 /* confdefs.h.  */
36805 _ACEOF
36806 cat confdefs.h >>conftest.$ac_ext
36807 cat >>conftest.$ac_ext <<_ACEOF
36808 /* end confdefs.h.  */
36809 /* Define strlwr to an innocuous variant, in case <limits.h> declares strlwr.
36810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36811 #define strlwr innocuous_strlwr
36812
36813 /* System header to define __stub macros and hopefully few prototypes,
36814     which can conflict with char strlwr (); below.
36815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36816     <limits.h> exists even on freestanding compilers.  */
36817
36818 #ifdef __STDC__
36819 # include <limits.h>
36820 #else
36821 # include <assert.h>
36822 #endif
36823
36824 #undef strlwr
36825
36826 /* Override any gcc2 internal prototype to avoid an error.  */
36827 #ifdef __cplusplus
36828 extern "C"
36829 {
36830 #endif
36831 /* We use char because int might match the return type of a gcc2
36832    builtin and then its argument prototype would still apply.  */
36833 char strlwr ();
36834 /* The GNU C library defines this for functions which it implements
36835     to always fail with ENOSYS.  Some functions are actually named
36836     something starting with __ and the normal name is an alias.  */
36837 #if defined (__stub_strlwr) || defined (__stub___strlwr)
36838 choke me
36839 #else
36840 char (*f) () = strlwr;
36841 #endif
36842 #ifdef __cplusplus
36843 }
36844 #endif
36845
36846 int
36847 main ()
36848 {
36849 return f != strlwr;
36850   ;
36851   return 0;
36852 }
36853 _ACEOF
36854 rm -f conftest.$ac_objext conftest$ac_exeext
36855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36856   (eval $ac_link) 2>conftest.er1
36857   ac_status=$?
36858   grep -v '^ *+' conftest.er1 >conftest.err
36859   rm -f conftest.er1
36860   cat conftest.err >&5
36861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862   (exit $ac_status); } &&
36863          { ac_try='test -z "$ac_c_werror_flag"
36864                          || test ! -s conftest.err'
36865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36866   (eval $ac_try) 2>&5
36867   ac_status=$?
36868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869   (exit $ac_status); }; } &&
36870          { ac_try='test -s conftest$ac_exeext'
36871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36872   (eval $ac_try) 2>&5
36873   ac_status=$?
36874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875   (exit $ac_status); }; }; then
36876   ac_cv_func_strlwr=yes
36877 else
36878   echo "$as_me: failed program was:" >&5
36879 sed 's/^/| /' conftest.$ac_ext >&5
36880
36881 ac_cv_func_strlwr=no
36882 fi
36883 rm -f conftest.err conftest.$ac_objext \
36884       conftest$ac_exeext conftest.$ac_ext
36885 fi
36886 echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
36887 echo "${ECHO_T}$ac_cv_func_strlwr" >&6
36888 if test $ac_cv_func_strlwr = yes; then
36889
36890 cat >>confdefs.h <<_ACEOF
36891 #define HAVE_STRLWR 1
36892 _ACEOF
36893
36894 else
36895   case $LIBOBJS in
36896     "strlwr.$ac_objext"   | \
36897   *" strlwr.$ac_objext"   | \
36898     "strlwr.$ac_objext "* | \
36899   *" strlwr.$ac_objext "* ) ;;
36900   *) LIBOBJS="$LIBOBJS strlwr.$ac_objext" ;;
36901 esac
36902
36903 fi
36904 echo "$as_me:$LINENO: checking for strncasecmp" >&5
36905 echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
36906 if test "${ac_cv_func_strncasecmp+set}" = set; then
36907   echo $ECHO_N "(cached) $ECHO_C" >&6
36908 else
36909   cat >conftest.$ac_ext <<_ACEOF
36910 /* confdefs.h.  */
36911 _ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h.  */
36915 /* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
36916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36917 #define strncasecmp innocuous_strncasecmp
36918
36919 /* System header to define __stub macros and hopefully few prototypes,
36920     which can conflict with char strncasecmp (); below.
36921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36922     <limits.h> exists even on freestanding compilers.  */
36923
36924 #ifdef __STDC__
36925 # include <limits.h>
36926 #else
36927 # include <assert.h>
36928 #endif
36929
36930 #undef strncasecmp
36931
36932 /* Override any gcc2 internal prototype to avoid an error.  */
36933 #ifdef __cplusplus
36934 extern "C"
36935 {
36936 #endif
36937 /* We use char because int might match the return type of a gcc2
36938    builtin and then its argument prototype would still apply.  */
36939 char strncasecmp ();
36940 /* The GNU C library defines this for functions which it implements
36941     to always fail with ENOSYS.  Some functions are actually named
36942     something starting with __ and the normal name is an alias.  */
36943 #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
36944 choke me
36945 #else
36946 char (*f) () = strncasecmp;
36947 #endif
36948 #ifdef __cplusplus
36949 }
36950 #endif
36951
36952 int
36953 main ()
36954 {
36955 return f != strncasecmp;
36956   ;
36957   return 0;
36958 }
36959 _ACEOF
36960 rm -f conftest.$ac_objext conftest$ac_exeext
36961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36962   (eval $ac_link) 2>conftest.er1
36963   ac_status=$?
36964   grep -v '^ *+' conftest.er1 >conftest.err
36965   rm -f conftest.er1
36966   cat conftest.err >&5
36967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968   (exit $ac_status); } &&
36969          { ac_try='test -z "$ac_c_werror_flag"
36970                          || test ! -s conftest.err'
36971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36972   (eval $ac_try) 2>&5
36973   ac_status=$?
36974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975   (exit $ac_status); }; } &&
36976          { ac_try='test -s conftest$ac_exeext'
36977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978   (eval $ac_try) 2>&5
36979   ac_status=$?
36980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981   (exit $ac_status); }; }; then
36982   ac_cv_func_strncasecmp=yes
36983 else
36984   echo "$as_me: failed program was:" >&5
36985 sed 's/^/| /' conftest.$ac_ext >&5
36986
36987 ac_cv_func_strncasecmp=no
36988 fi
36989 rm -f conftest.err conftest.$ac_objext \
36990       conftest$ac_exeext conftest.$ac_ext
36991 fi
36992 echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
36993 echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
36994 if test $ac_cv_func_strncasecmp = yes; then
36995
36996 cat >>confdefs.h <<_ACEOF
36997 #define HAVE_STRNCASECMP 1
36998 _ACEOF
36999
37000 else
37001   case $LIBOBJS in
37002     "strncasecmp.$ac_objext"   | \
37003   *" strncasecmp.$ac_objext"   | \
37004     "strncasecmp.$ac_objext "* | \
37005   *" strncasecmp.$ac_objext "* ) ;;
37006   *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
37007 esac
37008
37009 fi
37010 echo "$as_me:$LINENO: checking for strndup" >&5
37011 echo $ECHO_N "checking for strndup... $ECHO_C" >&6
37012 if test "${ac_cv_func_strndup+set}" = set; then
37013   echo $ECHO_N "(cached) $ECHO_C" >&6
37014 else
37015   cat >conftest.$ac_ext <<_ACEOF
37016 /* confdefs.h.  */
37017 _ACEOF
37018 cat confdefs.h >>conftest.$ac_ext
37019 cat >>conftest.$ac_ext <<_ACEOF
37020 /* end confdefs.h.  */
37021 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
37022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37023 #define strndup innocuous_strndup
37024
37025 /* System header to define __stub macros and hopefully few prototypes,
37026     which can conflict with char strndup (); below.
37027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37028     <limits.h> exists even on freestanding compilers.  */
37029
37030 #ifdef __STDC__
37031 # include <limits.h>
37032 #else
37033 # include <assert.h>
37034 #endif
37035
37036 #undef strndup
37037
37038 /* Override any gcc2 internal prototype to avoid an error.  */
37039 #ifdef __cplusplus
37040 extern "C"
37041 {
37042 #endif
37043 /* We use char because int might match the return type of a gcc2
37044    builtin and then its argument prototype would still apply.  */
37045 char strndup ();
37046 /* The GNU C library defines this for functions which it implements
37047     to always fail with ENOSYS.  Some functions are actually named
37048     something starting with __ and the normal name is an alias.  */
37049 #if defined (__stub_strndup) || defined (__stub___strndup)
37050 choke me
37051 #else
37052 char (*f) () = strndup;
37053 #endif
37054 #ifdef __cplusplus
37055 }
37056 #endif
37057
37058 int
37059 main ()
37060 {
37061 return f != strndup;
37062   ;
37063   return 0;
37064 }
37065 _ACEOF
37066 rm -f conftest.$ac_objext conftest$ac_exeext
37067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37068   (eval $ac_link) 2>conftest.er1
37069   ac_status=$?
37070   grep -v '^ *+' conftest.er1 >conftest.err
37071   rm -f conftest.er1
37072   cat conftest.err >&5
37073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074   (exit $ac_status); } &&
37075          { ac_try='test -z "$ac_c_werror_flag"
37076                          || test ! -s conftest.err'
37077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37078   (eval $ac_try) 2>&5
37079   ac_status=$?
37080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081   (exit $ac_status); }; } &&
37082          { ac_try='test -s conftest$ac_exeext'
37083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37084   (eval $ac_try) 2>&5
37085   ac_status=$?
37086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087   (exit $ac_status); }; }; then
37088   ac_cv_func_strndup=yes
37089 else
37090   echo "$as_me: failed program was:" >&5
37091 sed 's/^/| /' conftest.$ac_ext >&5
37092
37093 ac_cv_func_strndup=no
37094 fi
37095 rm -f conftest.err conftest.$ac_objext \
37096       conftest$ac_exeext conftest.$ac_ext
37097 fi
37098 echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
37099 echo "${ECHO_T}$ac_cv_func_strndup" >&6
37100 if test $ac_cv_func_strndup = yes; then
37101
37102 cat >>confdefs.h <<_ACEOF
37103 #define HAVE_STRNDUP 1
37104 _ACEOF
37105
37106 else
37107   case $LIBOBJS in
37108     "strndup.$ac_objext"   | \
37109   *" strndup.$ac_objext"   | \
37110     "strndup.$ac_objext "* | \
37111   *" strndup.$ac_objext "* ) ;;
37112   *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
37113 esac
37114
37115 fi
37116 echo "$as_me:$LINENO: checking for strnlen" >&5
37117 echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
37118 if test "${ac_cv_func_strnlen+set}" = set; then
37119   echo $ECHO_N "(cached) $ECHO_C" >&6
37120 else
37121   cat >conftest.$ac_ext <<_ACEOF
37122 /* confdefs.h.  */
37123 _ACEOF
37124 cat confdefs.h >>conftest.$ac_ext
37125 cat >>conftest.$ac_ext <<_ACEOF
37126 /* end confdefs.h.  */
37127 /* Define strnlen to an innocuous variant, in case <limits.h> declares strnlen.
37128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37129 #define strnlen innocuous_strnlen
37130
37131 /* System header to define __stub macros and hopefully few prototypes,
37132     which can conflict with char strnlen (); below.
37133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37134     <limits.h> exists even on freestanding compilers.  */
37135
37136 #ifdef __STDC__
37137 # include <limits.h>
37138 #else
37139 # include <assert.h>
37140 #endif
37141
37142 #undef strnlen
37143
37144 /* Override any gcc2 internal prototype to avoid an error.  */
37145 #ifdef __cplusplus
37146 extern "C"
37147 {
37148 #endif
37149 /* We use char because int might match the return type of a gcc2
37150    builtin and then its argument prototype would still apply.  */
37151 char strnlen ();
37152 /* The GNU C library defines this for functions which it implements
37153     to always fail with ENOSYS.  Some functions are actually named
37154     something starting with __ and the normal name is an alias.  */
37155 #if defined (__stub_strnlen) || defined (__stub___strnlen)
37156 choke me
37157 #else
37158 char (*f) () = strnlen;
37159 #endif
37160 #ifdef __cplusplus
37161 }
37162 #endif
37163
37164 int
37165 main ()
37166 {
37167 return f != strnlen;
37168   ;
37169   return 0;
37170 }
37171 _ACEOF
37172 rm -f conftest.$ac_objext conftest$ac_exeext
37173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37174   (eval $ac_link) 2>conftest.er1
37175   ac_status=$?
37176   grep -v '^ *+' conftest.er1 >conftest.err
37177   rm -f conftest.er1
37178   cat conftest.err >&5
37179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180   (exit $ac_status); } &&
37181          { ac_try='test -z "$ac_c_werror_flag"
37182                          || test ! -s conftest.err'
37183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37184   (eval $ac_try) 2>&5
37185   ac_status=$?
37186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187   (exit $ac_status); }; } &&
37188          { ac_try='test -s conftest$ac_exeext'
37189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37190   (eval $ac_try) 2>&5
37191   ac_status=$?
37192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193   (exit $ac_status); }; }; then
37194   ac_cv_func_strnlen=yes
37195 else
37196   echo "$as_me: failed program was:" >&5
37197 sed 's/^/| /' conftest.$ac_ext >&5
37198
37199 ac_cv_func_strnlen=no
37200 fi
37201 rm -f conftest.err conftest.$ac_objext \
37202       conftest$ac_exeext conftest.$ac_ext
37203 fi
37204 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
37205 echo "${ECHO_T}$ac_cv_func_strnlen" >&6
37206 if test $ac_cv_func_strnlen = yes; then
37207
37208 cat >>confdefs.h <<_ACEOF
37209 #define HAVE_STRNLEN 1
37210 _ACEOF
37211
37212 else
37213   case $LIBOBJS in
37214     "strnlen.$ac_objext"   | \
37215   *" strnlen.$ac_objext"   | \
37216     "strnlen.$ac_objext "* | \
37217   *" strnlen.$ac_objext "* ) ;;
37218   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
37219 esac
37220
37221 fi
37222 echo "$as_me:$LINENO: checking for strptime" >&5
37223 echo $ECHO_N "checking for strptime... $ECHO_C" >&6
37224 if test "${ac_cv_func_strptime+set}" = set; then
37225   echo $ECHO_N "(cached) $ECHO_C" >&6
37226 else
37227   cat >conftest.$ac_ext <<_ACEOF
37228 /* confdefs.h.  */
37229 _ACEOF
37230 cat confdefs.h >>conftest.$ac_ext
37231 cat >>conftest.$ac_ext <<_ACEOF
37232 /* end confdefs.h.  */
37233 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
37234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37235 #define strptime innocuous_strptime
37236
37237 /* System header to define __stub macros and hopefully few prototypes,
37238     which can conflict with char strptime (); below.
37239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37240     <limits.h> exists even on freestanding compilers.  */
37241
37242 #ifdef __STDC__
37243 # include <limits.h>
37244 #else
37245 # include <assert.h>
37246 #endif
37247
37248 #undef strptime
37249
37250 /* Override any gcc2 internal prototype to avoid an error.  */
37251 #ifdef __cplusplus
37252 extern "C"
37253 {
37254 #endif
37255 /* We use char because int might match the return type of a gcc2
37256    builtin and then its argument prototype would still apply.  */
37257 char strptime ();
37258 /* The GNU C library defines this for functions which it implements
37259     to always fail with ENOSYS.  Some functions are actually named
37260     something starting with __ and the normal name is an alias.  */
37261 #if defined (__stub_strptime) || defined (__stub___strptime)
37262 choke me
37263 #else
37264 char (*f) () = strptime;
37265 #endif
37266 #ifdef __cplusplus
37267 }
37268 #endif
37269
37270 int
37271 main ()
37272 {
37273 return f != strptime;
37274   ;
37275   return 0;
37276 }
37277 _ACEOF
37278 rm -f conftest.$ac_objext conftest$ac_exeext
37279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37280   (eval $ac_link) 2>conftest.er1
37281   ac_status=$?
37282   grep -v '^ *+' conftest.er1 >conftest.err
37283   rm -f conftest.er1
37284   cat conftest.err >&5
37285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286   (exit $ac_status); } &&
37287          { ac_try='test -z "$ac_c_werror_flag"
37288                          || test ! -s conftest.err'
37289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290   (eval $ac_try) 2>&5
37291   ac_status=$?
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); }; } &&
37294          { ac_try='test -s conftest$ac_exeext'
37295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37296   (eval $ac_try) 2>&5
37297   ac_status=$?
37298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299   (exit $ac_status); }; }; then
37300   ac_cv_func_strptime=yes
37301 else
37302   echo "$as_me: failed program was:" >&5
37303 sed 's/^/| /' conftest.$ac_ext >&5
37304
37305 ac_cv_func_strptime=no
37306 fi
37307 rm -f conftest.err conftest.$ac_objext \
37308       conftest$ac_exeext conftest.$ac_ext
37309 fi
37310 echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
37311 echo "${ECHO_T}$ac_cv_func_strptime" >&6
37312 if test $ac_cv_func_strptime = yes; then
37313
37314 cat >>confdefs.h <<_ACEOF
37315 #define HAVE_STRPTIME 1
37316 _ACEOF
37317
37318 else
37319   case $LIBOBJS in
37320     "strptime.$ac_objext"   | \
37321   *" strptime.$ac_objext"   | \
37322     "strptime.$ac_objext "* | \
37323   *" strptime.$ac_objext "* ) ;;
37324   *) LIBOBJS="$LIBOBJS strptime.$ac_objext" ;;
37325 esac
37326
37327 fi
37328 echo "$as_me:$LINENO: checking for strsep" >&5
37329 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
37330 if test "${ac_cv_func_strsep+set}" = set; then
37331   echo $ECHO_N "(cached) $ECHO_C" >&6
37332 else
37333   cat >conftest.$ac_ext <<_ACEOF
37334 /* confdefs.h.  */
37335 _ACEOF
37336 cat confdefs.h >>conftest.$ac_ext
37337 cat >>conftest.$ac_ext <<_ACEOF
37338 /* end confdefs.h.  */
37339 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
37340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37341 #define strsep innocuous_strsep
37342
37343 /* System header to define __stub macros and hopefully few prototypes,
37344     which can conflict with char strsep (); below.
37345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37346     <limits.h> exists even on freestanding compilers.  */
37347
37348 #ifdef __STDC__
37349 # include <limits.h>
37350 #else
37351 # include <assert.h>
37352 #endif
37353
37354 #undef strsep
37355
37356 /* Override any gcc2 internal prototype to avoid an error.  */
37357 #ifdef __cplusplus
37358 extern "C"
37359 {
37360 #endif
37361 /* We use char because int might match the return type of a gcc2
37362    builtin and then its argument prototype would still apply.  */
37363 char strsep ();
37364 /* The GNU C library defines this for functions which it implements
37365     to always fail with ENOSYS.  Some functions are actually named
37366     something starting with __ and the normal name is an alias.  */
37367 #if defined (__stub_strsep) || defined (__stub___strsep)
37368 choke me
37369 #else
37370 char (*f) () = strsep;
37371 #endif
37372 #ifdef __cplusplus
37373 }
37374 #endif
37375
37376 int
37377 main ()
37378 {
37379 return f != strsep;
37380   ;
37381   return 0;
37382 }
37383 _ACEOF
37384 rm -f conftest.$ac_objext conftest$ac_exeext
37385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37386   (eval $ac_link) 2>conftest.er1
37387   ac_status=$?
37388   grep -v '^ *+' conftest.er1 >conftest.err
37389   rm -f conftest.er1
37390   cat conftest.err >&5
37391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392   (exit $ac_status); } &&
37393          { ac_try='test -z "$ac_c_werror_flag"
37394                          || test ! -s conftest.err'
37395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37396   (eval $ac_try) 2>&5
37397   ac_status=$?
37398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399   (exit $ac_status); }; } &&
37400          { ac_try='test -s conftest$ac_exeext'
37401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37402   (eval $ac_try) 2>&5
37403   ac_status=$?
37404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405   (exit $ac_status); }; }; then
37406   ac_cv_func_strsep=yes
37407 else
37408   echo "$as_me: failed program was:" >&5
37409 sed 's/^/| /' conftest.$ac_ext >&5
37410
37411 ac_cv_func_strsep=no
37412 fi
37413 rm -f conftest.err conftest.$ac_objext \
37414       conftest$ac_exeext conftest.$ac_ext
37415 fi
37416 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
37417 echo "${ECHO_T}$ac_cv_func_strsep" >&6
37418 if test $ac_cv_func_strsep = yes; then
37419
37420 cat >>confdefs.h <<_ACEOF
37421 #define HAVE_STRSEP 1
37422 _ACEOF
37423
37424 else
37425   case $LIBOBJS in
37426     "strsep.$ac_objext"   | \
37427   *" strsep.$ac_objext"   | \
37428     "strsep.$ac_objext "* | \
37429   *" strsep.$ac_objext "* ) ;;
37430   *) LIBOBJS="$LIBOBJS strsep.$ac_objext" ;;
37431 esac
37432
37433 fi
37434 echo "$as_me:$LINENO: checking for strsep_copy" >&5
37435 echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
37436 if test "${ac_cv_func_strsep_copy+set}" = set; then
37437   echo $ECHO_N "(cached) $ECHO_C" >&6
37438 else
37439   cat >conftest.$ac_ext <<_ACEOF
37440 /* confdefs.h.  */
37441 _ACEOF
37442 cat confdefs.h >>conftest.$ac_ext
37443 cat >>conftest.$ac_ext <<_ACEOF
37444 /* end confdefs.h.  */
37445 /* Define strsep_copy to an innocuous variant, in case <limits.h> declares strsep_copy.
37446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37447 #define strsep_copy innocuous_strsep_copy
37448
37449 /* System header to define __stub macros and hopefully few prototypes,
37450     which can conflict with char strsep_copy (); below.
37451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37452     <limits.h> exists even on freestanding compilers.  */
37453
37454 #ifdef __STDC__
37455 # include <limits.h>
37456 #else
37457 # include <assert.h>
37458 #endif
37459
37460 #undef strsep_copy
37461
37462 /* Override any gcc2 internal prototype to avoid an error.  */
37463 #ifdef __cplusplus
37464 extern "C"
37465 {
37466 #endif
37467 /* We use char because int might match the return type of a gcc2
37468    builtin and then its argument prototype would still apply.  */
37469 char strsep_copy ();
37470 /* The GNU C library defines this for functions which it implements
37471     to always fail with ENOSYS.  Some functions are actually named
37472     something starting with __ and the normal name is an alias.  */
37473 #if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
37474 choke me
37475 #else
37476 char (*f) () = strsep_copy;
37477 #endif
37478 #ifdef __cplusplus
37479 }
37480 #endif
37481
37482 int
37483 main ()
37484 {
37485 return f != strsep_copy;
37486   ;
37487   return 0;
37488 }
37489 _ACEOF
37490 rm -f conftest.$ac_objext conftest$ac_exeext
37491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37492   (eval $ac_link) 2>conftest.er1
37493   ac_status=$?
37494   grep -v '^ *+' conftest.er1 >conftest.err
37495   rm -f conftest.er1
37496   cat conftest.err >&5
37497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498   (exit $ac_status); } &&
37499          { ac_try='test -z "$ac_c_werror_flag"
37500                          || test ! -s conftest.err'
37501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37502   (eval $ac_try) 2>&5
37503   ac_status=$?
37504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505   (exit $ac_status); }; } &&
37506          { ac_try='test -s conftest$ac_exeext'
37507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508   (eval $ac_try) 2>&5
37509   ac_status=$?
37510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511   (exit $ac_status); }; }; then
37512   ac_cv_func_strsep_copy=yes
37513 else
37514   echo "$as_me: failed program was:" >&5
37515 sed 's/^/| /' conftest.$ac_ext >&5
37516
37517 ac_cv_func_strsep_copy=no
37518 fi
37519 rm -f conftest.err conftest.$ac_objext \
37520       conftest$ac_exeext conftest.$ac_ext
37521 fi
37522 echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
37523 echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
37524 if test $ac_cv_func_strsep_copy = yes; then
37525
37526 cat >>confdefs.h <<_ACEOF
37527 #define HAVE_STRSEP_COPY 1
37528 _ACEOF
37529
37530 else
37531   case $LIBOBJS in
37532     "strsep_copy.$ac_objext"   | \
37533   *" strsep_copy.$ac_objext"   | \
37534     "strsep_copy.$ac_objext "* | \
37535   *" strsep_copy.$ac_objext "* ) ;;
37536   *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" ;;
37537 esac
37538
37539 fi
37540 echo "$as_me:$LINENO: checking for strtok_r" >&5
37541 echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
37542 if test "${ac_cv_func_strtok_r+set}" = set; then
37543   echo $ECHO_N "(cached) $ECHO_C" >&6
37544 else
37545   cat >conftest.$ac_ext <<_ACEOF
37546 /* confdefs.h.  */
37547 _ACEOF
37548 cat confdefs.h >>conftest.$ac_ext
37549 cat >>conftest.$ac_ext <<_ACEOF
37550 /* end confdefs.h.  */
37551 /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
37552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37553 #define strtok_r innocuous_strtok_r
37554
37555 /* System header to define __stub macros and hopefully few prototypes,
37556     which can conflict with char strtok_r (); below.
37557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37558     <limits.h> exists even on freestanding compilers.  */
37559
37560 #ifdef __STDC__
37561 # include <limits.h>
37562 #else
37563 # include <assert.h>
37564 #endif
37565
37566 #undef strtok_r
37567
37568 /* Override any gcc2 internal prototype to avoid an error.  */
37569 #ifdef __cplusplus
37570 extern "C"
37571 {
37572 #endif
37573 /* We use char because int might match the return type of a gcc2
37574    builtin and then its argument prototype would still apply.  */
37575 char strtok_r ();
37576 /* The GNU C library defines this for functions which it implements
37577     to always fail with ENOSYS.  Some functions are actually named
37578     something starting with __ and the normal name is an alias.  */
37579 #if defined (__stub_strtok_r) || defined (__stub___strtok_r)
37580 choke me
37581 #else
37582 char (*f) () = strtok_r;
37583 #endif
37584 #ifdef __cplusplus
37585 }
37586 #endif
37587
37588 int
37589 main ()
37590 {
37591 return f != strtok_r;
37592   ;
37593   return 0;
37594 }
37595 _ACEOF
37596 rm -f conftest.$ac_objext conftest$ac_exeext
37597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37598   (eval $ac_link) 2>conftest.er1
37599   ac_status=$?
37600   grep -v '^ *+' conftest.er1 >conftest.err
37601   rm -f conftest.er1
37602   cat conftest.err >&5
37603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604   (exit $ac_status); } &&
37605          { ac_try='test -z "$ac_c_werror_flag"
37606                          || test ! -s conftest.err'
37607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37608   (eval $ac_try) 2>&5
37609   ac_status=$?
37610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611   (exit $ac_status); }; } &&
37612          { ac_try='test -s conftest$ac_exeext'
37613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37614   (eval $ac_try) 2>&5
37615   ac_status=$?
37616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617   (exit $ac_status); }; }; then
37618   ac_cv_func_strtok_r=yes
37619 else
37620   echo "$as_me: failed program was:" >&5
37621 sed 's/^/| /' conftest.$ac_ext >&5
37622
37623 ac_cv_func_strtok_r=no
37624 fi
37625 rm -f conftest.err conftest.$ac_objext \
37626       conftest$ac_exeext conftest.$ac_ext
37627 fi
37628 echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
37629 echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
37630 if test $ac_cv_func_strtok_r = yes; then
37631
37632 cat >>confdefs.h <<_ACEOF
37633 #define HAVE_STRTOK_R 1
37634 _ACEOF
37635
37636 else
37637   case $LIBOBJS in
37638     "strtok_r.$ac_objext"   | \
37639   *" strtok_r.$ac_objext"   | \
37640     "strtok_r.$ac_objext "* | \
37641   *" strtok_r.$ac_objext "* ) ;;
37642   *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" ;;
37643 esac
37644
37645 fi
37646 echo "$as_me:$LINENO: checking for strupr" >&5
37647 echo $ECHO_N "checking for strupr... $ECHO_C" >&6
37648 if test "${ac_cv_func_strupr+set}" = set; then
37649   echo $ECHO_N "(cached) $ECHO_C" >&6
37650 else
37651   cat >conftest.$ac_ext <<_ACEOF
37652 /* confdefs.h.  */
37653 _ACEOF
37654 cat confdefs.h >>conftest.$ac_ext
37655 cat >>conftest.$ac_ext <<_ACEOF
37656 /* end confdefs.h.  */
37657 /* Define strupr to an innocuous variant, in case <limits.h> declares strupr.
37658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37659 #define strupr innocuous_strupr
37660
37661 /* System header to define __stub macros and hopefully few prototypes,
37662     which can conflict with char strupr (); below.
37663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37664     <limits.h> exists even on freestanding compilers.  */
37665
37666 #ifdef __STDC__
37667 # include <limits.h>
37668 #else
37669 # include <assert.h>
37670 #endif
37671
37672 #undef strupr
37673
37674 /* Override any gcc2 internal prototype to avoid an error.  */
37675 #ifdef __cplusplus
37676 extern "C"
37677 {
37678 #endif
37679 /* We use char because int might match the return type of a gcc2
37680    builtin and then its argument prototype would still apply.  */
37681 char strupr ();
37682 /* The GNU C library defines this for functions which it implements
37683     to always fail with ENOSYS.  Some functions are actually named
37684     something starting with __ and the normal name is an alias.  */
37685 #if defined (__stub_strupr) || defined (__stub___strupr)
37686 choke me
37687 #else
37688 char (*f) () = strupr;
37689 #endif
37690 #ifdef __cplusplus
37691 }
37692 #endif
37693
37694 int
37695 main ()
37696 {
37697 return f != strupr;
37698   ;
37699   return 0;
37700 }
37701 _ACEOF
37702 rm -f conftest.$ac_objext conftest$ac_exeext
37703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37704   (eval $ac_link) 2>conftest.er1
37705   ac_status=$?
37706   grep -v '^ *+' conftest.er1 >conftest.err
37707   rm -f conftest.er1
37708   cat conftest.err >&5
37709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710   (exit $ac_status); } &&
37711          { ac_try='test -z "$ac_c_werror_flag"
37712                          || test ! -s conftest.err'
37713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37714   (eval $ac_try) 2>&5
37715   ac_status=$?
37716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717   (exit $ac_status); }; } &&
37718          { ac_try='test -s conftest$ac_exeext'
37719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37720   (eval $ac_try) 2>&5
37721   ac_status=$?
37722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723   (exit $ac_status); }; }; then
37724   ac_cv_func_strupr=yes
37725 else
37726   echo "$as_me: failed program was:" >&5
37727 sed 's/^/| /' conftest.$ac_ext >&5
37728
37729 ac_cv_func_strupr=no
37730 fi
37731 rm -f conftest.err conftest.$ac_objext \
37732       conftest$ac_exeext conftest.$ac_ext
37733 fi
37734 echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
37735 echo "${ECHO_T}$ac_cv_func_strupr" >&6
37736 if test $ac_cv_func_strupr = yes; then
37737
37738 cat >>confdefs.h <<_ACEOF
37739 #define HAVE_STRUPR 1
37740 _ACEOF
37741
37742 else
37743   case $LIBOBJS in
37744     "strupr.$ac_objext"   | \
37745   *" strupr.$ac_objext"   | \
37746     "strupr.$ac_objext "* | \
37747   *" strupr.$ac_objext "* ) ;;
37748   *) LIBOBJS="$LIBOBJS strupr.$ac_objext" ;;
37749 esac
37750
37751 fi
37752 echo "$as_me:$LINENO: checking for swab" >&5
37753 echo $ECHO_N "checking for swab... $ECHO_C" >&6
37754 if test "${ac_cv_func_swab+set}" = set; then
37755   echo $ECHO_N "(cached) $ECHO_C" >&6
37756 else
37757   cat >conftest.$ac_ext <<_ACEOF
37758 /* confdefs.h.  */
37759 _ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h.  */
37763 /* Define swab to an innocuous variant, in case <limits.h> declares swab.
37764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37765 #define swab innocuous_swab
37766
37767 /* System header to define __stub macros and hopefully few prototypes,
37768     which can conflict with char swab (); below.
37769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37770     <limits.h> exists even on freestanding compilers.  */
37771
37772 #ifdef __STDC__
37773 # include <limits.h>
37774 #else
37775 # include <assert.h>
37776 #endif
37777
37778 #undef swab
37779
37780 /* Override any gcc2 internal prototype to avoid an error.  */
37781 #ifdef __cplusplus
37782 extern "C"
37783 {
37784 #endif
37785 /* We use char because int might match the return type of a gcc2
37786    builtin and then its argument prototype would still apply.  */
37787 char swab ();
37788 /* The GNU C library defines this for functions which it implements
37789     to always fail with ENOSYS.  Some functions are actually named
37790     something starting with __ and the normal name is an alias.  */
37791 #if defined (__stub_swab) || defined (__stub___swab)
37792 choke me
37793 #else
37794 char (*f) () = swab;
37795 #endif
37796 #ifdef __cplusplus
37797 }
37798 #endif
37799
37800 int
37801 main ()
37802 {
37803 return f != swab;
37804   ;
37805   return 0;
37806 }
37807 _ACEOF
37808 rm -f conftest.$ac_objext conftest$ac_exeext
37809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37810   (eval $ac_link) 2>conftest.er1
37811   ac_status=$?
37812   grep -v '^ *+' conftest.er1 >conftest.err
37813   rm -f conftest.er1
37814   cat conftest.err >&5
37815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816   (exit $ac_status); } &&
37817          { ac_try='test -z "$ac_c_werror_flag"
37818                          || test ! -s conftest.err'
37819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37820   (eval $ac_try) 2>&5
37821   ac_status=$?
37822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823   (exit $ac_status); }; } &&
37824          { ac_try='test -s conftest$ac_exeext'
37825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37826   (eval $ac_try) 2>&5
37827   ac_status=$?
37828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829   (exit $ac_status); }; }; then
37830   ac_cv_func_swab=yes
37831 else
37832   echo "$as_me: failed program was:" >&5
37833 sed 's/^/| /' conftest.$ac_ext >&5
37834
37835 ac_cv_func_swab=no
37836 fi
37837 rm -f conftest.err conftest.$ac_objext \
37838       conftest$ac_exeext conftest.$ac_ext
37839 fi
37840 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
37841 echo "${ECHO_T}$ac_cv_func_swab" >&6
37842 if test $ac_cv_func_swab = yes; then
37843
37844 cat >>confdefs.h <<_ACEOF
37845 #define HAVE_SWAB 1
37846 _ACEOF
37847
37848 else
37849   case $LIBOBJS in
37850     "swab.$ac_objext"   | \
37851   *" swab.$ac_objext"   | \
37852     "swab.$ac_objext "* | \
37853   *" swab.$ac_objext "* ) ;;
37854   *) LIBOBJS="$LIBOBJS swab.$ac_objext" ;;
37855 esac
37856
37857 fi
37858 echo "$as_me:$LINENO: checking for unsetenv" >&5
37859 echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
37860 if test "${ac_cv_func_unsetenv+set}" = set; then
37861   echo $ECHO_N "(cached) $ECHO_C" >&6
37862 else
37863   cat >conftest.$ac_ext <<_ACEOF
37864 /* confdefs.h.  */
37865 _ACEOF
37866 cat confdefs.h >>conftest.$ac_ext
37867 cat >>conftest.$ac_ext <<_ACEOF
37868 /* end confdefs.h.  */
37869 /* Define unsetenv to an innocuous variant, in case <limits.h> declares unsetenv.
37870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37871 #define unsetenv innocuous_unsetenv
37872
37873 /* System header to define __stub macros and hopefully few prototypes,
37874     which can conflict with char unsetenv (); below.
37875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37876     <limits.h> exists even on freestanding compilers.  */
37877
37878 #ifdef __STDC__
37879 # include <limits.h>
37880 #else
37881 # include <assert.h>
37882 #endif
37883
37884 #undef unsetenv
37885
37886 /* Override any gcc2 internal prototype to avoid an error.  */
37887 #ifdef __cplusplus
37888 extern "C"
37889 {
37890 #endif
37891 /* We use char because int might match the return type of a gcc2
37892    builtin and then its argument prototype would still apply.  */
37893 char unsetenv ();
37894 /* The GNU C library defines this for functions which it implements
37895     to always fail with ENOSYS.  Some functions are actually named
37896     something starting with __ and the normal name is an alias.  */
37897 #if defined (__stub_unsetenv) || defined (__stub___unsetenv)
37898 choke me
37899 #else
37900 char (*f) () = unsetenv;
37901 #endif
37902 #ifdef __cplusplus
37903 }
37904 #endif
37905
37906 int
37907 main ()
37908 {
37909 return f != unsetenv;
37910   ;
37911   return 0;
37912 }
37913 _ACEOF
37914 rm -f conftest.$ac_objext conftest$ac_exeext
37915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37916   (eval $ac_link) 2>conftest.er1
37917   ac_status=$?
37918   grep -v '^ *+' conftest.er1 >conftest.err
37919   rm -f conftest.er1
37920   cat conftest.err >&5
37921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922   (exit $ac_status); } &&
37923          { ac_try='test -z "$ac_c_werror_flag"
37924                          || test ! -s conftest.err'
37925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37926   (eval $ac_try) 2>&5
37927   ac_status=$?
37928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37929   (exit $ac_status); }; } &&
37930          { ac_try='test -s conftest$ac_exeext'
37931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37932   (eval $ac_try) 2>&5
37933   ac_status=$?
37934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935   (exit $ac_status); }; }; then
37936   ac_cv_func_unsetenv=yes
37937 else
37938   echo "$as_me: failed program was:" >&5
37939 sed 's/^/| /' conftest.$ac_ext >&5
37940
37941 ac_cv_func_unsetenv=no
37942 fi
37943 rm -f conftest.err conftest.$ac_objext \
37944       conftest$ac_exeext conftest.$ac_ext
37945 fi
37946 echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
37947 echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
37948 if test $ac_cv_func_unsetenv = yes; then
37949
37950 cat >>confdefs.h <<_ACEOF
37951 #define HAVE_UNSETENV 1
37952 _ACEOF
37953
37954 else
37955   case $LIBOBJS in
37956     "unsetenv.$ac_objext"   | \
37957   *" unsetenv.$ac_objext"   | \
37958     "unsetenv.$ac_objext "* | \
37959   *" unsetenv.$ac_objext "* ) ;;
37960   *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" ;;
37961 esac
37962
37963 fi
37964 echo "$as_me:$LINENO: checking for verr" >&5
37965 echo $ECHO_N "checking for verr... $ECHO_C" >&6
37966 if test "${ac_cv_func_verr+set}" = set; then
37967   echo $ECHO_N "(cached) $ECHO_C" >&6
37968 else
37969   cat >conftest.$ac_ext <<_ACEOF
37970 /* confdefs.h.  */
37971 _ACEOF
37972 cat confdefs.h >>conftest.$ac_ext
37973 cat >>conftest.$ac_ext <<_ACEOF
37974 /* end confdefs.h.  */
37975 /* Define verr to an innocuous variant, in case <limits.h> declares verr.
37976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37977 #define verr innocuous_verr
37978
37979 /* System header to define __stub macros and hopefully few prototypes,
37980     which can conflict with char verr (); below.
37981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37982     <limits.h> exists even on freestanding compilers.  */
37983
37984 #ifdef __STDC__
37985 # include <limits.h>
37986 #else
37987 # include <assert.h>
37988 #endif
37989
37990 #undef verr
37991
37992 /* Override any gcc2 internal prototype to avoid an error.  */
37993 #ifdef __cplusplus
37994 extern "C"
37995 {
37996 #endif
37997 /* We use char because int might match the return type of a gcc2
37998    builtin and then its argument prototype would still apply.  */
37999 char verr ();
38000 /* The GNU C library defines this for functions which it implements
38001     to always fail with ENOSYS.  Some functions are actually named
38002     something starting with __ and the normal name is an alias.  */
38003 #if defined (__stub_verr) || defined (__stub___verr)
38004 choke me
38005 #else
38006 char (*f) () = verr;
38007 #endif
38008 #ifdef __cplusplus
38009 }
38010 #endif
38011
38012 int
38013 main ()
38014 {
38015 return f != verr;
38016   ;
38017   return 0;
38018 }
38019 _ACEOF
38020 rm -f conftest.$ac_objext conftest$ac_exeext
38021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38022   (eval $ac_link) 2>conftest.er1
38023   ac_status=$?
38024   grep -v '^ *+' conftest.er1 >conftest.err
38025   rm -f conftest.er1
38026   cat conftest.err >&5
38027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028   (exit $ac_status); } &&
38029          { ac_try='test -z "$ac_c_werror_flag"
38030                          || test ! -s conftest.err'
38031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38032   (eval $ac_try) 2>&5
38033   ac_status=$?
38034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035   (exit $ac_status); }; } &&
38036          { ac_try='test -s conftest$ac_exeext'
38037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038   (eval $ac_try) 2>&5
38039   ac_status=$?
38040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041   (exit $ac_status); }; }; then
38042   ac_cv_func_verr=yes
38043 else
38044   echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38046
38047 ac_cv_func_verr=no
38048 fi
38049 rm -f conftest.err conftest.$ac_objext \
38050       conftest$ac_exeext conftest.$ac_ext
38051 fi
38052 echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
38053 echo "${ECHO_T}$ac_cv_func_verr" >&6
38054 if test $ac_cv_func_verr = yes; then
38055
38056 cat >>confdefs.h <<_ACEOF
38057 #define HAVE_VERR 1
38058 _ACEOF
38059
38060 else
38061   case $LIBOBJS in
38062     "verr.$ac_objext"   | \
38063   *" verr.$ac_objext"   | \
38064     "verr.$ac_objext "* | \
38065   *" verr.$ac_objext "* ) ;;
38066   *) LIBOBJS="$LIBOBJS verr.$ac_objext" ;;
38067 esac
38068
38069 fi
38070 echo "$as_me:$LINENO: checking for verrx" >&5
38071 echo $ECHO_N "checking for verrx... $ECHO_C" >&6
38072 if test "${ac_cv_func_verrx+set}" = set; then
38073   echo $ECHO_N "(cached) $ECHO_C" >&6
38074 else
38075   cat >conftest.$ac_ext <<_ACEOF
38076 /* confdefs.h.  */
38077 _ACEOF
38078 cat confdefs.h >>conftest.$ac_ext
38079 cat >>conftest.$ac_ext <<_ACEOF
38080 /* end confdefs.h.  */
38081 /* Define verrx to an innocuous variant, in case <limits.h> declares verrx.
38082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38083 #define verrx innocuous_verrx
38084
38085 /* System header to define __stub macros and hopefully few prototypes,
38086     which can conflict with char verrx (); below.
38087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38088     <limits.h> exists even on freestanding compilers.  */
38089
38090 #ifdef __STDC__
38091 # include <limits.h>
38092 #else
38093 # include <assert.h>
38094 #endif
38095
38096 #undef verrx
38097
38098 /* Override any gcc2 internal prototype to avoid an error.  */
38099 #ifdef __cplusplus
38100 extern "C"
38101 {
38102 #endif
38103 /* We use char because int might match the return type of a gcc2
38104    builtin and then its argument prototype would still apply.  */
38105 char verrx ();
38106 /* The GNU C library defines this for functions which it implements
38107     to always fail with ENOSYS.  Some functions are actually named
38108     something starting with __ and the normal name is an alias.  */
38109 #if defined (__stub_verrx) || defined (__stub___verrx)
38110 choke me
38111 #else
38112 char (*f) () = verrx;
38113 #endif
38114 #ifdef __cplusplus
38115 }
38116 #endif
38117
38118 int
38119 main ()
38120 {
38121 return f != verrx;
38122   ;
38123   return 0;
38124 }
38125 _ACEOF
38126 rm -f conftest.$ac_objext conftest$ac_exeext
38127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38128   (eval $ac_link) 2>conftest.er1
38129   ac_status=$?
38130   grep -v '^ *+' conftest.er1 >conftest.err
38131   rm -f conftest.er1
38132   cat conftest.err >&5
38133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38134   (exit $ac_status); } &&
38135          { ac_try='test -z "$ac_c_werror_flag"
38136                          || test ! -s conftest.err'
38137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138   (eval $ac_try) 2>&5
38139   ac_status=$?
38140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141   (exit $ac_status); }; } &&
38142          { ac_try='test -s conftest$ac_exeext'
38143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38144   (eval $ac_try) 2>&5
38145   ac_status=$?
38146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147   (exit $ac_status); }; }; then
38148   ac_cv_func_verrx=yes
38149 else
38150   echo "$as_me: failed program was:" >&5
38151 sed 's/^/| /' conftest.$ac_ext >&5
38152
38153 ac_cv_func_verrx=no
38154 fi
38155 rm -f conftest.err conftest.$ac_objext \
38156       conftest$ac_exeext conftest.$ac_ext
38157 fi
38158 echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
38159 echo "${ECHO_T}$ac_cv_func_verrx" >&6
38160 if test $ac_cv_func_verrx = yes; then
38161
38162 cat >>confdefs.h <<_ACEOF
38163 #define HAVE_VERRX 1
38164 _ACEOF
38165
38166 else
38167   case $LIBOBJS in
38168     "verrx.$ac_objext"   | \
38169   *" verrx.$ac_objext"   | \
38170     "verrx.$ac_objext "* | \
38171   *" verrx.$ac_objext "* ) ;;
38172   *) LIBOBJS="$LIBOBJS verrx.$ac_objext" ;;
38173 esac
38174
38175 fi
38176 echo "$as_me:$LINENO: checking for vsyslog" >&5
38177 echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
38178 if test "${ac_cv_func_vsyslog+set}" = set; then
38179   echo $ECHO_N "(cached) $ECHO_C" >&6
38180 else
38181   cat >conftest.$ac_ext <<_ACEOF
38182 /* confdefs.h.  */
38183 _ACEOF
38184 cat confdefs.h >>conftest.$ac_ext
38185 cat >>conftest.$ac_ext <<_ACEOF
38186 /* end confdefs.h.  */
38187 /* Define vsyslog to an innocuous variant, in case <limits.h> declares vsyslog.
38188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38189 #define vsyslog innocuous_vsyslog
38190
38191 /* System header to define __stub macros and hopefully few prototypes,
38192     which can conflict with char vsyslog (); below.
38193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38194     <limits.h> exists even on freestanding compilers.  */
38195
38196 #ifdef __STDC__
38197 # include <limits.h>
38198 #else
38199 # include <assert.h>
38200 #endif
38201
38202 #undef vsyslog
38203
38204 /* Override any gcc2 internal prototype to avoid an error.  */
38205 #ifdef __cplusplus
38206 extern "C"
38207 {
38208 #endif
38209 /* We use char because int might match the return type of a gcc2
38210    builtin and then its argument prototype would still apply.  */
38211 char vsyslog ();
38212 /* The GNU C library defines this for functions which it implements
38213     to always fail with ENOSYS.  Some functions are actually named
38214     something starting with __ and the normal name is an alias.  */
38215 #if defined (__stub_vsyslog) || defined (__stub___vsyslog)
38216 choke me
38217 #else
38218 char (*f) () = vsyslog;
38219 #endif
38220 #ifdef __cplusplus
38221 }
38222 #endif
38223
38224 int
38225 main ()
38226 {
38227 return f != vsyslog;
38228   ;
38229   return 0;
38230 }
38231 _ACEOF
38232 rm -f conftest.$ac_objext conftest$ac_exeext
38233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38234   (eval $ac_link) 2>conftest.er1
38235   ac_status=$?
38236   grep -v '^ *+' conftest.er1 >conftest.err
38237   rm -f conftest.er1
38238   cat conftest.err >&5
38239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240   (exit $ac_status); } &&
38241          { ac_try='test -z "$ac_c_werror_flag"
38242                          || test ! -s conftest.err'
38243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38244   (eval $ac_try) 2>&5
38245   ac_status=$?
38246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247   (exit $ac_status); }; } &&
38248          { ac_try='test -s conftest$ac_exeext'
38249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38250   (eval $ac_try) 2>&5
38251   ac_status=$?
38252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253   (exit $ac_status); }; }; then
38254   ac_cv_func_vsyslog=yes
38255 else
38256   echo "$as_me: failed program was:" >&5
38257 sed 's/^/| /' conftest.$ac_ext >&5
38258
38259 ac_cv_func_vsyslog=no
38260 fi
38261 rm -f conftest.err conftest.$ac_objext \
38262       conftest$ac_exeext conftest.$ac_ext
38263 fi
38264 echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
38265 echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
38266 if test $ac_cv_func_vsyslog = yes; then
38267
38268 cat >>confdefs.h <<_ACEOF
38269 #define HAVE_VSYSLOG 1
38270 _ACEOF
38271
38272 else
38273   case $LIBOBJS in
38274     "vsyslog.$ac_objext"   | \
38275   *" vsyslog.$ac_objext"   | \
38276     "vsyslog.$ac_objext "* | \
38277   *" vsyslog.$ac_objext "* ) ;;
38278   *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" ;;
38279 esac
38280
38281 fi
38282 echo "$as_me:$LINENO: checking for vwarn" >&5
38283 echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
38284 if test "${ac_cv_func_vwarn+set}" = set; then
38285   echo $ECHO_N "(cached) $ECHO_C" >&6
38286 else
38287   cat >conftest.$ac_ext <<_ACEOF
38288 /* confdefs.h.  */
38289 _ACEOF
38290 cat confdefs.h >>conftest.$ac_ext
38291 cat >>conftest.$ac_ext <<_ACEOF
38292 /* end confdefs.h.  */
38293 /* Define vwarn to an innocuous variant, in case <limits.h> declares vwarn.
38294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38295 #define vwarn innocuous_vwarn
38296
38297 /* System header to define __stub macros and hopefully few prototypes,
38298     which can conflict with char vwarn (); below.
38299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38300     <limits.h> exists even on freestanding compilers.  */
38301
38302 #ifdef __STDC__
38303 # include <limits.h>
38304 #else
38305 # include <assert.h>
38306 #endif
38307
38308 #undef vwarn
38309
38310 /* Override any gcc2 internal prototype to avoid an error.  */
38311 #ifdef __cplusplus
38312 extern "C"
38313 {
38314 #endif
38315 /* We use char because int might match the return type of a gcc2
38316    builtin and then its argument prototype would still apply.  */
38317 char vwarn ();
38318 /* The GNU C library defines this for functions which it implements
38319     to always fail with ENOSYS.  Some functions are actually named
38320     something starting with __ and the normal name is an alias.  */
38321 #if defined (__stub_vwarn) || defined (__stub___vwarn)
38322 choke me
38323 #else
38324 char (*f) () = vwarn;
38325 #endif
38326 #ifdef __cplusplus
38327 }
38328 #endif
38329
38330 int
38331 main ()
38332 {
38333 return f != vwarn;
38334   ;
38335   return 0;
38336 }
38337 _ACEOF
38338 rm -f conftest.$ac_objext conftest$ac_exeext
38339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38340   (eval $ac_link) 2>conftest.er1
38341   ac_status=$?
38342   grep -v '^ *+' conftest.er1 >conftest.err
38343   rm -f conftest.er1
38344   cat conftest.err >&5
38345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346   (exit $ac_status); } &&
38347          { ac_try='test -z "$ac_c_werror_flag"
38348                          || test ! -s conftest.err'
38349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38350   (eval $ac_try) 2>&5
38351   ac_status=$?
38352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353   (exit $ac_status); }; } &&
38354          { ac_try='test -s conftest$ac_exeext'
38355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38356   (eval $ac_try) 2>&5
38357   ac_status=$?
38358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359   (exit $ac_status); }; }; then
38360   ac_cv_func_vwarn=yes
38361 else
38362   echo "$as_me: failed program was:" >&5
38363 sed 's/^/| /' conftest.$ac_ext >&5
38364
38365 ac_cv_func_vwarn=no
38366 fi
38367 rm -f conftest.err conftest.$ac_objext \
38368       conftest$ac_exeext conftest.$ac_ext
38369 fi
38370 echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
38371 echo "${ECHO_T}$ac_cv_func_vwarn" >&6
38372 if test $ac_cv_func_vwarn = yes; then
38373
38374 cat >>confdefs.h <<_ACEOF
38375 #define HAVE_VWARN 1
38376 _ACEOF
38377
38378 else
38379   case $LIBOBJS in
38380     "vwarn.$ac_objext"   | \
38381   *" vwarn.$ac_objext"   | \
38382     "vwarn.$ac_objext "* | \
38383   *" vwarn.$ac_objext "* ) ;;
38384   *) LIBOBJS="$LIBOBJS vwarn.$ac_objext" ;;
38385 esac
38386
38387 fi
38388 echo "$as_me:$LINENO: checking for vwarnx" >&5
38389 echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
38390 if test "${ac_cv_func_vwarnx+set}" = set; then
38391   echo $ECHO_N "(cached) $ECHO_C" >&6
38392 else
38393   cat >conftest.$ac_ext <<_ACEOF
38394 /* confdefs.h.  */
38395 _ACEOF
38396 cat confdefs.h >>conftest.$ac_ext
38397 cat >>conftest.$ac_ext <<_ACEOF
38398 /* end confdefs.h.  */
38399 /* Define vwarnx to an innocuous variant, in case <limits.h> declares vwarnx.
38400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38401 #define vwarnx innocuous_vwarnx
38402
38403 /* System header to define __stub macros and hopefully few prototypes,
38404     which can conflict with char vwarnx (); below.
38405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38406     <limits.h> exists even on freestanding compilers.  */
38407
38408 #ifdef __STDC__
38409 # include <limits.h>
38410 #else
38411 # include <assert.h>
38412 #endif
38413
38414 #undef vwarnx
38415
38416 /* Override any gcc2 internal prototype to avoid an error.  */
38417 #ifdef __cplusplus
38418 extern "C"
38419 {
38420 #endif
38421 /* We use char because int might match the return type of a gcc2
38422    builtin and then its argument prototype would still apply.  */
38423 char vwarnx ();
38424 /* The GNU C library defines this for functions which it implements
38425     to always fail with ENOSYS.  Some functions are actually named
38426     something starting with __ and the normal name is an alias.  */
38427 #if defined (__stub_vwarnx) || defined (__stub___vwarnx)
38428 choke me
38429 #else
38430 char (*f) () = vwarnx;
38431 #endif
38432 #ifdef __cplusplus
38433 }
38434 #endif
38435
38436 int
38437 main ()
38438 {
38439 return f != vwarnx;
38440   ;
38441   return 0;
38442 }
38443 _ACEOF
38444 rm -f conftest.$ac_objext conftest$ac_exeext
38445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38446   (eval $ac_link) 2>conftest.er1
38447   ac_status=$?
38448   grep -v '^ *+' conftest.er1 >conftest.err
38449   rm -f conftest.er1
38450   cat conftest.err >&5
38451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38452   (exit $ac_status); } &&
38453          { ac_try='test -z "$ac_c_werror_flag"
38454                          || test ! -s conftest.err'
38455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456   (eval $ac_try) 2>&5
38457   ac_status=$?
38458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459   (exit $ac_status); }; } &&
38460          { ac_try='test -s conftest$ac_exeext'
38461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462   (eval $ac_try) 2>&5
38463   ac_status=$?
38464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465   (exit $ac_status); }; }; then
38466   ac_cv_func_vwarnx=yes
38467 else
38468   echo "$as_me: failed program was:" >&5
38469 sed 's/^/| /' conftest.$ac_ext >&5
38470
38471 ac_cv_func_vwarnx=no
38472 fi
38473 rm -f conftest.err conftest.$ac_objext \
38474       conftest$ac_exeext conftest.$ac_ext
38475 fi
38476 echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
38477 echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
38478 if test $ac_cv_func_vwarnx = yes; then
38479
38480 cat >>confdefs.h <<_ACEOF
38481 #define HAVE_VWARNX 1
38482 _ACEOF
38483
38484 else
38485   case $LIBOBJS in
38486     "vwarnx.$ac_objext"   | \
38487   *" vwarnx.$ac_objext"   | \
38488     "vwarnx.$ac_objext "* | \
38489   *" vwarnx.$ac_objext "* ) ;;
38490   *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext" ;;
38491 esac
38492
38493 fi
38494 echo "$as_me:$LINENO: checking for warn" >&5
38495 echo $ECHO_N "checking for warn... $ECHO_C" >&6
38496 if test "${ac_cv_func_warn+set}" = set; then
38497   echo $ECHO_N "(cached) $ECHO_C" >&6
38498 else
38499   cat >conftest.$ac_ext <<_ACEOF
38500 /* confdefs.h.  */
38501 _ACEOF
38502 cat confdefs.h >>conftest.$ac_ext
38503 cat >>conftest.$ac_ext <<_ACEOF
38504 /* end confdefs.h.  */
38505 /* Define warn to an innocuous variant, in case <limits.h> declares warn.
38506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38507 #define warn innocuous_warn
38508
38509 /* System header to define __stub macros and hopefully few prototypes,
38510     which can conflict with char warn (); below.
38511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38512     <limits.h> exists even on freestanding compilers.  */
38513
38514 #ifdef __STDC__
38515 # include <limits.h>
38516 #else
38517 # include <assert.h>
38518 #endif
38519
38520 #undef warn
38521
38522 /* Override any gcc2 internal prototype to avoid an error.  */
38523 #ifdef __cplusplus
38524 extern "C"
38525 {
38526 #endif
38527 /* We use char because int might match the return type of a gcc2
38528    builtin and then its argument prototype would still apply.  */
38529 char warn ();
38530 /* The GNU C library defines this for functions which it implements
38531     to always fail with ENOSYS.  Some functions are actually named
38532     something starting with __ and the normal name is an alias.  */
38533 #if defined (__stub_warn) || defined (__stub___warn)
38534 choke me
38535 #else
38536 char (*f) () = warn;
38537 #endif
38538 #ifdef __cplusplus
38539 }
38540 #endif
38541
38542 int
38543 main ()
38544 {
38545 return f != warn;
38546   ;
38547   return 0;
38548 }
38549 _ACEOF
38550 rm -f conftest.$ac_objext conftest$ac_exeext
38551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38552   (eval $ac_link) 2>conftest.er1
38553   ac_status=$?
38554   grep -v '^ *+' conftest.er1 >conftest.err
38555   rm -f conftest.er1
38556   cat conftest.err >&5
38557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558   (exit $ac_status); } &&
38559          { ac_try='test -z "$ac_c_werror_flag"
38560                          || test ! -s conftest.err'
38561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38562   (eval $ac_try) 2>&5
38563   ac_status=$?
38564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565   (exit $ac_status); }; } &&
38566          { ac_try='test -s conftest$ac_exeext'
38567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38568   (eval $ac_try) 2>&5
38569   ac_status=$?
38570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571   (exit $ac_status); }; }; then
38572   ac_cv_func_warn=yes
38573 else
38574   echo "$as_me: failed program was:" >&5
38575 sed 's/^/| /' conftest.$ac_ext >&5
38576
38577 ac_cv_func_warn=no
38578 fi
38579 rm -f conftest.err conftest.$ac_objext \
38580       conftest$ac_exeext conftest.$ac_ext
38581 fi
38582 echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
38583 echo "${ECHO_T}$ac_cv_func_warn" >&6
38584 if test $ac_cv_func_warn = yes; then
38585
38586 cat >>confdefs.h <<_ACEOF
38587 #define HAVE_WARN 1
38588 _ACEOF
38589
38590 else
38591   case $LIBOBJS in
38592     "warn.$ac_objext"   | \
38593   *" warn.$ac_objext"   | \
38594     "warn.$ac_objext "* | \
38595   *" warn.$ac_objext "* ) ;;
38596   *) LIBOBJS="$LIBOBJS warn.$ac_objext" ;;
38597 esac
38598
38599 fi
38600 echo "$as_me:$LINENO: checking for warnx" >&5
38601 echo $ECHO_N "checking for warnx... $ECHO_C" >&6
38602 if test "${ac_cv_func_warnx+set}" = set; then
38603   echo $ECHO_N "(cached) $ECHO_C" >&6
38604 else
38605   cat >conftest.$ac_ext <<_ACEOF
38606 /* confdefs.h.  */
38607 _ACEOF
38608 cat confdefs.h >>conftest.$ac_ext
38609 cat >>conftest.$ac_ext <<_ACEOF
38610 /* end confdefs.h.  */
38611 /* Define warnx to an innocuous variant, in case <limits.h> declares warnx.
38612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38613 #define warnx innocuous_warnx
38614
38615 /* System header to define __stub macros and hopefully few prototypes,
38616     which can conflict with char warnx (); below.
38617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38618     <limits.h> exists even on freestanding compilers.  */
38619
38620 #ifdef __STDC__
38621 # include <limits.h>
38622 #else
38623 # include <assert.h>
38624 #endif
38625
38626 #undef warnx
38627
38628 /* Override any gcc2 internal prototype to avoid an error.  */
38629 #ifdef __cplusplus
38630 extern "C"
38631 {
38632 #endif
38633 /* We use char because int might match the return type of a gcc2
38634    builtin and then its argument prototype would still apply.  */
38635 char warnx ();
38636 /* The GNU C library defines this for functions which it implements
38637     to always fail with ENOSYS.  Some functions are actually named
38638     something starting with __ and the normal name is an alias.  */
38639 #if defined (__stub_warnx) || defined (__stub___warnx)
38640 choke me
38641 #else
38642 char (*f) () = warnx;
38643 #endif
38644 #ifdef __cplusplus
38645 }
38646 #endif
38647
38648 int
38649 main ()
38650 {
38651 return f != warnx;
38652   ;
38653   return 0;
38654 }
38655 _ACEOF
38656 rm -f conftest.$ac_objext conftest$ac_exeext
38657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38658   (eval $ac_link) 2>conftest.er1
38659   ac_status=$?
38660   grep -v '^ *+' conftest.er1 >conftest.err
38661   rm -f conftest.er1
38662   cat conftest.err >&5
38663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664   (exit $ac_status); } &&
38665          { ac_try='test -z "$ac_c_werror_flag"
38666                          || test ! -s conftest.err'
38667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668   (eval $ac_try) 2>&5
38669   ac_status=$?
38670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671   (exit $ac_status); }; } &&
38672          { ac_try='test -s conftest$ac_exeext'
38673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38674   (eval $ac_try) 2>&5
38675   ac_status=$?
38676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677   (exit $ac_status); }; }; then
38678   ac_cv_func_warnx=yes
38679 else
38680   echo "$as_me: failed program was:" >&5
38681 sed 's/^/| /' conftest.$ac_ext >&5
38682
38683 ac_cv_func_warnx=no
38684 fi
38685 rm -f conftest.err conftest.$ac_objext \
38686       conftest$ac_exeext conftest.$ac_ext
38687 fi
38688 echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
38689 echo "${ECHO_T}$ac_cv_func_warnx" >&6
38690 if test $ac_cv_func_warnx = yes; then
38691
38692 cat >>confdefs.h <<_ACEOF
38693 #define HAVE_WARNX 1
38694 _ACEOF
38695
38696 else
38697   case $LIBOBJS in
38698     "warnx.$ac_objext"   | \
38699   *" warnx.$ac_objext"   | \
38700     "warnx.$ac_objext "* | \
38701   *" warnx.$ac_objext "* ) ;;
38702   *) LIBOBJS="$LIBOBJS warnx.$ac_objext" ;;
38703 esac
38704
38705 fi
38706 echo "$as_me:$LINENO: checking for writev" >&5
38707 echo $ECHO_N "checking for writev... $ECHO_C" >&6
38708 if test "${ac_cv_func_writev+set}" = set; then
38709   echo $ECHO_N "(cached) $ECHO_C" >&6
38710 else
38711   cat >conftest.$ac_ext <<_ACEOF
38712 /* confdefs.h.  */
38713 _ACEOF
38714 cat confdefs.h >>conftest.$ac_ext
38715 cat >>conftest.$ac_ext <<_ACEOF
38716 /* end confdefs.h.  */
38717 /* Define writev to an innocuous variant, in case <limits.h> declares writev.
38718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38719 #define writev innocuous_writev
38720
38721 /* System header to define __stub macros and hopefully few prototypes,
38722     which can conflict with char writev (); below.
38723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38724     <limits.h> exists even on freestanding compilers.  */
38725
38726 #ifdef __STDC__
38727 # include <limits.h>
38728 #else
38729 # include <assert.h>
38730 #endif
38731
38732 #undef writev
38733
38734 /* Override any gcc2 internal prototype to avoid an error.  */
38735 #ifdef __cplusplus
38736 extern "C"
38737 {
38738 #endif
38739 /* We use char because int might match the return type of a gcc2
38740    builtin and then its argument prototype would still apply.  */
38741 char writev ();
38742 /* The GNU C library defines this for functions which it implements
38743     to always fail with ENOSYS.  Some functions are actually named
38744     something starting with __ and the normal name is an alias.  */
38745 #if defined (__stub_writev) || defined (__stub___writev)
38746 choke me
38747 #else
38748 char (*f) () = writev;
38749 #endif
38750 #ifdef __cplusplus
38751 }
38752 #endif
38753
38754 int
38755 main ()
38756 {
38757 return f != writev;
38758   ;
38759   return 0;
38760 }
38761 _ACEOF
38762 rm -f conftest.$ac_objext conftest$ac_exeext
38763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38764   (eval $ac_link) 2>conftest.er1
38765   ac_status=$?
38766   grep -v '^ *+' conftest.er1 >conftest.err
38767   rm -f conftest.er1
38768   cat conftest.err >&5
38769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38770   (exit $ac_status); } &&
38771          { ac_try='test -z "$ac_c_werror_flag"
38772                          || test ! -s conftest.err'
38773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38774   (eval $ac_try) 2>&5
38775   ac_status=$?
38776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777   (exit $ac_status); }; } &&
38778          { ac_try='test -s conftest$ac_exeext'
38779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38780   (eval $ac_try) 2>&5
38781   ac_status=$?
38782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38783   (exit $ac_status); }; }; then
38784   ac_cv_func_writev=yes
38785 else
38786   echo "$as_me: failed program was:" >&5
38787 sed 's/^/| /' conftest.$ac_ext >&5
38788
38789 ac_cv_func_writev=no
38790 fi
38791 rm -f conftest.err conftest.$ac_objext \
38792       conftest$ac_exeext conftest.$ac_ext
38793 fi
38794 echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
38795 echo "${ECHO_T}$ac_cv_func_writev" >&6
38796 if test $ac_cv_func_writev = yes; then
38797
38798 cat >>confdefs.h <<_ACEOF
38799 #define HAVE_WRITEV 1
38800 _ACEOF
38801
38802 else
38803   case $LIBOBJS in
38804     "writev.$ac_objext"   | \
38805   *" writev.$ac_objext"   | \
38806     "writev.$ac_objext "* | \
38807   *" writev.$ac_objext "* ) ;;
38808   *) LIBOBJS="$LIBOBJS writev.$ac_objext" ;;
38809 esac
38810
38811 fi
38812
38813
38814
38815 if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
38816 echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
38817 echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
38818 if test "${ac_cv_func_strndup_noproto+set}" = set; then
38819   echo $ECHO_N "(cached) $ECHO_C" >&6
38820 else
38821   cat >conftest.$ac_ext <<_ACEOF
38822 /* confdefs.h.  */
38823 _ACEOF
38824 cat confdefs.h >>conftest.$ac_ext
38825 cat >>conftest.$ac_ext <<_ACEOF
38826 /* end confdefs.h.  */
38827 #include <string.h>
38828 int
38829 main ()
38830 {
38831 struct foo { int foo; } xx;
38832 extern int strndup (struct foo*);
38833 strndup(&xx);
38834
38835   ;
38836   return 0;
38837 }
38838 _ACEOF
38839 rm -f conftest.$ac_objext
38840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38841   (eval $ac_compile) 2>conftest.er1
38842   ac_status=$?
38843   grep -v '^ *+' conftest.er1 >conftest.err
38844   rm -f conftest.er1
38845   cat conftest.err >&5
38846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847   (exit $ac_status); } &&
38848          { ac_try='test -z "$ac_c_werror_flag"
38849                          || test ! -s conftest.err'
38850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38851   (eval $ac_try) 2>&5
38852   ac_status=$?
38853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38854   (exit $ac_status); }; } &&
38855          { ac_try='test -s conftest.$ac_objext'
38856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38857   (eval $ac_try) 2>&5
38858   ac_status=$?
38859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860   (exit $ac_status); }; }; then
38861   eval "ac_cv_func_strndup_noproto=yes"
38862 else
38863   echo "$as_me: failed program was:" >&5
38864 sed 's/^/| /' conftest.$ac_ext >&5
38865
38866 eval "ac_cv_func_strndup_noproto=no"
38867 fi
38868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38869 fi
38870 echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
38871 echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
38872 if test "$ac_cv_func_strndup_noproto" = yes; then
38873
38874 cat >>confdefs.h <<\_ACEOF
38875 #define NEED_STRNDUP_PROTO 1
38876 _ACEOF
38877
38878 fi
38879 fi
38880
38881 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
38882 echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
38883 echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
38884 if test "${ac_cv_func_strsep_noproto+set}" = set; then
38885   echo $ECHO_N "(cached) $ECHO_C" >&6
38886 else
38887   cat >conftest.$ac_ext <<_ACEOF
38888 /* confdefs.h.  */
38889 _ACEOF
38890 cat confdefs.h >>conftest.$ac_ext
38891 cat >>conftest.$ac_ext <<_ACEOF
38892 /* end confdefs.h.  */
38893 #include <string.h>
38894 int
38895 main ()
38896 {
38897 struct foo { int foo; } xx;
38898 extern int strsep (struct foo*);
38899 strsep(&xx);
38900
38901   ;
38902   return 0;
38903 }
38904 _ACEOF
38905 rm -f conftest.$ac_objext
38906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38907   (eval $ac_compile) 2>conftest.er1
38908   ac_status=$?
38909   grep -v '^ *+' conftest.er1 >conftest.err
38910   rm -f conftest.er1
38911   cat conftest.err >&5
38912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913   (exit $ac_status); } &&
38914          { ac_try='test -z "$ac_c_werror_flag"
38915                          || test ! -s conftest.err'
38916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38917   (eval $ac_try) 2>&5
38918   ac_status=$?
38919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38920   (exit $ac_status); }; } &&
38921          { ac_try='test -s conftest.$ac_objext'
38922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38923   (eval $ac_try) 2>&5
38924   ac_status=$?
38925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926   (exit $ac_status); }; }; then
38927   eval "ac_cv_func_strsep_noproto=yes"
38928 else
38929   echo "$as_me: failed program was:" >&5
38930 sed 's/^/| /' conftest.$ac_ext >&5
38931
38932 eval "ac_cv_func_strsep_noproto=no"
38933 fi
38934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38935 fi
38936 echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
38937 echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
38938 if test "$ac_cv_func_strsep_noproto" = yes; then
38939
38940 cat >>confdefs.h <<\_ACEOF
38941 #define NEED_STRSEP_PROTO 1
38942 _ACEOF
38943
38944 fi
38945 fi
38946
38947 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
38948 echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
38949 echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
38950 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
38951   echo $ECHO_N "(cached) $ECHO_C" >&6
38952 else
38953   cat >conftest.$ac_ext <<_ACEOF
38954 /* confdefs.h.  */
38955 _ACEOF
38956 cat confdefs.h >>conftest.$ac_ext
38957 cat >>conftest.$ac_ext <<_ACEOF
38958 /* end confdefs.h.  */
38959 #include <string.h>
38960 int
38961 main ()
38962 {
38963 struct foo { int foo; } xx;
38964 extern int strtok_r (struct foo*);
38965 strtok_r(&xx);
38966
38967   ;
38968   return 0;
38969 }
38970 _ACEOF
38971 rm -f conftest.$ac_objext
38972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38973   (eval $ac_compile) 2>conftest.er1
38974   ac_status=$?
38975   grep -v '^ *+' conftest.er1 >conftest.err
38976   rm -f conftest.er1
38977   cat conftest.err >&5
38978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979   (exit $ac_status); } &&
38980          { ac_try='test -z "$ac_c_werror_flag"
38981                          || test ! -s conftest.err'
38982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38983   (eval $ac_try) 2>&5
38984   ac_status=$?
38985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38986   (exit $ac_status); }; } &&
38987          { ac_try='test -s conftest.$ac_objext'
38988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38989   (eval $ac_try) 2>&5
38990   ac_status=$?
38991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38992   (exit $ac_status); }; }; then
38993   eval "ac_cv_func_strtok_r_noproto=yes"
38994 else
38995   echo "$as_me: failed program was:" >&5
38996 sed 's/^/| /' conftest.$ac_ext >&5
38997
38998 eval "ac_cv_func_strtok_r_noproto=no"
38999 fi
39000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39001 fi
39002 echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
39003 echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
39004 if test "$ac_cv_func_strtok_r_noproto" = yes; then
39005
39006 cat >>confdefs.h <<\_ACEOF
39007 #define NEED_STRTOK_R_PROTO 1
39008 _ACEOF
39009
39010 fi
39011 fi
39012
39013
39014
39015 if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
39016 echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
39017 echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
39018 if test "${ac_cv_func_strsvis_noproto+set}" = set; then
39019   echo $ECHO_N "(cached) $ECHO_C" >&6
39020 else
39021   cat >conftest.$ac_ext <<_ACEOF
39022 /* confdefs.h.  */
39023 _ACEOF
39024 cat confdefs.h >>conftest.$ac_ext
39025 cat >>conftest.$ac_ext <<_ACEOF
39026 /* end confdefs.h.  */
39027 #ifdef HAVE_VIS_H
39028 #include <vis.h>
39029 #endif
39030 int
39031 main ()
39032 {
39033 struct foo { int foo; } xx;
39034 extern int strsvis (struct foo*);
39035 strsvis(&xx);
39036
39037   ;
39038   return 0;
39039 }
39040 _ACEOF
39041 rm -f conftest.$ac_objext
39042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39043   (eval $ac_compile) 2>conftest.er1
39044   ac_status=$?
39045   grep -v '^ *+' conftest.er1 >conftest.err
39046   rm -f conftest.er1
39047   cat conftest.err >&5
39048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049   (exit $ac_status); } &&
39050          { ac_try='test -z "$ac_c_werror_flag"
39051                          || test ! -s conftest.err'
39052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39053   (eval $ac_try) 2>&5
39054   ac_status=$?
39055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056   (exit $ac_status); }; } &&
39057          { ac_try='test -s conftest.$ac_objext'
39058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39059   (eval $ac_try) 2>&5
39060   ac_status=$?
39061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062   (exit $ac_status); }; }; then
39063   eval "ac_cv_func_strsvis_noproto=yes"
39064 else
39065   echo "$as_me: failed program was:" >&5
39066 sed 's/^/| /' conftest.$ac_ext >&5
39067
39068 eval "ac_cv_func_strsvis_noproto=no"
39069 fi
39070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39071 fi
39072 echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
39073 echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
39074 if test "$ac_cv_func_strsvis_noproto" = yes; then
39075
39076 cat >>confdefs.h <<\_ACEOF
39077 #define NEED_STRSVIS_PROTO 1
39078 _ACEOF
39079
39080 fi
39081 fi
39082
39083 if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
39084 echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
39085 echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
39086 if test "${ac_cv_func_strunvis_noproto+set}" = set; then
39087   echo $ECHO_N "(cached) $ECHO_C" >&6
39088 else
39089   cat >conftest.$ac_ext <<_ACEOF
39090 /* confdefs.h.  */
39091 _ACEOF
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h.  */
39095 #ifdef HAVE_VIS_H
39096 #include <vis.h>
39097 #endif
39098 int
39099 main ()
39100 {
39101 struct foo { int foo; } xx;
39102 extern int strunvis (struct foo*);
39103 strunvis(&xx);
39104
39105   ;
39106   return 0;
39107 }
39108 _ACEOF
39109 rm -f conftest.$ac_objext
39110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39111   (eval $ac_compile) 2>conftest.er1
39112   ac_status=$?
39113   grep -v '^ *+' conftest.er1 >conftest.err
39114   rm -f conftest.er1
39115   cat conftest.err >&5
39116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117   (exit $ac_status); } &&
39118          { ac_try='test -z "$ac_c_werror_flag"
39119                          || test ! -s conftest.err'
39120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39121   (eval $ac_try) 2>&5
39122   ac_status=$?
39123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39124   (exit $ac_status); }; } &&
39125          { ac_try='test -s conftest.$ac_objext'
39126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39127   (eval $ac_try) 2>&5
39128   ac_status=$?
39129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130   (exit $ac_status); }; }; then
39131   eval "ac_cv_func_strunvis_noproto=yes"
39132 else
39133   echo "$as_me: failed program was:" >&5
39134 sed 's/^/| /' conftest.$ac_ext >&5
39135
39136 eval "ac_cv_func_strunvis_noproto=no"
39137 fi
39138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39139 fi
39140 echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
39141 echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
39142 if test "$ac_cv_func_strunvis_noproto" = yes; then
39143
39144 cat >>confdefs.h <<\_ACEOF
39145 #define NEED_STRUNVIS_PROTO 1
39146 _ACEOF
39147
39148 fi
39149 fi
39150
39151 if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
39152 echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
39153 echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
39154 if test "${ac_cv_func_strvis_noproto+set}" = set; then
39155   echo $ECHO_N "(cached) $ECHO_C" >&6
39156 else
39157   cat >conftest.$ac_ext <<_ACEOF
39158 /* confdefs.h.  */
39159 _ACEOF
39160 cat confdefs.h >>conftest.$ac_ext
39161 cat >>conftest.$ac_ext <<_ACEOF
39162 /* end confdefs.h.  */
39163 #ifdef HAVE_VIS_H
39164 #include <vis.h>
39165 #endif
39166 int
39167 main ()
39168 {
39169 struct foo { int foo; } xx;
39170 extern int strvis (struct foo*);
39171 strvis(&xx);
39172
39173   ;
39174   return 0;
39175 }
39176 _ACEOF
39177 rm -f conftest.$ac_objext
39178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39179   (eval $ac_compile) 2>conftest.er1
39180   ac_status=$?
39181   grep -v '^ *+' conftest.er1 >conftest.err
39182   rm -f conftest.er1
39183   cat conftest.err >&5
39184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185   (exit $ac_status); } &&
39186          { ac_try='test -z "$ac_c_werror_flag"
39187                          || test ! -s conftest.err'
39188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39189   (eval $ac_try) 2>&5
39190   ac_status=$?
39191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192   (exit $ac_status); }; } &&
39193          { ac_try='test -s conftest.$ac_objext'
39194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39195   (eval $ac_try) 2>&5
39196   ac_status=$?
39197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198   (exit $ac_status); }; }; then
39199   eval "ac_cv_func_strvis_noproto=yes"
39200 else
39201   echo "$as_me: failed program was:" >&5
39202 sed 's/^/| /' conftest.$ac_ext >&5
39203
39204 eval "ac_cv_func_strvis_noproto=no"
39205 fi
39206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39207 fi
39208 echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
39209 echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
39210 if test "$ac_cv_func_strvis_noproto" = yes; then
39211
39212 cat >>confdefs.h <<\_ACEOF
39213 #define NEED_STRVIS_PROTO 1
39214 _ACEOF
39215
39216 fi
39217 fi
39218
39219 if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
39220 echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
39221 echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
39222 if test "${ac_cv_func_strvisx_noproto+set}" = set; then
39223   echo $ECHO_N "(cached) $ECHO_C" >&6
39224 else
39225   cat >conftest.$ac_ext <<_ACEOF
39226 /* confdefs.h.  */
39227 _ACEOF
39228 cat confdefs.h >>conftest.$ac_ext
39229 cat >>conftest.$ac_ext <<_ACEOF
39230 /* end confdefs.h.  */
39231 #ifdef HAVE_VIS_H
39232 #include <vis.h>
39233 #endif
39234 int
39235 main ()
39236 {
39237 struct foo { int foo; } xx;
39238 extern int strvisx (struct foo*);
39239 strvisx(&xx);
39240
39241   ;
39242   return 0;
39243 }
39244 _ACEOF
39245 rm -f conftest.$ac_objext
39246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39247   (eval $ac_compile) 2>conftest.er1
39248   ac_status=$?
39249   grep -v '^ *+' conftest.er1 >conftest.err
39250   rm -f conftest.er1
39251   cat conftest.err >&5
39252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39253   (exit $ac_status); } &&
39254          { ac_try='test -z "$ac_c_werror_flag"
39255                          || test ! -s conftest.err'
39256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39257   (eval $ac_try) 2>&5
39258   ac_status=$?
39259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39260   (exit $ac_status); }; } &&
39261          { ac_try='test -s conftest.$ac_objext'
39262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39263   (eval $ac_try) 2>&5
39264   ac_status=$?
39265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39266   (exit $ac_status); }; }; then
39267   eval "ac_cv_func_strvisx_noproto=yes"
39268 else
39269   echo "$as_me: failed program was:" >&5
39270 sed 's/^/| /' conftest.$ac_ext >&5
39271
39272 eval "ac_cv_func_strvisx_noproto=no"
39273 fi
39274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39275 fi
39276 echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
39277 echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
39278 if test "$ac_cv_func_strvisx_noproto" = yes; then
39279
39280 cat >>confdefs.h <<\_ACEOF
39281 #define NEED_STRVISX_PROTO 1
39282 _ACEOF
39283
39284 fi
39285 fi
39286
39287 if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
39288 echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
39289 echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
39290 if test "${ac_cv_func_svis_noproto+set}" = set; then
39291   echo $ECHO_N "(cached) $ECHO_C" >&6
39292 else
39293   cat >conftest.$ac_ext <<_ACEOF
39294 /* confdefs.h.  */
39295 _ACEOF
39296 cat confdefs.h >>conftest.$ac_ext
39297 cat >>conftest.$ac_ext <<_ACEOF
39298 /* end confdefs.h.  */
39299 #ifdef HAVE_VIS_H
39300 #include <vis.h>
39301 #endif
39302 int
39303 main ()
39304 {
39305 struct foo { int foo; } xx;
39306 extern int svis (struct foo*);
39307 svis(&xx);
39308
39309   ;
39310   return 0;
39311 }
39312 _ACEOF
39313 rm -f conftest.$ac_objext
39314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39315   (eval $ac_compile) 2>conftest.er1
39316   ac_status=$?
39317   grep -v '^ *+' conftest.er1 >conftest.err
39318   rm -f conftest.er1
39319   cat conftest.err >&5
39320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39321   (exit $ac_status); } &&
39322          { ac_try='test -z "$ac_c_werror_flag"
39323                          || test ! -s conftest.err'
39324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39325   (eval $ac_try) 2>&5
39326   ac_status=$?
39327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328   (exit $ac_status); }; } &&
39329          { ac_try='test -s conftest.$ac_objext'
39330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39331   (eval $ac_try) 2>&5
39332   ac_status=$?
39333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39334   (exit $ac_status); }; }; then
39335   eval "ac_cv_func_svis_noproto=yes"
39336 else
39337   echo "$as_me: failed program was:" >&5
39338 sed 's/^/| /' conftest.$ac_ext >&5
39339
39340 eval "ac_cv_func_svis_noproto=no"
39341 fi
39342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39343 fi
39344 echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
39345 echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
39346 if test "$ac_cv_func_svis_noproto" = yes; then
39347
39348 cat >>confdefs.h <<\_ACEOF
39349 #define NEED_SVIS_PROTO 1
39350 _ACEOF
39351
39352 fi
39353 fi
39354
39355 if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
39356 echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
39357 echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
39358 if test "${ac_cv_func_unvis_noproto+set}" = set; then
39359   echo $ECHO_N "(cached) $ECHO_C" >&6
39360 else
39361   cat >conftest.$ac_ext <<_ACEOF
39362 /* confdefs.h.  */
39363 _ACEOF
39364 cat confdefs.h >>conftest.$ac_ext
39365 cat >>conftest.$ac_ext <<_ACEOF
39366 /* end confdefs.h.  */
39367 #ifdef HAVE_VIS_H
39368 #include <vis.h>
39369 #endif
39370 int
39371 main ()
39372 {
39373 struct foo { int foo; } xx;
39374 extern int unvis (struct foo*);
39375 unvis(&xx);
39376
39377   ;
39378   return 0;
39379 }
39380 _ACEOF
39381 rm -f conftest.$ac_objext
39382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39383   (eval $ac_compile) 2>conftest.er1
39384   ac_status=$?
39385   grep -v '^ *+' conftest.er1 >conftest.err
39386   rm -f conftest.er1
39387   cat conftest.err >&5
39388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389   (exit $ac_status); } &&
39390          { ac_try='test -z "$ac_c_werror_flag"
39391                          || test ! -s conftest.err'
39392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39393   (eval $ac_try) 2>&5
39394   ac_status=$?
39395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396   (exit $ac_status); }; } &&
39397          { ac_try='test -s conftest.$ac_objext'
39398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39399   (eval $ac_try) 2>&5
39400   ac_status=$?
39401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39402   (exit $ac_status); }; }; then
39403   eval "ac_cv_func_unvis_noproto=yes"
39404 else
39405   echo "$as_me: failed program was:" >&5
39406 sed 's/^/| /' conftest.$ac_ext >&5
39407
39408 eval "ac_cv_func_unvis_noproto=no"
39409 fi
39410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39411 fi
39412 echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
39413 echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
39414 if test "$ac_cv_func_unvis_noproto" = yes; then
39415
39416 cat >>confdefs.h <<\_ACEOF
39417 #define NEED_UNVIS_PROTO 1
39418 _ACEOF
39419
39420 fi
39421 fi
39422
39423 if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
39424 echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
39425 echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
39426 if test "${ac_cv_func_vis_noproto+set}" = set; then
39427   echo $ECHO_N "(cached) $ECHO_C" >&6
39428 else
39429   cat >conftest.$ac_ext <<_ACEOF
39430 /* confdefs.h.  */
39431 _ACEOF
39432 cat confdefs.h >>conftest.$ac_ext
39433 cat >>conftest.$ac_ext <<_ACEOF
39434 /* end confdefs.h.  */
39435 #ifdef HAVE_VIS_H
39436 #include <vis.h>
39437 #endif
39438 int
39439 main ()
39440 {
39441 struct foo { int foo; } xx;
39442 extern int vis (struct foo*);
39443 vis(&xx);
39444
39445   ;
39446   return 0;
39447 }
39448 _ACEOF
39449 rm -f conftest.$ac_objext
39450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39451   (eval $ac_compile) 2>conftest.er1
39452   ac_status=$?
39453   grep -v '^ *+' conftest.er1 >conftest.err
39454   rm -f conftest.er1
39455   cat conftest.err >&5
39456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39457   (exit $ac_status); } &&
39458          { ac_try='test -z "$ac_c_werror_flag"
39459                          || test ! -s conftest.err'
39460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39461   (eval $ac_try) 2>&5
39462   ac_status=$?
39463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464   (exit $ac_status); }; } &&
39465          { ac_try='test -s conftest.$ac_objext'
39466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39467   (eval $ac_try) 2>&5
39468   ac_status=$?
39469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470   (exit $ac_status); }; }; then
39471   eval "ac_cv_func_vis_noproto=yes"
39472 else
39473   echo "$as_me: failed program was:" >&5
39474 sed 's/^/| /' conftest.$ac_ext >&5
39475
39476 eval "ac_cv_func_vis_noproto=no"
39477 fi
39478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39479 fi
39480 echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
39481 echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
39482 if test "$ac_cv_func_vis_noproto" = yes; then
39483
39484 cat >>confdefs.h <<\_ACEOF
39485 #define NEED_VIS_PROTO 1
39486 _ACEOF
39487
39488 fi
39489 fi
39490
39491
39492 echo "$as_me:$LINENO: checking for inet_aton" >&5
39493 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
39494 if test "${ac_cv_func_inet_aton+set}" = set; then
39495   echo $ECHO_N "(cached) $ECHO_C" >&6
39496 else
39497   cat >conftest.$ac_ext <<_ACEOF
39498 /* confdefs.h.  */
39499 _ACEOF
39500 cat confdefs.h >>conftest.$ac_ext
39501 cat >>conftest.$ac_ext <<_ACEOF
39502 /* end confdefs.h.  */
39503 #ifdef HAVE_SYS_TYPES_H
39504 #include <sys/types.h>
39505 #endif
39506 #ifdef HAVE_SYS_SOCKET_H
39507 #include <sys/socket.h>
39508 #endif
39509 #ifdef HAVE_NETINET_IN_H
39510 #include <netinet/in.h>
39511 #endif
39512 #ifdef HAVE_ARPA_INET_H
39513 #include <arpa/inet.h>
39514 #endif
39515 int
39516 main ()
39517 {
39518
39519 /* The GNU C library defines this for functions which it implements
39520     to always fail with ENOSYS.  Some functions are actually named
39521     something starting with __ and the normal name is an alias.  */
39522 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
39523 choke me
39524 #else
39525 inet_aton(0,0)
39526 #endif
39527
39528   ;
39529   return 0;
39530 }
39531 _ACEOF
39532 rm -f conftest.$ac_objext conftest$ac_exeext
39533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39534   (eval $ac_link) 2>conftest.er1
39535   ac_status=$?
39536   grep -v '^ *+' conftest.er1 >conftest.err
39537   rm -f conftest.er1
39538   cat conftest.err >&5
39539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540   (exit $ac_status); } &&
39541          { ac_try='test -z "$ac_c_werror_flag"
39542                          || test ! -s conftest.err'
39543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39544   (eval $ac_try) 2>&5
39545   ac_status=$?
39546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547   (exit $ac_status); }; } &&
39548          { ac_try='test -s conftest$ac_exeext'
39549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39550   (eval $ac_try) 2>&5
39551   ac_status=$?
39552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39553   (exit $ac_status); }; }; then
39554   eval "ac_cv_func_inet_aton=yes"
39555 else
39556   echo "$as_me: failed program was:" >&5
39557 sed 's/^/| /' conftest.$ac_ext >&5
39558
39559 eval "ac_cv_func_inet_aton=no"
39560 fi
39561 rm -f conftest.err conftest.$ac_objext \
39562       conftest$ac_exeext conftest.$ac_ext
39563 fi
39564
39565 if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
39566
39567 cat >>confdefs.h <<_ACEOF
39568 #define HAVE_INET_ATON 1
39569 _ACEOF
39570
39571   echo "$as_me:$LINENO: result: yes" >&5
39572 echo "${ECHO_T}yes" >&6
39573 else
39574   echo "$as_me:$LINENO: result: no" >&5
39575 echo "${ECHO_T}no" >&6
39576   case $LIBOBJS in
39577     "inet_aton.$ac_objext"   | \
39578   *" inet_aton.$ac_objext"   | \
39579     "inet_aton.$ac_objext "* | \
39580   *" inet_aton.$ac_objext "* ) ;;
39581   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
39582 esac
39583
39584 fi
39585
39586 echo "$as_me:$LINENO: checking for inet_ntop" >&5
39587 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
39588 if test "${ac_cv_func_inet_ntop+set}" = set; then
39589   echo $ECHO_N "(cached) $ECHO_C" >&6
39590 else
39591   cat >conftest.$ac_ext <<_ACEOF
39592 /* confdefs.h.  */
39593 _ACEOF
39594 cat confdefs.h >>conftest.$ac_ext
39595 cat >>conftest.$ac_ext <<_ACEOF
39596 /* end confdefs.h.  */
39597 #ifdef HAVE_SYS_TYPES_H
39598 #include <sys/types.h>
39599 #endif
39600 #ifdef HAVE_SYS_SOCKET_H
39601 #include <sys/socket.h>
39602 #endif
39603 #ifdef HAVE_NETINET_IN_H
39604 #include <netinet/in.h>
39605 #endif
39606 #ifdef HAVE_ARPA_INET_H
39607 #include <arpa/inet.h>
39608 #endif
39609 int
39610 main ()
39611 {
39612
39613 /* The GNU C library defines this for functions which it implements
39614     to always fail with ENOSYS.  Some functions are actually named
39615     something starting with __ and the normal name is an alias.  */
39616 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
39617 choke me
39618 #else
39619 inet_ntop(0, 0, 0, 0)
39620 #endif
39621
39622   ;
39623   return 0;
39624 }
39625 _ACEOF
39626 rm -f conftest.$ac_objext conftest$ac_exeext
39627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39628   (eval $ac_link) 2>conftest.er1
39629   ac_status=$?
39630   grep -v '^ *+' conftest.er1 >conftest.err
39631   rm -f conftest.er1
39632   cat conftest.err >&5
39633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634   (exit $ac_status); } &&
39635          { ac_try='test -z "$ac_c_werror_flag"
39636                          || test ! -s conftest.err'
39637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39638   (eval $ac_try) 2>&5
39639   ac_status=$?
39640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641   (exit $ac_status); }; } &&
39642          { ac_try='test -s conftest$ac_exeext'
39643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39644   (eval $ac_try) 2>&5
39645   ac_status=$?
39646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647   (exit $ac_status); }; }; then
39648   eval "ac_cv_func_inet_ntop=yes"
39649 else
39650   echo "$as_me: failed program was:" >&5
39651 sed 's/^/| /' conftest.$ac_ext >&5
39652
39653 eval "ac_cv_func_inet_ntop=no"
39654 fi
39655 rm -f conftest.err conftest.$ac_objext \
39656       conftest$ac_exeext conftest.$ac_ext
39657 fi
39658
39659 if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
39660
39661 cat >>confdefs.h <<_ACEOF
39662 #define HAVE_INET_NTOP 1
39663 _ACEOF
39664
39665   echo "$as_me:$LINENO: result: yes" >&5
39666 echo "${ECHO_T}yes" >&6
39667 else
39668   echo "$as_me:$LINENO: result: no" >&5
39669 echo "${ECHO_T}no" >&6
39670   case $LIBOBJS in
39671     "inet_ntop.$ac_objext"   | \
39672   *" inet_ntop.$ac_objext"   | \
39673     "inet_ntop.$ac_objext "* | \
39674   *" inet_ntop.$ac_objext "* ) ;;
39675   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" ;;
39676 esac
39677
39678 fi
39679
39680 echo "$as_me:$LINENO: checking for inet_pton" >&5
39681 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
39682 if test "${ac_cv_func_inet_pton+set}" = set; then
39683   echo $ECHO_N "(cached) $ECHO_C" >&6
39684 else
39685   cat >conftest.$ac_ext <<_ACEOF
39686 /* confdefs.h.  */
39687 _ACEOF
39688 cat confdefs.h >>conftest.$ac_ext
39689 cat >>conftest.$ac_ext <<_ACEOF
39690 /* end confdefs.h.  */
39691 #ifdef HAVE_SYS_TYPES_H
39692 #include <sys/types.h>
39693 #endif
39694 #ifdef HAVE_SYS_SOCKET_H
39695 #include <sys/socket.h>
39696 #endif
39697 #ifdef HAVE_NETINET_IN_H
39698 #include <netinet/in.h>
39699 #endif
39700 #ifdef HAVE_ARPA_INET_H
39701 #include <arpa/inet.h>
39702 #endif
39703 int
39704 main ()
39705 {
39706
39707 /* The GNU C library defines this for functions which it implements
39708     to always fail with ENOSYS.  Some functions are actually named
39709     something starting with __ and the normal name is an alias.  */
39710 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
39711 choke me
39712 #else
39713 inet_pton(0,0,0)
39714 #endif
39715
39716   ;
39717   return 0;
39718 }
39719 _ACEOF
39720 rm -f conftest.$ac_objext conftest$ac_exeext
39721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39722   (eval $ac_link) 2>conftest.er1
39723   ac_status=$?
39724   grep -v '^ *+' conftest.er1 >conftest.err
39725   rm -f conftest.er1
39726   cat conftest.err >&5
39727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728   (exit $ac_status); } &&
39729          { ac_try='test -z "$ac_c_werror_flag"
39730                          || test ! -s conftest.err'
39731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39732   (eval $ac_try) 2>&5
39733   ac_status=$?
39734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39735   (exit $ac_status); }; } &&
39736          { ac_try='test -s conftest$ac_exeext'
39737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39738   (eval $ac_try) 2>&5
39739   ac_status=$?
39740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39741   (exit $ac_status); }; }; then
39742   eval "ac_cv_func_inet_pton=yes"
39743 else
39744   echo "$as_me: failed program was:" >&5
39745 sed 's/^/| /' conftest.$ac_ext >&5
39746
39747 eval "ac_cv_func_inet_pton=no"
39748 fi
39749 rm -f conftest.err conftest.$ac_objext \
39750       conftest$ac_exeext conftest.$ac_ext
39751 fi
39752
39753 if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
39754
39755 cat >>confdefs.h <<_ACEOF
39756 #define HAVE_INET_PTON 1
39757 _ACEOF
39758
39759   echo "$as_me:$LINENO: result: yes" >&5
39760 echo "${ECHO_T}yes" >&6
39761 else
39762   echo "$as_me:$LINENO: result: no" >&5
39763 echo "${ECHO_T}no" >&6
39764   case $LIBOBJS in
39765     "inet_pton.$ac_objext"   | \
39766   *" inet_pton.$ac_objext"   | \
39767     "inet_pton.$ac_objext "* | \
39768   *" inet_pton.$ac_objext "* ) ;;
39769   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" ;;
39770 esac
39771
39772 fi
39773
39774
39775
39776 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
39777 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
39778 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
39779   echo $ECHO_N "(cached) $ECHO_C" >&6
39780 else
39781
39782 cat >conftest.$ac_ext <<_ACEOF
39783 /* confdefs.h.  */
39784 _ACEOF
39785 cat confdefs.h >>conftest.$ac_ext
39786 cat >>conftest.$ac_ext <<_ACEOF
39787 /* end confdefs.h.  */
39788 #include <sys/types.h>
39789 #include <sys/socket.h>
39790 int
39791 main ()
39792 {
39793 struct sockaddr x; x.sa_len;
39794   ;
39795   return 0;
39796 }
39797 _ACEOF
39798 rm -f conftest.$ac_objext
39799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39800   (eval $ac_compile) 2>conftest.er1
39801   ac_status=$?
39802   grep -v '^ *+' conftest.er1 >conftest.err
39803   rm -f conftest.er1
39804   cat conftest.err >&5
39805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806   (exit $ac_status); } &&
39807          { ac_try='test -z "$ac_c_werror_flag"
39808                          || test ! -s conftest.err'
39809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39810   (eval $ac_try) 2>&5
39811   ac_status=$?
39812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813   (exit $ac_status); }; } &&
39814          { ac_try='test -s conftest.$ac_objext'
39815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39816   (eval $ac_try) 2>&5
39817   ac_status=$?
39818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39819   (exit $ac_status); }; }; then
39820   ac_cv_type_struct_sockaddr_sa_len=yes
39821 else
39822   echo "$as_me: failed program was:" >&5
39823 sed 's/^/| /' conftest.$ac_ext >&5
39824
39825 ac_cv_type_struct_sockaddr_sa_len=no
39826 fi
39827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39828 fi
39829 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
39830 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
39831 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
39832
39833
39834 cat >>confdefs.h <<\_ACEOF
39835 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
39836 _ACEOF
39837
39838
39839 fi
39840
39841
39842
39843 if test "$ac_cv_func_getnameinfo" = "yes"; then
39844
39845 echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
39846 echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
39847 if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
39848   echo $ECHO_N "(cached) $ECHO_C" >&6
39849 else
39850   if test "$cross_compiling" = yes; then
39851   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39852 See \`config.log' for more details." >&5
39853 echo "$as_me: error: cannot run test program while cross compiling
39854 See \`config.log' for more details." >&2;}
39855    { (exit 1); exit 1; }; }
39856 else
39857   cat >conftest.$ac_ext <<_ACEOF
39858 /* confdefs.h.  */
39859 _ACEOF
39860 cat confdefs.h >>conftest.$ac_ext
39861 cat >>conftest.$ac_ext <<_ACEOF
39862 /* end confdefs.h.  */
39863 #include <stdio.h>
39864 #include <sys/types.h>
39865 #include <sys/socket.h>
39866 #include <netinet/in.h>
39867 #include <netdb.h>
39868
39869 int
39870 main(int argc, char **argv)
39871 {
39872   struct sockaddr_in sin;
39873   char host[256];
39874   memset(&sin, 0, sizeof(sin));
39875 #ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
39876   sin.sin_len = sizeof(sin);
39877 #endif
39878   sin.sin_family = AF_INET;
39879   sin.sin_addr.s_addr = 0xffffffff;
39880   sin.sin_port = 0;
39881   return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
39882               NULL, 0, 0);
39883 }
39884
39885 _ACEOF
39886 rm -f conftest$ac_exeext
39887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39888   (eval $ac_link) 2>&5
39889   ac_status=$?
39890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39893   (eval $ac_try) 2>&5
39894   ac_status=$?
39895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896   (exit $ac_status); }; }; then
39897   ac_cv_func_getnameinfo_broken=no
39898 else
39899   echo "$as_me: program exited with status $ac_status" >&5
39900 echo "$as_me: failed program was:" >&5
39901 sed 's/^/| /' conftest.$ac_ext >&5
39902
39903 ( exit $ac_status )
39904 ac_cv_func_getnameinfo_broken=yes
39905 fi
39906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39907 fi
39908 fi
39909 echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
39910 echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
39911   if test "$ac_cv_func_getnameinfo_broken" = yes; then
39912         case $LIBOBJS in
39913     "getnameinfo.$ac_objext"   | \
39914   *" getnameinfo.$ac_objext"   | \
39915     "getnameinfo.$ac_objext "* | \
39916   *" getnameinfo.$ac_objext "* ) ;;
39917   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" ;;
39918 esac
39919
39920   fi
39921 fi
39922
39923 if test "$ac_cv_func_getaddrinfo" = "yes"; then
39924
39925 echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
39926 echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
39927 if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
39928   echo $ECHO_N "(cached) $ECHO_C" >&6
39929 else
39930   if test "$cross_compiling" = yes; then
39931   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39932 See \`config.log' for more details." >&5
39933 echo "$as_me: error: cannot run test program while cross compiling
39934 See \`config.log' for more details." >&2;}
39935    { (exit 1); exit 1; }; }
39936 else
39937   cat >conftest.$ac_ext <<_ACEOF
39938 /* confdefs.h.  */
39939 _ACEOF
39940 cat confdefs.h >>conftest.$ac_ext
39941 cat >>conftest.$ac_ext <<_ACEOF
39942 /* end confdefs.h.  */
39943 #include <stdio.h>
39944 #include <sys/types.h>
39945 #include <sys/socket.h>
39946 #include <netdb.h>
39947
39948 int
39949 main(int argc, char **argv)
39950 {
39951         struct addrinfo hints, *ai;
39952         memset(&hints, 0, sizeof(hints));
39953         hints.ai_flags = AI_PASSIVE;
39954         hints.ai_socktype = SOCK_STREAM;
39955         hints.ai_family = PF_UNSPEC;
39956         if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
39957                 return 1;
39958         return 0;
39959 }
39960
39961 _ACEOF
39962 rm -f conftest$ac_exeext
39963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39964   (eval $ac_link) 2>&5
39965   ac_status=$?
39966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39969   (eval $ac_try) 2>&5
39970   ac_status=$?
39971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972   (exit $ac_status); }; }; then
39973   ac_cv_func_getaddrinfo_numserv=yes
39974 else
39975   echo "$as_me: program exited with status $ac_status" >&5
39976 echo "$as_me: failed program was:" >&5
39977 sed 's/^/| /' conftest.$ac_ext >&5
39978
39979 ( exit $ac_status )
39980 ac_cv_func_getaddrinfo_numserv=no
39981 fi
39982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39983 fi
39984 fi
39985 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
39986 echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
39987   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
39988         case $LIBOBJS in
39989     "getaddrinfo.$ac_objext"   | \
39990   *" getaddrinfo.$ac_objext"   | \
39991     "getaddrinfo.$ac_objext "* | \
39992   *" getaddrinfo.$ac_objext "* ) ;;
39993   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
39994 esac
39995
39996         case $LIBOBJS in
39997     "freeaddrinfo.$ac_objext"   | \
39998   *" freeaddrinfo.$ac_objext"   | \
39999     "freeaddrinfo.$ac_objext "* | \
40000   *" freeaddrinfo.$ac_objext "* ) ;;
40001   *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" ;;
40002 esac
40003
40004   fi
40005 fi
40006
40007
40008 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
40009 echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
40010 echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
40011 if test "${ac_cv_func_setenv_noproto+set}" = set; then
40012   echo $ECHO_N "(cached) $ECHO_C" >&6
40013 else
40014   cat >conftest.$ac_ext <<_ACEOF
40015 /* confdefs.h.  */
40016 _ACEOF
40017 cat confdefs.h >>conftest.$ac_ext
40018 cat >>conftest.$ac_ext <<_ACEOF
40019 /* end confdefs.h.  */
40020 #include <stdlib.h>
40021 int
40022 main ()
40023 {
40024 struct foo { int foo; } xx;
40025 extern int setenv (struct foo*);
40026 setenv(&xx);
40027
40028   ;
40029   return 0;
40030 }
40031 _ACEOF
40032 rm -f conftest.$ac_objext
40033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40034   (eval $ac_compile) 2>conftest.er1
40035   ac_status=$?
40036   grep -v '^ *+' conftest.er1 >conftest.err
40037   rm -f conftest.er1
40038   cat conftest.err >&5
40039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040   (exit $ac_status); } &&
40041          { ac_try='test -z "$ac_c_werror_flag"
40042                          || test ! -s conftest.err'
40043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044   (eval $ac_try) 2>&5
40045   ac_status=$?
40046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047   (exit $ac_status); }; } &&
40048          { ac_try='test -s conftest.$ac_objext'
40049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050   (eval $ac_try) 2>&5
40051   ac_status=$?
40052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053   (exit $ac_status); }; }; then
40054   eval "ac_cv_func_setenv_noproto=yes"
40055 else
40056   echo "$as_me: failed program was:" >&5
40057 sed 's/^/| /' conftest.$ac_ext >&5
40058
40059 eval "ac_cv_func_setenv_noproto=no"
40060 fi
40061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40062 fi
40063 echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
40064 echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
40065 if test "$ac_cv_func_setenv_noproto" = yes; then
40066
40067 cat >>confdefs.h <<\_ACEOF
40068 #define NEED_SETENV_PROTO 1
40069 _ACEOF
40070
40071 fi
40072 fi
40073
40074
40075 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
40076 echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
40077 echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
40078 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
40079   echo $ECHO_N "(cached) $ECHO_C" >&6
40080 else
40081   cat >conftest.$ac_ext <<_ACEOF
40082 /* confdefs.h.  */
40083 _ACEOF
40084 cat confdefs.h >>conftest.$ac_ext
40085 cat >>conftest.$ac_ext <<_ACEOF
40086 /* end confdefs.h.  */
40087 #include <stdlib.h>
40088 int
40089 main ()
40090 {
40091 struct foo { int foo; } xx;
40092 extern int unsetenv (struct foo*);
40093 unsetenv(&xx);
40094
40095   ;
40096   return 0;
40097 }
40098 _ACEOF
40099 rm -f conftest.$ac_objext
40100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40101   (eval $ac_compile) 2>conftest.er1
40102   ac_status=$?
40103   grep -v '^ *+' conftest.er1 >conftest.err
40104   rm -f conftest.er1
40105   cat conftest.err >&5
40106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40107   (exit $ac_status); } &&
40108          { ac_try='test -z "$ac_c_werror_flag"
40109                          || test ! -s conftest.err'
40110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40111   (eval $ac_try) 2>&5
40112   ac_status=$?
40113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40114   (exit $ac_status); }; } &&
40115          { ac_try='test -s conftest.$ac_objext'
40116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40117   (eval $ac_try) 2>&5
40118   ac_status=$?
40119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40120   (exit $ac_status); }; }; then
40121   eval "ac_cv_func_unsetenv_noproto=yes"
40122 else
40123   echo "$as_me: failed program was:" >&5
40124 sed 's/^/| /' conftest.$ac_ext >&5
40125
40126 eval "ac_cv_func_unsetenv_noproto=no"
40127 fi
40128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40129 fi
40130 echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
40131 echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
40132 if test "$ac_cv_func_unsetenv_noproto" = yes; then
40133
40134 cat >>confdefs.h <<\_ACEOF
40135 #define NEED_UNSETENV_PROTO 1
40136 _ACEOF
40137
40138 fi
40139 fi
40140
40141
40142 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
40143 echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
40144 echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
40145 if test "${ac_cv_func_gethostname_noproto+set}" = set; then
40146   echo $ECHO_N "(cached) $ECHO_C" >&6
40147 else
40148   cat >conftest.$ac_ext <<_ACEOF
40149 /* confdefs.h.  */
40150 _ACEOF
40151 cat confdefs.h >>conftest.$ac_ext
40152 cat >>conftest.$ac_ext <<_ACEOF
40153 /* end confdefs.h.  */
40154 #include <unistd.h>
40155 int
40156 main ()
40157 {
40158 struct foo { int foo; } xx;
40159 extern int gethostname (struct foo*);
40160 gethostname(&xx);
40161
40162   ;
40163   return 0;
40164 }
40165 _ACEOF
40166 rm -f conftest.$ac_objext
40167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40168   (eval $ac_compile) 2>conftest.er1
40169   ac_status=$?
40170   grep -v '^ *+' conftest.er1 >conftest.err
40171   rm -f conftest.er1
40172   cat conftest.err >&5
40173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174   (exit $ac_status); } &&
40175          { ac_try='test -z "$ac_c_werror_flag"
40176                          || test ! -s conftest.err'
40177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40178   (eval $ac_try) 2>&5
40179   ac_status=$?
40180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181   (exit $ac_status); }; } &&
40182          { ac_try='test -s conftest.$ac_objext'
40183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40184   (eval $ac_try) 2>&5
40185   ac_status=$?
40186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40187   (exit $ac_status); }; }; then
40188   eval "ac_cv_func_gethostname_noproto=yes"
40189 else
40190   echo "$as_me: failed program was:" >&5
40191 sed 's/^/| /' conftest.$ac_ext >&5
40192
40193 eval "ac_cv_func_gethostname_noproto=no"
40194 fi
40195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40196 fi
40197 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
40198 echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
40199 if test "$ac_cv_func_gethostname_noproto" = yes; then
40200
40201 cat >>confdefs.h <<\_ACEOF
40202 #define NEED_GETHOSTNAME_PROTO 1
40203 _ACEOF
40204
40205 fi
40206 fi
40207
40208
40209 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
40210 echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
40211 echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
40212 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
40213   echo $ECHO_N "(cached) $ECHO_C" >&6
40214 else
40215   cat >conftest.$ac_ext <<_ACEOF
40216 /* confdefs.h.  */
40217 _ACEOF
40218 cat confdefs.h >>conftest.$ac_ext
40219 cat >>conftest.$ac_ext <<_ACEOF
40220 /* end confdefs.h.  */
40221 #include <unistd.h>
40222 int
40223 main ()
40224 {
40225 struct foo { int foo; } xx;
40226 extern int mkstemp (struct foo*);
40227 mkstemp(&xx);
40228
40229   ;
40230   return 0;
40231 }
40232 _ACEOF
40233 rm -f conftest.$ac_objext
40234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40235   (eval $ac_compile) 2>conftest.er1
40236   ac_status=$?
40237   grep -v '^ *+' conftest.er1 >conftest.err
40238   rm -f conftest.er1
40239   cat conftest.err >&5
40240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241   (exit $ac_status); } &&
40242          { ac_try='test -z "$ac_c_werror_flag"
40243                          || test ! -s conftest.err'
40244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40245   (eval $ac_try) 2>&5
40246   ac_status=$?
40247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248   (exit $ac_status); }; } &&
40249          { ac_try='test -s conftest.$ac_objext'
40250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40251   (eval $ac_try) 2>&5
40252   ac_status=$?
40253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254   (exit $ac_status); }; }; then
40255   eval "ac_cv_func_mkstemp_noproto=yes"
40256 else
40257   echo "$as_me: failed program was:" >&5
40258 sed 's/^/| /' conftest.$ac_ext >&5
40259
40260 eval "ac_cv_func_mkstemp_noproto=no"
40261 fi
40262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40263 fi
40264 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
40265 echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
40266 if test "$ac_cv_func_mkstemp_noproto" = yes; then
40267
40268 cat >>confdefs.h <<\_ACEOF
40269 #define NEED_MKSTEMP_PROTO 1
40270 _ACEOF
40271
40272 fi
40273 fi
40274
40275
40276 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
40277 echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
40278 echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
40279 if test "${ac_cv_func_getusershell_noproto+set}" = set; then
40280   echo $ECHO_N "(cached) $ECHO_C" >&6
40281 else
40282   cat >conftest.$ac_ext <<_ACEOF
40283 /* confdefs.h.  */
40284 _ACEOF
40285 cat confdefs.h >>conftest.$ac_ext
40286 cat >>conftest.$ac_ext <<_ACEOF
40287 /* end confdefs.h.  */
40288 #include <unistd.h>
40289 int
40290 main ()
40291 {
40292 struct foo { int foo; } xx;
40293 extern int getusershell (struct foo*);
40294 getusershell(&xx);
40295
40296   ;
40297   return 0;
40298 }
40299 _ACEOF
40300 rm -f conftest.$ac_objext
40301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40302   (eval $ac_compile) 2>conftest.er1
40303   ac_status=$?
40304   grep -v '^ *+' conftest.er1 >conftest.err
40305   rm -f conftest.er1
40306   cat conftest.err >&5
40307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308   (exit $ac_status); } &&
40309          { ac_try='test -z "$ac_c_werror_flag"
40310                          || test ! -s conftest.err'
40311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40312   (eval $ac_try) 2>&5
40313   ac_status=$?
40314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40315   (exit $ac_status); }; } &&
40316          { ac_try='test -s conftest.$ac_objext'
40317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40318   (eval $ac_try) 2>&5
40319   ac_status=$?
40320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321   (exit $ac_status); }; }; then
40322   eval "ac_cv_func_getusershell_noproto=yes"
40323 else
40324   echo "$as_me: failed program was:" >&5
40325 sed 's/^/| /' conftest.$ac_ext >&5
40326
40327 eval "ac_cv_func_getusershell_noproto=no"
40328 fi
40329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40330 fi
40331 echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
40332 echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
40333 if test "$ac_cv_func_getusershell_noproto" = yes; then
40334
40335 cat >>confdefs.h <<\_ACEOF
40336 #define NEED_GETUSERSHELL_PROTO 1
40337 _ACEOF
40338
40339 fi
40340 fi
40341
40342
40343
40344 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
40345 echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
40346 echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
40347 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
40348   echo $ECHO_N "(cached) $ECHO_C" >&6
40349 else
40350   cat >conftest.$ac_ext <<_ACEOF
40351 /* confdefs.h.  */
40352 _ACEOF
40353 cat confdefs.h >>conftest.$ac_ext
40354 cat >>conftest.$ac_ext <<_ACEOF
40355 /* end confdefs.h.  */
40356
40357 #ifdef HAVE_SYS_TYPES_H
40358 #include <sys/types.h>
40359 #endif
40360 #ifdef HAVE_SYS_SOCKET_H
40361 #include <sys/socket.h>
40362 #endif
40363 #ifdef HAVE_NETINET_IN_H
40364 #include <netinet/in.h>
40365 #endif
40366 #ifdef HAVE_ARPA_INET_H
40367 #include <arpa/inet.h>
40368 #endif
40369 int
40370 main ()
40371 {
40372 struct foo { int foo; } xx;
40373 extern int inet_aton (struct foo*);
40374 inet_aton(&xx);
40375
40376   ;
40377   return 0;
40378 }
40379 _ACEOF
40380 rm -f conftest.$ac_objext
40381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40382   (eval $ac_compile) 2>conftest.er1
40383   ac_status=$?
40384   grep -v '^ *+' conftest.er1 >conftest.err
40385   rm -f conftest.er1
40386   cat conftest.err >&5
40387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40388   (exit $ac_status); } &&
40389          { ac_try='test -z "$ac_c_werror_flag"
40390                          || test ! -s conftest.err'
40391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40392   (eval $ac_try) 2>&5
40393   ac_status=$?
40394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40395   (exit $ac_status); }; } &&
40396          { ac_try='test -s conftest.$ac_objext'
40397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40398   (eval $ac_try) 2>&5
40399   ac_status=$?
40400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40401   (exit $ac_status); }; }; then
40402   eval "ac_cv_func_inet_aton_noproto=yes"
40403 else
40404   echo "$as_me: failed program was:" >&5
40405 sed 's/^/| /' conftest.$ac_ext >&5
40406
40407 eval "ac_cv_func_inet_aton_noproto=no"
40408 fi
40409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40410 fi
40411 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
40412 echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
40413 if test "$ac_cv_func_inet_aton_noproto" = yes; then
40414
40415 cat >>confdefs.h <<\_ACEOF
40416 #define NEED_INET_ATON_PROTO 1
40417 _ACEOF
40418
40419 fi
40420 fi
40421
40422
40423
40424
40425
40426 echo "$as_me:$LINENO: checking for crypt" >&5
40427 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
40428 if test "${ac_cv_funclib_crypt+set}" = set; then
40429   echo $ECHO_N "(cached) $ECHO_C" >&6
40430 else
40431
40432 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
40433         ac_save_LIBS="$LIBS"
40434         for ac_lib in "" crypt; do
40435                 case "$ac_lib" in
40436                 "") ;;
40437                 yes) ac_lib="" ;;
40438                 no) continue ;;
40439                 -l*) ;;
40440                 *) ac_lib="-l$ac_lib" ;;
40441                 esac
40442                 LIBS=" $ac_lib  $ac_save_LIBS"
40443                 cat >conftest.$ac_ext <<_ACEOF
40444 /* confdefs.h.  */
40445 _ACEOF
40446 cat confdefs.h >>conftest.$ac_ext
40447 cat >>conftest.$ac_ext <<_ACEOF
40448 /* end confdefs.h.  */
40449
40450 int
40451 main ()
40452 {
40453 crypt()
40454   ;
40455   return 0;
40456 }
40457 _ACEOF
40458 rm -f conftest.$ac_objext conftest$ac_exeext
40459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40460   (eval $ac_link) 2>conftest.er1
40461   ac_status=$?
40462   grep -v '^ *+' conftest.er1 >conftest.err
40463   rm -f conftest.er1
40464   cat conftest.err >&5
40465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466   (exit $ac_status); } &&
40467          { ac_try='test -z "$ac_c_werror_flag"
40468                          || test ! -s conftest.err'
40469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40470   (eval $ac_try) 2>&5
40471   ac_status=$?
40472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473   (exit $ac_status); }; } &&
40474          { ac_try='test -s conftest$ac_exeext'
40475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476   (eval $ac_try) 2>&5
40477   ac_status=$?
40478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479   (exit $ac_status); }; }; then
40480   eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
40481 else
40482   echo "$as_me: failed program was:" >&5
40483 sed 's/^/| /' conftest.$ac_ext >&5
40484
40485 fi
40486 rm -f conftest.err conftest.$ac_objext \
40487       conftest$ac_exeext conftest.$ac_ext
40488         done
40489         eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
40490         LIBS="$ac_save_LIBS"
40491 fi
40492
40493 fi
40494
40495
40496 eval "ac_res=\$ac_cv_funclib_crypt"
40497
40498 if false; then
40499
40500 for ac_func in crypt
40501 do
40502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40503 echo "$as_me:$LINENO: checking for $ac_func" >&5
40504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40505 if eval "test \"\${$as_ac_var+set}\" = set"; then
40506   echo $ECHO_N "(cached) $ECHO_C" >&6
40507 else
40508   cat >conftest.$ac_ext <<_ACEOF
40509 /* confdefs.h.  */
40510 _ACEOF
40511 cat confdefs.h >>conftest.$ac_ext
40512 cat >>conftest.$ac_ext <<_ACEOF
40513 /* end confdefs.h.  */
40514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40516 #define $ac_func innocuous_$ac_func
40517
40518 /* System header to define __stub macros and hopefully few prototypes,
40519     which can conflict with char $ac_func (); below.
40520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40521     <limits.h> exists even on freestanding compilers.  */
40522
40523 #ifdef __STDC__
40524 # include <limits.h>
40525 #else
40526 # include <assert.h>
40527 #endif
40528
40529 #undef $ac_func
40530
40531 /* Override any gcc2 internal prototype to avoid an error.  */
40532 #ifdef __cplusplus
40533 extern "C"
40534 {
40535 #endif
40536 /* We use char because int might match the return type of a gcc2
40537    builtin and then its argument prototype would still apply.  */
40538 char $ac_func ();
40539 /* The GNU C library defines this for functions which it implements
40540     to always fail with ENOSYS.  Some functions are actually named
40541     something starting with __ and the normal name is an alias.  */
40542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40543 choke me
40544 #else
40545 char (*f) () = $ac_func;
40546 #endif
40547 #ifdef __cplusplus
40548 }
40549 #endif
40550
40551 int
40552 main ()
40553 {
40554 return f != $ac_func;
40555   ;
40556   return 0;
40557 }
40558 _ACEOF
40559 rm -f conftest.$ac_objext conftest$ac_exeext
40560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40561   (eval $ac_link) 2>conftest.er1
40562   ac_status=$?
40563   grep -v '^ *+' conftest.er1 >conftest.err
40564   rm -f conftest.er1
40565   cat conftest.err >&5
40566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40567   (exit $ac_status); } &&
40568          { ac_try='test -z "$ac_c_werror_flag"
40569                          || test ! -s conftest.err'
40570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40571   (eval $ac_try) 2>&5
40572   ac_status=$?
40573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574   (exit $ac_status); }; } &&
40575          { ac_try='test -s conftest$ac_exeext'
40576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40577   (eval $ac_try) 2>&5
40578   ac_status=$?
40579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40580   (exit $ac_status); }; }; then
40581   eval "$as_ac_var=yes"
40582 else
40583   echo "$as_me: failed program was:" >&5
40584 sed 's/^/| /' conftest.$ac_ext >&5
40585
40586 eval "$as_ac_var=no"
40587 fi
40588 rm -f conftest.err conftest.$ac_objext \
40589       conftest$ac_exeext conftest.$ac_ext
40590 fi
40591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40593 if test `eval echo '${'$as_ac_var'}'` = yes; then
40594   cat >>confdefs.h <<_ACEOF
40595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40596 _ACEOF
40597
40598 fi
40599 done
40600
40601 fi
40602 # crypt
40603 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
40604 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
40605 eval "LIB_crypt=$ac_res"
40606
40607 case "$ac_res" in
40608         yes)
40609         eval "ac_cv_func_crypt=yes"
40610         eval "LIB_crypt="
40611         cat >>confdefs.h <<_ACEOF
40612 #define $ac_tr_func 1
40613 _ACEOF
40614
40615         echo "$as_me:$LINENO: result: yes" >&5
40616 echo "${ECHO_T}yes" >&6
40617         ;;
40618         no)
40619         eval "ac_cv_func_crypt=no"
40620         eval "LIB_crypt="
40621         echo "$as_me:$LINENO: result: no" >&5
40622 echo "${ECHO_T}no" >&6
40623         ;;
40624         *)
40625         eval "ac_cv_func_crypt=yes"
40626         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
40627         cat >>confdefs.h <<_ACEOF
40628 #define $ac_tr_func 1
40629 _ACEOF
40630
40631         cat >>confdefs.h <<_ACEOF
40632 #define $ac_tr_lib 1
40633 _ACEOF
40634
40635         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
40636 echo "${ECHO_T}yes, in $ac_res" >&6
40637         ;;
40638 esac
40639
40640
40641
40642
40643
40644
40645 echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
40646 echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
40647 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
40648   echo $ECHO_N "(cached) $ECHO_C" >&6
40649 else
40650   cat >conftest.$ac_ext <<_ACEOF
40651 /* confdefs.h.  */
40652 _ACEOF
40653 cat confdefs.h >>conftest.$ac_ext
40654 cat >>conftest.$ac_ext <<_ACEOF
40655 /* end confdefs.h.  */
40656
40657 #ifdef HAVE_SYS_TYPES_H
40658 #include <sys/types.h>
40659 #endif
40660 #ifdef HAVE_SYS_SOCKET_H
40661 #include <sys/socket.h>
40662 #endif
40663 #ifdef HAVE_NETINET_IN_H
40664 #include <netinet/in.h>
40665 #endif
40666 #ifdef HAVE_ARPA_INET_H
40667 #include <arpa/inet.h>
40668 #endif
40669 #ifdef HAVE_NETDB_H
40670 #include <netdb.h>
40671 #endif
40672
40673 int
40674 main ()
40675 {
40676 struct hostent *gethostbyname(const char *);
40677   ;
40678   return 0;
40679 }
40680 _ACEOF
40681 rm -f conftest.$ac_objext
40682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40683   (eval $ac_compile) 2>conftest.er1
40684   ac_status=$?
40685   grep -v '^ *+' conftest.er1 >conftest.err
40686   rm -f conftest.er1
40687   cat conftest.err >&5
40688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689   (exit $ac_status); } &&
40690          { ac_try='test -z "$ac_c_werror_flag"
40691                          || test ! -s conftest.err'
40692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40693   (eval $ac_try) 2>&5
40694   ac_status=$?
40695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696   (exit $ac_status); }; } &&
40697          { ac_try='test -s conftest.$ac_objext'
40698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40699   (eval $ac_try) 2>&5
40700   ac_status=$?
40701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702   (exit $ac_status); }; }; then
40703   eval "ac_cv_func_gethostbyname_proto_compat=yes"
40704 else
40705   echo "$as_me: failed program was:" >&5
40706 sed 's/^/| /' conftest.$ac_ext >&5
40707
40708 eval "ac_cv_func_gethostbyname_proto_compat=no"
40709 fi
40710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40711 fi
40712 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
40713 echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
40714
40715 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
40716
40717 cat >>confdefs.h <<\_ACEOF
40718 #define GETHOSTBYNAME_PROTO_COMPATIBLE 1
40719 _ACEOF
40720
40721 fi
40722
40723
40724
40725
40726 echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
40727 echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
40728 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
40729   echo $ECHO_N "(cached) $ECHO_C" >&6
40730 else
40731   cat >conftest.$ac_ext <<_ACEOF
40732 /* confdefs.h.  */
40733 _ACEOF
40734 cat confdefs.h >>conftest.$ac_ext
40735 cat >>conftest.$ac_ext <<_ACEOF
40736 /* end confdefs.h.  */
40737
40738 #ifdef HAVE_SYS_TYPES_H
40739 #include <sys/types.h>
40740 #endif
40741 #ifdef HAVE_SYS_SOCKET_H
40742 #include <sys/socket.h>
40743 #endif
40744 #ifdef HAVE_NETINET_IN_H
40745 #include <netinet/in.h>
40746 #endif
40747 #ifdef HAVE_ARPA_INET_H
40748 #include <arpa/inet.h>
40749 #endif
40750 #ifdef HAVE_NETDB_H
40751 #include <netdb.h>
40752 #endif
40753
40754 int
40755 main ()
40756 {
40757 struct hostent *gethostbyaddr(const void *, size_t, int);
40758   ;
40759   return 0;
40760 }
40761 _ACEOF
40762 rm -f conftest.$ac_objext
40763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40764   (eval $ac_compile) 2>conftest.er1
40765   ac_status=$?
40766   grep -v '^ *+' conftest.er1 >conftest.err
40767   rm -f conftest.er1
40768   cat conftest.err >&5
40769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770   (exit $ac_status); } &&
40771          { ac_try='test -z "$ac_c_werror_flag"
40772                          || test ! -s conftest.err'
40773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40774   (eval $ac_try) 2>&5
40775   ac_status=$?
40776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40777   (exit $ac_status); }; } &&
40778          { ac_try='test -s conftest.$ac_objext'
40779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40780   (eval $ac_try) 2>&5
40781   ac_status=$?
40782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40783   (exit $ac_status); }; }; then
40784   eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
40785 else
40786   echo "$as_me: failed program was:" >&5
40787 sed 's/^/| /' conftest.$ac_ext >&5
40788
40789 eval "ac_cv_func_gethostbyaddr_proto_compat=no"
40790 fi
40791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40792 fi
40793 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
40794 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
40795
40796 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
40797
40798 cat >>confdefs.h <<\_ACEOF
40799 #define GETHOSTBYADDR_PROTO_COMPATIBLE 1
40800 _ACEOF
40801
40802 fi
40803
40804
40805
40806
40807 echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
40808 echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
40809 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
40810   echo $ECHO_N "(cached) $ECHO_C" >&6
40811 else
40812   cat >conftest.$ac_ext <<_ACEOF
40813 /* confdefs.h.  */
40814 _ACEOF
40815 cat confdefs.h >>conftest.$ac_ext
40816 cat >>conftest.$ac_ext <<_ACEOF
40817 /* end confdefs.h.  */
40818
40819 #ifdef HAVE_SYS_TYPES_H
40820 #include <sys/types.h>
40821 #endif
40822 #ifdef HAVE_SYS_SOCKET_H
40823 #include <sys/socket.h>
40824 #endif
40825 #ifdef HAVE_NETINET_IN_H
40826 #include <netinet/in.h>
40827 #endif
40828 #ifdef HAVE_ARPA_INET_H
40829 #include <arpa/inet.h>
40830 #endif
40831 #ifdef HAVE_NETDB_H
40832 #include <netdb.h>
40833 #endif
40834
40835 int
40836 main ()
40837 {
40838 struct servent *getservbyname(const char *, const char *);
40839   ;
40840   return 0;
40841 }
40842 _ACEOF
40843 rm -f conftest.$ac_objext
40844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40845   (eval $ac_compile) 2>conftest.er1
40846   ac_status=$?
40847   grep -v '^ *+' conftest.er1 >conftest.err
40848   rm -f conftest.er1
40849   cat conftest.err >&5
40850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851   (exit $ac_status); } &&
40852          { ac_try='test -z "$ac_c_werror_flag"
40853                          || test ! -s conftest.err'
40854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40855   (eval $ac_try) 2>&5
40856   ac_status=$?
40857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858   (exit $ac_status); }; } &&
40859          { ac_try='test -s conftest.$ac_objext'
40860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40861   (eval $ac_try) 2>&5
40862   ac_status=$?
40863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40864   (exit $ac_status); }; }; then
40865   eval "ac_cv_func_getservbyname_proto_compat=yes"
40866 else
40867   echo "$as_me: failed program was:" >&5
40868 sed 's/^/| /' conftest.$ac_ext >&5
40869
40870 eval "ac_cv_func_getservbyname_proto_compat=no"
40871 fi
40872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40873 fi
40874 echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
40875 echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
40876
40877 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
40878
40879 cat >>confdefs.h <<\_ACEOF
40880 #define GETSERVBYNAME_PROTO_COMPATIBLE 1
40881 _ACEOF
40882
40883 fi
40884
40885
40886
40887
40888 echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
40889 echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
40890 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
40891   echo $ECHO_N "(cached) $ECHO_C" >&6
40892 else
40893   cat >conftest.$ac_ext <<_ACEOF
40894 /* confdefs.h.  */
40895 _ACEOF
40896 cat confdefs.h >>conftest.$ac_ext
40897 cat >>conftest.$ac_ext <<_ACEOF
40898 /* end confdefs.h.  */
40899
40900 #ifdef HAVE_SYS_TYPES_H
40901 #include <sys/types.h>
40902 #endif
40903 #ifdef HAVE_SYS_SOCKET_H
40904 #include <sys/socket.h>
40905 #endif
40906
40907 int
40908 main ()
40909 {
40910 int getsockname(int, struct sockaddr*, socklen_t*);
40911   ;
40912   return 0;
40913 }
40914 _ACEOF
40915 rm -f conftest.$ac_objext
40916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40917   (eval $ac_compile) 2>conftest.er1
40918   ac_status=$?
40919   grep -v '^ *+' conftest.er1 >conftest.err
40920   rm -f conftest.er1
40921   cat conftest.err >&5
40922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40923   (exit $ac_status); } &&
40924          { ac_try='test -z "$ac_c_werror_flag"
40925                          || test ! -s conftest.err'
40926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40927   (eval $ac_try) 2>&5
40928   ac_status=$?
40929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930   (exit $ac_status); }; } &&
40931          { ac_try='test -s conftest.$ac_objext'
40932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40933   (eval $ac_try) 2>&5
40934   ac_status=$?
40935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40936   (exit $ac_status); }; }; then
40937   eval "ac_cv_func_getsockname_proto_compat=yes"
40938 else
40939   echo "$as_me: failed program was:" >&5
40940 sed 's/^/| /' conftest.$ac_ext >&5
40941
40942 eval "ac_cv_func_getsockname_proto_compat=no"
40943 fi
40944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40945 fi
40946 echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
40947 echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
40948
40949 if test "$ac_cv_func_getsockname_proto_compat" = yes; then
40950
40951 cat >>confdefs.h <<\_ACEOF
40952 #define GETSOCKNAME_PROTO_COMPATIBLE 1
40953 _ACEOF
40954
40955 fi
40956
40957
40958
40959
40960 echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
40961 echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
40962 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
40963   echo $ECHO_N "(cached) $ECHO_C" >&6
40964 else
40965   cat >conftest.$ac_ext <<_ACEOF
40966 /* confdefs.h.  */
40967 _ACEOF
40968 cat confdefs.h >>conftest.$ac_ext
40969 cat >>conftest.$ac_ext <<_ACEOF
40970 /* end confdefs.h.  */
40971
40972 #ifdef HAVE_SYSLOG_H
40973 #include <syslog.h>
40974 #endif
40975
40976 int
40977 main ()
40978 {
40979 void openlog(const char *, int, int);
40980   ;
40981   return 0;
40982 }
40983 _ACEOF
40984 rm -f conftest.$ac_objext
40985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40986   (eval $ac_compile) 2>conftest.er1
40987   ac_status=$?
40988   grep -v '^ *+' conftest.er1 >conftest.err
40989   rm -f conftest.er1
40990   cat conftest.err >&5
40991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992   (exit $ac_status); } &&
40993          { ac_try='test -z "$ac_c_werror_flag"
40994                          || test ! -s conftest.err'
40995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40996   (eval $ac_try) 2>&5
40997   ac_status=$?
40998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40999   (exit $ac_status); }; } &&
41000          { ac_try='test -s conftest.$ac_objext'
41001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41002   (eval $ac_try) 2>&5
41003   ac_status=$?
41004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41005   (exit $ac_status); }; }; then
41006   eval "ac_cv_func_openlog_proto_compat=yes"
41007 else
41008   echo "$as_me: failed program was:" >&5
41009 sed 's/^/| /' conftest.$ac_ext >&5
41010
41011 eval "ac_cv_func_openlog_proto_compat=no"
41012 fi
41013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41014 fi
41015 echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
41016 echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
41017
41018 if test "$ac_cv_func_openlog_proto_compat" = yes; then
41019
41020 cat >>confdefs.h <<\_ACEOF
41021 #define OPENLOG_PROTO_COMPATIBLE 1
41022 _ACEOF
41023
41024 fi
41025
41026
41027
41028
41029 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
41030 echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
41031 echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
41032 if test "${ac_cv_func_crypt_noproto+set}" = set; then
41033   echo $ECHO_N "(cached) $ECHO_C" >&6
41034 else
41035   cat >conftest.$ac_ext <<_ACEOF
41036 /* confdefs.h.  */
41037 _ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h.  */
41041
41042 #ifdef HAVE_CRYPT_H
41043 #include <crypt.h>
41044 #endif
41045 #ifdef HAVE_UNISTD_H
41046 #include <unistd.h>
41047 #endif
41048
41049 int
41050 main ()
41051 {
41052 struct foo { int foo; } xx;
41053 extern int crypt (struct foo*);
41054 crypt(&xx);
41055
41056   ;
41057   return 0;
41058 }
41059 _ACEOF
41060 rm -f conftest.$ac_objext
41061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41062   (eval $ac_compile) 2>conftest.er1
41063   ac_status=$?
41064   grep -v '^ *+' conftest.er1 >conftest.err
41065   rm -f conftest.er1
41066   cat conftest.err >&5
41067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068   (exit $ac_status); } &&
41069          { ac_try='test -z "$ac_c_werror_flag"
41070                          || test ! -s conftest.err'
41071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41072   (eval $ac_try) 2>&5
41073   ac_status=$?
41074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41075   (exit $ac_status); }; } &&
41076          { ac_try='test -s conftest.$ac_objext'
41077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41078   (eval $ac_try) 2>&5
41079   ac_status=$?
41080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41081   (exit $ac_status); }; }; then
41082   eval "ac_cv_func_crypt_noproto=yes"
41083 else
41084   echo "$as_me: failed program was:" >&5
41085 sed 's/^/| /' conftest.$ac_ext >&5
41086
41087 eval "ac_cv_func_crypt_noproto=no"
41088 fi
41089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41090 fi
41091 echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
41092 echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
41093 if test "$ac_cv_func_crypt_noproto" = yes; then
41094
41095 cat >>confdefs.h <<\_ACEOF
41096 #define NEED_CRYPT_PROTO 1
41097 _ACEOF
41098
41099 fi
41100 fi
41101
41102
41103
41104
41105 echo "$as_me:$LINENO: checking for h_errno" >&5
41106 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
41107 if test "${ac_cv_var_h_errno+set}" = set; then
41108   echo $ECHO_N "(cached) $ECHO_C" >&6
41109 else
41110
41111
41112         cat >conftest.$ac_ext <<_ACEOF
41113 /* confdefs.h.  */
41114 _ACEOF
41115 cat confdefs.h >>conftest.$ac_ext
41116 cat >>conftest.$ac_ext <<_ACEOF
41117 /* end confdefs.h.  */
41118 #ifdef HAVE_SYS_TYPES_H
41119 #include <sys/types.h>
41120 #endif
41121 #ifdef HAVE_NETDB_H
41122 #include <netdb.h>
41123 #endif
41124         void * foo() { return &h_errno; }
41125 int
41126 main ()
41127 {
41128 foo()
41129   ;
41130   return 0;
41131 }
41132 _ACEOF
41133 rm -f conftest.$ac_objext conftest$ac_exeext
41134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41135   (eval $ac_link) 2>conftest.er1
41136   ac_status=$?
41137   grep -v '^ *+' conftest.er1 >conftest.err
41138   rm -f conftest.er1
41139   cat conftest.err >&5
41140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41141   (exit $ac_status); } &&
41142          { ac_try='test -z "$ac_c_werror_flag"
41143                          || test ! -s conftest.err'
41144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41145   (eval $ac_try) 2>&5
41146   ac_status=$?
41147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41148   (exit $ac_status); }; } &&
41149          { ac_try='test -s conftest$ac_exeext'
41150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41151   (eval $ac_try) 2>&5
41152   ac_status=$?
41153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41154   (exit $ac_status); }; }; then
41155   ac_cv_var_h_errno=yes
41156 else
41157   echo "$as_me: failed program was:" >&5
41158 sed 's/^/| /' conftest.$ac_ext >&5
41159
41160 ac_cv_var_h_errno=no
41161 fi
41162 rm -f conftest.err conftest.$ac_objext \
41163       conftest$ac_exeext conftest.$ac_ext
41164 if test "$ac_cv_var_h_errno" != yes ; then
41165 cat >conftest.$ac_ext <<_ACEOF
41166 /* confdefs.h.  */
41167 _ACEOF
41168 cat confdefs.h >>conftest.$ac_ext
41169 cat >>conftest.$ac_ext <<_ACEOF
41170 /* end confdefs.h.  */
41171 extern int h_errno;
41172 int foo() { return h_errno; }
41173 int
41174 main ()
41175 {
41176 foo()
41177   ;
41178   return 0;
41179 }
41180 _ACEOF
41181 rm -f conftest.$ac_objext conftest$ac_exeext
41182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41183   (eval $ac_link) 2>conftest.er1
41184   ac_status=$?
41185   grep -v '^ *+' conftest.er1 >conftest.err
41186   rm -f conftest.er1
41187   cat conftest.err >&5
41188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41189   (exit $ac_status); } &&
41190          { ac_try='test -z "$ac_c_werror_flag"
41191                          || test ! -s conftest.err'
41192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41193   (eval $ac_try) 2>&5
41194   ac_status=$?
41195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196   (exit $ac_status); }; } &&
41197          { ac_try='test -s conftest$ac_exeext'
41198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41199   (eval $ac_try) 2>&5
41200   ac_status=$?
41201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41202   (exit $ac_status); }; }; then
41203   ac_cv_var_h_errno=yes
41204 else
41205   echo "$as_me: failed program was:" >&5
41206 sed 's/^/| /' conftest.$ac_ext >&5
41207
41208 ac_cv_var_h_errno=no
41209 fi
41210 rm -f conftest.err conftest.$ac_objext \
41211       conftest$ac_exeext conftest.$ac_ext
41212 fi
41213
41214 fi
41215
41216 ac_foo=`eval echo \\$ac_cv_var_h_errno`
41217 echo "$as_me:$LINENO: result: $ac_foo" >&5
41218 echo "${ECHO_T}$ac_foo" >&6
41219 if test "$ac_foo" = yes; then
41220
41221 cat >>confdefs.h <<_ACEOF
41222 #define HAVE_H_ERRNO 1
41223 _ACEOF
41224
41225
41226 echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
41227 echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
41228 if test "${ac_cv_var_h_errno_declaration+set}" = set; then
41229   echo $ECHO_N "(cached) $ECHO_C" >&6
41230 else
41231
41232 cat >conftest.$ac_ext <<_ACEOF
41233 /* confdefs.h.  */
41234 _ACEOF
41235 cat confdefs.h >>conftest.$ac_ext
41236 cat >>conftest.$ac_ext <<_ACEOF
41237 /* end confdefs.h.  */
41238 #ifdef HAVE_SYS_TYPES_H
41239 #include <sys/types.h>
41240 #endif
41241 #ifdef HAVE_NETDB_H
41242 #include <netdb.h>
41243 #endif
41244 extern struct { int foo; } h_errno;
41245 int
41246 main ()
41247 {
41248 h_errno.foo = 1;
41249   ;
41250   return 0;
41251 }
41252 _ACEOF
41253 rm -f conftest.$ac_objext
41254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41255   (eval $ac_compile) 2>conftest.er1
41256   ac_status=$?
41257   grep -v '^ *+' conftest.er1 >conftest.err
41258   rm -f conftest.er1
41259   cat conftest.err >&5
41260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261   (exit $ac_status); } &&
41262          { ac_try='test -z "$ac_c_werror_flag"
41263                          || test ! -s conftest.err'
41264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41265   (eval $ac_try) 2>&5
41266   ac_status=$?
41267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268   (exit $ac_status); }; } &&
41269          { ac_try='test -s conftest.$ac_objext'
41270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41271   (eval $ac_try) 2>&5
41272   ac_status=$?
41273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274   (exit $ac_status); }; }; then
41275   eval "ac_cv_var_h_errno_declaration=no"
41276 else
41277   echo "$as_me: failed program was:" >&5
41278 sed 's/^/| /' conftest.$ac_ext >&5
41279
41280 eval "ac_cv_var_h_errno_declaration=yes"
41281 fi
41282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41283
41284 fi
41285
41286
41287
41288
41289 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
41290 echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
41291 if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
41292
41293 cat >>confdefs.h <<\_ACEOF
41294 #define HAVE_H_ERRNO_DECLARATION 1
41295 _ACEOF
41296
41297 fi
41298
41299
41300 fi
41301
41302
41303
41304 echo "$as_me:$LINENO: checking for h_errlist" >&5
41305 echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
41306 if test "${ac_cv_var_h_errlist+set}" = set; then
41307   echo $ECHO_N "(cached) $ECHO_C" >&6
41308 else
41309
41310
41311         cat >conftest.$ac_ext <<_ACEOF
41312 /* confdefs.h.  */
41313 _ACEOF
41314 cat confdefs.h >>conftest.$ac_ext
41315 cat >>conftest.$ac_ext <<_ACEOF
41316 /* end confdefs.h.  */
41317 #ifdef HAVE_NETDB_H
41318 #include <netdb.h>
41319 #endif
41320         void * foo() { return &h_errlist; }
41321 int
41322 main ()
41323 {
41324 foo()
41325   ;
41326   return 0;
41327 }
41328 _ACEOF
41329 rm -f conftest.$ac_objext conftest$ac_exeext
41330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41331   (eval $ac_link) 2>conftest.er1
41332   ac_status=$?
41333   grep -v '^ *+' conftest.er1 >conftest.err
41334   rm -f conftest.er1
41335   cat conftest.err >&5
41336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41337   (exit $ac_status); } &&
41338          { ac_try='test -z "$ac_c_werror_flag"
41339                          || test ! -s conftest.err'
41340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41341   (eval $ac_try) 2>&5
41342   ac_status=$?
41343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41344   (exit $ac_status); }; } &&
41345          { ac_try='test -s conftest$ac_exeext'
41346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41347   (eval $ac_try) 2>&5
41348   ac_status=$?
41349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41350   (exit $ac_status); }; }; then
41351   ac_cv_var_h_errlist=yes
41352 else
41353   echo "$as_me: failed program was:" >&5
41354 sed 's/^/| /' conftest.$ac_ext >&5
41355
41356 ac_cv_var_h_errlist=no
41357 fi
41358 rm -f conftest.err conftest.$ac_objext \
41359       conftest$ac_exeext conftest.$ac_ext
41360 if test "$ac_cv_var_h_errlist" != yes ; then
41361 cat >conftest.$ac_ext <<_ACEOF
41362 /* confdefs.h.  */
41363 _ACEOF
41364 cat confdefs.h >>conftest.$ac_ext
41365 cat >>conftest.$ac_ext <<_ACEOF
41366 /* end confdefs.h.  */
41367 extern int h_errlist;
41368 int foo() { return h_errlist; }
41369 int
41370 main ()
41371 {
41372 foo()
41373   ;
41374   return 0;
41375 }
41376 _ACEOF
41377 rm -f conftest.$ac_objext conftest$ac_exeext
41378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41379   (eval $ac_link) 2>conftest.er1
41380   ac_status=$?
41381   grep -v '^ *+' conftest.er1 >conftest.err
41382   rm -f conftest.er1
41383   cat conftest.err >&5
41384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385   (exit $ac_status); } &&
41386          { ac_try='test -z "$ac_c_werror_flag"
41387                          || test ! -s conftest.err'
41388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41389   (eval $ac_try) 2>&5
41390   ac_status=$?
41391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392   (exit $ac_status); }; } &&
41393          { ac_try='test -s conftest$ac_exeext'
41394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41395   (eval $ac_try) 2>&5
41396   ac_status=$?
41397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398   (exit $ac_status); }; }; then
41399   ac_cv_var_h_errlist=yes
41400 else
41401   echo "$as_me: failed program was:" >&5
41402 sed 's/^/| /' conftest.$ac_ext >&5
41403
41404 ac_cv_var_h_errlist=no
41405 fi
41406 rm -f conftest.err conftest.$ac_objext \
41407       conftest$ac_exeext conftest.$ac_ext
41408 fi
41409
41410 fi
41411
41412 ac_foo=`eval echo \\$ac_cv_var_h_errlist`
41413 echo "$as_me:$LINENO: result: $ac_foo" >&5
41414 echo "${ECHO_T}$ac_foo" >&6
41415 if test "$ac_foo" = yes; then
41416
41417 cat >>confdefs.h <<_ACEOF
41418 #define HAVE_H_ERRLIST 1
41419 _ACEOF
41420
41421
41422 echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
41423 echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
41424 if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
41425   echo $ECHO_N "(cached) $ECHO_C" >&6
41426 else
41427
41428 cat >conftest.$ac_ext <<_ACEOF
41429 /* confdefs.h.  */
41430 _ACEOF
41431 cat confdefs.h >>conftest.$ac_ext
41432 cat >>conftest.$ac_ext <<_ACEOF
41433 /* end confdefs.h.  */
41434 #ifdef HAVE_NETDB_H
41435 #include <netdb.h>
41436 #endif
41437 extern struct { int foo; } h_errlist;
41438 int
41439 main ()
41440 {
41441 h_errlist.foo = 1;
41442   ;
41443   return 0;
41444 }
41445 _ACEOF
41446 rm -f conftest.$ac_objext
41447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41448   (eval $ac_compile) 2>conftest.er1
41449   ac_status=$?
41450   grep -v '^ *+' conftest.er1 >conftest.err
41451   rm -f conftest.er1
41452   cat conftest.err >&5
41453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41454   (exit $ac_status); } &&
41455          { ac_try='test -z "$ac_c_werror_flag"
41456                          || test ! -s conftest.err'
41457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41458   (eval $ac_try) 2>&5
41459   ac_status=$?
41460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461   (exit $ac_status); }; } &&
41462          { ac_try='test -s conftest.$ac_objext'
41463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41464   (eval $ac_try) 2>&5
41465   ac_status=$?
41466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41467   (exit $ac_status); }; }; then
41468   eval "ac_cv_var_h_errlist_declaration=no"
41469 else
41470   echo "$as_me: failed program was:" >&5
41471 sed 's/^/| /' conftest.$ac_ext >&5
41472
41473 eval "ac_cv_var_h_errlist_declaration=yes"
41474 fi
41475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41476
41477 fi
41478
41479
41480
41481
41482 echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
41483 echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
41484 if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
41485
41486 cat >>confdefs.h <<\_ACEOF
41487 #define HAVE_H_ERRLIST_DECLARATION 1
41488 _ACEOF
41489
41490 fi
41491
41492
41493 fi
41494
41495
41496
41497 echo "$as_me:$LINENO: checking for h_nerr" >&5
41498 echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
41499 if test "${ac_cv_var_h_nerr+set}" = set; then
41500   echo $ECHO_N "(cached) $ECHO_C" >&6
41501 else
41502
41503
41504         cat >conftest.$ac_ext <<_ACEOF
41505 /* confdefs.h.  */
41506 _ACEOF
41507 cat confdefs.h >>conftest.$ac_ext
41508 cat >>conftest.$ac_ext <<_ACEOF
41509 /* end confdefs.h.  */
41510 #ifdef HAVE_NETDB_H
41511 #include <netdb.h>
41512 #endif
41513         void * foo() { return &h_nerr; }
41514 int
41515 main ()
41516 {
41517 foo()
41518   ;
41519   return 0;
41520 }
41521 _ACEOF
41522 rm -f conftest.$ac_objext conftest$ac_exeext
41523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41524   (eval $ac_link) 2>conftest.er1
41525   ac_status=$?
41526   grep -v '^ *+' conftest.er1 >conftest.err
41527   rm -f conftest.er1
41528   cat conftest.err >&5
41529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41530   (exit $ac_status); } &&
41531          { ac_try='test -z "$ac_c_werror_flag"
41532                          || test ! -s conftest.err'
41533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41534   (eval $ac_try) 2>&5
41535   ac_status=$?
41536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41537   (exit $ac_status); }; } &&
41538          { ac_try='test -s conftest$ac_exeext'
41539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41540   (eval $ac_try) 2>&5
41541   ac_status=$?
41542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543   (exit $ac_status); }; }; then
41544   ac_cv_var_h_nerr=yes
41545 else
41546   echo "$as_me: failed program was:" >&5
41547 sed 's/^/| /' conftest.$ac_ext >&5
41548
41549 ac_cv_var_h_nerr=no
41550 fi
41551 rm -f conftest.err conftest.$ac_objext \
41552       conftest$ac_exeext conftest.$ac_ext
41553 if test "$ac_cv_var_h_nerr" != yes ; then
41554 cat >conftest.$ac_ext <<_ACEOF
41555 /* confdefs.h.  */
41556 _ACEOF
41557 cat confdefs.h >>conftest.$ac_ext
41558 cat >>conftest.$ac_ext <<_ACEOF
41559 /* end confdefs.h.  */
41560 extern int h_nerr;
41561 int foo() { return h_nerr; }
41562 int
41563 main ()
41564 {
41565 foo()
41566   ;
41567   return 0;
41568 }
41569 _ACEOF
41570 rm -f conftest.$ac_objext conftest$ac_exeext
41571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41572   (eval $ac_link) 2>conftest.er1
41573   ac_status=$?
41574   grep -v '^ *+' conftest.er1 >conftest.err
41575   rm -f conftest.er1
41576   cat conftest.err >&5
41577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41578   (exit $ac_status); } &&
41579          { ac_try='test -z "$ac_c_werror_flag"
41580                          || test ! -s conftest.err'
41581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41582   (eval $ac_try) 2>&5
41583   ac_status=$?
41584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585   (exit $ac_status); }; } &&
41586          { ac_try='test -s conftest$ac_exeext'
41587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41588   (eval $ac_try) 2>&5
41589   ac_status=$?
41590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41591   (exit $ac_status); }; }; then
41592   ac_cv_var_h_nerr=yes
41593 else
41594   echo "$as_me: failed program was:" >&5
41595 sed 's/^/| /' conftest.$ac_ext >&5
41596
41597 ac_cv_var_h_nerr=no
41598 fi
41599 rm -f conftest.err conftest.$ac_objext \
41600       conftest$ac_exeext conftest.$ac_ext
41601 fi
41602
41603 fi
41604
41605 ac_foo=`eval echo \\$ac_cv_var_h_nerr`
41606 echo "$as_me:$LINENO: result: $ac_foo" >&5
41607 echo "${ECHO_T}$ac_foo" >&6
41608 if test "$ac_foo" = yes; then
41609
41610 cat >>confdefs.h <<_ACEOF
41611 #define HAVE_H_NERR 1
41612 _ACEOF
41613
41614
41615 echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
41616 echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
41617 if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
41618   echo $ECHO_N "(cached) $ECHO_C" >&6
41619 else
41620
41621 cat >conftest.$ac_ext <<_ACEOF
41622 /* confdefs.h.  */
41623 _ACEOF
41624 cat confdefs.h >>conftest.$ac_ext
41625 cat >>conftest.$ac_ext <<_ACEOF
41626 /* end confdefs.h.  */
41627 #ifdef HAVE_NETDB_H
41628 #include <netdb.h>
41629 #endif
41630 extern struct { int foo; } h_nerr;
41631 int
41632 main ()
41633 {
41634 h_nerr.foo = 1;
41635   ;
41636   return 0;
41637 }
41638 _ACEOF
41639 rm -f conftest.$ac_objext
41640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41641   (eval $ac_compile) 2>conftest.er1
41642   ac_status=$?
41643   grep -v '^ *+' conftest.er1 >conftest.err
41644   rm -f conftest.er1
41645   cat conftest.err >&5
41646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41647   (exit $ac_status); } &&
41648          { ac_try='test -z "$ac_c_werror_flag"
41649                          || test ! -s conftest.err'
41650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41651   (eval $ac_try) 2>&5
41652   ac_status=$?
41653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41654   (exit $ac_status); }; } &&
41655          { ac_try='test -s conftest.$ac_objext'
41656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41657   (eval $ac_try) 2>&5
41658   ac_status=$?
41659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41660   (exit $ac_status); }; }; then
41661   eval "ac_cv_var_h_nerr_declaration=no"
41662 else
41663   echo "$as_me: failed program was:" >&5
41664 sed 's/^/| /' conftest.$ac_ext >&5
41665
41666 eval "ac_cv_var_h_nerr_declaration=yes"
41667 fi
41668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41669
41670 fi
41671
41672
41673
41674
41675 echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
41676 echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
41677 if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
41678
41679 cat >>confdefs.h <<\_ACEOF
41680 #define HAVE_H_NERR_DECLARATION 1
41681 _ACEOF
41682
41683 fi
41684
41685
41686 fi
41687
41688
41689
41690 echo "$as_me:$LINENO: checking for __progname" >&5
41691 echo $ECHO_N "checking for __progname... $ECHO_C" >&6
41692 if test "${ac_cv_var___progname+set}" = set; then
41693   echo $ECHO_N "(cached) $ECHO_C" >&6
41694 else
41695
41696
41697         cat >conftest.$ac_ext <<_ACEOF
41698 /* confdefs.h.  */
41699 _ACEOF
41700 cat confdefs.h >>conftest.$ac_ext
41701 cat >>conftest.$ac_ext <<_ACEOF
41702 /* end confdefs.h.  */
41703 #ifdef HAVE_ERR_H
41704 #include <err.h>
41705 #endif
41706         void * foo() { return &__progname; }
41707 int
41708 main ()
41709 {
41710 foo()
41711   ;
41712   return 0;
41713 }
41714 _ACEOF
41715 rm -f conftest.$ac_objext conftest$ac_exeext
41716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41717   (eval $ac_link) 2>conftest.er1
41718   ac_status=$?
41719   grep -v '^ *+' conftest.er1 >conftest.err
41720   rm -f conftest.er1
41721   cat conftest.err >&5
41722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723   (exit $ac_status); } &&
41724          { ac_try='test -z "$ac_c_werror_flag"
41725                          || test ! -s conftest.err'
41726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41727   (eval $ac_try) 2>&5
41728   ac_status=$?
41729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41730   (exit $ac_status); }; } &&
41731          { ac_try='test -s conftest$ac_exeext'
41732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41733   (eval $ac_try) 2>&5
41734   ac_status=$?
41735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41736   (exit $ac_status); }; }; then
41737   ac_cv_var___progname=yes
41738 else
41739   echo "$as_me: failed program was:" >&5
41740 sed 's/^/| /' conftest.$ac_ext >&5
41741
41742 ac_cv_var___progname=no
41743 fi
41744 rm -f conftest.err conftest.$ac_objext \
41745       conftest$ac_exeext conftest.$ac_ext
41746 if test "$ac_cv_var___progname" != yes ; then
41747 cat >conftest.$ac_ext <<_ACEOF
41748 /* confdefs.h.  */
41749 _ACEOF
41750 cat confdefs.h >>conftest.$ac_ext
41751 cat >>conftest.$ac_ext <<_ACEOF
41752 /* end confdefs.h.  */
41753 extern int __progname;
41754 int foo() { return __progname; }
41755 int
41756 main ()
41757 {
41758 foo()
41759   ;
41760   return 0;
41761 }
41762 _ACEOF
41763 rm -f conftest.$ac_objext conftest$ac_exeext
41764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41765   (eval $ac_link) 2>conftest.er1
41766   ac_status=$?
41767   grep -v '^ *+' conftest.er1 >conftest.err
41768   rm -f conftest.er1
41769   cat conftest.err >&5
41770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41771   (exit $ac_status); } &&
41772          { ac_try='test -z "$ac_c_werror_flag"
41773                          || test ! -s conftest.err'
41774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41775   (eval $ac_try) 2>&5
41776   ac_status=$?
41777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41778   (exit $ac_status); }; } &&
41779          { ac_try='test -s conftest$ac_exeext'
41780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41781   (eval $ac_try) 2>&5
41782   ac_status=$?
41783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784   (exit $ac_status); }; }; then
41785   ac_cv_var___progname=yes
41786 else
41787   echo "$as_me: failed program was:" >&5
41788 sed 's/^/| /' conftest.$ac_ext >&5
41789
41790 ac_cv_var___progname=no
41791 fi
41792 rm -f conftest.err conftest.$ac_objext \
41793       conftest$ac_exeext conftest.$ac_ext
41794 fi
41795
41796 fi
41797
41798 ac_foo=`eval echo \\$ac_cv_var___progname`
41799 echo "$as_me:$LINENO: result: $ac_foo" >&5
41800 echo "${ECHO_T}$ac_foo" >&6
41801 if test "$ac_foo" = yes; then
41802
41803 cat >>confdefs.h <<_ACEOF
41804 #define HAVE___PROGNAME 1
41805 _ACEOF
41806
41807
41808 echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
41809 echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
41810 if test "${ac_cv_var___progname_declaration+set}" = set; then
41811   echo $ECHO_N "(cached) $ECHO_C" >&6
41812 else
41813
41814 cat >conftest.$ac_ext <<_ACEOF
41815 /* confdefs.h.  */
41816 _ACEOF
41817 cat confdefs.h >>conftest.$ac_ext
41818 cat >>conftest.$ac_ext <<_ACEOF
41819 /* end confdefs.h.  */
41820 #ifdef HAVE_ERR_H
41821 #include <err.h>
41822 #endif
41823 extern struct { int foo; } __progname;
41824 int
41825 main ()
41826 {
41827 __progname.foo = 1;
41828   ;
41829   return 0;
41830 }
41831 _ACEOF
41832 rm -f conftest.$ac_objext
41833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41834   (eval $ac_compile) 2>conftest.er1
41835   ac_status=$?
41836   grep -v '^ *+' conftest.er1 >conftest.err
41837   rm -f conftest.er1
41838   cat conftest.err >&5
41839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840   (exit $ac_status); } &&
41841          { ac_try='test -z "$ac_c_werror_flag"
41842                          || test ! -s conftest.err'
41843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41844   (eval $ac_try) 2>&5
41845   ac_status=$?
41846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847   (exit $ac_status); }; } &&
41848          { ac_try='test -s conftest.$ac_objext'
41849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41850   (eval $ac_try) 2>&5
41851   ac_status=$?
41852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41853   (exit $ac_status); }; }; then
41854   eval "ac_cv_var___progname_declaration=no"
41855 else
41856   echo "$as_me: failed program was:" >&5
41857 sed 's/^/| /' conftest.$ac_ext >&5
41858
41859 eval "ac_cv_var___progname_declaration=yes"
41860 fi
41861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41862
41863 fi
41864
41865
41866
41867
41868 echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
41869 echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
41870 if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
41871
41872 cat >>confdefs.h <<\_ACEOF
41873 #define HAVE___PROGNAME_DECLARATION 1
41874 _ACEOF
41875
41876 fi
41877
41878
41879 fi
41880
41881
41882
41883 echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
41884 echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
41885 if test "${ac_cv_var_optarg_declaration+set}" = set; then
41886   echo $ECHO_N "(cached) $ECHO_C" >&6
41887 else
41888
41889 cat >conftest.$ac_ext <<_ACEOF
41890 /* confdefs.h.  */
41891 _ACEOF
41892 cat confdefs.h >>conftest.$ac_ext
41893 cat >>conftest.$ac_ext <<_ACEOF
41894 /* end confdefs.h.  */
41895 #include <stdlib.h>
41896 #ifdef HAVE_UNISTD_H
41897 #include <unistd.h>
41898 #endif
41899 extern struct { int foo; } optarg;
41900 int
41901 main ()
41902 {
41903 optarg.foo = 1;
41904   ;
41905   return 0;
41906 }
41907 _ACEOF
41908 rm -f conftest.$ac_objext
41909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41910   (eval $ac_compile) 2>conftest.er1
41911   ac_status=$?
41912   grep -v '^ *+' conftest.er1 >conftest.err
41913   rm -f conftest.er1
41914   cat conftest.err >&5
41915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41916   (exit $ac_status); } &&
41917          { ac_try='test -z "$ac_c_werror_flag"
41918                          || test ! -s conftest.err'
41919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41920   (eval $ac_try) 2>&5
41921   ac_status=$?
41922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41923   (exit $ac_status); }; } &&
41924          { ac_try='test -s conftest.$ac_objext'
41925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41926   (eval $ac_try) 2>&5
41927   ac_status=$?
41928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41929   (exit $ac_status); }; }; then
41930   eval "ac_cv_var_optarg_declaration=no"
41931 else
41932   echo "$as_me: failed program was:" >&5
41933 sed 's/^/| /' conftest.$ac_ext >&5
41934
41935 eval "ac_cv_var_optarg_declaration=yes"
41936 fi
41937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41938
41939 fi
41940
41941
41942
41943
41944 echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
41945 echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
41946 if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
41947
41948 cat >>confdefs.h <<\_ACEOF
41949 #define HAVE_OPTARG_DECLARATION 1
41950 _ACEOF
41951
41952 fi
41953
41954
41955
41956 echo "$as_me:$LINENO: checking if optind is properly declared" >&5
41957 echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
41958 if test "${ac_cv_var_optind_declaration+set}" = set; then
41959   echo $ECHO_N "(cached) $ECHO_C" >&6
41960 else
41961
41962 cat >conftest.$ac_ext <<_ACEOF
41963 /* confdefs.h.  */
41964 _ACEOF
41965 cat confdefs.h >>conftest.$ac_ext
41966 cat >>conftest.$ac_ext <<_ACEOF
41967 /* end confdefs.h.  */
41968 #include <stdlib.h>
41969 #ifdef HAVE_UNISTD_H
41970 #include <unistd.h>
41971 #endif
41972 extern struct { int foo; } optind;
41973 int
41974 main ()
41975 {
41976 optind.foo = 1;
41977   ;
41978   return 0;
41979 }
41980 _ACEOF
41981 rm -f conftest.$ac_objext
41982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41983   (eval $ac_compile) 2>conftest.er1
41984   ac_status=$?
41985   grep -v '^ *+' conftest.er1 >conftest.err
41986   rm -f conftest.er1
41987   cat conftest.err >&5
41988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989   (exit $ac_status); } &&
41990          { ac_try='test -z "$ac_c_werror_flag"
41991                          || test ! -s conftest.err'
41992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41993   (eval $ac_try) 2>&5
41994   ac_status=$?
41995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41996   (exit $ac_status); }; } &&
41997          { ac_try='test -s conftest.$ac_objext'
41998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41999   (eval $ac_try) 2>&5
42000   ac_status=$?
42001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42002   (exit $ac_status); }; }; then
42003   eval "ac_cv_var_optind_declaration=no"
42004 else
42005   echo "$as_me: failed program was:" >&5
42006 sed 's/^/| /' conftest.$ac_ext >&5
42007
42008 eval "ac_cv_var_optind_declaration=yes"
42009 fi
42010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42011
42012 fi
42013
42014
42015
42016
42017 echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
42018 echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
42019 if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
42020
42021 cat >>confdefs.h <<\_ACEOF
42022 #define HAVE_OPTIND_DECLARATION 1
42023 _ACEOF
42024
42025 fi
42026
42027
42028
42029 echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
42030 echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
42031 if test "${ac_cv_var_opterr_declaration+set}" = set; then
42032   echo $ECHO_N "(cached) $ECHO_C" >&6
42033 else
42034
42035 cat >conftest.$ac_ext <<_ACEOF
42036 /* confdefs.h.  */
42037 _ACEOF
42038 cat confdefs.h >>conftest.$ac_ext
42039 cat >>conftest.$ac_ext <<_ACEOF
42040 /* end confdefs.h.  */
42041 #include <stdlib.h>
42042 #ifdef HAVE_UNISTD_H
42043 #include <unistd.h>
42044 #endif
42045 extern struct { int foo; } opterr;
42046 int
42047 main ()
42048 {
42049 opterr.foo = 1;
42050   ;
42051   return 0;
42052 }
42053 _ACEOF
42054 rm -f conftest.$ac_objext
42055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42056   (eval $ac_compile) 2>conftest.er1
42057   ac_status=$?
42058   grep -v '^ *+' conftest.er1 >conftest.err
42059   rm -f conftest.er1
42060   cat conftest.err >&5
42061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062   (exit $ac_status); } &&
42063          { ac_try='test -z "$ac_c_werror_flag"
42064                          || test ! -s conftest.err'
42065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42066   (eval $ac_try) 2>&5
42067   ac_status=$?
42068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42069   (exit $ac_status); }; } &&
42070          { ac_try='test -s conftest.$ac_objext'
42071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42072   (eval $ac_try) 2>&5
42073   ac_status=$?
42074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42075   (exit $ac_status); }; }; then
42076   eval "ac_cv_var_opterr_declaration=no"
42077 else
42078   echo "$as_me: failed program was:" >&5
42079 sed 's/^/| /' conftest.$ac_ext >&5
42080
42081 eval "ac_cv_var_opterr_declaration=yes"
42082 fi
42083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42084
42085 fi
42086
42087
42088
42089
42090 echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
42091 echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
42092 if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
42093
42094 cat >>confdefs.h <<\_ACEOF
42095 #define HAVE_OPTERR_DECLARATION 1
42096 _ACEOF
42097
42098 fi
42099
42100
42101
42102 echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
42103 echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
42104 if test "${ac_cv_var_optopt_declaration+set}" = set; then
42105   echo $ECHO_N "(cached) $ECHO_C" >&6
42106 else
42107
42108 cat >conftest.$ac_ext <<_ACEOF
42109 /* confdefs.h.  */
42110 _ACEOF
42111 cat confdefs.h >>conftest.$ac_ext
42112 cat >>conftest.$ac_ext <<_ACEOF
42113 /* end confdefs.h.  */
42114 #include <stdlib.h>
42115 #ifdef HAVE_UNISTD_H
42116 #include <unistd.h>
42117 #endif
42118 extern struct { int foo; } optopt;
42119 int
42120 main ()
42121 {
42122 optopt.foo = 1;
42123   ;
42124   return 0;
42125 }
42126 _ACEOF
42127 rm -f conftest.$ac_objext
42128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42129   (eval $ac_compile) 2>conftest.er1
42130   ac_status=$?
42131   grep -v '^ *+' conftest.er1 >conftest.err
42132   rm -f conftest.er1
42133   cat conftest.err >&5
42134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42135   (exit $ac_status); } &&
42136          { ac_try='test -z "$ac_c_werror_flag"
42137                          || test ! -s conftest.err'
42138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42139   (eval $ac_try) 2>&5
42140   ac_status=$?
42141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42142   (exit $ac_status); }; } &&
42143          { ac_try='test -s conftest.$ac_objext'
42144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42145   (eval $ac_try) 2>&5
42146   ac_status=$?
42147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42148   (exit $ac_status); }; }; then
42149   eval "ac_cv_var_optopt_declaration=no"
42150 else
42151   echo "$as_me: failed program was:" >&5
42152 sed 's/^/| /' conftest.$ac_ext >&5
42153
42154 eval "ac_cv_var_optopt_declaration=yes"
42155 fi
42156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42157
42158 fi
42159
42160
42161
42162
42163 echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
42164 echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
42165 if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
42166
42167 cat >>confdefs.h <<\_ACEOF
42168 #define HAVE_OPTOPT_DECLARATION 1
42169 _ACEOF
42170
42171 fi
42172
42173
42174
42175
42176 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
42177 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
42178 if test "${ac_cv_var_environ_declaration+set}" = set; then
42179   echo $ECHO_N "(cached) $ECHO_C" >&6
42180 else
42181
42182 cat >conftest.$ac_ext <<_ACEOF
42183 /* confdefs.h.  */
42184 _ACEOF
42185 cat confdefs.h >>conftest.$ac_ext
42186 cat >>conftest.$ac_ext <<_ACEOF
42187 /* end confdefs.h.  */
42188 #include <stdlib.h>
42189 extern struct { int foo; } environ;
42190 int
42191 main ()
42192 {
42193 environ.foo = 1;
42194   ;
42195   return 0;
42196 }
42197 _ACEOF
42198 rm -f conftest.$ac_objext
42199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42200   (eval $ac_compile) 2>conftest.er1
42201   ac_status=$?
42202   grep -v '^ *+' conftest.er1 >conftest.err
42203   rm -f conftest.er1
42204   cat conftest.err >&5
42205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206   (exit $ac_status); } &&
42207          { ac_try='test -z "$ac_c_werror_flag"
42208                          || test ! -s conftest.err'
42209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42210   (eval $ac_try) 2>&5
42211   ac_status=$?
42212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42213   (exit $ac_status); }; } &&
42214          { ac_try='test -s conftest.$ac_objext'
42215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42216   (eval $ac_try) 2>&5
42217   ac_status=$?
42218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42219   (exit $ac_status); }; }; then
42220   eval "ac_cv_var_environ_declaration=no"
42221 else
42222   echo "$as_me: failed program was:" >&5
42223 sed 's/^/| /' conftest.$ac_ext >&5
42224
42225 eval "ac_cv_var_environ_declaration=yes"
42226 fi
42227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42228
42229 fi
42230
42231
42232
42233
42234 echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
42235 echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
42236 if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
42237
42238 cat >>confdefs.h <<\_ACEOF
42239 #define HAVE_ENVIRON_DECLARATION 1
42240 _ACEOF
42241
42242 fi
42243
42244
42245
42246
42247
42248
42249 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42250 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42251 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
42252   echo $ECHO_N "(cached) $ECHO_C" >&6
42253 else
42254
42255 cat >conftest.$ac_ext <<_ACEOF
42256 /* confdefs.h.  */
42257 _ACEOF
42258 cat confdefs.h >>conftest.$ac_ext
42259 cat >>conftest.$ac_ext <<_ACEOF
42260 /* end confdefs.h.  */
42261 #include <time.h>
42262 int
42263 main ()
42264 {
42265 struct tm x; x.tm_gmtoff;
42266   ;
42267   return 0;
42268 }
42269 _ACEOF
42270 rm -f conftest.$ac_objext
42271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42272   (eval $ac_compile) 2>conftest.er1
42273   ac_status=$?
42274   grep -v '^ *+' conftest.er1 >conftest.err
42275   rm -f conftest.er1
42276   cat conftest.err >&5
42277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42278   (exit $ac_status); } &&
42279          { ac_try='test -z "$ac_c_werror_flag"
42280                          || test ! -s conftest.err'
42281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42282   (eval $ac_try) 2>&5
42283   ac_status=$?
42284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285   (exit $ac_status); }; } &&
42286          { ac_try='test -s conftest.$ac_objext'
42287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42288   (eval $ac_try) 2>&5
42289   ac_status=$?
42290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42291   (exit $ac_status); }; }; then
42292   ac_cv_type_struct_tm_tm_gmtoff=yes
42293 else
42294   echo "$as_me: failed program was:" >&5
42295 sed 's/^/| /' conftest.$ac_ext >&5
42296
42297 ac_cv_type_struct_tm_tm_gmtoff=no
42298 fi
42299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42300 fi
42301 echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
42302 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
42303 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
42304
42305
42306 cat >>confdefs.h <<\_ACEOF
42307 #define HAVE_STRUCT_TM_TM_GMTOFF 1
42308 _ACEOF
42309
42310
42311 fi
42312
42313
42314
42315
42316 echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
42317 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
42318 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
42319   echo $ECHO_N "(cached) $ECHO_C" >&6
42320 else
42321
42322 cat >conftest.$ac_ext <<_ACEOF
42323 /* confdefs.h.  */
42324 _ACEOF
42325 cat confdefs.h >>conftest.$ac_ext
42326 cat >>conftest.$ac_ext <<_ACEOF
42327 /* end confdefs.h.  */
42328 #include <time.h>
42329 int
42330 main ()
42331 {
42332 struct tm x; x.tm_zone;
42333   ;
42334   return 0;
42335 }
42336 _ACEOF
42337 rm -f conftest.$ac_objext
42338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42339   (eval $ac_compile) 2>conftest.er1
42340   ac_status=$?
42341   grep -v '^ *+' conftest.er1 >conftest.err
42342   rm -f conftest.er1
42343   cat conftest.err >&5
42344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42345   (exit $ac_status); } &&
42346          { ac_try='test -z "$ac_c_werror_flag"
42347                          || test ! -s conftest.err'
42348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42349   (eval $ac_try) 2>&5
42350   ac_status=$?
42351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352   (exit $ac_status); }; } &&
42353          { ac_try='test -s conftest.$ac_objext'
42354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42355   (eval $ac_try) 2>&5
42356   ac_status=$?
42357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358   (exit $ac_status); }; }; then
42359   ac_cv_type_struct_tm_tm_zone=yes
42360 else
42361   echo "$as_me: failed program was:" >&5
42362 sed 's/^/| /' conftest.$ac_ext >&5
42363
42364 ac_cv_type_struct_tm_tm_zone=no
42365 fi
42366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42367 fi
42368 echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
42369 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
42370 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
42371
42372
42373 cat >>confdefs.h <<\_ACEOF
42374 #define HAVE_STRUCT_TM_TM_ZONE 1
42375 _ACEOF
42376
42377
42378 fi
42379
42380
42381
42382
42383
42384 echo "$as_me:$LINENO: checking for timezone" >&5
42385 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
42386 if test "${ac_cv_var_timezone+set}" = set; then
42387   echo $ECHO_N "(cached) $ECHO_C" >&6
42388 else
42389
42390
42391         cat >conftest.$ac_ext <<_ACEOF
42392 /* confdefs.h.  */
42393 _ACEOF
42394 cat confdefs.h >>conftest.$ac_ext
42395 cat >>conftest.$ac_ext <<_ACEOF
42396 /* end confdefs.h.  */
42397 #include <time.h>
42398         void * foo() { return &timezone; }
42399 int
42400 main ()
42401 {
42402 foo()
42403   ;
42404   return 0;
42405 }
42406 _ACEOF
42407 rm -f conftest.$ac_objext conftest$ac_exeext
42408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42409   (eval $ac_link) 2>conftest.er1
42410   ac_status=$?
42411   grep -v '^ *+' conftest.er1 >conftest.err
42412   rm -f conftest.er1
42413   cat conftest.err >&5
42414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42415   (exit $ac_status); } &&
42416          { ac_try='test -z "$ac_c_werror_flag"
42417                          || test ! -s conftest.err'
42418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42419   (eval $ac_try) 2>&5
42420   ac_status=$?
42421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42422   (exit $ac_status); }; } &&
42423          { ac_try='test -s conftest$ac_exeext'
42424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42425   (eval $ac_try) 2>&5
42426   ac_status=$?
42427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42428   (exit $ac_status); }; }; then
42429   ac_cv_var_timezone=yes
42430 else
42431   echo "$as_me: failed program was:" >&5
42432 sed 's/^/| /' conftest.$ac_ext >&5
42433
42434 ac_cv_var_timezone=no
42435 fi
42436 rm -f conftest.err conftest.$ac_objext \
42437       conftest$ac_exeext conftest.$ac_ext
42438 if test "$ac_cv_var_timezone" != yes ; then
42439 cat >conftest.$ac_ext <<_ACEOF
42440 /* confdefs.h.  */
42441 _ACEOF
42442 cat confdefs.h >>conftest.$ac_ext
42443 cat >>conftest.$ac_ext <<_ACEOF
42444 /* end confdefs.h.  */
42445 extern int timezone;
42446 int foo() { return timezone; }
42447 int
42448 main ()
42449 {
42450 foo()
42451   ;
42452   return 0;
42453 }
42454 _ACEOF
42455 rm -f conftest.$ac_objext conftest$ac_exeext
42456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42457   (eval $ac_link) 2>conftest.er1
42458   ac_status=$?
42459   grep -v '^ *+' conftest.er1 >conftest.err
42460   rm -f conftest.er1
42461   cat conftest.err >&5
42462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42463   (exit $ac_status); } &&
42464          { ac_try='test -z "$ac_c_werror_flag"
42465                          || test ! -s conftest.err'
42466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42467   (eval $ac_try) 2>&5
42468   ac_status=$?
42469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42470   (exit $ac_status); }; } &&
42471          { ac_try='test -s conftest$ac_exeext'
42472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42473   (eval $ac_try) 2>&5
42474   ac_status=$?
42475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42476   (exit $ac_status); }; }; then
42477   ac_cv_var_timezone=yes
42478 else
42479   echo "$as_me: failed program was:" >&5
42480 sed 's/^/| /' conftest.$ac_ext >&5
42481
42482 ac_cv_var_timezone=no
42483 fi
42484 rm -f conftest.err conftest.$ac_objext \
42485       conftest$ac_exeext conftest.$ac_ext
42486 fi
42487
42488 fi
42489
42490 ac_foo=`eval echo \\$ac_cv_var_timezone`
42491 echo "$as_me:$LINENO: result: $ac_foo" >&5
42492 echo "${ECHO_T}$ac_foo" >&6
42493 if test "$ac_foo" = yes; then
42494
42495 cat >>confdefs.h <<_ACEOF
42496 #define HAVE_TIMEZONE 1
42497 _ACEOF
42498
42499
42500 echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
42501 echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
42502 if test "${ac_cv_var_timezone_declaration+set}" = set; then
42503   echo $ECHO_N "(cached) $ECHO_C" >&6
42504 else
42505
42506 cat >conftest.$ac_ext <<_ACEOF
42507 /* confdefs.h.  */
42508 _ACEOF
42509 cat confdefs.h >>conftest.$ac_ext
42510 cat >>conftest.$ac_ext <<_ACEOF
42511 /* end confdefs.h.  */
42512 #include <time.h>
42513 extern struct { int foo; } timezone;
42514 int
42515 main ()
42516 {
42517 timezone.foo = 1;
42518   ;
42519   return 0;
42520 }
42521 _ACEOF
42522 rm -f conftest.$ac_objext
42523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42524   (eval $ac_compile) 2>conftest.er1
42525   ac_status=$?
42526   grep -v '^ *+' conftest.er1 >conftest.err
42527   rm -f conftest.er1
42528   cat conftest.err >&5
42529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42530   (exit $ac_status); } &&
42531          { ac_try='test -z "$ac_c_werror_flag"
42532                          || test ! -s conftest.err'
42533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42534   (eval $ac_try) 2>&5
42535   ac_status=$?
42536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537   (exit $ac_status); }; } &&
42538          { ac_try='test -s conftest.$ac_objext'
42539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42540   (eval $ac_try) 2>&5
42541   ac_status=$?
42542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42543   (exit $ac_status); }; }; then
42544   eval "ac_cv_var_timezone_declaration=no"
42545 else
42546   echo "$as_me: failed program was:" >&5
42547 sed 's/^/| /' conftest.$ac_ext >&5
42548
42549 eval "ac_cv_var_timezone_declaration=yes"
42550 fi
42551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42552
42553 fi
42554
42555
42556
42557
42558 echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
42559 echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
42560 if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
42561
42562 cat >>confdefs.h <<\_ACEOF
42563 #define HAVE_TIMEZONE_DECLARATION 1
42564 _ACEOF
42565
42566 fi
42567
42568
42569 fi
42570
42571
42572 echo "$as_me:$LINENO: checking for altzone" >&5
42573 echo $ECHO_N "checking for altzone... $ECHO_C" >&6
42574 if test "${ac_cv_var_altzone+set}" = set; then
42575   echo $ECHO_N "(cached) $ECHO_C" >&6
42576 else
42577
42578
42579         cat >conftest.$ac_ext <<_ACEOF
42580 /* confdefs.h.  */
42581 _ACEOF
42582 cat confdefs.h >>conftest.$ac_ext
42583 cat >>conftest.$ac_ext <<_ACEOF
42584 /* end confdefs.h.  */
42585 #include <time.h>
42586         void * foo() { return &altzone; }
42587 int
42588 main ()
42589 {
42590 foo()
42591   ;
42592   return 0;
42593 }
42594 _ACEOF
42595 rm -f conftest.$ac_objext conftest$ac_exeext
42596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42597   (eval $ac_link) 2>conftest.er1
42598   ac_status=$?
42599   grep -v '^ *+' conftest.er1 >conftest.err
42600   rm -f conftest.er1
42601   cat conftest.err >&5
42602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42603   (exit $ac_status); } &&
42604          { ac_try='test -z "$ac_c_werror_flag"
42605                          || test ! -s conftest.err'
42606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42607   (eval $ac_try) 2>&5
42608   ac_status=$?
42609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42610   (exit $ac_status); }; } &&
42611          { ac_try='test -s conftest$ac_exeext'
42612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42613   (eval $ac_try) 2>&5
42614   ac_status=$?
42615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42616   (exit $ac_status); }; }; then
42617   ac_cv_var_altzone=yes
42618 else
42619   echo "$as_me: failed program was:" >&5
42620 sed 's/^/| /' conftest.$ac_ext >&5
42621
42622 ac_cv_var_altzone=no
42623 fi
42624 rm -f conftest.err conftest.$ac_objext \
42625       conftest$ac_exeext conftest.$ac_ext
42626 if test "$ac_cv_var_altzone" != yes ; then
42627 cat >conftest.$ac_ext <<_ACEOF
42628 /* confdefs.h.  */
42629 _ACEOF
42630 cat confdefs.h >>conftest.$ac_ext
42631 cat >>conftest.$ac_ext <<_ACEOF
42632 /* end confdefs.h.  */
42633 extern int altzone;
42634 int foo() { return altzone; }
42635 int
42636 main ()
42637 {
42638 foo()
42639   ;
42640   return 0;
42641 }
42642 _ACEOF
42643 rm -f conftest.$ac_objext conftest$ac_exeext
42644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42645   (eval $ac_link) 2>conftest.er1
42646   ac_status=$?
42647   grep -v '^ *+' conftest.er1 >conftest.err
42648   rm -f conftest.er1
42649   cat conftest.err >&5
42650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651   (exit $ac_status); } &&
42652          { ac_try='test -z "$ac_c_werror_flag"
42653                          || test ! -s conftest.err'
42654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42655   (eval $ac_try) 2>&5
42656   ac_status=$?
42657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42658   (exit $ac_status); }; } &&
42659          { ac_try='test -s conftest$ac_exeext'
42660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42661   (eval $ac_try) 2>&5
42662   ac_status=$?
42663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42664   (exit $ac_status); }; }; then
42665   ac_cv_var_altzone=yes
42666 else
42667   echo "$as_me: failed program was:" >&5
42668 sed 's/^/| /' conftest.$ac_ext >&5
42669
42670 ac_cv_var_altzone=no
42671 fi
42672 rm -f conftest.err conftest.$ac_objext \
42673       conftest$ac_exeext conftest.$ac_ext
42674 fi
42675
42676 fi
42677
42678 ac_foo=`eval echo \\$ac_cv_var_altzone`
42679 echo "$as_me:$LINENO: result: $ac_foo" >&5
42680 echo "${ECHO_T}$ac_foo" >&6
42681 if test "$ac_foo" = yes; then
42682
42683 cat >>confdefs.h <<_ACEOF
42684 #define HAVE_ALTZONE 1
42685 _ACEOF
42686
42687
42688 echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
42689 echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
42690 if test "${ac_cv_var_altzone_declaration+set}" = set; then
42691   echo $ECHO_N "(cached) $ECHO_C" >&6
42692 else
42693
42694 cat >conftest.$ac_ext <<_ACEOF
42695 /* confdefs.h.  */
42696 _ACEOF
42697 cat confdefs.h >>conftest.$ac_ext
42698 cat >>conftest.$ac_ext <<_ACEOF
42699 /* end confdefs.h.  */
42700 #include <time.h>
42701 extern struct { int foo; } altzone;
42702 int
42703 main ()
42704 {
42705 altzone.foo = 1;
42706   ;
42707   return 0;
42708 }
42709 _ACEOF
42710 rm -f conftest.$ac_objext
42711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42712   (eval $ac_compile) 2>conftest.er1
42713   ac_status=$?
42714   grep -v '^ *+' conftest.er1 >conftest.err
42715   rm -f conftest.er1
42716   cat conftest.err >&5
42717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718   (exit $ac_status); } &&
42719          { ac_try='test -z "$ac_c_werror_flag"
42720                          || test ! -s conftest.err'
42721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42722   (eval $ac_try) 2>&5
42723   ac_status=$?
42724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725   (exit $ac_status); }; } &&
42726          { ac_try='test -s conftest.$ac_objext'
42727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42728   (eval $ac_try) 2>&5
42729   ac_status=$?
42730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42731   (exit $ac_status); }; }; then
42732   eval "ac_cv_var_altzone_declaration=no"
42733 else
42734   echo "$as_me: failed program was:" >&5
42735 sed 's/^/| /' conftest.$ac_ext >&5
42736
42737 eval "ac_cv_var_altzone_declaration=yes"
42738 fi
42739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42740
42741 fi
42742
42743
42744
42745
42746 echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
42747 echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
42748 if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
42749
42750 cat >>confdefs.h <<\_ACEOF
42751 #define HAVE_ALTZONE_DECLARATION 1
42752 _ACEOF
42753
42754 fi
42755
42756
42757 fi
42758
42759
42760
42761
42762 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
42763 echo "$as_me:$LINENO: checking for sa_family_t" >&5
42764 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
42765 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
42766   echo $ECHO_N "(cached) $ECHO_C" >&6
42767 else
42768   cat >conftest.$ac_ext <<_ACEOF
42769 /* confdefs.h.  */
42770 _ACEOF
42771 cat confdefs.h >>conftest.$ac_ext
42772 cat >>conftest.$ac_ext <<_ACEOF
42773 /* end confdefs.h.  */
42774 #include <sys/types.h>
42775 #if STDC_HEADERS
42776 #include <stdlib.h>
42777 #include <stddef.h>
42778 #endif
42779 #include <sys/socket.h>
42780 int
42781 main ()
42782 {
42783 sa_family_t foo;
42784   ;
42785   return 0;
42786 }
42787 _ACEOF
42788 rm -f conftest.$ac_objext
42789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42790   (eval $ac_compile) 2>conftest.er1
42791   ac_status=$?
42792   grep -v '^ *+' conftest.er1 >conftest.err
42793   rm -f conftest.er1
42794   cat conftest.err >&5
42795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42796   (exit $ac_status); } &&
42797          { ac_try='test -z "$ac_c_werror_flag"
42798                          || test ! -s conftest.err'
42799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42800   (eval $ac_try) 2>&5
42801   ac_status=$?
42802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803   (exit $ac_status); }; } &&
42804          { ac_try='test -s conftest.$ac_objext'
42805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42806   (eval $ac_try) 2>&5
42807   ac_status=$?
42808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42809   (exit $ac_status); }; }; then
42810   eval "ac_cv_type_$cv=yes"
42811 else
42812   echo "$as_me: failed program was:" >&5
42813 sed 's/^/| /' conftest.$ac_ext >&5
42814
42815 eval "ac_cv_type_$cv=no"
42816 fi
42817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42818 fi
42819 ac_foo=`eval echo \\$ac_cv_type_$cv`
42820 echo "$as_me:$LINENO: result: $ac_foo" >&5
42821 echo "${ECHO_T}$ac_foo" >&6
42822 if test "$ac_foo" = yes; then
42823   ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42824 if false; then
42825         echo "$as_me:$LINENO: checking for sa_family_t" >&5
42826 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
42827 if test "${ac_cv_type_sa_family_t+set}" = set; then
42828   echo $ECHO_N "(cached) $ECHO_C" >&6
42829 else
42830   cat >conftest.$ac_ext <<_ACEOF
42831 /* confdefs.h.  */
42832 _ACEOF
42833 cat confdefs.h >>conftest.$ac_ext
42834 cat >>conftest.$ac_ext <<_ACEOF
42835 /* end confdefs.h.  */
42836 $ac_includes_default
42837 int
42838 main ()
42839 {
42840 if ((sa_family_t *) 0)
42841   return 0;
42842 if (sizeof (sa_family_t))
42843   return 0;
42844   ;
42845   return 0;
42846 }
42847 _ACEOF
42848 rm -f conftest.$ac_objext
42849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42850   (eval $ac_compile) 2>conftest.er1
42851   ac_status=$?
42852   grep -v '^ *+' conftest.er1 >conftest.err
42853   rm -f conftest.er1
42854   cat conftest.err >&5
42855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42856   (exit $ac_status); } &&
42857          { ac_try='test -z "$ac_c_werror_flag"
42858                          || test ! -s conftest.err'
42859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42860   (eval $ac_try) 2>&5
42861   ac_status=$?
42862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42863   (exit $ac_status); }; } &&
42864          { ac_try='test -s conftest.$ac_objext'
42865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42866   (eval $ac_try) 2>&5
42867   ac_status=$?
42868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869   (exit $ac_status); }; }; then
42870   ac_cv_type_sa_family_t=yes
42871 else
42872   echo "$as_me: failed program was:" >&5
42873 sed 's/^/| /' conftest.$ac_ext >&5
42874
42875 ac_cv_type_sa_family_t=no
42876 fi
42877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42878 fi
42879 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
42880 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
42881 if test $ac_cv_type_sa_family_t = yes; then
42882
42883 cat >>confdefs.h <<_ACEOF
42884 #define HAVE_SA_FAMILY_T 1
42885 _ACEOF
42886
42887
42888 fi
42889
42890 fi
42891
42892 cat >>confdefs.h <<_ACEOF
42893 #define $ac_tr_hdr 1
42894 _ACEOF
42895
42896 fi
42897
42898
42899
42900 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
42901 echo "$as_me:$LINENO: checking for socklen_t" >&5
42902 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
42903 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
42904   echo $ECHO_N "(cached) $ECHO_C" >&6
42905 else
42906   cat >conftest.$ac_ext <<_ACEOF
42907 /* confdefs.h.  */
42908 _ACEOF
42909 cat confdefs.h >>conftest.$ac_ext
42910 cat >>conftest.$ac_ext <<_ACEOF
42911 /* end confdefs.h.  */
42912 #include <sys/types.h>
42913 #if STDC_HEADERS
42914 #include <stdlib.h>
42915 #include <stddef.h>
42916 #endif
42917 #include <sys/socket.h>
42918 int
42919 main ()
42920 {
42921 socklen_t foo;
42922   ;
42923   return 0;
42924 }
42925 _ACEOF
42926 rm -f conftest.$ac_objext
42927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42928   (eval $ac_compile) 2>conftest.er1
42929   ac_status=$?
42930   grep -v '^ *+' conftest.er1 >conftest.err
42931   rm -f conftest.er1
42932   cat conftest.err >&5
42933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42934   (exit $ac_status); } &&
42935          { ac_try='test -z "$ac_c_werror_flag"
42936                          || test ! -s conftest.err'
42937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42938   (eval $ac_try) 2>&5
42939   ac_status=$?
42940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941   (exit $ac_status); }; } &&
42942          { ac_try='test -s conftest.$ac_objext'
42943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42944   (eval $ac_try) 2>&5
42945   ac_status=$?
42946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42947   (exit $ac_status); }; }; then
42948   eval "ac_cv_type_$cv=yes"
42949 else
42950   echo "$as_me: failed program was:" >&5
42951 sed 's/^/| /' conftest.$ac_ext >&5
42952
42953 eval "ac_cv_type_$cv=no"
42954 fi
42955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42956 fi
42957 ac_foo=`eval echo \\$ac_cv_type_$cv`
42958 echo "$as_me:$LINENO: result: $ac_foo" >&5
42959 echo "${ECHO_T}$ac_foo" >&6
42960 if test "$ac_foo" = yes; then
42961   ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42962 if false; then
42963         echo "$as_me:$LINENO: checking for socklen_t" >&5
42964 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
42965 if test "${ac_cv_type_socklen_t+set}" = set; then
42966   echo $ECHO_N "(cached) $ECHO_C" >&6
42967 else
42968   cat >conftest.$ac_ext <<_ACEOF
42969 /* confdefs.h.  */
42970 _ACEOF
42971 cat confdefs.h >>conftest.$ac_ext
42972 cat >>conftest.$ac_ext <<_ACEOF
42973 /* end confdefs.h.  */
42974 $ac_includes_default
42975 int
42976 main ()
42977 {
42978 if ((socklen_t *) 0)
42979   return 0;
42980 if (sizeof (socklen_t))
42981   return 0;
42982   ;
42983   return 0;
42984 }
42985 _ACEOF
42986 rm -f conftest.$ac_objext
42987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42988   (eval $ac_compile) 2>conftest.er1
42989   ac_status=$?
42990   grep -v '^ *+' conftest.er1 >conftest.err
42991   rm -f conftest.er1
42992   cat conftest.err >&5
42993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42994   (exit $ac_status); } &&
42995          { ac_try='test -z "$ac_c_werror_flag"
42996                          || test ! -s conftest.err'
42997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42998   (eval $ac_try) 2>&5
42999   ac_status=$?
43000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43001   (exit $ac_status); }; } &&
43002          { ac_try='test -s conftest.$ac_objext'
43003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43004   (eval $ac_try) 2>&5
43005   ac_status=$?
43006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007   (exit $ac_status); }; }; then
43008   ac_cv_type_socklen_t=yes
43009 else
43010   echo "$as_me: failed program was:" >&5
43011 sed 's/^/| /' conftest.$ac_ext >&5
43012
43013 ac_cv_type_socklen_t=no
43014 fi
43015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43016 fi
43017 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
43018 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
43019 if test $ac_cv_type_socklen_t = yes; then
43020
43021 cat >>confdefs.h <<_ACEOF
43022 #define HAVE_SOCKLEN_T 1
43023 _ACEOF
43024
43025
43026 fi
43027
43028 fi
43029
43030 cat >>confdefs.h <<_ACEOF
43031 #define $ac_tr_hdr 1
43032 _ACEOF
43033
43034 fi
43035
43036
43037
43038 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
43039 echo "$as_me:$LINENO: checking for struct sockaddr" >&5
43040 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
43041 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43042   echo $ECHO_N "(cached) $ECHO_C" >&6
43043 else
43044   cat >conftest.$ac_ext <<_ACEOF
43045 /* confdefs.h.  */
43046 _ACEOF
43047 cat confdefs.h >>conftest.$ac_ext
43048 cat >>conftest.$ac_ext <<_ACEOF
43049 /* end confdefs.h.  */
43050 #include <sys/types.h>
43051 #if STDC_HEADERS
43052 #include <stdlib.h>
43053 #include <stddef.h>
43054 #endif
43055 #include <sys/socket.h>
43056 int
43057 main ()
43058 {
43059 struct sockaddr foo;
43060   ;
43061   return 0;
43062 }
43063 _ACEOF
43064 rm -f conftest.$ac_objext
43065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43066   (eval $ac_compile) 2>conftest.er1
43067   ac_status=$?
43068   grep -v '^ *+' conftest.er1 >conftest.err
43069   rm -f conftest.er1
43070   cat conftest.err >&5
43071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43072   (exit $ac_status); } &&
43073          { ac_try='test -z "$ac_c_werror_flag"
43074                          || test ! -s conftest.err'
43075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43076   (eval $ac_try) 2>&5
43077   ac_status=$?
43078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43079   (exit $ac_status); }; } &&
43080          { ac_try='test -s conftest.$ac_objext'
43081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43082   (eval $ac_try) 2>&5
43083   ac_status=$?
43084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43085   (exit $ac_status); }; }; then
43086   eval "ac_cv_type_$cv=yes"
43087 else
43088   echo "$as_me: failed program was:" >&5
43089 sed 's/^/| /' conftest.$ac_ext >&5
43090
43091 eval "ac_cv_type_$cv=no"
43092 fi
43093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43094 fi
43095 ac_foo=`eval echo \\$ac_cv_type_$cv`
43096 echo "$as_me:$LINENO: result: $ac_foo" >&5
43097 echo "${ECHO_T}$ac_foo" >&6
43098 if test "$ac_foo" = yes; then
43099   ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43100 if false; then
43101         echo "$as_me:$LINENO: checking for struct sockaddr" >&5
43102 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
43103 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
43104   echo $ECHO_N "(cached) $ECHO_C" >&6
43105 else
43106   cat >conftest.$ac_ext <<_ACEOF
43107 /* confdefs.h.  */
43108 _ACEOF
43109 cat confdefs.h >>conftest.$ac_ext
43110 cat >>conftest.$ac_ext <<_ACEOF
43111 /* end confdefs.h.  */
43112 $ac_includes_default
43113 int
43114 main ()
43115 {
43116 if ((struct sockaddr *) 0)
43117   return 0;
43118 if (sizeof (struct sockaddr))
43119   return 0;
43120   ;
43121   return 0;
43122 }
43123 _ACEOF
43124 rm -f conftest.$ac_objext
43125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43126   (eval $ac_compile) 2>conftest.er1
43127   ac_status=$?
43128   grep -v '^ *+' conftest.er1 >conftest.err
43129   rm -f conftest.er1
43130   cat conftest.err >&5
43131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132   (exit $ac_status); } &&
43133          { ac_try='test -z "$ac_c_werror_flag"
43134                          || test ! -s conftest.err'
43135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43136   (eval $ac_try) 2>&5
43137   ac_status=$?
43138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43139   (exit $ac_status); }; } &&
43140          { ac_try='test -s conftest.$ac_objext'
43141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43142   (eval $ac_try) 2>&5
43143   ac_status=$?
43144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43145   (exit $ac_status); }; }; then
43146   ac_cv_type_struct_sockaddr=yes
43147 else
43148   echo "$as_me: failed program was:" >&5
43149 sed 's/^/| /' conftest.$ac_ext >&5
43150
43151 ac_cv_type_struct_sockaddr=no
43152 fi
43153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43154 fi
43155 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
43156 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
43157 if test $ac_cv_type_struct_sockaddr = yes; then
43158
43159 cat >>confdefs.h <<_ACEOF
43160 #define HAVE_STRUCT_SOCKADDR 1
43161 _ACEOF
43162
43163
43164 fi
43165
43166 fi
43167
43168 cat >>confdefs.h <<_ACEOF
43169 #define $ac_tr_hdr 1
43170 _ACEOF
43171
43172 fi
43173
43174
43175
43176 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
43177 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
43178 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
43179 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43180   echo $ECHO_N "(cached) $ECHO_C" >&6
43181 else
43182   cat >conftest.$ac_ext <<_ACEOF
43183 /* confdefs.h.  */
43184 _ACEOF
43185 cat confdefs.h >>conftest.$ac_ext
43186 cat >>conftest.$ac_ext <<_ACEOF
43187 /* end confdefs.h.  */
43188 #include <sys/types.h>
43189 #if STDC_HEADERS
43190 #include <stdlib.h>
43191 #include <stddef.h>
43192 #endif
43193 #include <sys/socket.h>
43194 int
43195 main ()
43196 {
43197 struct sockaddr_storage foo;
43198   ;
43199   return 0;
43200 }
43201 _ACEOF
43202 rm -f conftest.$ac_objext
43203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43204   (eval $ac_compile) 2>conftest.er1
43205   ac_status=$?
43206   grep -v '^ *+' conftest.er1 >conftest.err
43207   rm -f conftest.er1
43208   cat conftest.err >&5
43209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43210   (exit $ac_status); } &&
43211          { ac_try='test -z "$ac_c_werror_flag"
43212                          || test ! -s conftest.err'
43213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43214   (eval $ac_try) 2>&5
43215   ac_status=$?
43216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43217   (exit $ac_status); }; } &&
43218          { ac_try='test -s conftest.$ac_objext'
43219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43220   (eval $ac_try) 2>&5
43221   ac_status=$?
43222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43223   (exit $ac_status); }; }; then
43224   eval "ac_cv_type_$cv=yes"
43225 else
43226   echo "$as_me: failed program was:" >&5
43227 sed 's/^/| /' conftest.$ac_ext >&5
43228
43229 eval "ac_cv_type_$cv=no"
43230 fi
43231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43232 fi
43233 ac_foo=`eval echo \\$ac_cv_type_$cv`
43234 echo "$as_me:$LINENO: result: $ac_foo" >&5
43235 echo "${ECHO_T}$ac_foo" >&6
43236 if test "$ac_foo" = yes; then
43237   ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43238 if false; then
43239         echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
43240 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
43241 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
43242   echo $ECHO_N "(cached) $ECHO_C" >&6
43243 else
43244   cat >conftest.$ac_ext <<_ACEOF
43245 /* confdefs.h.  */
43246 _ACEOF
43247 cat confdefs.h >>conftest.$ac_ext
43248 cat >>conftest.$ac_ext <<_ACEOF
43249 /* end confdefs.h.  */
43250 $ac_includes_default
43251 int
43252 main ()
43253 {
43254 if ((struct sockaddr_storage *) 0)
43255   return 0;
43256 if (sizeof (struct sockaddr_storage))
43257   return 0;
43258   ;
43259   return 0;
43260 }
43261 _ACEOF
43262 rm -f conftest.$ac_objext
43263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43264   (eval $ac_compile) 2>conftest.er1
43265   ac_status=$?
43266   grep -v '^ *+' conftest.er1 >conftest.err
43267   rm -f conftest.er1
43268   cat conftest.err >&5
43269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43270   (exit $ac_status); } &&
43271          { ac_try='test -z "$ac_c_werror_flag"
43272                          || test ! -s conftest.err'
43273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43274   (eval $ac_try) 2>&5
43275   ac_status=$?
43276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43277   (exit $ac_status); }; } &&
43278          { ac_try='test -s conftest.$ac_objext'
43279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43280   (eval $ac_try) 2>&5
43281   ac_status=$?
43282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283   (exit $ac_status); }; }; then
43284   ac_cv_type_struct_sockaddr_storage=yes
43285 else
43286   echo "$as_me: failed program was:" >&5
43287 sed 's/^/| /' conftest.$ac_ext >&5
43288
43289 ac_cv_type_struct_sockaddr_storage=no
43290 fi
43291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43292 fi
43293 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
43294 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
43295 if test $ac_cv_type_struct_sockaddr_storage = yes; then
43296
43297 cat >>confdefs.h <<_ACEOF
43298 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
43299 _ACEOF
43300
43301
43302 fi
43303
43304 fi
43305
43306 cat >>confdefs.h <<_ACEOF
43307 #define $ac_tr_hdr 1
43308 _ACEOF
43309
43310 fi
43311
43312
43313
43314 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
43315 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
43316 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
43317 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43318   echo $ECHO_N "(cached) $ECHO_C" >&6
43319 else
43320   cat >conftest.$ac_ext <<_ACEOF
43321 /* confdefs.h.  */
43322 _ACEOF
43323 cat confdefs.h >>conftest.$ac_ext
43324 cat >>conftest.$ac_ext <<_ACEOF
43325 /* end confdefs.h.  */
43326 #include <sys/types.h>
43327 #if STDC_HEADERS
43328 #include <stdlib.h>
43329 #include <stddef.h>
43330 #endif
43331 #include <netdb.h>
43332 int
43333 main ()
43334 {
43335 struct addrinfo foo;
43336   ;
43337   return 0;
43338 }
43339 _ACEOF
43340 rm -f conftest.$ac_objext
43341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43342   (eval $ac_compile) 2>conftest.er1
43343   ac_status=$?
43344   grep -v '^ *+' conftest.er1 >conftest.err
43345   rm -f conftest.er1
43346   cat conftest.err >&5
43347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348   (exit $ac_status); } &&
43349          { ac_try='test -z "$ac_c_werror_flag"
43350                          || test ! -s conftest.err'
43351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43352   (eval $ac_try) 2>&5
43353   ac_status=$?
43354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43355   (exit $ac_status); }; } &&
43356          { ac_try='test -s conftest.$ac_objext'
43357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43358   (eval $ac_try) 2>&5
43359   ac_status=$?
43360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43361   (exit $ac_status); }; }; then
43362   eval "ac_cv_type_$cv=yes"
43363 else
43364   echo "$as_me: failed program was:" >&5
43365 sed 's/^/| /' conftest.$ac_ext >&5
43366
43367 eval "ac_cv_type_$cv=no"
43368 fi
43369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43370 fi
43371 ac_foo=`eval echo \\$ac_cv_type_$cv`
43372 echo "$as_me:$LINENO: result: $ac_foo" >&5
43373 echo "${ECHO_T}$ac_foo" >&6
43374 if test "$ac_foo" = yes; then
43375   ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43376 if false; then
43377         echo "$as_me:$LINENO: checking for struct addrinfo" >&5
43378 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
43379 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
43380   echo $ECHO_N "(cached) $ECHO_C" >&6
43381 else
43382   cat >conftest.$ac_ext <<_ACEOF
43383 /* confdefs.h.  */
43384 _ACEOF
43385 cat confdefs.h >>conftest.$ac_ext
43386 cat >>conftest.$ac_ext <<_ACEOF
43387 /* end confdefs.h.  */
43388 $ac_includes_default
43389 int
43390 main ()
43391 {
43392 if ((struct addrinfo *) 0)
43393   return 0;
43394 if (sizeof (struct addrinfo))
43395   return 0;
43396   ;
43397   return 0;
43398 }
43399 _ACEOF
43400 rm -f conftest.$ac_objext
43401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43402   (eval $ac_compile) 2>conftest.er1
43403   ac_status=$?
43404   grep -v '^ *+' conftest.er1 >conftest.err
43405   rm -f conftest.er1
43406   cat conftest.err >&5
43407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43408   (exit $ac_status); } &&
43409          { ac_try='test -z "$ac_c_werror_flag"
43410                          || test ! -s conftest.err'
43411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43412   (eval $ac_try) 2>&5
43413   ac_status=$?
43414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43415   (exit $ac_status); }; } &&
43416          { ac_try='test -s conftest.$ac_objext'
43417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43418   (eval $ac_try) 2>&5
43419   ac_status=$?
43420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43421   (exit $ac_status); }; }; then
43422   ac_cv_type_struct_addrinfo=yes
43423 else
43424   echo "$as_me: failed program was:" >&5
43425 sed 's/^/| /' conftest.$ac_ext >&5
43426
43427 ac_cv_type_struct_addrinfo=no
43428 fi
43429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43430 fi
43431 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
43432 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
43433 if test $ac_cv_type_struct_addrinfo = yes; then
43434
43435 cat >>confdefs.h <<_ACEOF
43436 #define HAVE_STRUCT_ADDRINFO 1
43437 _ACEOF
43438
43439
43440 fi
43441
43442 fi
43443
43444 cat >>confdefs.h <<_ACEOF
43445 #define $ac_tr_hdr 1
43446 _ACEOF
43447
43448 fi
43449
43450
43451
43452 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
43453 echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
43454 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
43455 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43456   echo $ECHO_N "(cached) $ECHO_C" >&6
43457 else
43458   cat >conftest.$ac_ext <<_ACEOF
43459 /* confdefs.h.  */
43460 _ACEOF
43461 cat confdefs.h >>conftest.$ac_ext
43462 cat >>conftest.$ac_ext <<_ACEOF
43463 /* end confdefs.h.  */
43464 #include <sys/types.h>
43465 #if STDC_HEADERS
43466 #include <stdlib.h>
43467 #include <stddef.h>
43468 #endif
43469 #include <ifaddrs.h>
43470 int
43471 main ()
43472 {
43473 struct ifaddrs foo;
43474   ;
43475   return 0;
43476 }
43477 _ACEOF
43478 rm -f conftest.$ac_objext
43479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43480   (eval $ac_compile) 2>conftest.er1
43481   ac_status=$?
43482   grep -v '^ *+' conftest.er1 >conftest.err
43483   rm -f conftest.er1
43484   cat conftest.err >&5
43485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486   (exit $ac_status); } &&
43487          { ac_try='test -z "$ac_c_werror_flag"
43488                          || test ! -s conftest.err'
43489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43490   (eval $ac_try) 2>&5
43491   ac_status=$?
43492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493   (exit $ac_status); }; } &&
43494          { ac_try='test -s conftest.$ac_objext'
43495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43496   (eval $ac_try) 2>&5
43497   ac_status=$?
43498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43499   (exit $ac_status); }; }; then
43500   eval "ac_cv_type_$cv=yes"
43501 else
43502   echo "$as_me: failed program was:" >&5
43503 sed 's/^/| /' conftest.$ac_ext >&5
43504
43505 eval "ac_cv_type_$cv=no"
43506 fi
43507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43508 fi
43509 ac_foo=`eval echo \\$ac_cv_type_$cv`
43510 echo "$as_me:$LINENO: result: $ac_foo" >&5
43511 echo "${ECHO_T}$ac_foo" >&6
43512 if test "$ac_foo" = yes; then
43513   ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43514 if false; then
43515         echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
43516 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
43517 if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
43518   echo $ECHO_N "(cached) $ECHO_C" >&6
43519 else
43520   cat >conftest.$ac_ext <<_ACEOF
43521 /* confdefs.h.  */
43522 _ACEOF
43523 cat confdefs.h >>conftest.$ac_ext
43524 cat >>conftest.$ac_ext <<_ACEOF
43525 /* end confdefs.h.  */
43526 $ac_includes_default
43527 int
43528 main ()
43529 {
43530 if ((struct ifaddrs *) 0)
43531   return 0;
43532 if (sizeof (struct ifaddrs))
43533   return 0;
43534   ;
43535   return 0;
43536 }
43537 _ACEOF
43538 rm -f conftest.$ac_objext
43539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43540   (eval $ac_compile) 2>conftest.er1
43541   ac_status=$?
43542   grep -v '^ *+' conftest.er1 >conftest.err
43543   rm -f conftest.er1
43544   cat conftest.err >&5
43545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43546   (exit $ac_status); } &&
43547          { ac_try='test -z "$ac_c_werror_flag"
43548                          || test ! -s conftest.err'
43549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43550   (eval $ac_try) 2>&5
43551   ac_status=$?
43552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553   (exit $ac_status); }; } &&
43554          { ac_try='test -s conftest.$ac_objext'
43555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43556   (eval $ac_try) 2>&5
43557   ac_status=$?
43558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559   (exit $ac_status); }; }; then
43560   ac_cv_type_struct_ifaddrs=yes
43561 else
43562   echo "$as_me: failed program was:" >&5
43563 sed 's/^/| /' conftest.$ac_ext >&5
43564
43565 ac_cv_type_struct_ifaddrs=no
43566 fi
43567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43568 fi
43569 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
43570 echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
43571 if test $ac_cv_type_struct_ifaddrs = yes; then
43572
43573 cat >>confdefs.h <<_ACEOF
43574 #define HAVE_STRUCT_IFADDRS 1
43575 _ACEOF
43576
43577
43578 fi
43579
43580 fi
43581
43582 cat >>confdefs.h <<_ACEOF
43583 #define $ac_tr_hdr 1
43584 _ACEOF
43585
43586 fi
43587
43588
43589
43590 cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
43591 echo "$as_me:$LINENO: checking for struct iovec" >&5
43592 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
43593 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43594   echo $ECHO_N "(cached) $ECHO_C" >&6
43595 else
43596   cat >conftest.$ac_ext <<_ACEOF
43597 /* confdefs.h.  */
43598 _ACEOF
43599 cat confdefs.h >>conftest.$ac_ext
43600 cat >>conftest.$ac_ext <<_ACEOF
43601 /* end confdefs.h.  */
43602 #include <sys/types.h>
43603 #if STDC_HEADERS
43604 #include <stdlib.h>
43605 #include <stddef.h>
43606 #endif
43607
43608 #include <sys/types.h>
43609 #include <sys/uio.h>
43610
43611 int
43612 main ()
43613 {
43614 struct iovec foo;
43615   ;
43616   return 0;
43617 }
43618 _ACEOF
43619 rm -f conftest.$ac_objext
43620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43621   (eval $ac_compile) 2>conftest.er1
43622   ac_status=$?
43623   grep -v '^ *+' conftest.er1 >conftest.err
43624   rm -f conftest.er1
43625   cat conftest.err >&5
43626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43627   (exit $ac_status); } &&
43628          { ac_try='test -z "$ac_c_werror_flag"
43629                          || test ! -s conftest.err'
43630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43631   (eval $ac_try) 2>&5
43632   ac_status=$?
43633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43634   (exit $ac_status); }; } &&
43635          { ac_try='test -s conftest.$ac_objext'
43636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43637   (eval $ac_try) 2>&5
43638   ac_status=$?
43639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43640   (exit $ac_status); }; }; then
43641   eval "ac_cv_type_$cv=yes"
43642 else
43643   echo "$as_me: failed program was:" >&5
43644 sed 's/^/| /' conftest.$ac_ext >&5
43645
43646 eval "ac_cv_type_$cv=no"
43647 fi
43648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43649 fi
43650 ac_foo=`eval echo \\$ac_cv_type_$cv`
43651 echo "$as_me:$LINENO: result: $ac_foo" >&5
43652 echo "${ECHO_T}$ac_foo" >&6
43653 if test "$ac_foo" = yes; then
43654   ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43655 if false; then
43656         echo "$as_me:$LINENO: checking for struct iovec" >&5
43657 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
43658 if test "${ac_cv_type_struct_iovec+set}" = set; then
43659   echo $ECHO_N "(cached) $ECHO_C" >&6
43660 else
43661   cat >conftest.$ac_ext <<_ACEOF
43662 /* confdefs.h.  */
43663 _ACEOF
43664 cat confdefs.h >>conftest.$ac_ext
43665 cat >>conftest.$ac_ext <<_ACEOF
43666 /* end confdefs.h.  */
43667 $ac_includes_default
43668 int
43669 main ()
43670 {
43671 if ((struct iovec *) 0)
43672   return 0;
43673 if (sizeof (struct iovec))
43674   return 0;
43675   ;
43676   return 0;
43677 }
43678 _ACEOF
43679 rm -f conftest.$ac_objext
43680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43681   (eval $ac_compile) 2>conftest.er1
43682   ac_status=$?
43683   grep -v '^ *+' conftest.er1 >conftest.err
43684   rm -f conftest.er1
43685   cat conftest.err >&5
43686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687   (exit $ac_status); } &&
43688          { ac_try='test -z "$ac_c_werror_flag"
43689                          || test ! -s conftest.err'
43690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43691   (eval $ac_try) 2>&5
43692   ac_status=$?
43693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43694   (exit $ac_status); }; } &&
43695          { ac_try='test -s conftest.$ac_objext'
43696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43697   (eval $ac_try) 2>&5
43698   ac_status=$?
43699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700   (exit $ac_status); }; }; then
43701   ac_cv_type_struct_iovec=yes
43702 else
43703   echo "$as_me: failed program was:" >&5
43704 sed 's/^/| /' conftest.$ac_ext >&5
43705
43706 ac_cv_type_struct_iovec=no
43707 fi
43708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43709 fi
43710 echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
43711 echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
43712 if test $ac_cv_type_struct_iovec = yes; then
43713
43714 cat >>confdefs.h <<_ACEOF
43715 #define HAVE_STRUCT_IOVEC 1
43716 _ACEOF
43717
43718
43719 fi
43720
43721 fi
43722
43723 cat >>confdefs.h <<_ACEOF
43724 #define $ac_tr_hdr 1
43725 _ACEOF
43726
43727 fi
43728
43729
43730
43731 cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
43732 echo "$as_me:$LINENO: checking for struct msghdr" >&5
43733 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
43734 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43735   echo $ECHO_N "(cached) $ECHO_C" >&6
43736 else
43737   cat >conftest.$ac_ext <<_ACEOF
43738 /* confdefs.h.  */
43739 _ACEOF
43740 cat confdefs.h >>conftest.$ac_ext
43741 cat >>conftest.$ac_ext <<_ACEOF
43742 /* end confdefs.h.  */
43743 #include <sys/types.h>
43744 #if STDC_HEADERS
43745 #include <stdlib.h>
43746 #include <stddef.h>
43747 #endif
43748
43749 #include <sys/types.h>
43750 #include <sys/socket.h>
43751
43752 int
43753 main ()
43754 {
43755 struct msghdr foo;
43756   ;
43757   return 0;
43758 }
43759 _ACEOF
43760 rm -f conftest.$ac_objext
43761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43762   (eval $ac_compile) 2>conftest.er1
43763   ac_status=$?
43764   grep -v '^ *+' conftest.er1 >conftest.err
43765   rm -f conftest.er1
43766   cat conftest.err >&5
43767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43768   (exit $ac_status); } &&
43769          { ac_try='test -z "$ac_c_werror_flag"
43770                          || test ! -s conftest.err'
43771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43772   (eval $ac_try) 2>&5
43773   ac_status=$?
43774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43775   (exit $ac_status); }; } &&
43776          { ac_try='test -s conftest.$ac_objext'
43777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43778   (eval $ac_try) 2>&5
43779   ac_status=$?
43780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43781   (exit $ac_status); }; }; then
43782   eval "ac_cv_type_$cv=yes"
43783 else
43784   echo "$as_me: failed program was:" >&5
43785 sed 's/^/| /' conftest.$ac_ext >&5
43786
43787 eval "ac_cv_type_$cv=no"
43788 fi
43789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43790 fi
43791 ac_foo=`eval echo \\$ac_cv_type_$cv`
43792 echo "$as_me:$LINENO: result: $ac_foo" >&5
43793 echo "${ECHO_T}$ac_foo" >&6
43794 if test "$ac_foo" = yes; then
43795   ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43796 if false; then
43797         echo "$as_me:$LINENO: checking for struct msghdr" >&5
43798 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
43799 if test "${ac_cv_type_struct_msghdr+set}" = set; then
43800   echo $ECHO_N "(cached) $ECHO_C" >&6
43801 else
43802   cat >conftest.$ac_ext <<_ACEOF
43803 /* confdefs.h.  */
43804 _ACEOF
43805 cat confdefs.h >>conftest.$ac_ext
43806 cat >>conftest.$ac_ext <<_ACEOF
43807 /* end confdefs.h.  */
43808 $ac_includes_default
43809 int
43810 main ()
43811 {
43812 if ((struct msghdr *) 0)
43813   return 0;
43814 if (sizeof (struct msghdr))
43815   return 0;
43816   ;
43817   return 0;
43818 }
43819 _ACEOF
43820 rm -f conftest.$ac_objext
43821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43822   (eval $ac_compile) 2>conftest.er1
43823   ac_status=$?
43824   grep -v '^ *+' conftest.er1 >conftest.err
43825   rm -f conftest.er1
43826   cat conftest.err >&5
43827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828   (exit $ac_status); } &&
43829          { ac_try='test -z "$ac_c_werror_flag"
43830                          || test ! -s conftest.err'
43831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43832   (eval $ac_try) 2>&5
43833   ac_status=$?
43834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43835   (exit $ac_status); }; } &&
43836          { ac_try='test -s conftest.$ac_objext'
43837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43838   (eval $ac_try) 2>&5
43839   ac_status=$?
43840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43841   (exit $ac_status); }; }; then
43842   ac_cv_type_struct_msghdr=yes
43843 else
43844   echo "$as_me: failed program was:" >&5
43845 sed 's/^/| /' conftest.$ac_ext >&5
43846
43847 ac_cv_type_struct_msghdr=no
43848 fi
43849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43850 fi
43851 echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
43852 echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
43853 if test $ac_cv_type_struct_msghdr = yes; then
43854
43855 cat >>confdefs.h <<_ACEOF
43856 #define HAVE_STRUCT_MSGHDR 1
43857 _ACEOF
43858
43859
43860 fi
43861
43862 fi
43863
43864 cat >>confdefs.h <<_ACEOF
43865 #define $ac_tr_hdr 1
43866 _ACEOF
43867
43868 fi
43869
43870
43871
43872
43873 echo "$as_me:$LINENO: checking for struct winsize" >&5
43874 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
43875 if test "${ac_cv_struct_winsize+set}" = set; then
43876   echo $ECHO_N "(cached) $ECHO_C" >&6
43877 else
43878
43879 ac_cv_struct_winsize=no
43880 for i in sys/termios.h sys/ioctl.h; do
43881 cat >conftest.$ac_ext <<_ACEOF
43882 /* confdefs.h.  */
43883 _ACEOF
43884 cat confdefs.h >>conftest.$ac_ext
43885 cat >>conftest.$ac_ext <<_ACEOF
43886 /* end confdefs.h.  */
43887 #include <$i>
43888
43889 _ACEOF
43890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43891   $EGREP "struct[       ]*winsize" >/dev/null 2>&1; then
43892   ac_cv_struct_winsize=yes; break
43893 fi
43894 rm -f conftest*
43895 done
43896
43897 fi
43898
43899 if test "$ac_cv_struct_winsize" = "yes"; then
43900
43901 cat >>confdefs.h <<\_ACEOF
43902 #define HAVE_STRUCT_WINSIZE 1
43903 _ACEOF
43904
43905 fi
43906 echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
43907 echo "${ECHO_T}$ac_cv_struct_winsize" >&6
43908 cat >conftest.$ac_ext <<_ACEOF
43909 /* confdefs.h.  */
43910 _ACEOF
43911 cat confdefs.h >>conftest.$ac_ext
43912 cat >>conftest.$ac_ext <<_ACEOF
43913 /* end confdefs.h.  */
43914 #include <termios.h>
43915
43916 _ACEOF
43917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43918   $EGREP "ws_xpixel" >/dev/null 2>&1; then
43919
43920 cat >>confdefs.h <<\_ACEOF
43921 #define HAVE_WS_XPIXEL 1
43922 _ACEOF
43923
43924 fi
43925 rm -f conftest*
43926
43927 cat >conftest.$ac_ext <<_ACEOF
43928 /* confdefs.h.  */
43929 _ACEOF
43930 cat confdefs.h >>conftest.$ac_ext
43931 cat >>conftest.$ac_ext <<_ACEOF
43932 /* end confdefs.h.  */
43933 #include <termios.h>
43934
43935 _ACEOF
43936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43937   $EGREP "ws_ypixel" >/dev/null 2>&1; then
43938
43939 cat >>confdefs.h <<\_ACEOF
43940 #define HAVE_WS_YPIXEL 1
43941 _ACEOF
43942
43943 fi
43944 rm -f conftest*
43945
43946
43947
43948
43949
43950 echo "$as_me:$LINENO: checking for struct spwd" >&5
43951 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
43952 if test "${ac_cv_struct_spwd+set}" = set; then
43953   echo $ECHO_N "(cached) $ECHO_C" >&6
43954 else
43955
43956 cat >conftest.$ac_ext <<_ACEOF
43957 /* confdefs.h.  */
43958 _ACEOF
43959 cat confdefs.h >>conftest.$ac_ext
43960 cat >>conftest.$ac_ext <<_ACEOF
43961 /* end confdefs.h.  */
43962 #include <pwd.h>
43963 #ifdef HAVE_SHADOW_H
43964 #include <shadow.h>
43965 #endif
43966 int
43967 main ()
43968 {
43969 struct spwd foo;
43970   ;
43971   return 0;
43972 }
43973 _ACEOF
43974 rm -f conftest.$ac_objext
43975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43976   (eval $ac_compile) 2>conftest.er1
43977   ac_status=$?
43978   grep -v '^ *+' conftest.er1 >conftest.err
43979   rm -f conftest.er1
43980   cat conftest.err >&5
43981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43982   (exit $ac_status); } &&
43983          { ac_try='test -z "$ac_c_werror_flag"
43984                          || test ! -s conftest.err'
43985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43986   (eval $ac_try) 2>&5
43987   ac_status=$?
43988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43989   (exit $ac_status); }; } &&
43990          { ac_try='test -s conftest.$ac_objext'
43991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43992   (eval $ac_try) 2>&5
43993   ac_status=$?
43994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995   (exit $ac_status); }; }; then
43996   ac_cv_struct_spwd=yes
43997 else
43998   echo "$as_me: failed program was:" >&5
43999 sed 's/^/| /' conftest.$ac_ext >&5
44000
44001 ac_cv_struct_spwd=no
44002 fi
44003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44004
44005 fi
44006
44007 echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
44008 echo "${ECHO_T}$ac_cv_struct_spwd" >&6
44009
44010 if test "$ac_cv_struct_spwd" = "yes"; then
44011
44012 cat >>confdefs.h <<\_ACEOF
44013 #define HAVE_STRUCT_SPWD 1
44014 _ACEOF
44015
44016 fi
44017
44018
44019
44020 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
44021
44022
44023 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
44024
44025
44026 # Check whether --enable-otp or --disable-otp was given.
44027 if test "${enable_otp+set}" = set; then
44028   enableval="$enable_otp"
44029
44030 fi;
44031 if test "$enable_otp" = yes -a "$db_type" = unknown; then
44032         { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
44033 echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
44034    { (exit 1); exit 1; }; }
44035 fi
44036 if test "$enable_otp" != no; then
44037         if test "$db_type" != unknown; then
44038                 enable_otp=yes
44039         else
44040                 enable_otp=no
44041         fi
44042 fi
44043 if test "$enable_otp" = yes; then
44044
44045 cat >>confdefs.h <<\_ACEOF
44046 #define OTP 1
44047 _ACEOF
44048
44049         LIB_otp='$(top_builddir)/lib/otp/libotp.la'
44050
44051 fi
44052 echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
44053 echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
44054 echo "$as_me:$LINENO: result: $enable_otp" >&5
44055 echo "${ECHO_T}$enable_otp" >&6
44056
44057
44058 if test "$enable_otp" = yes; then
44059   OTP_TRUE=
44060   OTP_FALSE='#'
44061 else
44062   OTP_TRUE='#'
44063   OTP_FALSE=
44064 fi
44065
44066
44067
44068 # Check whether --enable-osfc2 or --disable-osfc2 was given.
44069 if test "${enable_osfc2+set}" = set; then
44070   enableval="$enable_osfc2"
44071
44072 fi;
44073 LIB_security=
44074 if test "$enable_osfc2" = yes; then
44075
44076 cat >>confdefs.h <<\_ACEOF
44077 #define HAVE_OSFC2 1
44078 _ACEOF
44079
44080         LIB_security=-lsecurity
44081 fi
44082
44083
44084
44085 # Check whether --enable-mmap or --disable-mmap was given.
44086 if test "${enable_mmap+set}" = set; then
44087   enableval="$enable_mmap"
44088
44089 fi;
44090 if test "$enable_mmap" = "no"; then
44091
44092 cat >>confdefs.h <<\_ACEOF
44093 #define NO_MMAP 1
44094 _ACEOF
44095
44096 fi
44097
44098 # Extract the first word of "nroff", so it can be a program name with args.
44099 set dummy nroff; ac_word=$2
44100 echo "$as_me:$LINENO: checking for $ac_word" >&5
44101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44102 if test "${ac_cv_path_NROFF+set}" = set; then
44103   echo $ECHO_N "(cached) $ECHO_C" >&6
44104 else
44105   case $NROFF in
44106   [\\/]* | ?:[\\/]*)
44107   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
44108   ;;
44109   *)
44110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44111 for as_dir in $PATH
44112 do
44113   IFS=$as_save_IFS
44114   test -z "$as_dir" && as_dir=.
44115   for ac_exec_ext in '' $ac_executable_extensions; do
44116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44117     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
44118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44119     break 2
44120   fi
44121 done
44122 done
44123
44124   ;;
44125 esac
44126 fi
44127 NROFF=$ac_cv_path_NROFF
44128
44129 if test -n "$NROFF"; then
44130   echo "$as_me:$LINENO: result: $NROFF" >&5
44131 echo "${ECHO_T}$NROFF" >&6
44132 else
44133   echo "$as_me:$LINENO: result: no" >&5
44134 echo "${ECHO_T}no" >&6
44135 fi
44136
44137 # Extract the first word of "groff", so it can be a program name with args.
44138 set dummy groff; ac_word=$2
44139 echo "$as_me:$LINENO: checking for $ac_word" >&5
44140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44141 if test "${ac_cv_path_GROFF+set}" = set; then
44142   echo $ECHO_N "(cached) $ECHO_C" >&6
44143 else
44144   case $GROFF in
44145   [\\/]* | ?:[\\/]*)
44146   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
44147   ;;
44148   *)
44149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44150 for as_dir in $PATH
44151 do
44152   IFS=$as_save_IFS
44153   test -z "$as_dir" && as_dir=.
44154   for ac_exec_ext in '' $ac_executable_extensions; do
44155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44156     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
44157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44158     break 2
44159   fi
44160 done
44161 done
44162
44163   ;;
44164 esac
44165 fi
44166 GROFF=$ac_cv_path_GROFF
44167
44168 if test -n "$GROFF"; then
44169   echo "$as_me:$LINENO: result: $GROFF" >&5
44170 echo "${ECHO_T}$GROFF" >&6
44171 else
44172   echo "$as_me:$LINENO: result: no" >&5
44173 echo "${ECHO_T}no" >&6
44174 fi
44175
44176 echo "$as_me:$LINENO: checking how to format man pages" >&5
44177 echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
44178 if test "${ac_cv_sys_man_format+set}" = set; then
44179   echo $ECHO_N "(cached) $ECHO_C" >&6
44180 else
44181   cat > conftest.1 << END
44182 .Dd January 1, 1970
44183 .Dt CONFTEST 1
44184 .Sh NAME
44185 .Nm conftest
44186 .Nd
44187 foobar
44188 END
44189
44190 if test "$NROFF" ; then
44191         for i in "-mdoc" "-mandoc"; do
44192                 if "$NROFF" $i conftest.1 2> /dev/null | \
44193                         grep Jan > /dev/null 2>&1 ; then
44194                         ac_cv_sys_man_format="$NROFF $i"
44195                         break
44196                 fi
44197         done
44198 fi
44199 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
44200         for i in "-mdoc" "-mandoc"; do
44201                 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
44202                         grep Jan > /dev/null 2>&1 ; then
44203                         ac_cv_sys_man_format="$GROFF -Tascii $i"
44204                         break
44205                 fi
44206         done
44207 fi
44208 if test "$ac_cv_sys_man_format"; then
44209         ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
44210 fi
44211
44212 fi
44213 echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
44214 echo "${ECHO_T}$ac_cv_sys_man_format" >&6
44215 if test "$ac_cv_sys_man_format"; then
44216         CATMAN="$ac_cv_sys_man_format"
44217
44218 fi
44219
44220
44221 if test "$CATMAN"; then
44222   CATMAN_TRUE=
44223   CATMAN_FALSE='#'
44224 else
44225   CATMAN_TRUE='#'
44226   CATMAN_FALSE=
44227 fi
44228
44229 echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
44230 echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
44231 if test "${ac_cv_sys_catman_ext+set}" = set; then
44232   echo $ECHO_N "(cached) $ECHO_C" >&6
44233 else
44234   if grep _suffix /etc/man.conf > /dev/null 2>&1; then
44235         ac_cv_sys_catman_ext=0
44236 else
44237         ac_cv_sys_catman_ext=number
44238 fi
44239
44240 fi
44241 echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
44242 echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
44243 if test "$ac_cv_sys_catman_ext" = number; then
44244         CATMANEXT='$$section'
44245 else
44246         CATMANEXT=0
44247 fi
44248
44249
44250
44251
44252
44253 # Check whether --with-readline or --without-readline was given.
44254 if test "${with_readline+set}" = set; then
44255   withval="$with_readline"
44256
44257 fi;
44258
44259 # Check whether --with-readline-lib or --without-readline-lib was given.
44260 if test "${with_readline_lib+set}" = set; then
44261   withval="$with_readline_lib"
44262   if test "$withval" = "yes" -o "$withval" = "no"; then
44263   { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
44264 echo "$as_me: error: No argument for --with-readline-lib" >&2;}
44265    { (exit 1); exit 1; }; }
44266 elif test "X$with_readline" = "X"; then
44267   with_readline=yes
44268 fi
44269 fi;
44270
44271 # Check whether --with-readline-include or --without-readline-include was given.
44272 if test "${with_readline_include+set}" = set; then
44273   withval="$with_readline_include"
44274   if test "$withval" = "yes" -o "$withval" = "no"; then
44275   { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
44276 echo "$as_me: error: No argument for --with-readline-include" >&2;}
44277    { (exit 1); exit 1; }; }
44278 elif test "X$with_readline" = "X"; then
44279   with_readline=yes
44280 fi
44281 fi;
44282
44283 # Check whether --with-readline-config or --without-readline-config was given.
44284 if test "${with_readline_config+set}" = set; then
44285   withval="$with_readline_config"
44286
44287 fi;
44288
44289
44290
44291 echo "$as_me:$LINENO: checking for readline" >&5
44292 echo $ECHO_N "checking for readline... $ECHO_C" >&6
44293
44294 case "$with_readline" in
44295 yes|"") d='' ;;
44296 no)     d= ;;
44297 *)      d="$with_readline" ;;
44298 esac
44299
44300 header_dirs=
44301 lib_dirs=
44302 for i in $d; do
44303         if test "$with_readline_include" = ""; then
44304                 if test -d "$i/include/readline"; then
44305                         header_dirs="$header_dirs $i/include/readline"
44306                 fi
44307                 if test -d "$i/include"; then
44308                         header_dirs="$header_dirs $i/include"
44309                 fi
44310         fi
44311         if test "$with_readline_lib" = ""; then
44312                 if test -d "$i/lib$abilibdirext"; then
44313                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
44314                 fi
44315         fi
44316 done
44317
44318 if test "$with_readline_include"; then
44319         header_dirs="$with_readline_include $header_dirs"
44320 fi
44321 if test "$with_readline_lib"; then
44322         lib_dirs="$with_readline_lib $lib_dirs"
44323 fi
44324
44325 if test "$with_readline_config" = ""; then
44326         with_readline_config=''
44327 fi
44328
44329 readline_cflags=
44330 readline_libs=
44331
44332 case "$with_readline_config" in
44333 yes|no|"")
44334         ;;
44335 *)
44336         readline_cflags="`$with_readline_config --cflags 2>&1`"
44337         readline_libs="`$with_readline_config --libs 2>&1`"
44338         ;;
44339 esac
44340
44341 found=no
44342 if test "$with_readline" != no; then
44343         save_CFLAGS="$CFLAGS"
44344         save_LIBS="$LIBS"
44345         if test "$readline_cflags" -a "$readline_libs"; then
44346                 CFLAGS="$readline_cflags $save_CFLAGS"
44347                 LIBS="$readline_libs $save_LIBS"
44348                 cat >conftest.$ac_ext <<_ACEOF
44349 /* confdefs.h.  */
44350 _ACEOF
44351 cat confdefs.h >>conftest.$ac_ext
44352 cat >>conftest.$ac_ext <<_ACEOF
44353 /* end confdefs.h.  */
44354 #include <stdio.h>
44355  #include <readline.h>
44356 int
44357 main ()
44358 {
44359
44360   ;
44361   return 0;
44362 }
44363 _ACEOF
44364 rm -f conftest.$ac_objext conftest$ac_exeext
44365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44366   (eval $ac_link) 2>conftest.er1
44367   ac_status=$?
44368   grep -v '^ *+' conftest.er1 >conftest.err
44369   rm -f conftest.er1
44370   cat conftest.err >&5
44371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44372   (exit $ac_status); } &&
44373          { ac_try='test -z "$ac_c_werror_flag"
44374                          || test ! -s conftest.err'
44375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44376   (eval $ac_try) 2>&5
44377   ac_status=$?
44378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44379   (exit $ac_status); }; } &&
44380          { ac_try='test -s conftest$ac_exeext'
44381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44382   (eval $ac_try) 2>&5
44383   ac_status=$?
44384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44385   (exit $ac_status); }; }; then
44386
44387                         INCLUDE_readline="$readline_cflags"
44388                         LIB_readline="$readline_libs"
44389                         echo "$as_me:$LINENO: result: from $with_readline_config" >&5
44390 echo "${ECHO_T}from $with_readline_config" >&6
44391                         found=yes
44392 else
44393   echo "$as_me: failed program was:" >&5
44394 sed 's/^/| /' conftest.$ac_ext >&5
44395
44396 fi
44397 rm -f conftest.err conftest.$ac_objext \
44398       conftest$ac_exeext conftest.$ac_ext
44399         fi
44400         if test "$found" = no; then
44401                 ires= lres=
44402                 for i in $header_dirs; do
44403                         CFLAGS="-I$i $save_CFLAGS"
44404                         cat >conftest.$ac_ext <<_ACEOF
44405 /* confdefs.h.  */
44406 _ACEOF
44407 cat confdefs.h >>conftest.$ac_ext
44408 cat >>conftest.$ac_ext <<_ACEOF
44409 /* end confdefs.h.  */
44410 #include <stdio.h>
44411  #include <readline.h>
44412 int
44413 main ()
44414 {
44415
44416   ;
44417   return 0;
44418 }
44419 _ACEOF
44420 rm -f conftest.$ac_objext
44421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44422   (eval $ac_compile) 2>conftest.er1
44423   ac_status=$?
44424   grep -v '^ *+' conftest.er1 >conftest.err
44425   rm -f conftest.er1
44426   cat conftest.err >&5
44427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44428   (exit $ac_status); } &&
44429          { ac_try='test -z "$ac_c_werror_flag"
44430                          || test ! -s conftest.err'
44431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44432   (eval $ac_try) 2>&5
44433   ac_status=$?
44434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44435   (exit $ac_status); }; } &&
44436          { ac_try='test -s conftest.$ac_objext'
44437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44438   (eval $ac_try) 2>&5
44439   ac_status=$?
44440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44441   (exit $ac_status); }; }; then
44442   ires=$i;break
44443 else
44444   echo "$as_me: failed program was:" >&5
44445 sed 's/^/| /' conftest.$ac_ext >&5
44446
44447 fi
44448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44449                 done
44450                 for i in $lib_dirs; do
44451                         LIBS="-L$i -lreadline  $save_LIBS"
44452                         cat >conftest.$ac_ext <<_ACEOF
44453 /* confdefs.h.  */
44454 _ACEOF
44455 cat confdefs.h >>conftest.$ac_ext
44456 cat >>conftest.$ac_ext <<_ACEOF
44457 /* end confdefs.h.  */
44458 #include <stdio.h>
44459  #include <readline.h>
44460 int
44461 main ()
44462 {
44463
44464   ;
44465   return 0;
44466 }
44467 _ACEOF
44468 rm -f conftest.$ac_objext conftest$ac_exeext
44469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44470   (eval $ac_link) 2>conftest.er1
44471   ac_status=$?
44472   grep -v '^ *+' conftest.er1 >conftest.err
44473   rm -f conftest.er1
44474   cat conftest.err >&5
44475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44476   (exit $ac_status); } &&
44477          { ac_try='test -z "$ac_c_werror_flag"
44478                          || test ! -s conftest.err'
44479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44480   (eval $ac_try) 2>&5
44481   ac_status=$?
44482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44483   (exit $ac_status); }; } &&
44484          { ac_try='test -s conftest$ac_exeext'
44485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44486   (eval $ac_try) 2>&5
44487   ac_status=$?
44488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44489   (exit $ac_status); }; }; then
44490   lres=$i;break
44491 else
44492   echo "$as_me: failed program was:" >&5
44493 sed 's/^/| /' conftest.$ac_ext >&5
44494
44495 fi
44496 rm -f conftest.err conftest.$ac_objext \
44497       conftest$ac_exeext conftest.$ac_ext
44498                 done
44499                 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
44500                         INCLUDE_readline="-I$ires"
44501                         LIB_readline="-L$lres -lreadline "
44502                         found=yes
44503                         echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
44504 echo "${ECHO_T}headers $ires, libraries $lres" >&6
44505                 fi
44506         fi
44507         CFLAGS="$save_CFLAGS"
44508         LIBS="$save_LIBS"
44509 fi
44510
44511 if test "$found" = yes; then
44512
44513 cat >>confdefs.h <<_ACEOF
44514 #define READLINE 1
44515 _ACEOF
44516
44517         with_readline=yes
44518 else
44519         with_readline=no
44520         INCLUDE_readline=
44521         LIB_readline=
44522         echo "$as_me:$LINENO: result: no" >&5
44523 echo "${ECHO_T}no" >&6
44524 fi
44525
44526
44527
44528
44529
44530
44531
44532 # Check whether --with-hesiod or --without-hesiod was given.
44533 if test "${with_hesiod+set}" = set; then
44534   withval="$with_hesiod"
44535
44536 fi;
44537
44538 # Check whether --with-hesiod-lib or --without-hesiod-lib was given.
44539 if test "${with_hesiod_lib+set}" = set; then
44540   withval="$with_hesiod_lib"
44541   if test "$withval" = "yes" -o "$withval" = "no"; then
44542   { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
44543 echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
44544    { (exit 1); exit 1; }; }
44545 elif test "X$with_hesiod" = "X"; then
44546   with_hesiod=yes
44547 fi
44548 fi;
44549
44550 # Check whether --with-hesiod-include or --without-hesiod-include was given.
44551 if test "${with_hesiod_include+set}" = set; then
44552   withval="$with_hesiod_include"
44553   if test "$withval" = "yes" -o "$withval" = "no"; then
44554   { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
44555 echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
44556    { (exit 1); exit 1; }; }
44557 elif test "X$with_hesiod" = "X"; then
44558   with_hesiod=yes
44559 fi
44560 fi;
44561
44562 # Check whether --with-hesiod-config or --without-hesiod-config was given.
44563 if test "${with_hesiod_config+set}" = set; then
44564   withval="$with_hesiod_config"
44565
44566 fi;
44567
44568
44569
44570 echo "$as_me:$LINENO: checking for hesiod" >&5
44571 echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
44572
44573 case "$with_hesiod" in
44574 yes|"") d='' ;;
44575 no)     d= ;;
44576 *)      d="$with_hesiod" ;;
44577 esac
44578
44579 header_dirs=
44580 lib_dirs=
44581 for i in $d; do
44582         if test "$with_hesiod_include" = ""; then
44583                 if test -d "$i/include/hesiod"; then
44584                         header_dirs="$header_dirs $i/include/hesiod"
44585                 fi
44586                 if test -d "$i/include"; then
44587                         header_dirs="$header_dirs $i/include"
44588                 fi
44589         fi
44590         if test "$with_hesiod_lib" = ""; then
44591                 if test -d "$i/lib$abilibdirext"; then
44592                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
44593                 fi
44594         fi
44595 done
44596
44597 if test "$with_hesiod_include"; then
44598         header_dirs="$with_hesiod_include $header_dirs"
44599 fi
44600 if test "$with_hesiod_lib"; then
44601         lib_dirs="$with_hesiod_lib $lib_dirs"
44602 fi
44603
44604 if test "$with_hesiod_config" = ""; then
44605         with_hesiod_config=''
44606 fi
44607
44608 hesiod_cflags=
44609 hesiod_libs=
44610
44611 case "$with_hesiod_config" in
44612 yes|no|"")
44613         ;;
44614 *)
44615         hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
44616         hesiod_libs="`$with_hesiod_config --libs 2>&1`"
44617         ;;
44618 esac
44619
44620 found=no
44621 if test "$with_hesiod" != no; then
44622         save_CFLAGS="$CFLAGS"
44623         save_LIBS="$LIBS"
44624         if test "$hesiod_cflags" -a "$hesiod_libs"; then
44625                 CFLAGS="$hesiod_cflags $save_CFLAGS"
44626                 LIBS="$hesiod_libs $save_LIBS"
44627                 cat >conftest.$ac_ext <<_ACEOF
44628 /* confdefs.h.  */
44629 _ACEOF
44630 cat confdefs.h >>conftest.$ac_ext
44631 cat >>conftest.$ac_ext <<_ACEOF
44632 /* end confdefs.h.  */
44633 #include <hesiod.h>
44634 int
44635 main ()
44636 {
44637
44638   ;
44639   return 0;
44640 }
44641 _ACEOF
44642 rm -f conftest.$ac_objext conftest$ac_exeext
44643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44644   (eval $ac_link) 2>conftest.er1
44645   ac_status=$?
44646   grep -v '^ *+' conftest.er1 >conftest.err
44647   rm -f conftest.er1
44648   cat conftest.err >&5
44649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44650   (exit $ac_status); } &&
44651          { ac_try='test -z "$ac_c_werror_flag"
44652                          || test ! -s conftest.err'
44653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44654   (eval $ac_try) 2>&5
44655   ac_status=$?
44656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44657   (exit $ac_status); }; } &&
44658          { ac_try='test -s conftest$ac_exeext'
44659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44660   (eval $ac_try) 2>&5
44661   ac_status=$?
44662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44663   (exit $ac_status); }; }; then
44664
44665                         INCLUDE_hesiod="$hesiod_cflags"
44666                         LIB_hesiod="$hesiod_libs"
44667                         echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
44668 echo "${ECHO_T}from $with_hesiod_config" >&6
44669                         found=yes
44670 else
44671   echo "$as_me: failed program was:" >&5
44672 sed 's/^/| /' conftest.$ac_ext >&5
44673
44674 fi
44675 rm -f conftest.err conftest.$ac_objext \
44676       conftest$ac_exeext conftest.$ac_ext
44677         fi
44678         if test "$found" = no; then
44679                 ires= lres=
44680                 for i in $header_dirs; do
44681                         CFLAGS="-I$i $save_CFLAGS"
44682                         cat >conftest.$ac_ext <<_ACEOF
44683 /* confdefs.h.  */
44684 _ACEOF
44685 cat confdefs.h >>conftest.$ac_ext
44686 cat >>conftest.$ac_ext <<_ACEOF
44687 /* end confdefs.h.  */
44688 #include <hesiod.h>
44689 int
44690 main ()
44691 {
44692
44693   ;
44694   return 0;
44695 }
44696 _ACEOF
44697 rm -f conftest.$ac_objext
44698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44699   (eval $ac_compile) 2>conftest.er1
44700   ac_status=$?
44701   grep -v '^ *+' conftest.er1 >conftest.err
44702   rm -f conftest.er1
44703   cat conftest.err >&5
44704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44705   (exit $ac_status); } &&
44706          { ac_try='test -z "$ac_c_werror_flag"
44707                          || test ! -s conftest.err'
44708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44709   (eval $ac_try) 2>&5
44710   ac_status=$?
44711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44712   (exit $ac_status); }; } &&
44713          { ac_try='test -s conftest.$ac_objext'
44714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44715   (eval $ac_try) 2>&5
44716   ac_status=$?
44717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44718   (exit $ac_status); }; }; then
44719   ires=$i;break
44720 else
44721   echo "$as_me: failed program was:" >&5
44722 sed 's/^/| /' conftest.$ac_ext >&5
44723
44724 fi
44725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44726                 done
44727                 for i in $lib_dirs; do
44728                         LIBS="-L$i -lhesiod  $save_LIBS"
44729                         cat >conftest.$ac_ext <<_ACEOF
44730 /* confdefs.h.  */
44731 _ACEOF
44732 cat confdefs.h >>conftest.$ac_ext
44733 cat >>conftest.$ac_ext <<_ACEOF
44734 /* end confdefs.h.  */
44735 #include <hesiod.h>
44736 int
44737 main ()
44738 {
44739
44740   ;
44741   return 0;
44742 }
44743 _ACEOF
44744 rm -f conftest.$ac_objext conftest$ac_exeext
44745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44746   (eval $ac_link) 2>conftest.er1
44747   ac_status=$?
44748   grep -v '^ *+' conftest.er1 >conftest.err
44749   rm -f conftest.er1
44750   cat conftest.err >&5
44751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44752   (exit $ac_status); } &&
44753          { ac_try='test -z "$ac_c_werror_flag"
44754                          || test ! -s conftest.err'
44755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44756   (eval $ac_try) 2>&5
44757   ac_status=$?
44758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44759   (exit $ac_status); }; } &&
44760          { ac_try='test -s conftest$ac_exeext'
44761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44762   (eval $ac_try) 2>&5
44763   ac_status=$?
44764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44765   (exit $ac_status); }; }; then
44766   lres=$i;break
44767 else
44768   echo "$as_me: failed program was:" >&5
44769 sed 's/^/| /' conftest.$ac_ext >&5
44770
44771 fi
44772 rm -f conftest.err conftest.$ac_objext \
44773       conftest$ac_exeext conftest.$ac_ext
44774                 done
44775                 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
44776                         INCLUDE_hesiod="-I$ires"
44777                         LIB_hesiod="-L$lres -lhesiod "
44778                         found=yes
44779                         echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
44780 echo "${ECHO_T}headers $ires, libraries $lres" >&6
44781                 fi
44782         fi
44783         CFLAGS="$save_CFLAGS"
44784         LIBS="$save_LIBS"
44785 fi
44786
44787 if test "$found" = yes; then
44788
44789 cat >>confdefs.h <<_ACEOF
44790 #define HESIOD 1
44791 _ACEOF
44792
44793         with_hesiod=yes
44794 else
44795         with_hesiod=no
44796         INCLUDE_hesiod=
44797         LIB_hesiod=
44798         echo "$as_me:$LINENO: result: no" >&5
44799 echo "${ECHO_T}no" >&6
44800 fi
44801
44802
44803
44804
44805
44806
44807 # Check whether --enable-bigendian or --disable-bigendian was given.
44808 if test "${enable_bigendian+set}" = set; then
44809   enableval="$enable_bigendian"
44810   krb_cv_c_bigendian=yes
44811 fi;
44812 # Check whether --enable-littleendian or --disable-littleendian was given.
44813 if test "${enable_littleendian+set}" = set; then
44814   enableval="$enable_littleendian"
44815   krb_cv_c_bigendian=no
44816 fi;
44817 echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
44818 echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
44819 if test "${krb_cv_c_bigendian_compile+set}" = set; then
44820   echo $ECHO_N "(cached) $ECHO_C" >&6
44821 else
44822   cat >conftest.$ac_ext <<_ACEOF
44823 /* confdefs.h.  */
44824 _ACEOF
44825 cat confdefs.h >>conftest.$ac_ext
44826 cat >>conftest.$ac_ext <<_ACEOF
44827 /* end confdefs.h.  */
44828
44829 #include <sys/types.h>
44830 #include <sys/param.h>
44831 int
44832 main ()
44833 {
44834
44835 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
44836  bogus endian macros
44837 #endif
44838   ;
44839   return 0;
44840 }
44841 _ACEOF
44842 rm -f conftest.$ac_objext
44843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44844   (eval $ac_compile) 2>conftest.er1
44845   ac_status=$?
44846   grep -v '^ *+' conftest.er1 >conftest.err
44847   rm -f conftest.er1
44848   cat conftest.err >&5
44849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44850   (exit $ac_status); } &&
44851          { ac_try='test -z "$ac_c_werror_flag"
44852                          || test ! -s conftest.err'
44853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44854   (eval $ac_try) 2>&5
44855   ac_status=$?
44856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44857   (exit $ac_status); }; } &&
44858          { ac_try='test -s conftest.$ac_objext'
44859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44860   (eval $ac_try) 2>&5
44861   ac_status=$?
44862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44863   (exit $ac_status); }; }; then
44864   krb_cv_c_bigendian_compile=yes
44865 else
44866   echo "$as_me: failed program was:" >&5
44867 sed 's/^/| /' conftest.$ac_ext >&5
44868
44869 krb_cv_c_bigendian_compile=no
44870 fi
44871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44872 fi
44873 echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
44874 echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
44875 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
44876 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
44877 if test "${krb_cv_c_bigendian+set}" = set; then
44878   echo $ECHO_N "(cached) $ECHO_C" >&6
44879 else
44880
44881   if test "$krb_cv_c_bigendian_compile" = "yes"; then
44882     cat >conftest.$ac_ext <<_ACEOF
44883 /* confdefs.h.  */
44884 _ACEOF
44885 cat confdefs.h >>conftest.$ac_ext
44886 cat >>conftest.$ac_ext <<_ACEOF
44887 /* end confdefs.h.  */
44888
44889 #include <sys/types.h>
44890 #include <sys/param.h>
44891 int
44892 main ()
44893 {
44894
44895 #if BYTE_ORDER != BIG_ENDIAN
44896   not big endian
44897 #endif
44898   ;
44899   return 0;
44900 }
44901 _ACEOF
44902 rm -f conftest.$ac_objext
44903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44904   (eval $ac_compile) 2>conftest.er1
44905   ac_status=$?
44906   grep -v '^ *+' conftest.er1 >conftest.err
44907   rm -f conftest.er1
44908   cat conftest.err >&5
44909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44910   (exit $ac_status); } &&
44911          { ac_try='test -z "$ac_c_werror_flag"
44912                          || test ! -s conftest.err'
44913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44914   (eval $ac_try) 2>&5
44915   ac_status=$?
44916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44917   (exit $ac_status); }; } &&
44918          { ac_try='test -s conftest.$ac_objext'
44919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44920   (eval $ac_try) 2>&5
44921   ac_status=$?
44922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44923   (exit $ac_status); }; }; then
44924   krb_cv_c_bigendian=yes
44925 else
44926   echo "$as_me: failed program was:" >&5
44927 sed 's/^/| /' conftest.$ac_ext >&5
44928
44929 krb_cv_c_bigendian=no
44930 fi
44931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44932   else
44933     if test "$cross_compiling" = yes; then
44934   { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
44935 echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
44936    { (exit 1); exit 1; }; }
44937 else
44938   cat >conftest.$ac_ext <<_ACEOF
44939 /* confdefs.h.  */
44940 _ACEOF
44941 cat confdefs.h >>conftest.$ac_ext
44942 cat >>conftest.$ac_ext <<_ACEOF
44943 /* end confdefs.h.  */
44944 main () {
44945       /* Are we little or big endian?  From Harbison&Steele.  */
44946       union
44947       {
44948         long l;
44949         char c[sizeof (long)];
44950     } u;
44951     u.l = 1;
44952     exit (u.c[sizeof (long) - 1] == 1);
44953   }
44954 _ACEOF
44955 rm -f conftest$ac_exeext
44956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44957   (eval $ac_link) 2>&5
44958   ac_status=$?
44959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44962   (eval $ac_try) 2>&5
44963   ac_status=$?
44964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44965   (exit $ac_status); }; }; then
44966   krb_cv_c_bigendian=no
44967 else
44968   echo "$as_me: program exited with status $ac_status" >&5
44969 echo "$as_me: failed program was:" >&5
44970 sed 's/^/| /' conftest.$ac_ext >&5
44971
44972 ( exit $ac_status )
44973 krb_cv_c_bigendian=yes
44974 fi
44975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44976 fi
44977   fi
44978
44979 fi
44980 echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
44981 echo "${ECHO_T}$krb_cv_c_bigendian" >&6
44982 if test "$krb_cv_c_bigendian" = "yes"; then
44983
44984 cat >>confdefs.h <<\_ACEOF
44985 #define WORDS_BIGENDIAN 1
44986 _ACEOF
44987 fi
44988 if test "$krb_cv_c_bigendian_compile" = "yes"; then
44989
44990 cat >>confdefs.h <<\_ACEOF
44991 #define ENDIANESS_IN_SYS_PARAM_H 1
44992 _ACEOF
44993 fi
44994
44995
44996
44997 echo "$as_me:$LINENO: checking for inline" >&5
44998 echo $ECHO_N "checking for inline... $ECHO_C" >&6
44999 if test "${ac_cv_c_inline+set}" = set; then
45000   echo $ECHO_N "(cached) $ECHO_C" >&6
45001 else
45002   ac_cv_c_inline=no
45003 for ac_kw in inline __inline__ __inline; do
45004   cat >conftest.$ac_ext <<_ACEOF
45005 /* confdefs.h.  */
45006 _ACEOF
45007 cat confdefs.h >>conftest.$ac_ext
45008 cat >>conftest.$ac_ext <<_ACEOF
45009 /* end confdefs.h.  */
45010 #ifndef __cplusplus
45011 typedef int foo_t;
45012 static $ac_kw foo_t static_foo () {return 0; }
45013 $ac_kw foo_t foo () {return 0; }
45014 #endif
45015
45016 _ACEOF
45017 rm -f conftest.$ac_objext
45018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45019   (eval $ac_compile) 2>conftest.er1
45020   ac_status=$?
45021   grep -v '^ *+' conftest.er1 >conftest.err
45022   rm -f conftest.er1
45023   cat conftest.err >&5
45024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45025   (exit $ac_status); } &&
45026          { ac_try='test -z "$ac_c_werror_flag"
45027                          || test ! -s conftest.err'
45028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45029   (eval $ac_try) 2>&5
45030   ac_status=$?
45031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45032   (exit $ac_status); }; } &&
45033          { ac_try='test -s conftest.$ac_objext'
45034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45035   (eval $ac_try) 2>&5
45036   ac_status=$?
45037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038   (exit $ac_status); }; }; then
45039   ac_cv_c_inline=$ac_kw; break
45040 else
45041   echo "$as_me: failed program was:" >&5
45042 sed 's/^/| /' conftest.$ac_ext >&5
45043
45044 fi
45045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45046 done
45047
45048 fi
45049 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
45050 echo "${ECHO_T}$ac_cv_c_inline" >&6
45051
45052
45053 case $ac_cv_c_inline in
45054   inline | yes) ;;
45055   *)
45056     case $ac_cv_c_inline in
45057       no) ac_val=;;
45058       *) ac_val=$ac_cv_c_inline;;
45059     esac
45060     cat >>confdefs.h <<_ACEOF
45061 #ifndef __cplusplus
45062 #define inline $ac_val
45063 #endif
45064 _ACEOF
45065     ;;
45066 esac
45067
45068
45069
45070
45071
45072
45073 echo "$as_me:$LINENO: checking for dlopen" >&5
45074 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
45075 if test "${ac_cv_funclib_dlopen+set}" = set; then
45076   echo $ECHO_N "(cached) $ECHO_C" >&6
45077 else
45078
45079 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
45080         ac_save_LIBS="$LIBS"
45081         for ac_lib in "" dl; do
45082                 case "$ac_lib" in
45083                 "") ;;
45084                 yes) ac_lib="" ;;
45085                 no) continue ;;
45086                 -l*) ;;
45087                 *) ac_lib="-l$ac_lib" ;;
45088                 esac
45089                 LIBS=" $ac_lib  $ac_save_LIBS"
45090                 cat >conftest.$ac_ext <<_ACEOF
45091 /* confdefs.h.  */
45092 _ACEOF
45093 cat confdefs.h >>conftest.$ac_ext
45094 cat >>conftest.$ac_ext <<_ACEOF
45095 /* end confdefs.h.  */
45096
45097 int
45098 main ()
45099 {
45100 dlopen()
45101   ;
45102   return 0;
45103 }
45104 _ACEOF
45105 rm -f conftest.$ac_objext conftest$ac_exeext
45106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45107   (eval $ac_link) 2>conftest.er1
45108   ac_status=$?
45109   grep -v '^ *+' conftest.er1 >conftest.err
45110   rm -f conftest.er1
45111   cat conftest.err >&5
45112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45113   (exit $ac_status); } &&
45114          { ac_try='test -z "$ac_c_werror_flag"
45115                          || test ! -s conftest.err'
45116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45117   (eval $ac_try) 2>&5
45118   ac_status=$?
45119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45120   (exit $ac_status); }; } &&
45121          { ac_try='test -s conftest$ac_exeext'
45122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45123   (eval $ac_try) 2>&5
45124   ac_status=$?
45125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45126   (exit $ac_status); }; }; then
45127   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
45128 else
45129   echo "$as_me: failed program was:" >&5
45130 sed 's/^/| /' conftest.$ac_ext >&5
45131
45132 fi
45133 rm -f conftest.err conftest.$ac_objext \
45134       conftest$ac_exeext conftest.$ac_ext
45135         done
45136         eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
45137         LIBS="$ac_save_LIBS"
45138 fi
45139
45140 fi
45141
45142
45143 eval "ac_res=\$ac_cv_funclib_dlopen"
45144
45145 if false; then
45146
45147 for ac_func in dlopen
45148 do
45149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45150 echo "$as_me:$LINENO: checking for $ac_func" >&5
45151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45152 if eval "test \"\${$as_ac_var+set}\" = set"; then
45153   echo $ECHO_N "(cached) $ECHO_C" >&6
45154 else
45155   cat >conftest.$ac_ext <<_ACEOF
45156 /* confdefs.h.  */
45157 _ACEOF
45158 cat confdefs.h >>conftest.$ac_ext
45159 cat >>conftest.$ac_ext <<_ACEOF
45160 /* end confdefs.h.  */
45161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45163 #define $ac_func innocuous_$ac_func
45164
45165 /* System header to define __stub macros and hopefully few prototypes,
45166     which can conflict with char $ac_func (); below.
45167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45168     <limits.h> exists even on freestanding compilers.  */
45169
45170 #ifdef __STDC__
45171 # include <limits.h>
45172 #else
45173 # include <assert.h>
45174 #endif
45175
45176 #undef $ac_func
45177
45178 /* Override any gcc2 internal prototype to avoid an error.  */
45179 #ifdef __cplusplus
45180 extern "C"
45181 {
45182 #endif
45183 /* We use char because int might match the return type of a gcc2
45184    builtin and then its argument prototype would still apply.  */
45185 char $ac_func ();
45186 /* The GNU C library defines this for functions which it implements
45187     to always fail with ENOSYS.  Some functions are actually named
45188     something starting with __ and the normal name is an alias.  */
45189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45190 choke me
45191 #else
45192 char (*f) () = $ac_func;
45193 #endif
45194 #ifdef __cplusplus
45195 }
45196 #endif
45197
45198 int
45199 main ()
45200 {
45201 return f != $ac_func;
45202   ;
45203   return 0;
45204 }
45205 _ACEOF
45206 rm -f conftest.$ac_objext conftest$ac_exeext
45207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45208   (eval $ac_link) 2>conftest.er1
45209   ac_status=$?
45210   grep -v '^ *+' conftest.er1 >conftest.err
45211   rm -f conftest.er1
45212   cat conftest.err >&5
45213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45214   (exit $ac_status); } &&
45215          { ac_try='test -z "$ac_c_werror_flag"
45216                          || test ! -s conftest.err'
45217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45218   (eval $ac_try) 2>&5
45219   ac_status=$?
45220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45221   (exit $ac_status); }; } &&
45222          { ac_try='test -s conftest$ac_exeext'
45223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45224   (eval $ac_try) 2>&5
45225   ac_status=$?
45226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45227   (exit $ac_status); }; }; then
45228   eval "$as_ac_var=yes"
45229 else
45230   echo "$as_me: failed program was:" >&5
45231 sed 's/^/| /' conftest.$ac_ext >&5
45232
45233 eval "$as_ac_var=no"
45234 fi
45235 rm -f conftest.err conftest.$ac_objext \
45236       conftest$ac_exeext conftest.$ac_ext
45237 fi
45238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45240 if test `eval echo '${'$as_ac_var'}'` = yes; then
45241   cat >>confdefs.h <<_ACEOF
45242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45243 _ACEOF
45244
45245 fi
45246 done
45247
45248 fi
45249 # dlopen
45250 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45251 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45252 eval "LIB_dlopen=$ac_res"
45253
45254 case "$ac_res" in
45255         yes)
45256         eval "ac_cv_func_dlopen=yes"
45257         eval "LIB_dlopen="
45258         cat >>confdefs.h <<_ACEOF
45259 #define $ac_tr_func 1
45260 _ACEOF
45261
45262         echo "$as_me:$LINENO: result: yes" >&5
45263 echo "${ECHO_T}yes" >&6
45264         ;;
45265         no)
45266         eval "ac_cv_func_dlopen=no"
45267         eval "LIB_dlopen="
45268         echo "$as_me:$LINENO: result: no" >&5
45269 echo "${ECHO_T}no" >&6
45270         ;;
45271         *)
45272         eval "ac_cv_func_dlopen=yes"
45273         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
45274         cat >>confdefs.h <<_ACEOF
45275 #define $ac_tr_func 1
45276 _ACEOF
45277
45278         cat >>confdefs.h <<_ACEOF
45279 #define $ac_tr_lib 1
45280 _ACEOF
45281
45282         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
45283 echo "${ECHO_T}yes, in $ac_res" >&6
45284         ;;
45285 esac
45286
45287
45288
45289
45290 if test "$ac_cv_funclib_dlopen" != no; then
45291   HAVE_DLOPEN_TRUE=
45292   HAVE_DLOPEN_FALSE='#'
45293 else
45294   HAVE_DLOPEN_TRUE='#'
45295   HAVE_DLOPEN_FALSE=
45296 fi
45297
45298
45299
45300
45301 aix=no
45302 case "$host" in
45303 *-*-aix3*)
45304         aix=3
45305         ;;
45306 *-*-aix4*|*-*-aix5*)
45307         aix=4
45308         ;;
45309 esac
45310
45311
45312
45313 if test "$aix" != no; then
45314   AIX_TRUE=
45315   AIX_FALSE='#'
45316 else
45317   AIX_TRUE='#'
45318   AIX_FALSE=
45319 fi
45320
45321
45322 if test "$aix" = 4; then
45323   AIX4_TRUE=
45324   AIX4_FALSE='#'
45325 else
45326   AIX4_TRUE='#'
45327   AIX4_FALSE=
45328 fi
45329
45330
45331
45332 # Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
45333 if test "${enable_dynamic_afs+set}" = set; then
45334   enableval="$enable_dynamic_afs"
45335
45336 fi;
45337
45338 if test "$aix" != no; then
45339         if test "$enable_dynamic_afs" != no; then
45340
45341                 if test "$ac_cv_func_dlopen" = no; then
45342
45343
45344
45345 echo "$as_me:$LINENO: checking for loadquery" >&5
45346 echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
45347 if test "${ac_cv_funclib_loadquery+set}" = set; then
45348   echo $ECHO_N "(cached) $ECHO_C" >&6
45349 else
45350
45351 if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
45352         ac_save_LIBS="$LIBS"
45353         for ac_lib in "" ld; do
45354                 case "$ac_lib" in
45355                 "") ;;
45356                 yes) ac_lib="" ;;
45357                 no) continue ;;
45358                 -l*) ;;
45359                 *) ac_lib="-l$ac_lib" ;;
45360                 esac
45361                 LIBS=" $ac_lib  $ac_save_LIBS"
45362                 cat >conftest.$ac_ext <<_ACEOF
45363 /* confdefs.h.  */
45364 _ACEOF
45365 cat confdefs.h >>conftest.$ac_ext
45366 cat >>conftest.$ac_ext <<_ACEOF
45367 /* end confdefs.h.  */
45368
45369 int
45370 main ()
45371 {
45372 loadquery()
45373   ;
45374   return 0;
45375 }
45376 _ACEOF
45377 rm -f conftest.$ac_objext conftest$ac_exeext
45378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45379   (eval $ac_link) 2>conftest.er1
45380   ac_status=$?
45381   grep -v '^ *+' conftest.er1 >conftest.err
45382   rm -f conftest.er1
45383   cat conftest.err >&5
45384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45385   (exit $ac_status); } &&
45386          { ac_try='test -z "$ac_c_werror_flag"
45387                          || test ! -s conftest.err'
45388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45389   (eval $ac_try) 2>&5
45390   ac_status=$?
45391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45392   (exit $ac_status); }; } &&
45393          { ac_try='test -s conftest$ac_exeext'
45394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45395   (eval $ac_try) 2>&5
45396   ac_status=$?
45397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45398   (exit $ac_status); }; }; then
45399   eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
45400 else
45401   echo "$as_me: failed program was:" >&5
45402 sed 's/^/| /' conftest.$ac_ext >&5
45403
45404 fi
45405 rm -f conftest.err conftest.$ac_objext \
45406       conftest$ac_exeext conftest.$ac_ext
45407         done
45408         eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
45409         LIBS="$ac_save_LIBS"
45410 fi
45411
45412 fi
45413
45414
45415 eval "ac_res=\$ac_cv_funclib_loadquery"
45416
45417 if false; then
45418
45419 for ac_func in loadquery
45420 do
45421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45422 echo "$as_me:$LINENO: checking for $ac_func" >&5
45423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45424 if eval "test \"\${$as_ac_var+set}\" = set"; then
45425   echo $ECHO_N "(cached) $ECHO_C" >&6
45426 else
45427   cat >conftest.$ac_ext <<_ACEOF
45428 /* confdefs.h.  */
45429 _ACEOF
45430 cat confdefs.h >>conftest.$ac_ext
45431 cat >>conftest.$ac_ext <<_ACEOF
45432 /* end confdefs.h.  */
45433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45435 #define $ac_func innocuous_$ac_func
45436
45437 /* System header to define __stub macros and hopefully few prototypes,
45438     which can conflict with char $ac_func (); below.
45439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45440     <limits.h> exists even on freestanding compilers.  */
45441
45442 #ifdef __STDC__
45443 # include <limits.h>
45444 #else
45445 # include <assert.h>
45446 #endif
45447
45448 #undef $ac_func
45449
45450 /* Override any gcc2 internal prototype to avoid an error.  */
45451 #ifdef __cplusplus
45452 extern "C"
45453 {
45454 #endif
45455 /* We use char because int might match the return type of a gcc2
45456    builtin and then its argument prototype would still apply.  */
45457 char $ac_func ();
45458 /* The GNU C library defines this for functions which it implements
45459     to always fail with ENOSYS.  Some functions are actually named
45460     something starting with __ and the normal name is an alias.  */
45461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45462 choke me
45463 #else
45464 char (*f) () = $ac_func;
45465 #endif
45466 #ifdef __cplusplus
45467 }
45468 #endif
45469
45470 int
45471 main ()
45472 {
45473 return f != $ac_func;
45474   ;
45475   return 0;
45476 }
45477 _ACEOF
45478 rm -f conftest.$ac_objext conftest$ac_exeext
45479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45480   (eval $ac_link) 2>conftest.er1
45481   ac_status=$?
45482   grep -v '^ *+' conftest.er1 >conftest.err
45483   rm -f conftest.er1
45484   cat conftest.err >&5
45485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45486   (exit $ac_status); } &&
45487          { ac_try='test -z "$ac_c_werror_flag"
45488                          || test ! -s conftest.err'
45489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45490   (eval $ac_try) 2>&5
45491   ac_status=$?
45492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45493   (exit $ac_status); }; } &&
45494          { ac_try='test -s conftest$ac_exeext'
45495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45496   (eval $ac_try) 2>&5
45497   ac_status=$?
45498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45499   (exit $ac_status); }; }; then
45500   eval "$as_ac_var=yes"
45501 else
45502   echo "$as_me: failed program was:" >&5
45503 sed 's/^/| /' conftest.$ac_ext >&5
45504
45505 eval "$as_ac_var=no"
45506 fi
45507 rm -f conftest.err conftest.$ac_objext \
45508       conftest$ac_exeext conftest.$ac_ext
45509 fi
45510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45512 if test `eval echo '${'$as_ac_var'}'` = yes; then
45513   cat >>confdefs.h <<_ACEOF
45514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45515 _ACEOF
45516
45517 fi
45518 done
45519
45520 fi
45521 # loadquery
45522 eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45523 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45524 eval "LIB_loadquery=$ac_res"
45525
45526 case "$ac_res" in
45527         yes)
45528         eval "ac_cv_func_loadquery=yes"
45529         eval "LIB_loadquery="
45530         cat >>confdefs.h <<_ACEOF
45531 #define $ac_tr_func 1
45532 _ACEOF
45533
45534         echo "$as_me:$LINENO: result: yes" >&5
45535 echo "${ECHO_T}yes" >&6
45536         ;;
45537         no)
45538         eval "ac_cv_func_loadquery=no"
45539         eval "LIB_loadquery="
45540         echo "$as_me:$LINENO: result: no" >&5
45541 echo "${ECHO_T}no" >&6
45542         ;;
45543         *)
45544         eval "ac_cv_func_loadquery=yes"
45545         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
45546         cat >>confdefs.h <<_ACEOF
45547 #define $ac_tr_func 1
45548 _ACEOF
45549
45550         cat >>confdefs.h <<_ACEOF
45551 #define $ac_tr_lib 1
45552 _ACEOF
45553
45554         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
45555 echo "${ECHO_T}yes, in $ac_res" >&6
45556         ;;
45557 esac
45558
45559
45560                 fi
45561                 if test "$ac_cv_func_dlopen" != no; then
45562                         AIX_EXTRA_KAFS='$(LIB_dlopen)'
45563                 elif test "$ac_cv_func_loadquery" != no; then
45564                         AIX_EXTRA_KAFS='$(LIB_loadquery)'
45565                 else
45566                         { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
45567 echo "$as_me: not using dynloaded AFS library" >&6;}
45568                         AIX_EXTRA_KAFS=
45569                         enable_dynamic_afs=no
45570                 fi
45571         else
45572                 AIX_EXTRA_KAFS=
45573         fi
45574 fi
45575
45576
45577
45578 if test "$enable_dynamic_afs" != no; then
45579   AIX_DYNAMIC_AFS_TRUE=
45580   AIX_DYNAMIC_AFS_FALSE='#'
45581 else
45582   AIX_DYNAMIC_AFS_TRUE='#'
45583   AIX_DYNAMIC_AFS_FALSE=
45584 fi
45585
45586
45587
45588
45589
45590
45591 irix=no
45592 case "$host" in
45593 *-*-irix4*)
45594
45595 cat >>confdefs.h <<\_ACEOF
45596 #define IRIX4 1
45597 _ACEOF
45598
45599         irix=yes
45600         ;;
45601 *-*-irix*)
45602         irix=yes
45603         ;;
45604 esac
45605
45606
45607 if test "$irix" != no; then
45608   IRIX_TRUE=
45609   IRIX_FALSE='#'
45610 else
45611   IRIX_TRUE='#'
45612   IRIX_FALSE=
45613 fi
45614
45615
45616
45617
45618
45619 sunos=no
45620 case "$host" in
45621 *-*-sunos4*)
45622         sunos=40
45623         ;;
45624 *-*-solaris2.7)
45625         sunos=57
45626         ;;
45627 *-*-solaris2.[89])
45628         sunos=58
45629         ;;
45630 *-*-solaris2*)
45631         sunos=50
45632         ;;
45633 esac
45634 if test "$sunos" != no; then
45635
45636 cat >>confdefs.h <<_ACEOF
45637 #define SunOS $sunos
45638 _ACEOF
45639
45640 fi
45641
45642
45643 echo "$as_me:$LINENO: checking for X" >&5
45644 echo $ECHO_N "checking for X... $ECHO_C" >&6
45645
45646
45647 # Check whether --with-x or --without-x was given.
45648 if test "${with_x+set}" = set; then
45649   withval="$with_x"
45650
45651 fi;
45652 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
45653 if test "x$with_x" = xno; then
45654   # The user explicitly disabled X.
45655   have_x=disabled
45656 else
45657   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
45658     # Both variables are already set.
45659     have_x=yes
45660   else
45661     if test "${ac_cv_have_x+set}" = set; then
45662   echo $ECHO_N "(cached) $ECHO_C" >&6
45663 else
45664   # One or both of the vars are not set, and there is no cached value.
45665 ac_x_includes=no ac_x_libraries=no
45666 rm -fr conftest.dir
45667 if mkdir conftest.dir; then
45668   cd conftest.dir
45669   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
45670   cat >Imakefile <<'_ACEOF'
45671 acfindx:
45672         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
45673 _ACEOF
45674   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
45675     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45676     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
45677     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
45678     for ac_extension in a so sl; do
45679       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
45680          test -f $ac_im_libdir/libX11.$ac_extension; then
45681         ac_im_usrlibdir=$ac_im_libdir; break
45682       fi
45683     done
45684     # Screen out bogus values from the imake configuration.  They are
45685     # bogus both because they are the default anyway, and because
45686     # using them would break gcc on systems where it needs fixed includes.
45687     case $ac_im_incroot in
45688         /usr/include) ;;
45689         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
45690     esac
45691     case $ac_im_usrlibdir in
45692         /usr/lib | /lib) ;;
45693         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
45694     esac
45695   fi
45696   cd ..
45697   rm -fr conftest.dir
45698 fi
45699
45700 # Standard set of common directories for X headers.
45701 # Check X11 before X11Rn because it is often a symlink to the current release.
45702 ac_x_header_dirs='
45703 /usr/X11/include
45704 /usr/X11R6/include
45705 /usr/X11R5/include
45706 /usr/X11R4/include
45707
45708 /usr/include/X11
45709 /usr/include/X11R6
45710 /usr/include/X11R5
45711 /usr/include/X11R4
45712
45713 /usr/local/X11/include
45714 /usr/local/X11R6/include
45715 /usr/local/X11R5/include
45716 /usr/local/X11R4/include
45717
45718 /usr/local/include/X11
45719 /usr/local/include/X11R6
45720 /usr/local/include/X11R5
45721 /usr/local/include/X11R4
45722
45723 /usr/X386/include
45724 /usr/x386/include
45725 /usr/XFree86/include/X11
45726
45727 /usr/include
45728 /usr/local/include
45729 /usr/unsupported/include
45730 /usr/athena/include
45731 /usr/local/x11r5/include
45732 /usr/lpp/Xamples/include
45733
45734 /usr/openwin/include
45735 /usr/openwin/share/include'
45736
45737 if test "$ac_x_includes" = no; then
45738   # Guess where to find include files, by looking for Intrinsic.h.
45739   # First, try using that file with no special directory specified.
45740   cat >conftest.$ac_ext <<_ACEOF
45741 /* confdefs.h.  */
45742 _ACEOF
45743 cat confdefs.h >>conftest.$ac_ext
45744 cat >>conftest.$ac_ext <<_ACEOF
45745 /* end confdefs.h.  */
45746 #include <X11/Intrinsic.h>
45747 _ACEOF
45748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45750   ac_status=$?
45751   grep -v '^ *+' conftest.er1 >conftest.err
45752   rm -f conftest.er1
45753   cat conftest.err >&5
45754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45755   (exit $ac_status); } >/dev/null; then
45756   if test -s conftest.err; then
45757     ac_cpp_err=$ac_c_preproc_warn_flag
45758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45759   else
45760     ac_cpp_err=
45761   fi
45762 else
45763   ac_cpp_err=yes
45764 fi
45765 if test -z "$ac_cpp_err"; then
45766   # We can compile using X headers with no special include directory.
45767 ac_x_includes=
45768 else
45769   echo "$as_me: failed program was:" >&5
45770 sed 's/^/| /' conftest.$ac_ext >&5
45771
45772   for ac_dir in $ac_x_header_dirs; do
45773   if test -r "$ac_dir/X11/Intrinsic.h"; then
45774     ac_x_includes=$ac_dir
45775     break
45776   fi
45777 done
45778 fi
45779 rm -f conftest.err conftest.$ac_ext
45780 fi # $ac_x_includes = no
45781
45782 if test "$ac_x_libraries" = no; then
45783   # Check for the libraries.
45784   # See if we find them without any special options.
45785   # Don't add to $LIBS permanently.
45786   ac_save_LIBS=$LIBS
45787   LIBS="-lXt $LIBS"
45788   cat >conftest.$ac_ext <<_ACEOF
45789 /* confdefs.h.  */
45790 _ACEOF
45791 cat confdefs.h >>conftest.$ac_ext
45792 cat >>conftest.$ac_ext <<_ACEOF
45793 /* end confdefs.h.  */
45794 #include <X11/Intrinsic.h>
45795 int
45796 main ()
45797 {
45798 XtMalloc (0)
45799   ;
45800   return 0;
45801 }
45802 _ACEOF
45803 rm -f conftest.$ac_objext conftest$ac_exeext
45804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45805   (eval $ac_link) 2>conftest.er1
45806   ac_status=$?
45807   grep -v '^ *+' conftest.er1 >conftest.err
45808   rm -f conftest.er1
45809   cat conftest.err >&5
45810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45811   (exit $ac_status); } &&
45812          { ac_try='test -z "$ac_c_werror_flag"
45813                          || test ! -s conftest.err'
45814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45815   (eval $ac_try) 2>&5
45816   ac_status=$?
45817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45818   (exit $ac_status); }; } &&
45819          { ac_try='test -s conftest$ac_exeext'
45820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45821   (eval $ac_try) 2>&5
45822   ac_status=$?
45823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45824   (exit $ac_status); }; }; then
45825   LIBS=$ac_save_LIBS
45826 # We can link X programs with no special library path.
45827 ac_x_libraries=
45828 else
45829   echo "$as_me: failed program was:" >&5
45830 sed 's/^/| /' conftest.$ac_ext >&5
45831
45832 LIBS=$ac_save_LIBS
45833 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
45834 do
45835   # Don't even attempt the hair of trying to link an X program!
45836   for ac_extension in a so sl; do
45837     if test -r $ac_dir/libXt.$ac_extension; then
45838       ac_x_libraries=$ac_dir
45839       break 2
45840     fi
45841   done
45842 done
45843 fi
45844 rm -f conftest.err conftest.$ac_objext \
45845       conftest$ac_exeext conftest.$ac_ext
45846 fi # $ac_x_libraries = no
45847
45848 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
45849   # Didn't find X anywhere.  Cache the known absence of X.
45850   ac_cv_have_x="have_x=no"
45851 else
45852   # Record where we found X for the cache.
45853   ac_cv_have_x="have_x=yes \
45854                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
45855 fi
45856 fi
45857
45858   fi
45859   eval "$ac_cv_have_x"
45860 fi # $with_x != no
45861
45862 if test "$have_x" != yes; then
45863   echo "$as_me:$LINENO: result: $have_x" >&5
45864 echo "${ECHO_T}$have_x" >&6
45865   no_x=yes
45866 else
45867   # If each of the values was on the command line, it overrides each guess.
45868   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
45869   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
45870   # Update the cache value to reflect the command line values.
45871   ac_cv_have_x="have_x=yes \
45872                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
45873   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
45874 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
45875 fi
45876
45877
45878 if test "$no_x" = yes; then
45879   # Not all programs may use this symbol, but it does not hurt to define it.
45880
45881 cat >>confdefs.h <<\_ACEOF
45882 #define X_DISPLAY_MISSING 1
45883 _ACEOF
45884
45885   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
45886 else
45887   if test -n "$x_includes"; then
45888     X_CFLAGS="$X_CFLAGS -I$x_includes"
45889   fi
45890
45891   # It would also be nice to do this for all -L options, not just this one.
45892   if test -n "$x_libraries"; then
45893     X_LIBS="$X_LIBS -L$x_libraries"
45894     # For Solaris; some versions of Sun CC require a space after -R and
45895     # others require no space.  Words are not sufficient . . . .
45896     case `(uname -sr) 2>/dev/null` in
45897     "SunOS 5"*)
45898       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
45899 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
45900       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
45901       cat >conftest.$ac_ext <<_ACEOF
45902 /* confdefs.h.  */
45903 _ACEOF
45904 cat confdefs.h >>conftest.$ac_ext
45905 cat >>conftest.$ac_ext <<_ACEOF
45906 /* end confdefs.h.  */
45907
45908 int
45909 main ()
45910 {
45911
45912   ;
45913   return 0;
45914 }
45915 _ACEOF
45916 rm -f conftest.$ac_objext conftest$ac_exeext
45917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45918   (eval $ac_link) 2>conftest.er1
45919   ac_status=$?
45920   grep -v '^ *+' conftest.er1 >conftest.err
45921   rm -f conftest.er1
45922   cat conftest.err >&5
45923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45924   (exit $ac_status); } &&
45925          { ac_try='test -z "$ac_c_werror_flag"
45926                          || test ! -s conftest.err'
45927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45928   (eval $ac_try) 2>&5
45929   ac_status=$?
45930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45931   (exit $ac_status); }; } &&
45932          { ac_try='test -s conftest$ac_exeext'
45933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45934   (eval $ac_try) 2>&5
45935   ac_status=$?
45936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45937   (exit $ac_status); }; }; then
45938   ac_R_nospace=yes
45939 else
45940   echo "$as_me: failed program was:" >&5
45941 sed 's/^/| /' conftest.$ac_ext >&5
45942
45943 ac_R_nospace=no
45944 fi
45945 rm -f conftest.err conftest.$ac_objext \
45946       conftest$ac_exeext conftest.$ac_ext
45947       if test $ac_R_nospace = yes; then
45948         echo "$as_me:$LINENO: result: no" >&5
45949 echo "${ECHO_T}no" >&6
45950         X_LIBS="$X_LIBS -R$x_libraries"
45951       else
45952         LIBS="$ac_xsave_LIBS -R $x_libraries"
45953         cat >conftest.$ac_ext <<_ACEOF
45954 /* confdefs.h.  */
45955 _ACEOF
45956 cat confdefs.h >>conftest.$ac_ext
45957 cat >>conftest.$ac_ext <<_ACEOF
45958 /* end confdefs.h.  */
45959
45960 int
45961 main ()
45962 {
45963
45964   ;
45965   return 0;
45966 }
45967 _ACEOF
45968 rm -f conftest.$ac_objext conftest$ac_exeext
45969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45970   (eval $ac_link) 2>conftest.er1
45971   ac_status=$?
45972   grep -v '^ *+' conftest.er1 >conftest.err
45973   rm -f conftest.er1
45974   cat conftest.err >&5
45975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45976   (exit $ac_status); } &&
45977          { ac_try='test -z "$ac_c_werror_flag"
45978                          || test ! -s conftest.err'
45979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45980   (eval $ac_try) 2>&5
45981   ac_status=$?
45982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45983   (exit $ac_status); }; } &&
45984          { ac_try='test -s conftest$ac_exeext'
45985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45986   (eval $ac_try) 2>&5
45987   ac_status=$?
45988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45989   (exit $ac_status); }; }; then
45990   ac_R_space=yes
45991 else
45992   echo "$as_me: failed program was:" >&5
45993 sed 's/^/| /' conftest.$ac_ext >&5
45994
45995 ac_R_space=no
45996 fi
45997 rm -f conftest.err conftest.$ac_objext \
45998       conftest$ac_exeext conftest.$ac_ext
45999         if test $ac_R_space = yes; then
46000           echo "$as_me:$LINENO: result: yes" >&5
46001 echo "${ECHO_T}yes" >&6
46002           X_LIBS="$X_LIBS -R $x_libraries"
46003         else
46004           echo "$as_me:$LINENO: result: neither works" >&5
46005 echo "${ECHO_T}neither works" >&6
46006         fi
46007       fi
46008       LIBS=$ac_xsave_LIBS
46009     esac
46010   fi
46011
46012   # Check for system-dependent libraries X programs must link with.
46013   # Do this before checking for the system-independent R6 libraries
46014   # (-lICE), since we may need -lsocket or whatever for X linking.
46015
46016   if test "$ISC" = yes; then
46017     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
46018   else
46019     # Martyn Johnson says this is needed for Ultrix, if the X
46020     # libraries were built with DECnet support.  And Karl Berry says
46021     # the Alpha needs dnet_stub (dnet does not exist).
46022     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
46023     cat >conftest.$ac_ext <<_ACEOF
46024 /* confdefs.h.  */
46025 _ACEOF
46026 cat confdefs.h >>conftest.$ac_ext
46027 cat >>conftest.$ac_ext <<_ACEOF
46028 /* end confdefs.h.  */
46029
46030 /* Override any gcc2 internal prototype to avoid an error.  */
46031 #ifdef __cplusplus
46032 extern "C"
46033 #endif
46034 /* We use char because int might match the return type of a gcc2
46035    builtin and then its argument prototype would still apply.  */
46036 char XOpenDisplay ();
46037 int
46038 main ()
46039 {
46040 XOpenDisplay ();
46041   ;
46042   return 0;
46043 }
46044 _ACEOF
46045 rm -f conftest.$ac_objext conftest$ac_exeext
46046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46047   (eval $ac_link) 2>conftest.er1
46048   ac_status=$?
46049   grep -v '^ *+' conftest.er1 >conftest.err
46050   rm -f conftest.er1
46051   cat conftest.err >&5
46052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46053   (exit $ac_status); } &&
46054          { ac_try='test -z "$ac_c_werror_flag"
46055                          || test ! -s conftest.err'
46056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46057   (eval $ac_try) 2>&5
46058   ac_status=$?
46059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46060   (exit $ac_status); }; } &&
46061          { ac_try='test -s conftest$ac_exeext'
46062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46063   (eval $ac_try) 2>&5
46064   ac_status=$?
46065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46066   (exit $ac_status); }; }; then
46067   :
46068 else
46069   echo "$as_me: failed program was:" >&5
46070 sed 's/^/| /' conftest.$ac_ext >&5
46071
46072 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
46073 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
46074 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
46075   echo $ECHO_N "(cached) $ECHO_C" >&6
46076 else
46077   ac_check_lib_save_LIBS=$LIBS
46078 LIBS="-ldnet  $LIBS"
46079 cat >conftest.$ac_ext <<_ACEOF
46080 /* confdefs.h.  */
46081 _ACEOF
46082 cat confdefs.h >>conftest.$ac_ext
46083 cat >>conftest.$ac_ext <<_ACEOF
46084 /* end confdefs.h.  */
46085
46086 /* Override any gcc2 internal prototype to avoid an error.  */
46087 #ifdef __cplusplus
46088 extern "C"
46089 #endif
46090 /* We use char because int might match the return type of a gcc2
46091    builtin and then its argument prototype would still apply.  */
46092 char dnet_ntoa ();
46093 int
46094 main ()
46095 {
46096 dnet_ntoa ();
46097   ;
46098   return 0;
46099 }
46100 _ACEOF
46101 rm -f conftest.$ac_objext conftest$ac_exeext
46102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46103   (eval $ac_link) 2>conftest.er1
46104   ac_status=$?
46105   grep -v '^ *+' conftest.er1 >conftest.err
46106   rm -f conftest.er1
46107   cat conftest.err >&5
46108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46109   (exit $ac_status); } &&
46110          { ac_try='test -z "$ac_c_werror_flag"
46111                          || test ! -s conftest.err'
46112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46113   (eval $ac_try) 2>&5
46114   ac_status=$?
46115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46116   (exit $ac_status); }; } &&
46117          { ac_try='test -s conftest$ac_exeext'
46118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46119   (eval $ac_try) 2>&5
46120   ac_status=$?
46121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46122   (exit $ac_status); }; }; then
46123   ac_cv_lib_dnet_dnet_ntoa=yes
46124 else
46125   echo "$as_me: failed program was:" >&5
46126 sed 's/^/| /' conftest.$ac_ext >&5
46127
46128 ac_cv_lib_dnet_dnet_ntoa=no
46129 fi
46130 rm -f conftest.err conftest.$ac_objext \
46131       conftest$ac_exeext conftest.$ac_ext
46132 LIBS=$ac_check_lib_save_LIBS
46133 fi
46134 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
46135 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
46136 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
46137   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
46138 fi
46139
46140     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
46141       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
46142 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
46143 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
46144   echo $ECHO_N "(cached) $ECHO_C" >&6
46145 else
46146   ac_check_lib_save_LIBS=$LIBS
46147 LIBS="-ldnet_stub  $LIBS"
46148 cat >conftest.$ac_ext <<_ACEOF
46149 /* confdefs.h.  */
46150 _ACEOF
46151 cat confdefs.h >>conftest.$ac_ext
46152 cat >>conftest.$ac_ext <<_ACEOF
46153 /* end confdefs.h.  */
46154
46155 /* Override any gcc2 internal prototype to avoid an error.  */
46156 #ifdef __cplusplus
46157 extern "C"
46158 #endif
46159 /* We use char because int might match the return type of a gcc2
46160    builtin and then its argument prototype would still apply.  */
46161 char dnet_ntoa ();
46162 int
46163 main ()
46164 {
46165 dnet_ntoa ();
46166   ;
46167   return 0;
46168 }
46169 _ACEOF
46170 rm -f conftest.$ac_objext conftest$ac_exeext
46171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46172   (eval $ac_link) 2>conftest.er1
46173   ac_status=$?
46174   grep -v '^ *+' conftest.er1 >conftest.err
46175   rm -f conftest.er1
46176   cat conftest.err >&5
46177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46178   (exit $ac_status); } &&
46179          { ac_try='test -z "$ac_c_werror_flag"
46180                          || test ! -s conftest.err'
46181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46182   (eval $ac_try) 2>&5
46183   ac_status=$?
46184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46185   (exit $ac_status); }; } &&
46186          { ac_try='test -s conftest$ac_exeext'
46187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46188   (eval $ac_try) 2>&5
46189   ac_status=$?
46190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46191   (exit $ac_status); }; }; then
46192   ac_cv_lib_dnet_stub_dnet_ntoa=yes
46193 else
46194   echo "$as_me: failed program was:" >&5
46195 sed 's/^/| /' conftest.$ac_ext >&5
46196
46197 ac_cv_lib_dnet_stub_dnet_ntoa=no
46198 fi
46199 rm -f conftest.err conftest.$ac_objext \
46200       conftest$ac_exeext conftest.$ac_ext
46201 LIBS=$ac_check_lib_save_LIBS
46202 fi
46203 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
46204 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
46205 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
46206   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
46207 fi
46208
46209     fi
46210 fi
46211 rm -f conftest.err conftest.$ac_objext \
46212       conftest$ac_exeext conftest.$ac_ext
46213     LIBS="$ac_xsave_LIBS"
46214
46215     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
46216     # to get the SysV transport functions.
46217     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
46218     # needs -lnsl.
46219     # The nsl library prevents programs from opening the X display
46220     # on Irix 5.2, according to T.E. Dickey.
46221     # The functions gethostbyname, getservbyname, and inet_addr are
46222     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
46223     echo "$as_me:$LINENO: checking for gethostbyname" >&5
46224 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
46225 if test "${ac_cv_func_gethostbyname+set}" = set; then
46226   echo $ECHO_N "(cached) $ECHO_C" >&6
46227 else
46228   cat >conftest.$ac_ext <<_ACEOF
46229 /* confdefs.h.  */
46230 _ACEOF
46231 cat confdefs.h >>conftest.$ac_ext
46232 cat >>conftest.$ac_ext <<_ACEOF
46233 /* end confdefs.h.  */
46234 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
46235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46236 #define gethostbyname innocuous_gethostbyname
46237
46238 /* System header to define __stub macros and hopefully few prototypes,
46239     which can conflict with char gethostbyname (); below.
46240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46241     <limits.h> exists even on freestanding compilers.  */
46242
46243 #ifdef __STDC__
46244 # include <limits.h>
46245 #else
46246 # include <assert.h>
46247 #endif
46248
46249 #undef gethostbyname
46250
46251 /* Override any gcc2 internal prototype to avoid an error.  */
46252 #ifdef __cplusplus
46253 extern "C"
46254 {
46255 #endif
46256 /* We use char because int might match the return type of a gcc2
46257    builtin and then its argument prototype would still apply.  */
46258 char gethostbyname ();
46259 /* The GNU C library defines this for functions which it implements
46260     to always fail with ENOSYS.  Some functions are actually named
46261     something starting with __ and the normal name is an alias.  */
46262 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
46263 choke me
46264 #else
46265 char (*f) () = gethostbyname;
46266 #endif
46267 #ifdef __cplusplus
46268 }
46269 #endif
46270
46271 int
46272 main ()
46273 {
46274 return f != gethostbyname;
46275   ;
46276   return 0;
46277 }
46278 _ACEOF
46279 rm -f conftest.$ac_objext conftest$ac_exeext
46280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46281   (eval $ac_link) 2>conftest.er1
46282   ac_status=$?
46283   grep -v '^ *+' conftest.er1 >conftest.err
46284   rm -f conftest.er1
46285   cat conftest.err >&5
46286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46287   (exit $ac_status); } &&
46288          { ac_try='test -z "$ac_c_werror_flag"
46289                          || test ! -s conftest.err'
46290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46291   (eval $ac_try) 2>&5
46292   ac_status=$?
46293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46294   (exit $ac_status); }; } &&
46295          { ac_try='test -s conftest$ac_exeext'
46296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46297   (eval $ac_try) 2>&5
46298   ac_status=$?
46299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46300   (exit $ac_status); }; }; then
46301   ac_cv_func_gethostbyname=yes
46302 else
46303   echo "$as_me: failed program was:" >&5
46304 sed 's/^/| /' conftest.$ac_ext >&5
46305
46306 ac_cv_func_gethostbyname=no
46307 fi
46308 rm -f conftest.err conftest.$ac_objext \
46309       conftest$ac_exeext conftest.$ac_ext
46310 fi
46311 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
46312 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
46313
46314     if test $ac_cv_func_gethostbyname = no; then
46315       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
46316 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
46317 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
46318   echo $ECHO_N "(cached) $ECHO_C" >&6
46319 else
46320   ac_check_lib_save_LIBS=$LIBS
46321 LIBS="-lnsl  $LIBS"
46322 cat >conftest.$ac_ext <<_ACEOF
46323 /* confdefs.h.  */
46324 _ACEOF
46325 cat confdefs.h >>conftest.$ac_ext
46326 cat >>conftest.$ac_ext <<_ACEOF
46327 /* end confdefs.h.  */
46328
46329 /* Override any gcc2 internal prototype to avoid an error.  */
46330 #ifdef __cplusplus
46331 extern "C"
46332 #endif
46333 /* We use char because int might match the return type of a gcc2
46334    builtin and then its argument prototype would still apply.  */
46335 char gethostbyname ();
46336 int
46337 main ()
46338 {
46339 gethostbyname ();
46340   ;
46341   return 0;
46342 }
46343 _ACEOF
46344 rm -f conftest.$ac_objext conftest$ac_exeext
46345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46346   (eval $ac_link) 2>conftest.er1
46347   ac_status=$?
46348   grep -v '^ *+' conftest.er1 >conftest.err
46349   rm -f conftest.er1
46350   cat conftest.err >&5
46351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46352   (exit $ac_status); } &&
46353          { ac_try='test -z "$ac_c_werror_flag"
46354                          || test ! -s conftest.err'
46355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46356   (eval $ac_try) 2>&5
46357   ac_status=$?
46358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46359   (exit $ac_status); }; } &&
46360          { ac_try='test -s conftest$ac_exeext'
46361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46362   (eval $ac_try) 2>&5
46363   ac_status=$?
46364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46365   (exit $ac_status); }; }; then
46366   ac_cv_lib_nsl_gethostbyname=yes
46367 else
46368   echo "$as_me: failed program was:" >&5
46369 sed 's/^/| /' conftest.$ac_ext >&5
46370
46371 ac_cv_lib_nsl_gethostbyname=no
46372 fi
46373 rm -f conftest.err conftest.$ac_objext \
46374       conftest$ac_exeext conftest.$ac_ext
46375 LIBS=$ac_check_lib_save_LIBS
46376 fi
46377 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
46378 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
46379 if test $ac_cv_lib_nsl_gethostbyname = yes; then
46380   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
46381 fi
46382
46383       if test $ac_cv_lib_nsl_gethostbyname = no; then
46384         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
46385 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
46386 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
46387   echo $ECHO_N "(cached) $ECHO_C" >&6
46388 else
46389   ac_check_lib_save_LIBS=$LIBS
46390 LIBS="-lbsd  $LIBS"
46391 cat >conftest.$ac_ext <<_ACEOF
46392 /* confdefs.h.  */
46393 _ACEOF
46394 cat confdefs.h >>conftest.$ac_ext
46395 cat >>conftest.$ac_ext <<_ACEOF
46396 /* end confdefs.h.  */
46397
46398 /* Override any gcc2 internal prototype to avoid an error.  */
46399 #ifdef __cplusplus
46400 extern "C"
46401 #endif
46402 /* We use char because int might match the return type of a gcc2
46403    builtin and then its argument prototype would still apply.  */
46404 char gethostbyname ();
46405 int
46406 main ()
46407 {
46408 gethostbyname ();
46409   ;
46410   return 0;
46411 }
46412 _ACEOF
46413 rm -f conftest.$ac_objext conftest$ac_exeext
46414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46415   (eval $ac_link) 2>conftest.er1
46416   ac_status=$?
46417   grep -v '^ *+' conftest.er1 >conftest.err
46418   rm -f conftest.er1
46419   cat conftest.err >&5
46420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46421   (exit $ac_status); } &&
46422          { ac_try='test -z "$ac_c_werror_flag"
46423                          || test ! -s conftest.err'
46424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46425   (eval $ac_try) 2>&5
46426   ac_status=$?
46427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46428   (exit $ac_status); }; } &&
46429          { ac_try='test -s conftest$ac_exeext'
46430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46431   (eval $ac_try) 2>&5
46432   ac_status=$?
46433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46434   (exit $ac_status); }; }; then
46435   ac_cv_lib_bsd_gethostbyname=yes
46436 else
46437   echo "$as_me: failed program was:" >&5
46438 sed 's/^/| /' conftest.$ac_ext >&5
46439
46440 ac_cv_lib_bsd_gethostbyname=no
46441 fi
46442 rm -f conftest.err conftest.$ac_objext \
46443       conftest$ac_exeext conftest.$ac_ext
46444 LIBS=$ac_check_lib_save_LIBS
46445 fi
46446 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
46447 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
46448 if test $ac_cv_lib_bsd_gethostbyname = yes; then
46449   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
46450 fi
46451
46452       fi
46453     fi
46454
46455     # lieder@skyler.mavd.honeywell.com says without -lsocket,
46456     # socket/setsockopt and other routines are undefined under SCO ODT
46457     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
46458     # on later versions), says Simon Leinen: it contains gethostby*
46459     # variants that don't use the name server (or something).  -lsocket
46460     # must be given before -lnsl if both are needed.  We assume that
46461     # if connect needs -lnsl, so does gethostbyname.
46462     echo "$as_me:$LINENO: checking for connect" >&5
46463 echo $ECHO_N "checking for connect... $ECHO_C" >&6
46464 if test "${ac_cv_func_connect+set}" = set; then
46465   echo $ECHO_N "(cached) $ECHO_C" >&6
46466 else
46467   cat >conftest.$ac_ext <<_ACEOF
46468 /* confdefs.h.  */
46469 _ACEOF
46470 cat confdefs.h >>conftest.$ac_ext
46471 cat >>conftest.$ac_ext <<_ACEOF
46472 /* end confdefs.h.  */
46473 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
46474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46475 #define connect innocuous_connect
46476
46477 /* System header to define __stub macros and hopefully few prototypes,
46478     which can conflict with char connect (); below.
46479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46480     <limits.h> exists even on freestanding compilers.  */
46481
46482 #ifdef __STDC__
46483 # include <limits.h>
46484 #else
46485 # include <assert.h>
46486 #endif
46487
46488 #undef connect
46489
46490 /* Override any gcc2 internal prototype to avoid an error.  */
46491 #ifdef __cplusplus
46492 extern "C"
46493 {
46494 #endif
46495 /* We use char because int might match the return type of a gcc2
46496    builtin and then its argument prototype would still apply.  */
46497 char connect ();
46498 /* The GNU C library defines this for functions which it implements
46499     to always fail with ENOSYS.  Some functions are actually named
46500     something starting with __ and the normal name is an alias.  */
46501 #if defined (__stub_connect) || defined (__stub___connect)
46502 choke me
46503 #else
46504 char (*f) () = connect;
46505 #endif
46506 #ifdef __cplusplus
46507 }
46508 #endif
46509
46510 int
46511 main ()
46512 {
46513 return f != connect;
46514   ;
46515   return 0;
46516 }
46517 _ACEOF
46518 rm -f conftest.$ac_objext conftest$ac_exeext
46519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46520   (eval $ac_link) 2>conftest.er1
46521   ac_status=$?
46522   grep -v '^ *+' conftest.er1 >conftest.err
46523   rm -f conftest.er1
46524   cat conftest.err >&5
46525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46526   (exit $ac_status); } &&
46527          { ac_try='test -z "$ac_c_werror_flag"
46528                          || test ! -s conftest.err'
46529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46530   (eval $ac_try) 2>&5
46531   ac_status=$?
46532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46533   (exit $ac_status); }; } &&
46534          { ac_try='test -s conftest$ac_exeext'
46535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46536   (eval $ac_try) 2>&5
46537   ac_status=$?
46538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46539   (exit $ac_status); }; }; then
46540   ac_cv_func_connect=yes
46541 else
46542   echo "$as_me: failed program was:" >&5
46543 sed 's/^/| /' conftest.$ac_ext >&5
46544
46545 ac_cv_func_connect=no
46546 fi
46547 rm -f conftest.err conftest.$ac_objext \
46548       conftest$ac_exeext conftest.$ac_ext
46549 fi
46550 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
46551 echo "${ECHO_T}$ac_cv_func_connect" >&6
46552
46553     if test $ac_cv_func_connect = no; then
46554       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
46555 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
46556 if test "${ac_cv_lib_socket_connect+set}" = set; then
46557   echo $ECHO_N "(cached) $ECHO_C" >&6
46558 else
46559   ac_check_lib_save_LIBS=$LIBS
46560 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
46561 cat >conftest.$ac_ext <<_ACEOF
46562 /* confdefs.h.  */
46563 _ACEOF
46564 cat confdefs.h >>conftest.$ac_ext
46565 cat >>conftest.$ac_ext <<_ACEOF
46566 /* end confdefs.h.  */
46567
46568 /* Override any gcc2 internal prototype to avoid an error.  */
46569 #ifdef __cplusplus
46570 extern "C"
46571 #endif
46572 /* We use char because int might match the return type of a gcc2
46573    builtin and then its argument prototype would still apply.  */
46574 char connect ();
46575 int
46576 main ()
46577 {
46578 connect ();
46579   ;
46580   return 0;
46581 }
46582 _ACEOF
46583 rm -f conftest.$ac_objext conftest$ac_exeext
46584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46585   (eval $ac_link) 2>conftest.er1
46586   ac_status=$?
46587   grep -v '^ *+' conftest.er1 >conftest.err
46588   rm -f conftest.er1
46589   cat conftest.err >&5
46590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46591   (exit $ac_status); } &&
46592          { ac_try='test -z "$ac_c_werror_flag"
46593                          || test ! -s conftest.err'
46594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46595   (eval $ac_try) 2>&5
46596   ac_status=$?
46597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46598   (exit $ac_status); }; } &&
46599          { ac_try='test -s conftest$ac_exeext'
46600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46601   (eval $ac_try) 2>&5
46602   ac_status=$?
46603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46604   (exit $ac_status); }; }; then
46605   ac_cv_lib_socket_connect=yes
46606 else
46607   echo "$as_me: failed program was:" >&5
46608 sed 's/^/| /' conftest.$ac_ext >&5
46609
46610 ac_cv_lib_socket_connect=no
46611 fi
46612 rm -f conftest.err conftest.$ac_objext \
46613       conftest$ac_exeext conftest.$ac_ext
46614 LIBS=$ac_check_lib_save_LIBS
46615 fi
46616 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
46617 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
46618 if test $ac_cv_lib_socket_connect = yes; then
46619   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
46620 fi
46621
46622     fi
46623
46624     # Guillermo Gomez says -lposix is necessary on A/UX.
46625     echo "$as_me:$LINENO: checking for remove" >&5
46626 echo $ECHO_N "checking for remove... $ECHO_C" >&6
46627 if test "${ac_cv_func_remove+set}" = set; then
46628   echo $ECHO_N "(cached) $ECHO_C" >&6
46629 else
46630   cat >conftest.$ac_ext <<_ACEOF
46631 /* confdefs.h.  */
46632 _ACEOF
46633 cat confdefs.h >>conftest.$ac_ext
46634 cat >>conftest.$ac_ext <<_ACEOF
46635 /* end confdefs.h.  */
46636 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
46637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46638 #define remove innocuous_remove
46639
46640 /* System header to define __stub macros and hopefully few prototypes,
46641     which can conflict with char remove (); below.
46642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46643     <limits.h> exists even on freestanding compilers.  */
46644
46645 #ifdef __STDC__
46646 # include <limits.h>
46647 #else
46648 # include <assert.h>
46649 #endif
46650
46651 #undef remove
46652
46653 /* Override any gcc2 internal prototype to avoid an error.  */
46654 #ifdef __cplusplus
46655 extern "C"
46656 {
46657 #endif
46658 /* We use char because int might match the return type of a gcc2
46659    builtin and then its argument prototype would still apply.  */
46660 char remove ();
46661 /* The GNU C library defines this for functions which it implements
46662     to always fail with ENOSYS.  Some functions are actually named
46663     something starting with __ and the normal name is an alias.  */
46664 #if defined (__stub_remove) || defined (__stub___remove)
46665 choke me
46666 #else
46667 char (*f) () = remove;
46668 #endif
46669 #ifdef __cplusplus
46670 }
46671 #endif
46672
46673 int
46674 main ()
46675 {
46676 return f != remove;
46677   ;
46678   return 0;
46679 }
46680 _ACEOF
46681 rm -f conftest.$ac_objext conftest$ac_exeext
46682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46683   (eval $ac_link) 2>conftest.er1
46684   ac_status=$?
46685   grep -v '^ *+' conftest.er1 >conftest.err
46686   rm -f conftest.er1
46687   cat conftest.err >&5
46688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46689   (exit $ac_status); } &&
46690          { ac_try='test -z "$ac_c_werror_flag"
46691                          || test ! -s conftest.err'
46692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46693   (eval $ac_try) 2>&5
46694   ac_status=$?
46695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46696   (exit $ac_status); }; } &&
46697          { ac_try='test -s conftest$ac_exeext'
46698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46699   (eval $ac_try) 2>&5
46700   ac_status=$?
46701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46702   (exit $ac_status); }; }; then
46703   ac_cv_func_remove=yes
46704 else
46705   echo "$as_me: failed program was:" >&5
46706 sed 's/^/| /' conftest.$ac_ext >&5
46707
46708 ac_cv_func_remove=no
46709 fi
46710 rm -f conftest.err conftest.$ac_objext \
46711       conftest$ac_exeext conftest.$ac_ext
46712 fi
46713 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
46714 echo "${ECHO_T}$ac_cv_func_remove" >&6
46715
46716     if test $ac_cv_func_remove = no; then
46717       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
46718 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
46719 if test "${ac_cv_lib_posix_remove+set}" = set; then
46720   echo $ECHO_N "(cached) $ECHO_C" >&6
46721 else
46722   ac_check_lib_save_LIBS=$LIBS
46723 LIBS="-lposix  $LIBS"
46724 cat >conftest.$ac_ext <<_ACEOF
46725 /* confdefs.h.  */
46726 _ACEOF
46727 cat confdefs.h >>conftest.$ac_ext
46728 cat >>conftest.$ac_ext <<_ACEOF
46729 /* end confdefs.h.  */
46730
46731 /* Override any gcc2 internal prototype to avoid an error.  */
46732 #ifdef __cplusplus
46733 extern "C"
46734 #endif
46735 /* We use char because int might match the return type of a gcc2
46736    builtin and then its argument prototype would still apply.  */
46737 char remove ();
46738 int
46739 main ()
46740 {
46741 remove ();
46742   ;
46743   return 0;
46744 }
46745 _ACEOF
46746 rm -f conftest.$ac_objext conftest$ac_exeext
46747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46748   (eval $ac_link) 2>conftest.er1
46749   ac_status=$?
46750   grep -v '^ *+' conftest.er1 >conftest.err
46751   rm -f conftest.er1
46752   cat conftest.err >&5
46753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46754   (exit $ac_status); } &&
46755          { ac_try='test -z "$ac_c_werror_flag"
46756                          || test ! -s conftest.err'
46757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46758   (eval $ac_try) 2>&5
46759   ac_status=$?
46760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46761   (exit $ac_status); }; } &&
46762          { ac_try='test -s conftest$ac_exeext'
46763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46764   (eval $ac_try) 2>&5
46765   ac_status=$?
46766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46767   (exit $ac_status); }; }; then
46768   ac_cv_lib_posix_remove=yes
46769 else
46770   echo "$as_me: failed program was:" >&5
46771 sed 's/^/| /' conftest.$ac_ext >&5
46772
46773 ac_cv_lib_posix_remove=no
46774 fi
46775 rm -f conftest.err conftest.$ac_objext \
46776       conftest$ac_exeext conftest.$ac_ext
46777 LIBS=$ac_check_lib_save_LIBS
46778 fi
46779 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
46780 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
46781 if test $ac_cv_lib_posix_remove = yes; then
46782   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
46783 fi
46784
46785     fi
46786
46787     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
46788     echo "$as_me:$LINENO: checking for shmat" >&5
46789 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
46790 if test "${ac_cv_func_shmat+set}" = set; then
46791   echo $ECHO_N "(cached) $ECHO_C" >&6
46792 else
46793   cat >conftest.$ac_ext <<_ACEOF
46794 /* confdefs.h.  */
46795 _ACEOF
46796 cat confdefs.h >>conftest.$ac_ext
46797 cat >>conftest.$ac_ext <<_ACEOF
46798 /* end confdefs.h.  */
46799 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
46800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46801 #define shmat innocuous_shmat
46802
46803 /* System header to define __stub macros and hopefully few prototypes,
46804     which can conflict with char shmat (); below.
46805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46806     <limits.h> exists even on freestanding compilers.  */
46807
46808 #ifdef __STDC__
46809 # include <limits.h>
46810 #else
46811 # include <assert.h>
46812 #endif
46813
46814 #undef shmat
46815
46816 /* Override any gcc2 internal prototype to avoid an error.  */
46817 #ifdef __cplusplus
46818 extern "C"
46819 {
46820 #endif
46821 /* We use char because int might match the return type of a gcc2
46822    builtin and then its argument prototype would still apply.  */
46823 char shmat ();
46824 /* The GNU C library defines this for functions which it implements
46825     to always fail with ENOSYS.  Some functions are actually named
46826     something starting with __ and the normal name is an alias.  */
46827 #if defined (__stub_shmat) || defined (__stub___shmat)
46828 choke me
46829 #else
46830 char (*f) () = shmat;
46831 #endif
46832 #ifdef __cplusplus
46833 }
46834 #endif
46835
46836 int
46837 main ()
46838 {
46839 return f != shmat;
46840   ;
46841   return 0;
46842 }
46843 _ACEOF
46844 rm -f conftest.$ac_objext conftest$ac_exeext
46845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46846   (eval $ac_link) 2>conftest.er1
46847   ac_status=$?
46848   grep -v '^ *+' conftest.er1 >conftest.err
46849   rm -f conftest.er1
46850   cat conftest.err >&5
46851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46852   (exit $ac_status); } &&
46853          { ac_try='test -z "$ac_c_werror_flag"
46854                          || test ! -s conftest.err'
46855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46856   (eval $ac_try) 2>&5
46857   ac_status=$?
46858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46859   (exit $ac_status); }; } &&
46860          { ac_try='test -s conftest$ac_exeext'
46861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46862   (eval $ac_try) 2>&5
46863   ac_status=$?
46864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46865   (exit $ac_status); }; }; then
46866   ac_cv_func_shmat=yes
46867 else
46868   echo "$as_me: failed program was:" >&5
46869 sed 's/^/| /' conftest.$ac_ext >&5
46870
46871 ac_cv_func_shmat=no
46872 fi
46873 rm -f conftest.err conftest.$ac_objext \
46874       conftest$ac_exeext conftest.$ac_ext
46875 fi
46876 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
46877 echo "${ECHO_T}$ac_cv_func_shmat" >&6
46878
46879     if test $ac_cv_func_shmat = no; then
46880       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
46881 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
46882 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
46883   echo $ECHO_N "(cached) $ECHO_C" >&6
46884 else
46885   ac_check_lib_save_LIBS=$LIBS
46886 LIBS="-lipc  $LIBS"
46887 cat >conftest.$ac_ext <<_ACEOF
46888 /* confdefs.h.  */
46889 _ACEOF
46890 cat confdefs.h >>conftest.$ac_ext
46891 cat >>conftest.$ac_ext <<_ACEOF
46892 /* end confdefs.h.  */
46893
46894 /* Override any gcc2 internal prototype to avoid an error.  */
46895 #ifdef __cplusplus
46896 extern "C"
46897 #endif
46898 /* We use char because int might match the return type of a gcc2
46899    builtin and then its argument prototype would still apply.  */
46900 char shmat ();
46901 int
46902 main ()
46903 {
46904 shmat ();
46905   ;
46906   return 0;
46907 }
46908 _ACEOF
46909 rm -f conftest.$ac_objext conftest$ac_exeext
46910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46911   (eval $ac_link) 2>conftest.er1
46912   ac_status=$?
46913   grep -v '^ *+' conftest.er1 >conftest.err
46914   rm -f conftest.er1
46915   cat conftest.err >&5
46916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46917   (exit $ac_status); } &&
46918          { ac_try='test -z "$ac_c_werror_flag"
46919                          || test ! -s conftest.err'
46920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46921   (eval $ac_try) 2>&5
46922   ac_status=$?
46923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46924   (exit $ac_status); }; } &&
46925          { ac_try='test -s conftest$ac_exeext'
46926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46927   (eval $ac_try) 2>&5
46928   ac_status=$?
46929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46930   (exit $ac_status); }; }; then
46931   ac_cv_lib_ipc_shmat=yes
46932 else
46933   echo "$as_me: failed program was:" >&5
46934 sed 's/^/| /' conftest.$ac_ext >&5
46935
46936 ac_cv_lib_ipc_shmat=no
46937 fi
46938 rm -f conftest.err conftest.$ac_objext \
46939       conftest$ac_exeext conftest.$ac_ext
46940 LIBS=$ac_check_lib_save_LIBS
46941 fi
46942 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
46943 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
46944 if test $ac_cv_lib_ipc_shmat = yes; then
46945   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
46946 fi
46947
46948     fi
46949   fi
46950
46951   # Check for libraries that X11R6 Xt/Xaw programs need.
46952   ac_save_LDFLAGS=$LDFLAGS
46953   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
46954   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
46955   # check for ICE first), but we must link in the order -lSM -lICE or
46956   # we get undefined symbols.  So assume we have SM if we have ICE.
46957   # These have to be linked with before -lX11, unlike the other
46958   # libraries we check for below, so use a different variable.
46959   # John Interrante, Karl Berry
46960   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
46961 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
46962 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
46963   echo $ECHO_N "(cached) $ECHO_C" >&6
46964 else
46965   ac_check_lib_save_LIBS=$LIBS
46966 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
46967 cat >conftest.$ac_ext <<_ACEOF
46968 /* confdefs.h.  */
46969 _ACEOF
46970 cat confdefs.h >>conftest.$ac_ext
46971 cat >>conftest.$ac_ext <<_ACEOF
46972 /* end confdefs.h.  */
46973
46974 /* Override any gcc2 internal prototype to avoid an error.  */
46975 #ifdef __cplusplus
46976 extern "C"
46977 #endif
46978 /* We use char because int might match the return type of a gcc2
46979    builtin and then its argument prototype would still apply.  */
46980 char IceConnectionNumber ();
46981 int
46982 main ()
46983 {
46984 IceConnectionNumber ();
46985   ;
46986   return 0;
46987 }
46988 _ACEOF
46989 rm -f conftest.$ac_objext conftest$ac_exeext
46990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46991   (eval $ac_link) 2>conftest.er1
46992   ac_status=$?
46993   grep -v '^ *+' conftest.er1 >conftest.err
46994   rm -f conftest.er1
46995   cat conftest.err >&5
46996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46997   (exit $ac_status); } &&
46998          { ac_try='test -z "$ac_c_werror_flag"
46999                          || test ! -s conftest.err'
47000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47001   (eval $ac_try) 2>&5
47002   ac_status=$?
47003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47004   (exit $ac_status); }; } &&
47005          { ac_try='test -s conftest$ac_exeext'
47006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47007   (eval $ac_try) 2>&5
47008   ac_status=$?
47009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47010   (exit $ac_status); }; }; then
47011   ac_cv_lib_ICE_IceConnectionNumber=yes
47012 else
47013   echo "$as_me: failed program was:" >&5
47014 sed 's/^/| /' conftest.$ac_ext >&5
47015
47016 ac_cv_lib_ICE_IceConnectionNumber=no
47017 fi
47018 rm -f conftest.err conftest.$ac_objext \
47019       conftest$ac_exeext conftest.$ac_ext
47020 LIBS=$ac_check_lib_save_LIBS
47021 fi
47022 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
47023 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
47024 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
47025   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
47026 fi
47027
47028   LDFLAGS=$ac_save_LDFLAGS
47029
47030 fi
47031
47032
47033 # try to figure out if we need any additional ld flags, like -R
47034 # and yes, the autoconf X test is utterly broken
47035 if test "$no_x" != yes; then
47036         echo "$as_me:$LINENO: checking for special X linker flags" >&5
47037 echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
47038 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
47039   echo $ECHO_N "(cached) $ECHO_C" >&6
47040 else
47041
47042         ac_save_libs="$LIBS"
47043         ac_save_cflags="$CFLAGS"
47044         CFLAGS="$CFLAGS $X_CFLAGS"
47045         krb_cv_sys_x_libs_rpath=""
47046         krb_cv_sys_x_libs=""
47047         for rflag in "" "-R" "-R " "-rpath "; do
47048                 if test "$rflag" = ""; then
47049                         foo="$X_LIBS"
47050                 else
47051                         foo=""
47052                         for flag in $X_LIBS; do
47053                         case $flag in
47054                         -L*)
47055                                 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
47056                                 ;;
47057                         *)
47058                                 foo="$foo $flag"
47059                                 ;;
47060                         esac
47061                         done
47062                 fi
47063                 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
47064                 if test "$cross_compiling" = yes; then
47065   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
47066 See \`config.log' for more details." >&5
47067 echo "$as_me: error: cannot run test program while cross compiling
47068 See \`config.log' for more details." >&2;}
47069    { (exit 1); exit 1; }; }
47070 else
47071   cat >conftest.$ac_ext <<_ACEOF
47072 /* confdefs.h.  */
47073 _ACEOF
47074 cat confdefs.h >>conftest.$ac_ext
47075 cat >>conftest.$ac_ext <<_ACEOF
47076 /* end confdefs.h.  */
47077
47078                 #include <X11/Xlib.h>
47079                 foo()
47080                 {
47081                 XOpenDisplay(NULL);
47082                 }
47083                 main()
47084                 {
47085                 return 0;
47086                 }
47087
47088 _ACEOF
47089 rm -f conftest$ac_exeext
47090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47091   (eval $ac_link) 2>&5
47092   ac_status=$?
47093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47096   (eval $ac_try) 2>&5
47097   ac_status=$?
47098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47099   (exit $ac_status); }; }; then
47100   krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
47101 else
47102   echo "$as_me: program exited with status $ac_status" >&5
47103 echo "$as_me: failed program was:" >&5
47104 sed 's/^/| /' conftest.$ac_ext >&5
47105
47106 ( exit $ac_status )
47107 :
47108 fi
47109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47110 fi
47111         done
47112         LIBS="$ac_save_libs"
47113         CFLAGS="$ac_save_cflags"
47114
47115 fi
47116 echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
47117 echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
47118         X_LIBS="$krb_cv_sys_x_libs"
47119 fi
47120
47121
47122
47123
47124 if test "$no_x" != yes; then
47125   HAVE_X_TRUE=
47126   HAVE_X_FALSE='#'
47127 else
47128   HAVE_X_TRUE='#'
47129   HAVE_X_FALSE=
47130 fi
47131
47132
47133
47134 save_CFLAGS="$CFLAGS"
47135 CFLAGS="$X_CFLAGS $CFLAGS"
47136 save_LIBS="$LIBS"
47137 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
47138 save_LDFLAGS="$LDFLAGS"
47139 LDFLAGS="$LDFLAGS $X_LIBS"
47140
47141 ## check for XauWriteAuth first, so we detect the case where
47142 ## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
47143 ## could be done by checking for XauReadAuth in -lXau first, but this
47144 ## breaks in IRIX 6.5
47145
47146
47147
47148
47149 echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
47150 echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
47151 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
47152   echo $ECHO_N "(cached) $ECHO_C" >&6
47153 else
47154
47155 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
47156         ac_save_LIBS="$LIBS"
47157         for ac_lib in "" X11 Xau; do
47158                 case "$ac_lib" in
47159                 "") ;;
47160                 yes) ac_lib="" ;;
47161                 no) continue ;;
47162                 -l*) ;;
47163                 *) ac_lib="-l$ac_lib" ;;
47164                 esac
47165                 LIBS=" $ac_lib  $ac_save_LIBS"
47166                 cat >conftest.$ac_ext <<_ACEOF
47167 /* confdefs.h.  */
47168 _ACEOF
47169 cat confdefs.h >>conftest.$ac_ext
47170 cat >>conftest.$ac_ext <<_ACEOF
47171 /* end confdefs.h.  */
47172
47173 int
47174 main ()
47175 {
47176 XauWriteAuth()
47177   ;
47178   return 0;
47179 }
47180 _ACEOF
47181 rm -f conftest.$ac_objext conftest$ac_exeext
47182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47183   (eval $ac_link) 2>conftest.er1
47184   ac_status=$?
47185   grep -v '^ *+' conftest.er1 >conftest.err
47186   rm -f conftest.er1
47187   cat conftest.err >&5
47188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47189   (exit $ac_status); } &&
47190          { ac_try='test -z "$ac_c_werror_flag"
47191                          || test ! -s conftest.err'
47192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47193   (eval $ac_try) 2>&5
47194   ac_status=$?
47195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47196   (exit $ac_status); }; } &&
47197          { ac_try='test -s conftest$ac_exeext'
47198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47199   (eval $ac_try) 2>&5
47200   ac_status=$?
47201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47202   (exit $ac_status); }; }; then
47203   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
47204 else
47205   echo "$as_me: failed program was:" >&5
47206 sed 's/^/| /' conftest.$ac_ext >&5
47207
47208 fi
47209 rm -f conftest.err conftest.$ac_objext \
47210       conftest$ac_exeext conftest.$ac_ext
47211         done
47212         eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
47213         LIBS="$ac_save_LIBS"
47214 fi
47215
47216 fi
47217
47218
47219 eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
47220
47221 if false; then
47222
47223 for ac_func in XauWriteAuth
47224 do
47225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47226 echo "$as_me:$LINENO: checking for $ac_func" >&5
47227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47228 if eval "test \"\${$as_ac_var+set}\" = set"; then
47229   echo $ECHO_N "(cached) $ECHO_C" >&6
47230 else
47231   cat >conftest.$ac_ext <<_ACEOF
47232 /* confdefs.h.  */
47233 _ACEOF
47234 cat confdefs.h >>conftest.$ac_ext
47235 cat >>conftest.$ac_ext <<_ACEOF
47236 /* end confdefs.h.  */
47237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47239 #define $ac_func innocuous_$ac_func
47240
47241 /* System header to define __stub macros and hopefully few prototypes,
47242     which can conflict with char $ac_func (); below.
47243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47244     <limits.h> exists even on freestanding compilers.  */
47245
47246 #ifdef __STDC__
47247 # include <limits.h>
47248 #else
47249 # include <assert.h>
47250 #endif
47251
47252 #undef $ac_func
47253
47254 /* Override any gcc2 internal prototype to avoid an error.  */
47255 #ifdef __cplusplus
47256 extern "C"
47257 {
47258 #endif
47259 /* We use char because int might match the return type of a gcc2
47260    builtin and then its argument prototype would still apply.  */
47261 char $ac_func ();
47262 /* The GNU C library defines this for functions which it implements
47263     to always fail with ENOSYS.  Some functions are actually named
47264     something starting with __ and the normal name is an alias.  */
47265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47266 choke me
47267 #else
47268 char (*f) () = $ac_func;
47269 #endif
47270 #ifdef __cplusplus
47271 }
47272 #endif
47273
47274 int
47275 main ()
47276 {
47277 return f != $ac_func;
47278   ;
47279   return 0;
47280 }
47281 _ACEOF
47282 rm -f conftest.$ac_objext conftest$ac_exeext
47283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47284   (eval $ac_link) 2>conftest.er1
47285   ac_status=$?
47286   grep -v '^ *+' conftest.er1 >conftest.err
47287   rm -f conftest.er1
47288   cat conftest.err >&5
47289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47290   (exit $ac_status); } &&
47291          { ac_try='test -z "$ac_c_werror_flag"
47292                          || test ! -s conftest.err'
47293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47294   (eval $ac_try) 2>&5
47295   ac_status=$?
47296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47297   (exit $ac_status); }; } &&
47298          { ac_try='test -s conftest$ac_exeext'
47299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47300   (eval $ac_try) 2>&5
47301   ac_status=$?
47302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47303   (exit $ac_status); }; }; then
47304   eval "$as_ac_var=yes"
47305 else
47306   echo "$as_me: failed program was:" >&5
47307 sed 's/^/| /' conftest.$ac_ext >&5
47308
47309 eval "$as_ac_var=no"
47310 fi
47311 rm -f conftest.err conftest.$ac_objext \
47312       conftest$ac_exeext conftest.$ac_ext
47313 fi
47314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47316 if test `eval echo '${'$as_ac_var'}'` = yes; then
47317   cat >>confdefs.h <<_ACEOF
47318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47319 _ACEOF
47320
47321 fi
47322 done
47323
47324 fi
47325 # XauWriteAuth
47326 eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47327 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47328 eval "LIB_XauWriteAuth=$ac_res"
47329
47330 case "$ac_res" in
47331         yes)
47332         eval "ac_cv_func_XauWriteAuth=yes"
47333         eval "LIB_XauWriteAuth="
47334         cat >>confdefs.h <<_ACEOF
47335 #define $ac_tr_func 1
47336 _ACEOF
47337
47338         echo "$as_me:$LINENO: result: yes" >&5
47339 echo "${ECHO_T}yes" >&6
47340         ;;
47341         no)
47342         eval "ac_cv_func_XauWriteAuth=no"
47343         eval "LIB_XauWriteAuth="
47344         echo "$as_me:$LINENO: result: no" >&5
47345 echo "${ECHO_T}no" >&6
47346         ;;
47347         *)
47348         eval "ac_cv_func_XauWriteAuth=yes"
47349         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47350         cat >>confdefs.h <<_ACEOF
47351 #define $ac_tr_func 1
47352 _ACEOF
47353
47354         cat >>confdefs.h <<_ACEOF
47355 #define $ac_tr_lib 1
47356 _ACEOF
47357
47358         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47359 echo "${ECHO_T}yes, in $ac_res" >&6
47360         ;;
47361 esac
47362
47363
47364 ac_xxx="$LIBS"
47365 LIBS="$LIB_XauWriteAuth $LIBS"
47366
47367
47368
47369 echo "$as_me:$LINENO: checking for XauReadAuth" >&5
47370 echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
47371 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
47372   echo $ECHO_N "(cached) $ECHO_C" >&6
47373 else
47374
47375 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
47376         ac_save_LIBS="$LIBS"
47377         for ac_lib in "" X11 Xau; do
47378                 case "$ac_lib" in
47379                 "") ;;
47380                 yes) ac_lib="" ;;
47381                 no) continue ;;
47382                 -l*) ;;
47383                 *) ac_lib="-l$ac_lib" ;;
47384                 esac
47385                 LIBS=" $ac_lib  $ac_save_LIBS"
47386                 cat >conftest.$ac_ext <<_ACEOF
47387 /* confdefs.h.  */
47388 _ACEOF
47389 cat confdefs.h >>conftest.$ac_ext
47390 cat >>conftest.$ac_ext <<_ACEOF
47391 /* end confdefs.h.  */
47392
47393 int
47394 main ()
47395 {
47396 XauReadAuth()
47397   ;
47398   return 0;
47399 }
47400 _ACEOF
47401 rm -f conftest.$ac_objext conftest$ac_exeext
47402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47403   (eval $ac_link) 2>conftest.er1
47404   ac_status=$?
47405   grep -v '^ *+' conftest.er1 >conftest.err
47406   rm -f conftest.er1
47407   cat conftest.err >&5
47408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47409   (exit $ac_status); } &&
47410          { ac_try='test -z "$ac_c_werror_flag"
47411                          || test ! -s conftest.err'
47412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47413   (eval $ac_try) 2>&5
47414   ac_status=$?
47415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47416   (exit $ac_status); }; } &&
47417          { ac_try='test -s conftest$ac_exeext'
47418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47419   (eval $ac_try) 2>&5
47420   ac_status=$?
47421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47422   (exit $ac_status); }; }; then
47423   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
47424 else
47425   echo "$as_me: failed program was:" >&5
47426 sed 's/^/| /' conftest.$ac_ext >&5
47427
47428 fi
47429 rm -f conftest.err conftest.$ac_objext \
47430       conftest$ac_exeext conftest.$ac_ext
47431         done
47432         eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
47433         LIBS="$ac_save_LIBS"
47434 fi
47435
47436 fi
47437
47438
47439 eval "ac_res=\$ac_cv_funclib_XauReadAuth"
47440
47441 if false; then
47442
47443 for ac_func in XauReadAuth
47444 do
47445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47446 echo "$as_me:$LINENO: checking for $ac_func" >&5
47447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47448 if eval "test \"\${$as_ac_var+set}\" = set"; then
47449   echo $ECHO_N "(cached) $ECHO_C" >&6
47450 else
47451   cat >conftest.$ac_ext <<_ACEOF
47452 /* confdefs.h.  */
47453 _ACEOF
47454 cat confdefs.h >>conftest.$ac_ext
47455 cat >>conftest.$ac_ext <<_ACEOF
47456 /* end confdefs.h.  */
47457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47459 #define $ac_func innocuous_$ac_func
47460
47461 /* System header to define __stub macros and hopefully few prototypes,
47462     which can conflict with char $ac_func (); below.
47463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47464     <limits.h> exists even on freestanding compilers.  */
47465
47466 #ifdef __STDC__
47467 # include <limits.h>
47468 #else
47469 # include <assert.h>
47470 #endif
47471
47472 #undef $ac_func
47473
47474 /* Override any gcc2 internal prototype to avoid an error.  */
47475 #ifdef __cplusplus
47476 extern "C"
47477 {
47478 #endif
47479 /* We use char because int might match the return type of a gcc2
47480    builtin and then its argument prototype would still apply.  */
47481 char $ac_func ();
47482 /* The GNU C library defines this for functions which it implements
47483     to always fail with ENOSYS.  Some functions are actually named
47484     something starting with __ and the normal name is an alias.  */
47485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47486 choke me
47487 #else
47488 char (*f) () = $ac_func;
47489 #endif
47490 #ifdef __cplusplus
47491 }
47492 #endif
47493
47494 int
47495 main ()
47496 {
47497 return f != $ac_func;
47498   ;
47499   return 0;
47500 }
47501 _ACEOF
47502 rm -f conftest.$ac_objext conftest$ac_exeext
47503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47504   (eval $ac_link) 2>conftest.er1
47505   ac_status=$?
47506   grep -v '^ *+' conftest.er1 >conftest.err
47507   rm -f conftest.er1
47508   cat conftest.err >&5
47509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47510   (exit $ac_status); } &&
47511          { ac_try='test -z "$ac_c_werror_flag"
47512                          || test ! -s conftest.err'
47513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47514   (eval $ac_try) 2>&5
47515   ac_status=$?
47516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47517   (exit $ac_status); }; } &&
47518          { ac_try='test -s conftest$ac_exeext'
47519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47520   (eval $ac_try) 2>&5
47521   ac_status=$?
47522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47523   (exit $ac_status); }; }; then
47524   eval "$as_ac_var=yes"
47525 else
47526   echo "$as_me: failed program was:" >&5
47527 sed 's/^/| /' conftest.$ac_ext >&5
47528
47529 eval "$as_ac_var=no"
47530 fi
47531 rm -f conftest.err conftest.$ac_objext \
47532       conftest$ac_exeext conftest.$ac_ext
47533 fi
47534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47536 if test `eval echo '${'$as_ac_var'}'` = yes; then
47537   cat >>confdefs.h <<_ACEOF
47538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47539 _ACEOF
47540
47541 fi
47542 done
47543
47544 fi
47545 # XauReadAuth
47546 eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47547 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47548 eval "LIB_XauReadAuth=$ac_res"
47549
47550 case "$ac_res" in
47551         yes)
47552         eval "ac_cv_func_XauReadAuth=yes"
47553         eval "LIB_XauReadAuth="
47554         cat >>confdefs.h <<_ACEOF
47555 #define $ac_tr_func 1
47556 _ACEOF
47557
47558         echo "$as_me:$LINENO: result: yes" >&5
47559 echo "${ECHO_T}yes" >&6
47560         ;;
47561         no)
47562         eval "ac_cv_func_XauReadAuth=no"
47563         eval "LIB_XauReadAuth="
47564         echo "$as_me:$LINENO: result: no" >&5
47565 echo "${ECHO_T}no" >&6
47566         ;;
47567         *)
47568         eval "ac_cv_func_XauReadAuth=yes"
47569         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47570         cat >>confdefs.h <<_ACEOF
47571 #define $ac_tr_func 1
47572 _ACEOF
47573
47574         cat >>confdefs.h <<_ACEOF
47575 #define $ac_tr_lib 1
47576 _ACEOF
47577
47578         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47579 echo "${ECHO_T}yes, in $ac_res" >&6
47580         ;;
47581 esac
47582
47583
47584 LIBS="$LIB_XauReadAauth $LIBS"
47585
47586
47587
47588 echo "$as_me:$LINENO: checking for XauFileName" >&5
47589 echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
47590 if test "${ac_cv_funclib_XauFileName+set}" = set; then
47591   echo $ECHO_N "(cached) $ECHO_C" >&6
47592 else
47593
47594 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
47595         ac_save_LIBS="$LIBS"
47596         for ac_lib in "" X11 Xau; do
47597                 case "$ac_lib" in
47598                 "") ;;
47599                 yes) ac_lib="" ;;
47600                 no) continue ;;
47601                 -l*) ;;
47602                 *) ac_lib="-l$ac_lib" ;;
47603                 esac
47604                 LIBS=" $ac_lib  $ac_save_LIBS"
47605                 cat >conftest.$ac_ext <<_ACEOF
47606 /* confdefs.h.  */
47607 _ACEOF
47608 cat confdefs.h >>conftest.$ac_ext
47609 cat >>conftest.$ac_ext <<_ACEOF
47610 /* end confdefs.h.  */
47611
47612 int
47613 main ()
47614 {
47615 XauFileName()
47616   ;
47617   return 0;
47618 }
47619 _ACEOF
47620 rm -f conftest.$ac_objext conftest$ac_exeext
47621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47622   (eval $ac_link) 2>conftest.er1
47623   ac_status=$?
47624   grep -v '^ *+' conftest.er1 >conftest.err
47625   rm -f conftest.er1
47626   cat conftest.err >&5
47627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47628   (exit $ac_status); } &&
47629          { ac_try='test -z "$ac_c_werror_flag"
47630                          || test ! -s conftest.err'
47631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47632   (eval $ac_try) 2>&5
47633   ac_status=$?
47634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47635   (exit $ac_status); }; } &&
47636          { ac_try='test -s conftest$ac_exeext'
47637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47638   (eval $ac_try) 2>&5
47639   ac_status=$?
47640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47641   (exit $ac_status); }; }; then
47642   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
47643 else
47644   echo "$as_me: failed program was:" >&5
47645 sed 's/^/| /' conftest.$ac_ext >&5
47646
47647 fi
47648 rm -f conftest.err conftest.$ac_objext \
47649       conftest$ac_exeext conftest.$ac_ext
47650         done
47651         eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
47652         LIBS="$ac_save_LIBS"
47653 fi
47654
47655 fi
47656
47657
47658 eval "ac_res=\$ac_cv_funclib_XauFileName"
47659
47660 if false; then
47661
47662 for ac_func in XauFileName
47663 do
47664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47665 echo "$as_me:$LINENO: checking for $ac_func" >&5
47666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47667 if eval "test \"\${$as_ac_var+set}\" = set"; then
47668   echo $ECHO_N "(cached) $ECHO_C" >&6
47669 else
47670   cat >conftest.$ac_ext <<_ACEOF
47671 /* confdefs.h.  */
47672 _ACEOF
47673 cat confdefs.h >>conftest.$ac_ext
47674 cat >>conftest.$ac_ext <<_ACEOF
47675 /* end confdefs.h.  */
47676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47678 #define $ac_func innocuous_$ac_func
47679
47680 /* System header to define __stub macros and hopefully few prototypes,
47681     which can conflict with char $ac_func (); below.
47682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47683     <limits.h> exists even on freestanding compilers.  */
47684
47685 #ifdef __STDC__
47686 # include <limits.h>
47687 #else
47688 # include <assert.h>
47689 #endif
47690
47691 #undef $ac_func
47692
47693 /* Override any gcc2 internal prototype to avoid an error.  */
47694 #ifdef __cplusplus
47695 extern "C"
47696 {
47697 #endif
47698 /* We use char because int might match the return type of a gcc2
47699    builtin and then its argument prototype would still apply.  */
47700 char $ac_func ();
47701 /* The GNU C library defines this for functions which it implements
47702     to always fail with ENOSYS.  Some functions are actually named
47703     something starting with __ and the normal name is an alias.  */
47704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47705 choke me
47706 #else
47707 char (*f) () = $ac_func;
47708 #endif
47709 #ifdef __cplusplus
47710 }
47711 #endif
47712
47713 int
47714 main ()
47715 {
47716 return f != $ac_func;
47717   ;
47718   return 0;
47719 }
47720 _ACEOF
47721 rm -f conftest.$ac_objext conftest$ac_exeext
47722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47723   (eval $ac_link) 2>conftest.er1
47724   ac_status=$?
47725   grep -v '^ *+' conftest.er1 >conftest.err
47726   rm -f conftest.er1
47727   cat conftest.err >&5
47728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47729   (exit $ac_status); } &&
47730          { ac_try='test -z "$ac_c_werror_flag"
47731                          || test ! -s conftest.err'
47732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47733   (eval $ac_try) 2>&5
47734   ac_status=$?
47735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47736   (exit $ac_status); }; } &&
47737          { ac_try='test -s conftest$ac_exeext'
47738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47739   (eval $ac_try) 2>&5
47740   ac_status=$?
47741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47742   (exit $ac_status); }; }; then
47743   eval "$as_ac_var=yes"
47744 else
47745   echo "$as_me: failed program was:" >&5
47746 sed 's/^/| /' conftest.$ac_ext >&5
47747
47748 eval "$as_ac_var=no"
47749 fi
47750 rm -f conftest.err conftest.$ac_objext \
47751       conftest$ac_exeext conftest.$ac_ext
47752 fi
47753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47755 if test `eval echo '${'$as_ac_var'}'` = yes; then
47756   cat >>confdefs.h <<_ACEOF
47757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47758 _ACEOF
47759
47760 fi
47761 done
47762
47763 fi
47764 # XauFileName
47765 eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47766 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47767 eval "LIB_XauFileName=$ac_res"
47768
47769 case "$ac_res" in
47770         yes)
47771         eval "ac_cv_func_XauFileName=yes"
47772         eval "LIB_XauFileName="
47773         cat >>confdefs.h <<_ACEOF
47774 #define $ac_tr_func 1
47775 _ACEOF
47776
47777         echo "$as_me:$LINENO: result: yes" >&5
47778 echo "${ECHO_T}yes" >&6
47779         ;;
47780         no)
47781         eval "ac_cv_func_XauFileName=no"
47782         eval "LIB_XauFileName="
47783         echo "$as_me:$LINENO: result: no" >&5
47784 echo "${ECHO_T}no" >&6
47785         ;;
47786         *)
47787         eval "ac_cv_func_XauFileName=yes"
47788         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47789         cat >>confdefs.h <<_ACEOF
47790 #define $ac_tr_func 1
47791 _ACEOF
47792
47793         cat >>confdefs.h <<_ACEOF
47794 #define $ac_tr_lib 1
47795 _ACEOF
47796
47797         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47798 echo "${ECHO_T}yes, in $ac_res" >&6
47799         ;;
47800 esac
47801
47802
47803 LIBS="$ac_xxx"
47804
47805 ## set LIB_XauReadAuth to union of these tests, since this is what the
47806 ## Makefiles are using
47807 case "$ac_cv_funclib_XauWriteAuth" in
47808 yes)    ;;
47809 no)     ;;
47810 *)      if test "$ac_cv_funclib_XauReadAuth" = yes; then
47811                 if test "$ac_cv_funclib_XauFileName" = yes; then
47812                         LIB_XauReadAuth="$LIB_XauWriteAuth"
47813                 else
47814                         LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
47815                 fi
47816         else
47817                 if test "$ac_cv_funclib_XauFileName" = yes; then
47818                         LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
47819                 else
47820                         LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
47821                 fi
47822         fi
47823         ;;
47824 esac
47825
47826 if test "$AUTOMAKE" != ""; then
47827
47828
47829 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
47830   NEED_WRITEAUTH_TRUE=
47831   NEED_WRITEAUTH_FALSE='#'
47832 else
47833   NEED_WRITEAUTH_TRUE='#'
47834   NEED_WRITEAUTH_FALSE=
47835 fi
47836
47837 else
47838
47839
47840         if test "$ac_cv_func_XauWriteAuth" != "yes"; then
47841                 NEED_WRITEAUTH_TRUE=
47842                 NEED_WRITEAUTH_FALSE='#'
47843         else
47844                 NEED_WRITEAUTH_TRUE='#'
47845                 NEED_WRITEAUTH_FALSE=
47846         fi
47847 fi
47848 CFLAGS=$save_CFLAGS
47849 LIBS=$save_LIBS
47850 LDFLAGS=$save_LDFLAGS
47851
47852
47853
47854 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
47855 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
47856 if test "${ac_cv_c_const+set}" = set; then
47857   echo $ECHO_N "(cached) $ECHO_C" >&6
47858 else
47859   cat >conftest.$ac_ext <<_ACEOF
47860 /* confdefs.h.  */
47861 _ACEOF
47862 cat confdefs.h >>conftest.$ac_ext
47863 cat >>conftest.$ac_ext <<_ACEOF
47864 /* end confdefs.h.  */
47865
47866 int
47867 main ()
47868 {
47869 /* FIXME: Include the comments suggested by Paul. */
47870 #ifndef __cplusplus
47871   /* Ultrix mips cc rejects this.  */
47872   typedef int charset[2];
47873   const charset x;
47874   /* SunOS 4.1.1 cc rejects this.  */
47875   char const *const *ccp;
47876   char **p;
47877   /* NEC SVR4.0.2 mips cc rejects this.  */
47878   struct point {int x, y;};
47879   static struct point const zero = {0,0};
47880   /* AIX XL C 1.02.0.0 rejects this.
47881      It does not let you subtract one const X* pointer from another in
47882      an arm of an if-expression whose if-part is not a constant
47883      expression */
47884   const char *g = "string";
47885   ccp = &g + (g ? g-g : 0);
47886   /* HPUX 7.0 cc rejects these. */
47887   ++ccp;
47888   p = (char**) ccp;
47889   ccp = (char const *const *) p;
47890   { /* SCO 3.2v4 cc rejects this.  */
47891     char *t;
47892     char const *s = 0 ? (char *) 0 : (char const *) 0;
47893
47894     *t++ = 0;
47895   }
47896   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
47897     int x[] = {25, 17};
47898     const int *foo = &x[0];
47899     ++foo;
47900   }
47901   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
47902     typedef const int *iptr;
47903     iptr p = 0;
47904     ++p;
47905   }
47906   { /* AIX XL C 1.02.0.0 rejects this saying
47907        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
47908     struct s { int j; const int *ap[3]; };
47909     struct s *b; b->j = 5;
47910   }
47911   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
47912     const int foo = 10;
47913   }
47914 #endif
47915
47916   ;
47917   return 0;
47918 }
47919 _ACEOF
47920 rm -f conftest.$ac_objext
47921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47922   (eval $ac_compile) 2>conftest.er1
47923   ac_status=$?
47924   grep -v '^ *+' conftest.er1 >conftest.err
47925   rm -f conftest.er1
47926   cat conftest.err >&5
47927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47928   (exit $ac_status); } &&
47929          { ac_try='test -z "$ac_c_werror_flag"
47930                          || test ! -s conftest.err'
47931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47932   (eval $ac_try) 2>&5
47933   ac_status=$?
47934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47935   (exit $ac_status); }; } &&
47936          { ac_try='test -s conftest.$ac_objext'
47937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47938   (eval $ac_try) 2>&5
47939   ac_status=$?
47940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47941   (exit $ac_status); }; }; then
47942   ac_cv_c_const=yes
47943 else
47944   echo "$as_me: failed program was:" >&5
47945 sed 's/^/| /' conftest.$ac_ext >&5
47946
47947 ac_cv_c_const=no
47948 fi
47949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47950 fi
47951 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
47952 echo "${ECHO_T}$ac_cv_c_const" >&6
47953 if test $ac_cv_c_const = no; then
47954
47955 cat >>confdefs.h <<\_ACEOF
47956 #define const
47957 _ACEOF
47958
47959 fi
47960
47961 echo "$as_me:$LINENO: checking for off_t" >&5
47962 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47963 if test "${ac_cv_type_off_t+set}" = set; then
47964   echo $ECHO_N "(cached) $ECHO_C" >&6
47965 else
47966   cat >conftest.$ac_ext <<_ACEOF
47967 /* confdefs.h.  */
47968 _ACEOF
47969 cat confdefs.h >>conftest.$ac_ext
47970 cat >>conftest.$ac_ext <<_ACEOF
47971 /* end confdefs.h.  */
47972 $ac_includes_default
47973 int
47974 main ()
47975 {
47976 if ((off_t *) 0)
47977   return 0;
47978 if (sizeof (off_t))
47979   return 0;
47980   ;
47981   return 0;
47982 }
47983 _ACEOF
47984 rm -f conftest.$ac_objext
47985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47986   (eval $ac_compile) 2>conftest.er1
47987   ac_status=$?
47988   grep -v '^ *+' conftest.er1 >conftest.err
47989   rm -f conftest.er1
47990   cat conftest.err >&5
47991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47992   (exit $ac_status); } &&
47993          { ac_try='test -z "$ac_c_werror_flag"
47994                          || test ! -s conftest.err'
47995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47996   (eval $ac_try) 2>&5
47997   ac_status=$?
47998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47999   (exit $ac_status); }; } &&
48000          { ac_try='test -s conftest.$ac_objext'
48001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48002   (eval $ac_try) 2>&5
48003   ac_status=$?
48004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48005   (exit $ac_status); }; }; then
48006   ac_cv_type_off_t=yes
48007 else
48008   echo "$as_me: failed program was:" >&5
48009 sed 's/^/| /' conftest.$ac_ext >&5
48010
48011 ac_cv_type_off_t=no
48012 fi
48013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48014 fi
48015 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
48016 echo "${ECHO_T}$ac_cv_type_off_t" >&6
48017 if test $ac_cv_type_off_t = yes; then
48018   :
48019 else
48020
48021 cat >>confdefs.h <<_ACEOF
48022 #define off_t long
48023 _ACEOF
48024
48025 fi
48026
48027 echo "$as_me:$LINENO: checking for mode_t" >&5
48028 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
48029 if test "${ac_cv_type_mode_t+set}" = set; then
48030   echo $ECHO_N "(cached) $ECHO_C" >&6
48031 else
48032   cat >conftest.$ac_ext <<_ACEOF
48033 /* confdefs.h.  */
48034 _ACEOF
48035 cat confdefs.h >>conftest.$ac_ext
48036 cat >>conftest.$ac_ext <<_ACEOF
48037 /* end confdefs.h.  */
48038 #include <sys/types.h>
48039 #if STDC_HEADERS
48040 #include <stdlib.h>
48041 #include <stddef.h>
48042 #endif
48043
48044 _ACEOF
48045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48046   $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
48047   ac_cv_type_mode_t=yes
48048 else
48049   ac_cv_type_mode_t=no
48050 fi
48051 rm -f conftest*
48052
48053 fi
48054 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
48055 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
48056 if test $ac_cv_type_mode_t = no; then
48057
48058 cat >>confdefs.h <<\_ACEOF
48059 #define mode_t unsigned short
48060 _ACEOF
48061
48062 fi
48063
48064 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
48065 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
48066 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
48067   echo $ECHO_N "(cached) $ECHO_C" >&6
48068 else
48069   cat >conftest.$ac_ext <<_ACEOF
48070 /* confdefs.h.  */
48071 _ACEOF
48072 cat confdefs.h >>conftest.$ac_ext
48073 cat >>conftest.$ac_ext <<_ACEOF
48074 /* end confdefs.h.  */
48075 #include <sys/types.h>
48076 #if STDC_HEADERS
48077 #include <stdlib.h>
48078 #include <stddef.h>
48079 #endif
48080 #include <signal.h>
48081 _ACEOF
48082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48083   $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
48084   ac_cv_type_sig_atomic_t=yes
48085 else
48086   ac_cv_type_sig_atomic_t=no
48087 fi
48088 rm -f conftest*
48089
48090 fi
48091 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
48092 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
48093 if test $ac_cv_type_sig_atomic_t = no; then
48094
48095 cat >>confdefs.h <<\_ACEOF
48096 #define sig_atomic_t int
48097 _ACEOF
48098
48099 fi
48100
48101
48102
48103 cv=`echo "long long" | sed 'y%./+- %__p__%'`
48104 echo "$as_me:$LINENO: checking for long long" >&5
48105 echo $ECHO_N "checking for long long... $ECHO_C" >&6
48106 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
48107   echo $ECHO_N "(cached) $ECHO_C" >&6
48108 else
48109   cat >conftest.$ac_ext <<_ACEOF
48110 /* confdefs.h.  */
48111 _ACEOF
48112 cat confdefs.h >>conftest.$ac_ext
48113 cat >>conftest.$ac_ext <<_ACEOF
48114 /* end confdefs.h.  */
48115 #include <sys/types.h>
48116 #if STDC_HEADERS
48117 #include <stdlib.h>
48118 #include <stddef.h>
48119 #endif
48120
48121 int
48122 main ()
48123 {
48124 long long foo;
48125   ;
48126   return 0;
48127 }
48128 _ACEOF
48129 rm -f conftest.$ac_objext
48130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48131   (eval $ac_compile) 2>conftest.er1
48132   ac_status=$?
48133   grep -v '^ *+' conftest.er1 >conftest.err
48134   rm -f conftest.er1
48135   cat conftest.err >&5
48136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48137   (exit $ac_status); } &&
48138          { ac_try='test -z "$ac_c_werror_flag"
48139                          || test ! -s conftest.err'
48140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48141   (eval $ac_try) 2>&5
48142   ac_status=$?
48143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48144   (exit $ac_status); }; } &&
48145          { ac_try='test -s conftest.$ac_objext'
48146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48147   (eval $ac_try) 2>&5
48148   ac_status=$?
48149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48150   (exit $ac_status); }; }; then
48151   eval "ac_cv_type_$cv=yes"
48152 else
48153   echo "$as_me: failed program was:" >&5
48154 sed 's/^/| /' conftest.$ac_ext >&5
48155
48156 eval "ac_cv_type_$cv=no"
48157 fi
48158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48159 fi
48160 ac_foo=`eval echo \\$ac_cv_type_$cv`
48161 echo "$as_me:$LINENO: result: $ac_foo" >&5
48162 echo "${ECHO_T}$ac_foo" >&6
48163 if test "$ac_foo" = yes; then
48164   ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
48165 if false; then
48166         echo "$as_me:$LINENO: checking for long long" >&5
48167 echo $ECHO_N "checking for long long... $ECHO_C" >&6
48168 if test "${ac_cv_type_long_long+set}" = set; then
48169   echo $ECHO_N "(cached) $ECHO_C" >&6
48170 else
48171   cat >conftest.$ac_ext <<_ACEOF
48172 /* confdefs.h.  */
48173 _ACEOF
48174 cat confdefs.h >>conftest.$ac_ext
48175 cat >>conftest.$ac_ext <<_ACEOF
48176 /* end confdefs.h.  */
48177 $ac_includes_default
48178 int
48179 main ()
48180 {
48181 if ((long long *) 0)
48182   return 0;
48183 if (sizeof (long long))
48184   return 0;
48185   ;
48186   return 0;
48187 }
48188 _ACEOF
48189 rm -f conftest.$ac_objext
48190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48191   (eval $ac_compile) 2>conftest.er1
48192   ac_status=$?
48193   grep -v '^ *+' conftest.er1 >conftest.err
48194   rm -f conftest.er1
48195   cat conftest.err >&5
48196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48197   (exit $ac_status); } &&
48198          { ac_try='test -z "$ac_c_werror_flag"
48199                          || test ! -s conftest.err'
48200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48201   (eval $ac_try) 2>&5
48202   ac_status=$?
48203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48204   (exit $ac_status); }; } &&
48205          { ac_try='test -s conftest.$ac_objext'
48206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48207   (eval $ac_try) 2>&5
48208   ac_status=$?
48209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48210   (exit $ac_status); }; }; then
48211   ac_cv_type_long_long=yes
48212 else
48213   echo "$as_me: failed program was:" >&5
48214 sed 's/^/| /' conftest.$ac_ext >&5
48215
48216 ac_cv_type_long_long=no
48217 fi
48218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48219 fi
48220 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
48221 echo "${ECHO_T}$ac_cv_type_long_long" >&6
48222 if test $ac_cv_type_long_long = yes; then
48223
48224 cat >>confdefs.h <<_ACEOF
48225 #define HAVE_LONG_LONG 1
48226 _ACEOF
48227
48228
48229 fi
48230
48231 fi
48232
48233 cat >>confdefs.h <<_ACEOF
48234 #define $ac_tr_hdr 1
48235 _ACEOF
48236
48237 fi
48238
48239 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
48240 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
48241 if test "${ac_cv_header_time+set}" = set; then
48242   echo $ECHO_N "(cached) $ECHO_C" >&6
48243 else
48244   cat >conftest.$ac_ext <<_ACEOF
48245 /* confdefs.h.  */
48246 _ACEOF
48247 cat confdefs.h >>conftest.$ac_ext
48248 cat >>conftest.$ac_ext <<_ACEOF
48249 /* end confdefs.h.  */
48250 #include <sys/types.h>
48251 #include <sys/time.h>
48252 #include <time.h>
48253
48254 int
48255 main ()
48256 {
48257 if ((struct tm *) 0)
48258 return 0;
48259   ;
48260   return 0;
48261 }
48262 _ACEOF
48263 rm -f conftest.$ac_objext
48264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48265   (eval $ac_compile) 2>conftest.er1
48266   ac_status=$?
48267   grep -v '^ *+' conftest.er1 >conftest.err
48268   rm -f conftest.er1
48269   cat conftest.err >&5
48270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48271   (exit $ac_status); } &&
48272          { ac_try='test -z "$ac_c_werror_flag"
48273                          || test ! -s conftest.err'
48274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48275   (eval $ac_try) 2>&5
48276   ac_status=$?
48277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48278   (exit $ac_status); }; } &&
48279          { ac_try='test -s conftest.$ac_objext'
48280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48281   (eval $ac_try) 2>&5
48282   ac_status=$?
48283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48284   (exit $ac_status); }; }; then
48285   ac_cv_header_time=yes
48286 else
48287   echo "$as_me: failed program was:" >&5
48288 sed 's/^/| /' conftest.$ac_ext >&5
48289
48290 ac_cv_header_time=no
48291 fi
48292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48293 fi
48294 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48295 echo "${ECHO_T}$ac_cv_header_time" >&6
48296 if test $ac_cv_header_time = yes; then
48297
48298 cat >>confdefs.h <<\_ACEOF
48299 #define TIME_WITH_SYS_TIME 1
48300 _ACEOF
48301
48302 fi
48303
48304 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48305 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48306 if test "${ac_cv_struct_tm+set}" = set; then
48307   echo $ECHO_N "(cached) $ECHO_C" >&6
48308 else
48309   cat >conftest.$ac_ext <<_ACEOF
48310 /* confdefs.h.  */
48311 _ACEOF
48312 cat confdefs.h >>conftest.$ac_ext
48313 cat >>conftest.$ac_ext <<_ACEOF
48314 /* end confdefs.h.  */
48315 #include <sys/types.h>
48316 #include <time.h>
48317
48318 int
48319 main ()
48320 {
48321 struct tm *tp; tp->tm_sec;
48322   ;
48323   return 0;
48324 }
48325 _ACEOF
48326 rm -f conftest.$ac_objext
48327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48328   (eval $ac_compile) 2>conftest.er1
48329   ac_status=$?
48330   grep -v '^ *+' conftest.er1 >conftest.err
48331   rm -f conftest.er1
48332   cat conftest.err >&5
48333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48334   (exit $ac_status); } &&
48335          { ac_try='test -z "$ac_c_werror_flag"
48336                          || test ! -s conftest.err'
48337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48338   (eval $ac_try) 2>&5
48339   ac_status=$?
48340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48341   (exit $ac_status); }; } &&
48342          { ac_try='test -s conftest.$ac_objext'
48343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48344   (eval $ac_try) 2>&5
48345   ac_status=$?
48346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48347   (exit $ac_status); }; }; then
48348   ac_cv_struct_tm=time.h
48349 else
48350   echo "$as_me: failed program was:" >&5
48351 sed 's/^/| /' conftest.$ac_ext >&5
48352
48353 ac_cv_struct_tm=sys/time.h
48354 fi
48355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48356 fi
48357 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48358 echo "${ECHO_T}$ac_cv_struct_tm" >&6
48359 if test $ac_cv_struct_tm = sys/time.h; then
48360
48361 cat >>confdefs.h <<\_ACEOF
48362 #define TM_IN_SYS_TIME 1
48363 _ACEOF
48364
48365 fi
48366
48367
48368 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
48369 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
48370 if test "${ac_cv_header_stdc+set}" = set; then
48371   echo $ECHO_N "(cached) $ECHO_C" >&6
48372 else
48373   cat >conftest.$ac_ext <<_ACEOF
48374 /* confdefs.h.  */
48375 _ACEOF
48376 cat confdefs.h >>conftest.$ac_ext
48377 cat >>conftest.$ac_ext <<_ACEOF
48378 /* end confdefs.h.  */
48379 #include <stdlib.h>
48380 #include <stdarg.h>
48381 #include <string.h>
48382 #include <float.h>
48383
48384 int
48385 main ()
48386 {
48387
48388   ;
48389   return 0;
48390 }
48391 _ACEOF
48392 rm -f conftest.$ac_objext
48393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48394   (eval $ac_compile) 2>conftest.er1
48395   ac_status=$?
48396   grep -v '^ *+' conftest.er1 >conftest.err
48397   rm -f conftest.er1
48398   cat conftest.err >&5
48399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48400   (exit $ac_status); } &&
48401          { ac_try='test -z "$ac_c_werror_flag"
48402                          || test ! -s conftest.err'
48403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48404   (eval $ac_try) 2>&5
48405   ac_status=$?
48406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48407   (exit $ac_status); }; } &&
48408          { ac_try='test -s conftest.$ac_objext'
48409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48410   (eval $ac_try) 2>&5
48411   ac_status=$?
48412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48413   (exit $ac_status); }; }; then
48414   ac_cv_header_stdc=yes
48415 else
48416   echo "$as_me: failed program was:" >&5
48417 sed 's/^/| /' conftest.$ac_ext >&5
48418
48419 ac_cv_header_stdc=no
48420 fi
48421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48422
48423 if test $ac_cv_header_stdc = yes; then
48424   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
48425   cat >conftest.$ac_ext <<_ACEOF
48426 /* confdefs.h.  */
48427 _ACEOF
48428 cat confdefs.h >>conftest.$ac_ext
48429 cat >>conftest.$ac_ext <<_ACEOF
48430 /* end confdefs.h.  */
48431 #include <string.h>
48432
48433 _ACEOF
48434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48435   $EGREP "memchr" >/dev/null 2>&1; then
48436   :
48437 else
48438   ac_cv_header_stdc=no
48439 fi
48440 rm -f conftest*
48441
48442 fi
48443
48444 if test $ac_cv_header_stdc = yes; then
48445   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
48446   cat >conftest.$ac_ext <<_ACEOF
48447 /* confdefs.h.  */
48448 _ACEOF
48449 cat confdefs.h >>conftest.$ac_ext
48450 cat >>conftest.$ac_ext <<_ACEOF
48451 /* end confdefs.h.  */
48452 #include <stdlib.h>
48453
48454 _ACEOF
48455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48456   $EGREP "free" >/dev/null 2>&1; then
48457   :
48458 else
48459   ac_cv_header_stdc=no
48460 fi
48461 rm -f conftest*
48462
48463 fi
48464
48465 if test $ac_cv_header_stdc = yes; then
48466   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
48467   if test "$cross_compiling" = yes; then
48468   :
48469 else
48470   cat >conftest.$ac_ext <<_ACEOF
48471 /* confdefs.h.  */
48472 _ACEOF
48473 cat confdefs.h >>conftest.$ac_ext
48474 cat >>conftest.$ac_ext <<_ACEOF
48475 /* end confdefs.h.  */
48476 #include <ctype.h>
48477 #if ((' ' & 0x0FF) == 0x020)
48478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
48479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
48480 #else
48481 # define ISLOWER(c) \
48482                    (('a' <= (c) && (c) <= 'i') \
48483                      || ('j' <= (c) && (c) <= 'r') \
48484                      || ('s' <= (c) && (c) <= 'z'))
48485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
48486 #endif
48487
48488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
48489 int
48490 main ()
48491 {
48492   int i;
48493   for (i = 0; i < 256; i++)
48494     if (XOR (islower (i), ISLOWER (i))
48495         || toupper (i) != TOUPPER (i))
48496       exit(2);
48497   exit (0);
48498 }
48499 _ACEOF
48500 rm -f conftest$ac_exeext
48501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48502   (eval $ac_link) 2>&5
48503   ac_status=$?
48504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48507   (eval $ac_try) 2>&5
48508   ac_status=$?
48509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48510   (exit $ac_status); }; }; then
48511   :
48512 else
48513   echo "$as_me: program exited with status $ac_status" >&5
48514 echo "$as_me: failed program was:" >&5
48515 sed 's/^/| /' conftest.$ac_ext >&5
48516
48517 ( exit $ac_status )
48518 ac_cv_header_stdc=no
48519 fi
48520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48521 fi
48522 fi
48523 fi
48524 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
48525 echo "${ECHO_T}$ac_cv_header_stdc" >&6
48526 if test $ac_cv_header_stdc = yes; then
48527
48528 cat >>confdefs.h <<\_ACEOF
48529 #define STDC_HEADERS 1
48530 _ACEOF
48531
48532 fi
48533
48534
48535
48536
48537
48538
48539
48540
48541
48542
48543
48544
48545
48546
48547
48548
48549
48550
48551
48552
48553
48554
48555
48556
48557
48558
48559
48560
48561
48562
48563
48564
48565
48566
48567
48568
48569
48570
48571
48572
48573
48574
48575
48576
48577
48578
48579
48580
48581
48582
48583
48584
48585 for ac_header in \
48586         arpa/ftp.h                              \
48587         arpa/telnet.h                           \
48588         bind/bitypes.h                          \
48589         bsdsetjmp.h                             \
48590         curses.h                                \
48591         dlfcn.h                                 \
48592         fnmatch.h                               \
48593         inttypes.h                              \
48594         io.h                                    \
48595         libutil.h                               \
48596         limits.h                                \
48597         maillock.h                              \
48598         netgroup.h                              \
48599         netinet/in6_machtypes.h                 \
48600         netinfo/ni.h                            \
48601         pthread.h                               \
48602         pty.h                                   \
48603         sac.h                                   \
48604         security/pam_modules.h                  \
48605         sgtty.h                                 \
48606         siad.h                                  \
48607         signal.h                                \
48608         stropts.h                               \
48609         sys/bitypes.h                           \
48610         sys/category.h                          \
48611         sys/file.h                              \
48612         sys/filio.h                             \
48613         sys/ioccom.h                            \
48614         sys/mman.h                              \
48615         sys/pty.h                               \
48616         sys/ptyio.h                             \
48617         sys/ptyvar.h                            \
48618         sys/select.h                            \
48619         sys/str_tty.h                           \
48620         sys/stream.h                            \
48621         sys/stropts.h                           \
48622         sys/strtty.h                            \
48623         sys/syscall.h                           \
48624         sys/termio.h                            \
48625         sys/timeb.h                             \
48626         sys/times.h                             \
48627         sys/un.h                                \
48628         term.h                                  \
48629         termcap.h                               \
48630         termio.h                                \
48631         time.h                                  \
48632         tmpdir.h                                \
48633         udb.h                                   \
48634         utmp.h                                  \
48635         utmpx.h                                 \
48636
48637 do
48638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48640   echo "$as_me:$LINENO: checking for $ac_header" >&5
48641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48643   echo $ECHO_N "(cached) $ECHO_C" >&6
48644 fi
48645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48647 else
48648   # Is the header compilable?
48649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
48650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48651 cat >conftest.$ac_ext <<_ACEOF
48652 /* confdefs.h.  */
48653 _ACEOF
48654 cat confdefs.h >>conftest.$ac_ext
48655 cat >>conftest.$ac_ext <<_ACEOF
48656 /* end confdefs.h.  */
48657 $ac_includes_default
48658 #include <$ac_header>
48659 _ACEOF
48660 rm -f conftest.$ac_objext
48661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48662   (eval $ac_compile) 2>conftest.er1
48663   ac_status=$?
48664   grep -v '^ *+' conftest.er1 >conftest.err
48665   rm -f conftest.er1
48666   cat conftest.err >&5
48667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48668   (exit $ac_status); } &&
48669          { ac_try='test -z "$ac_c_werror_flag"
48670                          || test ! -s conftest.err'
48671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48672   (eval $ac_try) 2>&5
48673   ac_status=$?
48674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48675   (exit $ac_status); }; } &&
48676          { ac_try='test -s conftest.$ac_objext'
48677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48678   (eval $ac_try) 2>&5
48679   ac_status=$?
48680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48681   (exit $ac_status); }; }; then
48682   ac_header_compiler=yes
48683 else
48684   echo "$as_me: failed program was:" >&5
48685 sed 's/^/| /' conftest.$ac_ext >&5
48686
48687 ac_header_compiler=no
48688 fi
48689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48691 echo "${ECHO_T}$ac_header_compiler" >&6
48692
48693 # Is the header present?
48694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
48695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48696 cat >conftest.$ac_ext <<_ACEOF
48697 /* confdefs.h.  */
48698 _ACEOF
48699 cat confdefs.h >>conftest.$ac_ext
48700 cat >>conftest.$ac_ext <<_ACEOF
48701 /* end confdefs.h.  */
48702 #include <$ac_header>
48703 _ACEOF
48704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48706   ac_status=$?
48707   grep -v '^ *+' conftest.er1 >conftest.err
48708   rm -f conftest.er1
48709   cat conftest.err >&5
48710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48711   (exit $ac_status); } >/dev/null; then
48712   if test -s conftest.err; then
48713     ac_cpp_err=$ac_c_preproc_warn_flag
48714     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48715   else
48716     ac_cpp_err=
48717   fi
48718 else
48719   ac_cpp_err=yes
48720 fi
48721 if test -z "$ac_cpp_err"; then
48722   ac_header_preproc=yes
48723 else
48724   echo "$as_me: failed program was:" >&5
48725 sed 's/^/| /' conftest.$ac_ext >&5
48726
48727   ac_header_preproc=no
48728 fi
48729 rm -f conftest.err conftest.$ac_ext
48730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48731 echo "${ECHO_T}$ac_header_preproc" >&6
48732
48733 # So?  What about this header?
48734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48735   yes:no: )
48736     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48740     ac_header_preproc=yes
48741     ;;
48742   no:yes:* )
48743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48745     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48746 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48747     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48749     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48750 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48753     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48755     (
48756       cat <<\_ASBOX
48757 ## -------------------------------------- ##
48758 ## Report this to heimdal-bugs@pdc.kth.se ##
48759 ## -------------------------------------- ##
48760 _ASBOX
48761     ) |
48762       sed "s/^/$as_me: WARNING:     /" >&2
48763     ;;
48764 esac
48765 echo "$as_me:$LINENO: checking for $ac_header" >&5
48766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48768   echo $ECHO_N "(cached) $ECHO_C" >&6
48769 else
48770   eval "$as_ac_Header=\$ac_header_preproc"
48771 fi
48772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48774
48775 fi
48776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48777   cat >>confdefs.h <<_ACEOF
48778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48779 _ACEOF
48780
48781 fi
48782
48783 done
48784
48785
48786 # Check whether --enable-netinfo or --disable-netinfo was given.
48787 if test "${enable_netinfo+set}" = set; then
48788   enableval="$enable_netinfo"
48789
48790 fi;
48791
48792 if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
48793
48794 cat >>confdefs.h <<\_ACEOF
48795 #define HAVE_NETINFO 1
48796 _ACEOF
48797
48798 fi
48799
48800
48801
48802
48803
48804 echo "$as_me:$LINENO: checking for logwtmp" >&5
48805 echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
48806 if test "${ac_cv_funclib_logwtmp+set}" = set; then
48807   echo $ECHO_N "(cached) $ECHO_C" >&6
48808 else
48809
48810 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
48811         ac_save_LIBS="$LIBS"
48812         for ac_lib in "" util; do
48813                 case "$ac_lib" in
48814                 "") ;;
48815                 yes) ac_lib="" ;;
48816                 no) continue ;;
48817                 -l*) ;;
48818                 *) ac_lib="-l$ac_lib" ;;
48819                 esac
48820                 LIBS=" $ac_lib  $ac_save_LIBS"
48821                 cat >conftest.$ac_ext <<_ACEOF
48822 /* confdefs.h.  */
48823 _ACEOF
48824 cat confdefs.h >>conftest.$ac_ext
48825 cat >>conftest.$ac_ext <<_ACEOF
48826 /* end confdefs.h.  */
48827
48828 int
48829 main ()
48830 {
48831 logwtmp()
48832   ;
48833   return 0;
48834 }
48835 _ACEOF
48836 rm -f conftest.$ac_objext conftest$ac_exeext
48837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48838   (eval $ac_link) 2>conftest.er1
48839   ac_status=$?
48840   grep -v '^ *+' conftest.er1 >conftest.err
48841   rm -f conftest.er1
48842   cat conftest.err >&5
48843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48844   (exit $ac_status); } &&
48845          { ac_try='test -z "$ac_c_werror_flag"
48846                          || test ! -s conftest.err'
48847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48848   (eval $ac_try) 2>&5
48849   ac_status=$?
48850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48851   (exit $ac_status); }; } &&
48852          { ac_try='test -s conftest$ac_exeext'
48853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48854   (eval $ac_try) 2>&5
48855   ac_status=$?
48856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48857   (exit $ac_status); }; }; then
48858   eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
48859 else
48860   echo "$as_me: failed program was:" >&5
48861 sed 's/^/| /' conftest.$ac_ext >&5
48862
48863 fi
48864 rm -f conftest.err conftest.$ac_objext \
48865       conftest$ac_exeext conftest.$ac_ext
48866         done
48867         eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
48868         LIBS="$ac_save_LIBS"
48869 fi
48870
48871 fi
48872
48873
48874 eval "ac_res=\$ac_cv_funclib_logwtmp"
48875
48876 if false; then
48877
48878 for ac_func in logwtmp
48879 do
48880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48881 echo "$as_me:$LINENO: checking for $ac_func" >&5
48882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48883 if eval "test \"\${$as_ac_var+set}\" = set"; then
48884   echo $ECHO_N "(cached) $ECHO_C" >&6
48885 else
48886   cat >conftest.$ac_ext <<_ACEOF
48887 /* confdefs.h.  */
48888 _ACEOF
48889 cat confdefs.h >>conftest.$ac_ext
48890 cat >>conftest.$ac_ext <<_ACEOF
48891 /* end confdefs.h.  */
48892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48894 #define $ac_func innocuous_$ac_func
48895
48896 /* System header to define __stub macros and hopefully few prototypes,
48897     which can conflict with char $ac_func (); below.
48898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48899     <limits.h> exists even on freestanding compilers.  */
48900
48901 #ifdef __STDC__
48902 # include <limits.h>
48903 #else
48904 # include <assert.h>
48905 #endif
48906
48907 #undef $ac_func
48908
48909 /* Override any gcc2 internal prototype to avoid an error.  */
48910 #ifdef __cplusplus
48911 extern "C"
48912 {
48913 #endif
48914 /* We use char because int might match the return type of a gcc2
48915    builtin and then its argument prototype would still apply.  */
48916 char $ac_func ();
48917 /* The GNU C library defines this for functions which it implements
48918     to always fail with ENOSYS.  Some functions are actually named
48919     something starting with __ and the normal name is an alias.  */
48920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48921 choke me
48922 #else
48923 char (*f) () = $ac_func;
48924 #endif
48925 #ifdef __cplusplus
48926 }
48927 #endif
48928
48929 int
48930 main ()
48931 {
48932 return f != $ac_func;
48933   ;
48934   return 0;
48935 }
48936 _ACEOF
48937 rm -f conftest.$ac_objext conftest$ac_exeext
48938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48939   (eval $ac_link) 2>conftest.er1
48940   ac_status=$?
48941   grep -v '^ *+' conftest.er1 >conftest.err
48942   rm -f conftest.er1
48943   cat conftest.err >&5
48944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945   (exit $ac_status); } &&
48946          { ac_try='test -z "$ac_c_werror_flag"
48947                          || test ! -s conftest.err'
48948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48949   (eval $ac_try) 2>&5
48950   ac_status=$?
48951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48952   (exit $ac_status); }; } &&
48953          { ac_try='test -s conftest$ac_exeext'
48954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48955   (eval $ac_try) 2>&5
48956   ac_status=$?
48957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48958   (exit $ac_status); }; }; then
48959   eval "$as_ac_var=yes"
48960 else
48961   echo "$as_me: failed program was:" >&5
48962 sed 's/^/| /' conftest.$ac_ext >&5
48963
48964 eval "$as_ac_var=no"
48965 fi
48966 rm -f conftest.err conftest.$ac_objext \
48967       conftest$ac_exeext conftest.$ac_ext
48968 fi
48969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48971 if test `eval echo '${'$as_ac_var'}'` = yes; then
48972   cat >>confdefs.h <<_ACEOF
48973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48974 _ACEOF
48975
48976 fi
48977 done
48978
48979 fi
48980 # logwtmp
48981 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48982 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48983 eval "LIB_logwtmp=$ac_res"
48984
48985 case "$ac_res" in
48986         yes)
48987         eval "ac_cv_func_logwtmp=yes"
48988         eval "LIB_logwtmp="
48989         cat >>confdefs.h <<_ACEOF
48990 #define $ac_tr_func 1
48991 _ACEOF
48992
48993         echo "$as_me:$LINENO: result: yes" >&5
48994 echo "${ECHO_T}yes" >&6
48995         ;;
48996         no)
48997         eval "ac_cv_func_logwtmp=no"
48998         eval "LIB_logwtmp="
48999         echo "$as_me:$LINENO: result: no" >&5
49000 echo "${ECHO_T}no" >&6
49001         ;;
49002         *)
49003         eval "ac_cv_func_logwtmp=yes"
49004         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49005         cat >>confdefs.h <<_ACEOF
49006 #define $ac_tr_func 1
49007 _ACEOF
49008
49009         cat >>confdefs.h <<_ACEOF
49010 #define $ac_tr_lib 1
49011 _ACEOF
49012
49013         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49014 echo "${ECHO_T}yes, in $ac_res" >&6
49015         ;;
49016 esac
49017
49018
49019
49020
49021
49022 echo "$as_me:$LINENO: checking for logout" >&5
49023 echo $ECHO_N "checking for logout... $ECHO_C" >&6
49024 if test "${ac_cv_funclib_logout+set}" = set; then
49025   echo $ECHO_N "(cached) $ECHO_C" >&6
49026 else
49027
49028 if eval "test \"\$ac_cv_func_logout\" != yes" ; then
49029         ac_save_LIBS="$LIBS"
49030         for ac_lib in "" util; do
49031                 case "$ac_lib" in
49032                 "") ;;
49033                 yes) ac_lib="" ;;
49034                 no) continue ;;
49035                 -l*) ;;
49036                 *) ac_lib="-l$ac_lib" ;;
49037                 esac
49038                 LIBS=" $ac_lib  $ac_save_LIBS"
49039                 cat >conftest.$ac_ext <<_ACEOF
49040 /* confdefs.h.  */
49041 _ACEOF
49042 cat confdefs.h >>conftest.$ac_ext
49043 cat >>conftest.$ac_ext <<_ACEOF
49044 /* end confdefs.h.  */
49045
49046 int
49047 main ()
49048 {
49049 logout()
49050   ;
49051   return 0;
49052 }
49053 _ACEOF
49054 rm -f conftest.$ac_objext conftest$ac_exeext
49055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49056   (eval $ac_link) 2>conftest.er1
49057   ac_status=$?
49058   grep -v '^ *+' conftest.er1 >conftest.err
49059   rm -f conftest.er1
49060   cat conftest.err >&5
49061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49062   (exit $ac_status); } &&
49063          { ac_try='test -z "$ac_c_werror_flag"
49064                          || test ! -s conftest.err'
49065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49066   (eval $ac_try) 2>&5
49067   ac_status=$?
49068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49069   (exit $ac_status); }; } &&
49070          { ac_try='test -s conftest$ac_exeext'
49071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49072   (eval $ac_try) 2>&5
49073   ac_status=$?
49074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49075   (exit $ac_status); }; }; then
49076   eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
49077 else
49078   echo "$as_me: failed program was:" >&5
49079 sed 's/^/| /' conftest.$ac_ext >&5
49080
49081 fi
49082 rm -f conftest.err conftest.$ac_objext \
49083       conftest$ac_exeext conftest.$ac_ext
49084         done
49085         eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
49086         LIBS="$ac_save_LIBS"
49087 fi
49088
49089 fi
49090
49091
49092 eval "ac_res=\$ac_cv_funclib_logout"
49093
49094 if false; then
49095
49096 for ac_func in logout
49097 do
49098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49099 echo "$as_me:$LINENO: checking for $ac_func" >&5
49100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49101 if eval "test \"\${$as_ac_var+set}\" = set"; then
49102   echo $ECHO_N "(cached) $ECHO_C" >&6
49103 else
49104   cat >conftest.$ac_ext <<_ACEOF
49105 /* confdefs.h.  */
49106 _ACEOF
49107 cat confdefs.h >>conftest.$ac_ext
49108 cat >>conftest.$ac_ext <<_ACEOF
49109 /* end confdefs.h.  */
49110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49112 #define $ac_func innocuous_$ac_func
49113
49114 /* System header to define __stub macros and hopefully few prototypes,
49115     which can conflict with char $ac_func (); below.
49116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49117     <limits.h> exists even on freestanding compilers.  */
49118
49119 #ifdef __STDC__
49120 # include <limits.h>
49121 #else
49122 # include <assert.h>
49123 #endif
49124
49125 #undef $ac_func
49126
49127 /* Override any gcc2 internal prototype to avoid an error.  */
49128 #ifdef __cplusplus
49129 extern "C"
49130 {
49131 #endif
49132 /* We use char because int might match the return type of a gcc2
49133    builtin and then its argument prototype would still apply.  */
49134 char $ac_func ();
49135 /* The GNU C library defines this for functions which it implements
49136     to always fail with ENOSYS.  Some functions are actually named
49137     something starting with __ and the normal name is an alias.  */
49138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49139 choke me
49140 #else
49141 char (*f) () = $ac_func;
49142 #endif
49143 #ifdef __cplusplus
49144 }
49145 #endif
49146
49147 int
49148 main ()
49149 {
49150 return f != $ac_func;
49151   ;
49152   return 0;
49153 }
49154 _ACEOF
49155 rm -f conftest.$ac_objext conftest$ac_exeext
49156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49157   (eval $ac_link) 2>conftest.er1
49158   ac_status=$?
49159   grep -v '^ *+' conftest.er1 >conftest.err
49160   rm -f conftest.er1
49161   cat conftest.err >&5
49162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49163   (exit $ac_status); } &&
49164          { ac_try='test -z "$ac_c_werror_flag"
49165                          || test ! -s conftest.err'
49166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49167   (eval $ac_try) 2>&5
49168   ac_status=$?
49169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49170   (exit $ac_status); }; } &&
49171          { ac_try='test -s conftest$ac_exeext'
49172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49173   (eval $ac_try) 2>&5
49174   ac_status=$?
49175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49176   (exit $ac_status); }; }; then
49177   eval "$as_ac_var=yes"
49178 else
49179   echo "$as_me: failed program was:" >&5
49180 sed 's/^/| /' conftest.$ac_ext >&5
49181
49182 eval "$as_ac_var=no"
49183 fi
49184 rm -f conftest.err conftest.$ac_objext \
49185       conftest$ac_exeext conftest.$ac_ext
49186 fi
49187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49189 if test `eval echo '${'$as_ac_var'}'` = yes; then
49190   cat >>confdefs.h <<_ACEOF
49191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49192 _ACEOF
49193
49194 fi
49195 done
49196
49197 fi
49198 # logout
49199 eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49200 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49201 eval "LIB_logout=$ac_res"
49202
49203 case "$ac_res" in
49204         yes)
49205         eval "ac_cv_func_logout=yes"
49206         eval "LIB_logout="
49207         cat >>confdefs.h <<_ACEOF
49208 #define $ac_tr_func 1
49209 _ACEOF
49210
49211         echo "$as_me:$LINENO: result: yes" >&5
49212 echo "${ECHO_T}yes" >&6
49213         ;;
49214         no)
49215         eval "ac_cv_func_logout=no"
49216         eval "LIB_logout="
49217         echo "$as_me:$LINENO: result: no" >&5
49218 echo "${ECHO_T}no" >&6
49219         ;;
49220         *)
49221         eval "ac_cv_func_logout=yes"
49222         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49223         cat >>confdefs.h <<_ACEOF
49224 #define $ac_tr_func 1
49225 _ACEOF
49226
49227         cat >>confdefs.h <<_ACEOF
49228 #define $ac_tr_lib 1
49229 _ACEOF
49230
49231         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49232 echo "${ECHO_T}yes, in $ac_res" >&6
49233         ;;
49234 esac
49235
49236
49237
49238
49239
49240 echo "$as_me:$LINENO: checking for openpty" >&5
49241 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
49242 if test "${ac_cv_funclib_openpty+set}" = set; then
49243   echo $ECHO_N "(cached) $ECHO_C" >&6
49244 else
49245
49246 if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
49247         ac_save_LIBS="$LIBS"
49248         for ac_lib in "" util; do
49249                 case "$ac_lib" in
49250                 "") ;;
49251                 yes) ac_lib="" ;;
49252                 no) continue ;;
49253                 -l*) ;;
49254                 *) ac_lib="-l$ac_lib" ;;
49255                 esac
49256                 LIBS=" $ac_lib  $ac_save_LIBS"
49257                 cat >conftest.$ac_ext <<_ACEOF
49258 /* confdefs.h.  */
49259 _ACEOF
49260 cat confdefs.h >>conftest.$ac_ext
49261 cat >>conftest.$ac_ext <<_ACEOF
49262 /* end confdefs.h.  */
49263
49264 int
49265 main ()
49266 {
49267 openpty()
49268   ;
49269   return 0;
49270 }
49271 _ACEOF
49272 rm -f conftest.$ac_objext conftest$ac_exeext
49273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49274   (eval $ac_link) 2>conftest.er1
49275   ac_status=$?
49276   grep -v '^ *+' conftest.er1 >conftest.err
49277   rm -f conftest.er1
49278   cat conftest.err >&5
49279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49280   (exit $ac_status); } &&
49281          { ac_try='test -z "$ac_c_werror_flag"
49282                          || test ! -s conftest.err'
49283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49284   (eval $ac_try) 2>&5
49285   ac_status=$?
49286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49287   (exit $ac_status); }; } &&
49288          { ac_try='test -s conftest$ac_exeext'
49289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49290   (eval $ac_try) 2>&5
49291   ac_status=$?
49292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49293   (exit $ac_status); }; }; then
49294   eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
49295 else
49296   echo "$as_me: failed program was:" >&5
49297 sed 's/^/| /' conftest.$ac_ext >&5
49298
49299 fi
49300 rm -f conftest.err conftest.$ac_objext \
49301       conftest$ac_exeext conftest.$ac_ext
49302         done
49303         eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
49304         LIBS="$ac_save_LIBS"
49305 fi
49306
49307 fi
49308
49309
49310 eval "ac_res=\$ac_cv_funclib_openpty"
49311
49312 if false; then
49313
49314 for ac_func in openpty
49315 do
49316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49317 echo "$as_me:$LINENO: checking for $ac_func" >&5
49318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49319 if eval "test \"\${$as_ac_var+set}\" = set"; then
49320   echo $ECHO_N "(cached) $ECHO_C" >&6
49321 else
49322   cat >conftest.$ac_ext <<_ACEOF
49323 /* confdefs.h.  */
49324 _ACEOF
49325 cat confdefs.h >>conftest.$ac_ext
49326 cat >>conftest.$ac_ext <<_ACEOF
49327 /* end confdefs.h.  */
49328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49330 #define $ac_func innocuous_$ac_func
49331
49332 /* System header to define __stub macros and hopefully few prototypes,
49333     which can conflict with char $ac_func (); below.
49334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49335     <limits.h> exists even on freestanding compilers.  */
49336
49337 #ifdef __STDC__
49338 # include <limits.h>
49339 #else
49340 # include <assert.h>
49341 #endif
49342
49343 #undef $ac_func
49344
49345 /* Override any gcc2 internal prototype to avoid an error.  */
49346 #ifdef __cplusplus
49347 extern "C"
49348 {
49349 #endif
49350 /* We use char because int might match the return type of a gcc2
49351    builtin and then its argument prototype would still apply.  */
49352 char $ac_func ();
49353 /* The GNU C library defines this for functions which it implements
49354     to always fail with ENOSYS.  Some functions are actually named
49355     something starting with __ and the normal name is an alias.  */
49356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49357 choke me
49358 #else
49359 char (*f) () = $ac_func;
49360 #endif
49361 #ifdef __cplusplus
49362 }
49363 #endif
49364
49365 int
49366 main ()
49367 {
49368 return f != $ac_func;
49369   ;
49370   return 0;
49371 }
49372 _ACEOF
49373 rm -f conftest.$ac_objext conftest$ac_exeext
49374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49375   (eval $ac_link) 2>conftest.er1
49376   ac_status=$?
49377   grep -v '^ *+' conftest.er1 >conftest.err
49378   rm -f conftest.er1
49379   cat conftest.err >&5
49380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49381   (exit $ac_status); } &&
49382          { ac_try='test -z "$ac_c_werror_flag"
49383                          || test ! -s conftest.err'
49384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49385   (eval $ac_try) 2>&5
49386   ac_status=$?
49387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49388   (exit $ac_status); }; } &&
49389          { ac_try='test -s conftest$ac_exeext'
49390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49391   (eval $ac_try) 2>&5
49392   ac_status=$?
49393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49394   (exit $ac_status); }; }; then
49395   eval "$as_ac_var=yes"
49396 else
49397   echo "$as_me: failed program was:" >&5
49398 sed 's/^/| /' conftest.$ac_ext >&5
49399
49400 eval "$as_ac_var=no"
49401 fi
49402 rm -f conftest.err conftest.$ac_objext \
49403       conftest$ac_exeext conftest.$ac_ext
49404 fi
49405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49407 if test `eval echo '${'$as_ac_var'}'` = yes; then
49408   cat >>confdefs.h <<_ACEOF
49409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49410 _ACEOF
49411
49412 fi
49413 done
49414
49415 fi
49416 # openpty
49417 eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49418 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49419 eval "LIB_openpty=$ac_res"
49420
49421 case "$ac_res" in
49422         yes)
49423         eval "ac_cv_func_openpty=yes"
49424         eval "LIB_openpty="
49425         cat >>confdefs.h <<_ACEOF
49426 #define $ac_tr_func 1
49427 _ACEOF
49428
49429         echo "$as_me:$LINENO: result: yes" >&5
49430 echo "${ECHO_T}yes" >&6
49431         ;;
49432         no)
49433         eval "ac_cv_func_openpty=no"
49434         eval "LIB_openpty="
49435         echo "$as_me:$LINENO: result: no" >&5
49436 echo "${ECHO_T}no" >&6
49437         ;;
49438         *)
49439         eval "ac_cv_func_openpty=yes"
49440         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49441         cat >>confdefs.h <<_ACEOF
49442 #define $ac_tr_func 1
49443 _ACEOF
49444
49445         cat >>confdefs.h <<_ACEOF
49446 #define $ac_tr_lib 1
49447 _ACEOF
49448
49449         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49450 echo "${ECHO_T}yes, in $ac_res" >&6
49451         ;;
49452 esac
49453
49454
49455
49456
49457
49458 echo "$as_me:$LINENO: checking for tgetent" >&5
49459 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
49460 if test "${ac_cv_funclib_tgetent+set}" = set; then
49461   echo $ECHO_N "(cached) $ECHO_C" >&6
49462 else
49463
49464 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
49465         ac_save_LIBS="$LIBS"
49466         for ac_lib in "" termcap ncurses curses; do
49467                 case "$ac_lib" in
49468                 "") ;;
49469                 yes) ac_lib="" ;;
49470                 no) continue ;;
49471                 -l*) ;;
49472                 *) ac_lib="-l$ac_lib" ;;
49473                 esac
49474                 LIBS=" $ac_lib  $ac_save_LIBS"
49475                 cat >conftest.$ac_ext <<_ACEOF
49476 /* confdefs.h.  */
49477 _ACEOF
49478 cat confdefs.h >>conftest.$ac_ext
49479 cat >>conftest.$ac_ext <<_ACEOF
49480 /* end confdefs.h.  */
49481
49482 int
49483 main ()
49484 {
49485 tgetent()
49486   ;
49487   return 0;
49488 }
49489 _ACEOF
49490 rm -f conftest.$ac_objext conftest$ac_exeext
49491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49492   (eval $ac_link) 2>conftest.er1
49493   ac_status=$?
49494   grep -v '^ *+' conftest.er1 >conftest.err
49495   rm -f conftest.er1
49496   cat conftest.err >&5
49497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49498   (exit $ac_status); } &&
49499          { ac_try='test -z "$ac_c_werror_flag"
49500                          || test ! -s conftest.err'
49501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49502   (eval $ac_try) 2>&5
49503   ac_status=$?
49504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49505   (exit $ac_status); }; } &&
49506          { ac_try='test -s conftest$ac_exeext'
49507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49508   (eval $ac_try) 2>&5
49509   ac_status=$?
49510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49511   (exit $ac_status); }; }; then
49512   eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
49513 else
49514   echo "$as_me: failed program was:" >&5
49515 sed 's/^/| /' conftest.$ac_ext >&5
49516
49517 fi
49518 rm -f conftest.err conftest.$ac_objext \
49519       conftest$ac_exeext conftest.$ac_ext
49520         done
49521         eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
49522         LIBS="$ac_save_LIBS"
49523 fi
49524
49525 fi
49526
49527
49528 eval "ac_res=\$ac_cv_funclib_tgetent"
49529
49530 if false; then
49531
49532 for ac_func in tgetent
49533 do
49534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49535 echo "$as_me:$LINENO: checking for $ac_func" >&5
49536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49537 if eval "test \"\${$as_ac_var+set}\" = set"; then
49538   echo $ECHO_N "(cached) $ECHO_C" >&6
49539 else
49540   cat >conftest.$ac_ext <<_ACEOF
49541 /* confdefs.h.  */
49542 _ACEOF
49543 cat confdefs.h >>conftest.$ac_ext
49544 cat >>conftest.$ac_ext <<_ACEOF
49545 /* end confdefs.h.  */
49546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49548 #define $ac_func innocuous_$ac_func
49549
49550 /* System header to define __stub macros and hopefully few prototypes,
49551     which can conflict with char $ac_func (); below.
49552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49553     <limits.h> exists even on freestanding compilers.  */
49554
49555 #ifdef __STDC__
49556 # include <limits.h>
49557 #else
49558 # include <assert.h>
49559 #endif
49560
49561 #undef $ac_func
49562
49563 /* Override any gcc2 internal prototype to avoid an error.  */
49564 #ifdef __cplusplus
49565 extern "C"
49566 {
49567 #endif
49568 /* We use char because int might match the return type of a gcc2
49569    builtin and then its argument prototype would still apply.  */
49570 char $ac_func ();
49571 /* The GNU C library defines this for functions which it implements
49572     to always fail with ENOSYS.  Some functions are actually named
49573     something starting with __ and the normal name is an alias.  */
49574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49575 choke me
49576 #else
49577 char (*f) () = $ac_func;
49578 #endif
49579 #ifdef __cplusplus
49580 }
49581 #endif
49582
49583 int
49584 main ()
49585 {
49586 return f != $ac_func;
49587   ;
49588   return 0;
49589 }
49590 _ACEOF
49591 rm -f conftest.$ac_objext conftest$ac_exeext
49592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49593   (eval $ac_link) 2>conftest.er1
49594   ac_status=$?
49595   grep -v '^ *+' conftest.er1 >conftest.err
49596   rm -f conftest.er1
49597   cat conftest.err >&5
49598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49599   (exit $ac_status); } &&
49600          { ac_try='test -z "$ac_c_werror_flag"
49601                          || test ! -s conftest.err'
49602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49603   (eval $ac_try) 2>&5
49604   ac_status=$?
49605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49606   (exit $ac_status); }; } &&
49607          { ac_try='test -s conftest$ac_exeext'
49608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49609   (eval $ac_try) 2>&5
49610   ac_status=$?
49611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49612   (exit $ac_status); }; }; then
49613   eval "$as_ac_var=yes"
49614 else
49615   echo "$as_me: failed program was:" >&5
49616 sed 's/^/| /' conftest.$ac_ext >&5
49617
49618 eval "$as_ac_var=no"
49619 fi
49620 rm -f conftest.err conftest.$ac_objext \
49621       conftest$ac_exeext conftest.$ac_ext
49622 fi
49623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49625 if test `eval echo '${'$as_ac_var'}'` = yes; then
49626   cat >>confdefs.h <<_ACEOF
49627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49628 _ACEOF
49629
49630 fi
49631 done
49632
49633 fi
49634 # tgetent
49635 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49636 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49637 eval "LIB_tgetent=$ac_res"
49638
49639 case "$ac_res" in
49640         yes)
49641         eval "ac_cv_func_tgetent=yes"
49642         eval "LIB_tgetent="
49643         cat >>confdefs.h <<_ACEOF
49644 #define $ac_tr_func 1
49645 _ACEOF
49646
49647         echo "$as_me:$LINENO: result: yes" >&5
49648 echo "${ECHO_T}yes" >&6
49649         ;;
49650         no)
49651         eval "ac_cv_func_tgetent=no"
49652         eval "LIB_tgetent="
49653         echo "$as_me:$LINENO: result: no" >&5
49654 echo "${ECHO_T}no" >&6
49655         ;;
49656         *)
49657         eval "ac_cv_func_tgetent=yes"
49658         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49659         cat >>confdefs.h <<_ACEOF
49660 #define $ac_tr_func 1
49661 _ACEOF
49662
49663         cat >>confdefs.h <<_ACEOF
49664 #define $ac_tr_lib 1
49665 _ACEOF
49666
49667         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49668 echo "${ECHO_T}yes, in $ac_res" >&6
49669         ;;
49670 esac
49671
49672
49673
49674
49675
49676
49677
49678
49679
49680
49681
49682
49683
49684
49685
49686
49687
49688
49689
49690
49691
49692
49693
49694
49695
49696
49697
49698
49699
49700
49701
49702
49703 for ac_func in                          \
49704         _getpty                                 \
49705         _scrsize                                \
49706         fcntl                                   \
49707         grantpt                                 \
49708         mktime                                  \
49709         ptsname                                 \
49710         rand                                    \
49711         revoke                                  \
49712         select                                  \
49713         setitimer                               \
49714         setpcred                                \
49715         setpgid                                 \
49716         setproctitle                            \
49717         setregid                                \
49718         setresgid                               \
49719         setresuid                               \
49720         setreuid                                \
49721         setsid                                  \
49722         setutent                                \
49723         sigaction                               \
49724         strstr                                  \
49725         timegm                                  \
49726         ttyname                                 \
49727         ttyslot                                 \
49728         umask                                   \
49729         unlockpt                                \
49730         vhangup                                 \
49731         yp_get_default_domain                   \
49732
49733 do
49734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49735 echo "$as_me:$LINENO: checking for $ac_func" >&5
49736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49737 if eval "test \"\${$as_ac_var+set}\" = set"; then
49738   echo $ECHO_N "(cached) $ECHO_C" >&6
49739 else
49740   cat >conftest.$ac_ext <<_ACEOF
49741 /* confdefs.h.  */
49742 _ACEOF
49743 cat confdefs.h >>conftest.$ac_ext
49744 cat >>conftest.$ac_ext <<_ACEOF
49745 /* end confdefs.h.  */
49746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49748 #define $ac_func innocuous_$ac_func
49749
49750 /* System header to define __stub macros and hopefully few prototypes,
49751     which can conflict with char $ac_func (); below.
49752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49753     <limits.h> exists even on freestanding compilers.  */
49754
49755 #ifdef __STDC__
49756 # include <limits.h>
49757 #else
49758 # include <assert.h>
49759 #endif
49760
49761 #undef $ac_func
49762
49763 /* Override any gcc2 internal prototype to avoid an error.  */
49764 #ifdef __cplusplus
49765 extern "C"
49766 {
49767 #endif
49768 /* We use char because int might match the return type of a gcc2
49769    builtin and then its argument prototype would still apply.  */
49770 char $ac_func ();
49771 /* The GNU C library defines this for functions which it implements
49772     to always fail with ENOSYS.  Some functions are actually named
49773     something starting with __ and the normal name is an alias.  */
49774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49775 choke me
49776 #else
49777 char (*f) () = $ac_func;
49778 #endif
49779 #ifdef __cplusplus
49780 }
49781 #endif
49782
49783 int
49784 main ()
49785 {
49786 return f != $ac_func;
49787   ;
49788   return 0;
49789 }
49790 _ACEOF
49791 rm -f conftest.$ac_objext conftest$ac_exeext
49792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49793   (eval $ac_link) 2>conftest.er1
49794   ac_status=$?
49795   grep -v '^ *+' conftest.er1 >conftest.err
49796   rm -f conftest.er1
49797   cat conftest.err >&5
49798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49799   (exit $ac_status); } &&
49800          { ac_try='test -z "$ac_c_werror_flag"
49801                          || test ! -s conftest.err'
49802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49803   (eval $ac_try) 2>&5
49804   ac_status=$?
49805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49806   (exit $ac_status); }; } &&
49807          { ac_try='test -s conftest$ac_exeext'
49808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49809   (eval $ac_try) 2>&5
49810   ac_status=$?
49811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49812   (exit $ac_status); }; }; then
49813   eval "$as_ac_var=yes"
49814 else
49815   echo "$as_me: failed program was:" >&5
49816 sed 's/^/| /' conftest.$ac_ext >&5
49817
49818 eval "$as_ac_var=no"
49819 fi
49820 rm -f conftest.err conftest.$ac_objext \
49821       conftest$ac_exeext conftest.$ac_ext
49822 fi
49823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49825 if test `eval echo '${'$as_ac_var'}'` = yes; then
49826   cat >>confdefs.h <<_ACEOF
49827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49828 _ACEOF
49829
49830 fi
49831 done
49832
49833
49834
49835
49836 for ac_header in stdlib.h unistd.h
49837 do
49838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49840   echo "$as_me:$LINENO: checking for $ac_header" >&5
49841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49843   echo $ECHO_N "(cached) $ECHO_C" >&6
49844 fi
49845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49847 else
49848   # Is the header compilable?
49849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49851 cat >conftest.$ac_ext <<_ACEOF
49852 /* confdefs.h.  */
49853 _ACEOF
49854 cat confdefs.h >>conftest.$ac_ext
49855 cat >>conftest.$ac_ext <<_ACEOF
49856 /* end confdefs.h.  */
49857 $ac_includes_default
49858 #include <$ac_header>
49859 _ACEOF
49860 rm -f conftest.$ac_objext
49861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49862   (eval $ac_compile) 2>conftest.er1
49863   ac_status=$?
49864   grep -v '^ *+' conftest.er1 >conftest.err
49865   rm -f conftest.er1
49866   cat conftest.err >&5
49867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49868   (exit $ac_status); } &&
49869          { ac_try='test -z "$ac_c_werror_flag"
49870                          || test ! -s conftest.err'
49871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49872   (eval $ac_try) 2>&5
49873   ac_status=$?
49874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49875   (exit $ac_status); }; } &&
49876          { ac_try='test -s conftest.$ac_objext'
49877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49878   (eval $ac_try) 2>&5
49879   ac_status=$?
49880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49881   (exit $ac_status); }; }; then
49882   ac_header_compiler=yes
49883 else
49884   echo "$as_me: failed program was:" >&5
49885 sed 's/^/| /' conftest.$ac_ext >&5
49886
49887 ac_header_compiler=no
49888 fi
49889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49891 echo "${ECHO_T}$ac_header_compiler" >&6
49892
49893 # Is the header present?
49894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49896 cat >conftest.$ac_ext <<_ACEOF
49897 /* confdefs.h.  */
49898 _ACEOF
49899 cat confdefs.h >>conftest.$ac_ext
49900 cat >>conftest.$ac_ext <<_ACEOF
49901 /* end confdefs.h.  */
49902 #include <$ac_header>
49903 _ACEOF
49904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49906   ac_status=$?
49907   grep -v '^ *+' conftest.er1 >conftest.err
49908   rm -f conftest.er1
49909   cat conftest.err >&5
49910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49911   (exit $ac_status); } >/dev/null; then
49912   if test -s conftest.err; then
49913     ac_cpp_err=$ac_c_preproc_warn_flag
49914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
49915   else
49916     ac_cpp_err=
49917   fi
49918 else
49919   ac_cpp_err=yes
49920 fi
49921 if test -z "$ac_cpp_err"; then
49922   ac_header_preproc=yes
49923 else
49924   echo "$as_me: failed program was:" >&5
49925 sed 's/^/| /' conftest.$ac_ext >&5
49926
49927   ac_header_preproc=no
49928 fi
49929 rm -f conftest.err conftest.$ac_ext
49930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49931 echo "${ECHO_T}$ac_header_preproc" >&6
49932
49933 # So?  What about this header?
49934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49935   yes:no: )
49936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49940     ac_header_preproc=yes
49941     ;;
49942   no:yes:* )
49943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49945     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49946 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49947     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49949     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49950 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49953     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49955     (
49956       cat <<\_ASBOX
49957 ## -------------------------------------- ##
49958 ## Report this to heimdal-bugs@pdc.kth.se ##
49959 ## -------------------------------------- ##
49960 _ASBOX
49961     ) |
49962       sed "s/^/$as_me: WARNING:     /" >&2
49963     ;;
49964 esac
49965 echo "$as_me:$LINENO: checking for $ac_header" >&5
49966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49968   echo $ECHO_N "(cached) $ECHO_C" >&6
49969 else
49970   eval "$as_ac_Header=\$ac_header_preproc"
49971 fi
49972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49974
49975 fi
49976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49977   cat >>confdefs.h <<_ACEOF
49978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49979 _ACEOF
49980
49981 fi
49982
49983 done
49984
49985
49986 for ac_func in getpagesize
49987 do
49988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49989 echo "$as_me:$LINENO: checking for $ac_func" >&5
49990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49991 if eval "test \"\${$as_ac_var+set}\" = set"; then
49992   echo $ECHO_N "(cached) $ECHO_C" >&6
49993 else
49994   cat >conftest.$ac_ext <<_ACEOF
49995 /* confdefs.h.  */
49996 _ACEOF
49997 cat confdefs.h >>conftest.$ac_ext
49998 cat >>conftest.$ac_ext <<_ACEOF
49999 /* end confdefs.h.  */
50000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50002 #define $ac_func innocuous_$ac_func
50003
50004 /* System header to define __stub macros and hopefully few prototypes,
50005     which can conflict with char $ac_func (); below.
50006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50007     <limits.h> exists even on freestanding compilers.  */
50008
50009 #ifdef __STDC__
50010 # include <limits.h>
50011 #else
50012 # include <assert.h>
50013 #endif
50014
50015 #undef $ac_func
50016
50017 /* Override any gcc2 internal prototype to avoid an error.  */
50018 #ifdef __cplusplus
50019 extern "C"
50020 {
50021 #endif
50022 /* We use char because int might match the return type of a gcc2
50023    builtin and then its argument prototype would still apply.  */
50024 char $ac_func ();
50025 /* The GNU C library defines this for functions which it implements
50026     to always fail with ENOSYS.  Some functions are actually named
50027     something starting with __ and the normal name is an alias.  */
50028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50029 choke me
50030 #else
50031 char (*f) () = $ac_func;
50032 #endif
50033 #ifdef __cplusplus
50034 }
50035 #endif
50036
50037 int
50038 main ()
50039 {
50040 return f != $ac_func;
50041   ;
50042   return 0;
50043 }
50044 _ACEOF
50045 rm -f conftest.$ac_objext conftest$ac_exeext
50046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50047   (eval $ac_link) 2>conftest.er1
50048   ac_status=$?
50049   grep -v '^ *+' conftest.er1 >conftest.err
50050   rm -f conftest.er1
50051   cat conftest.err >&5
50052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50053   (exit $ac_status); } &&
50054          { ac_try='test -z "$ac_c_werror_flag"
50055                          || test ! -s conftest.err'
50056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50057   (eval $ac_try) 2>&5
50058   ac_status=$?
50059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50060   (exit $ac_status); }; } &&
50061          { ac_try='test -s conftest$ac_exeext'
50062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50063   (eval $ac_try) 2>&5
50064   ac_status=$?
50065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50066   (exit $ac_status); }; }; then
50067   eval "$as_ac_var=yes"
50068 else
50069   echo "$as_me: failed program was:" >&5
50070 sed 's/^/| /' conftest.$ac_ext >&5
50071
50072 eval "$as_ac_var=no"
50073 fi
50074 rm -f conftest.err conftest.$ac_objext \
50075       conftest$ac_exeext conftest.$ac_ext
50076 fi
50077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50079 if test `eval echo '${'$as_ac_var'}'` = yes; then
50080   cat >>confdefs.h <<_ACEOF
50081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50082 _ACEOF
50083
50084 fi
50085 done
50086
50087 echo "$as_me:$LINENO: checking for working mmap" >&5
50088 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
50089 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
50090   echo $ECHO_N "(cached) $ECHO_C" >&6
50091 else
50092   if test "$cross_compiling" = yes; then
50093   ac_cv_func_mmap_fixed_mapped=no
50094 else
50095   cat >conftest.$ac_ext <<_ACEOF
50096 /* confdefs.h.  */
50097 _ACEOF
50098 cat confdefs.h >>conftest.$ac_ext
50099 cat >>conftest.$ac_ext <<_ACEOF
50100 /* end confdefs.h.  */
50101 $ac_includes_default
50102 /* malloc might have been renamed as rpl_malloc. */
50103 #undef malloc
50104
50105 /* Thanks to Mike Haertel and Jim Avera for this test.
50106    Here is a matrix of mmap possibilities:
50107         mmap private not fixed
50108         mmap private fixed at somewhere currently unmapped
50109         mmap private fixed at somewhere already mapped
50110         mmap shared not fixed
50111         mmap shared fixed at somewhere currently unmapped
50112         mmap shared fixed at somewhere already mapped
50113    For private mappings, we should verify that changes cannot be read()
50114    back from the file, nor mmap's back from the file at a different
50115    address.  (There have been systems where private was not correctly
50116    implemented like the infamous i386 svr4.0, and systems where the
50117    VM page cache was not coherent with the file system buffer cache
50118    like early versions of FreeBSD and possibly contemporary NetBSD.)
50119    For shared mappings, we should conversely verify that changes get
50120    propagated back to all the places they're supposed to be.
50121
50122    Grep wants private fixed already mapped.
50123    The main things grep needs to know about mmap are:
50124    * does it exist and is it safe to write into the mmap'd area
50125    * how to use it (BSD variants)  */
50126
50127 #include <fcntl.h>
50128 #include <sys/mman.h>
50129
50130 #if !STDC_HEADERS && !HAVE_STDLIB_H
50131 char *malloc ();
50132 #endif
50133
50134 /* This mess was copied from the GNU getpagesize.h.  */
50135 #if !HAVE_GETPAGESIZE
50136 /* Assume that all systems that can run configure have sys/param.h.  */
50137 # if !HAVE_SYS_PARAM_H
50138 #  define HAVE_SYS_PARAM_H 1
50139 # endif
50140
50141 # ifdef _SC_PAGESIZE
50142 #  define getpagesize() sysconf(_SC_PAGESIZE)
50143 # else /* no _SC_PAGESIZE */
50144 #  if HAVE_SYS_PARAM_H
50145 #   include <sys/param.h>
50146 #   ifdef EXEC_PAGESIZE
50147 #    define getpagesize() EXEC_PAGESIZE
50148 #   else /* no EXEC_PAGESIZE */
50149 #    ifdef NBPG
50150 #     define getpagesize() NBPG * CLSIZE
50151 #     ifndef CLSIZE
50152 #      define CLSIZE 1
50153 #     endif /* no CLSIZE */
50154 #    else /* no NBPG */
50155 #     ifdef NBPC
50156 #      define getpagesize() NBPC
50157 #     else /* no NBPC */
50158 #      ifdef PAGESIZE
50159 #       define getpagesize() PAGESIZE
50160 #      endif /* PAGESIZE */
50161 #     endif /* no NBPC */
50162 #    endif /* no NBPG */
50163 #   endif /* no EXEC_PAGESIZE */
50164 #  else /* no HAVE_SYS_PARAM_H */
50165 #   define getpagesize() 8192   /* punt totally */
50166 #  endif /* no HAVE_SYS_PARAM_H */
50167 # endif /* no _SC_PAGESIZE */
50168
50169 #endif /* no HAVE_GETPAGESIZE */
50170
50171 int
50172 main ()
50173 {
50174   char *data, *data2, *data3;
50175   int i, pagesize;
50176   int fd;
50177
50178   pagesize = getpagesize ();
50179
50180   /* First, make a file with some known garbage in it. */
50181   data = (char *) malloc (pagesize);
50182   if (!data)
50183     exit (1);
50184   for (i = 0; i < pagesize; ++i)
50185     *(data + i) = rand ();
50186   umask (0);
50187   fd = creat ("conftest.mmap", 0600);
50188   if (fd < 0)
50189     exit (1);
50190   if (write (fd, data, pagesize) != pagesize)
50191     exit (1);
50192   close (fd);
50193
50194   /* Next, try to mmap the file at a fixed address which already has
50195      something else allocated at it.  If we can, also make sure that
50196      we see the same garbage.  */
50197   fd = open ("conftest.mmap", O_RDWR);
50198   if (fd < 0)
50199     exit (1);
50200   data2 = (char *) malloc (2 * pagesize);
50201   if (!data2)
50202     exit (1);
50203   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
50204   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
50205                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
50206     exit (1);
50207   for (i = 0; i < pagesize; ++i)
50208     if (*(data + i) != *(data2 + i))
50209       exit (1);
50210
50211   /* Finally, make sure that changes to the mapped area do not
50212      percolate back to the file as seen by read().  (This is a bug on
50213      some variants of i386 svr4.0.)  */
50214   for (i = 0; i < pagesize; ++i)
50215     *(data2 + i) = *(data2 + i) + 1;
50216   data3 = (char *) malloc (pagesize);
50217   if (!data3)
50218     exit (1);
50219   if (read (fd, data3, pagesize) != pagesize)
50220     exit (1);
50221   for (i = 0; i < pagesize; ++i)
50222     if (*(data + i) != *(data3 + i))
50223       exit (1);
50224   close (fd);
50225   exit (0);
50226 }
50227 _ACEOF
50228 rm -f conftest$ac_exeext
50229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50230   (eval $ac_link) 2>&5
50231   ac_status=$?
50232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50235   (eval $ac_try) 2>&5
50236   ac_status=$?
50237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50238   (exit $ac_status); }; }; then
50239   ac_cv_func_mmap_fixed_mapped=yes
50240 else
50241   echo "$as_me: program exited with status $ac_status" >&5
50242 echo "$as_me: failed program was:" >&5
50243 sed 's/^/| /' conftest.$ac_ext >&5
50244
50245 ( exit $ac_status )
50246 ac_cv_func_mmap_fixed_mapped=no
50247 fi
50248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50249 fi
50250 fi
50251 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
50252 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
50253 if test $ac_cv_func_mmap_fixed_mapped = yes; then
50254
50255 cat >>confdefs.h <<\_ACEOF
50256 #define HAVE_MMAP 1
50257 _ACEOF
50258
50259 fi
50260 rm -f conftest.mmap
50261
50262
50263
50264
50265
50266
50267 for ac_header in capability.h sys/capability.h
50268 do
50269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50271   echo "$as_me:$LINENO: checking for $ac_header" >&5
50272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50274   echo $ECHO_N "(cached) $ECHO_C" >&6
50275 fi
50276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50278 else
50279   # Is the header compilable?
50280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50282 cat >conftest.$ac_ext <<_ACEOF
50283 /* confdefs.h.  */
50284 _ACEOF
50285 cat confdefs.h >>conftest.$ac_ext
50286 cat >>conftest.$ac_ext <<_ACEOF
50287 /* end confdefs.h.  */
50288 $ac_includes_default
50289 #include <$ac_header>
50290 _ACEOF
50291 rm -f conftest.$ac_objext
50292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50293   (eval $ac_compile) 2>conftest.er1
50294   ac_status=$?
50295   grep -v '^ *+' conftest.er1 >conftest.err
50296   rm -f conftest.er1
50297   cat conftest.err >&5
50298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50299   (exit $ac_status); } &&
50300          { ac_try='test -z "$ac_c_werror_flag"
50301                          || test ! -s conftest.err'
50302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50303   (eval $ac_try) 2>&5
50304   ac_status=$?
50305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50306   (exit $ac_status); }; } &&
50307          { ac_try='test -s conftest.$ac_objext'
50308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50309   (eval $ac_try) 2>&5
50310   ac_status=$?
50311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50312   (exit $ac_status); }; }; then
50313   ac_header_compiler=yes
50314 else
50315   echo "$as_me: failed program was:" >&5
50316 sed 's/^/| /' conftest.$ac_ext >&5
50317
50318 ac_header_compiler=no
50319 fi
50320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50322 echo "${ECHO_T}$ac_header_compiler" >&6
50323
50324 # Is the header present?
50325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50327 cat >conftest.$ac_ext <<_ACEOF
50328 /* confdefs.h.  */
50329 _ACEOF
50330 cat confdefs.h >>conftest.$ac_ext
50331 cat >>conftest.$ac_ext <<_ACEOF
50332 /* end confdefs.h.  */
50333 #include <$ac_header>
50334 _ACEOF
50335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50336   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50337   ac_status=$?
50338   grep -v '^ *+' conftest.er1 >conftest.err
50339   rm -f conftest.er1
50340   cat conftest.err >&5
50341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50342   (exit $ac_status); } >/dev/null; then
50343   if test -s conftest.err; then
50344     ac_cpp_err=$ac_c_preproc_warn_flag
50345     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50346   else
50347     ac_cpp_err=
50348   fi
50349 else
50350   ac_cpp_err=yes
50351 fi
50352 if test -z "$ac_cpp_err"; then
50353   ac_header_preproc=yes
50354 else
50355   echo "$as_me: failed program was:" >&5
50356 sed 's/^/| /' conftest.$ac_ext >&5
50357
50358   ac_header_preproc=no
50359 fi
50360 rm -f conftest.err conftest.$ac_ext
50361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50362 echo "${ECHO_T}$ac_header_preproc" >&6
50363
50364 # So?  What about this header?
50365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50366   yes:no: )
50367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50371     ac_header_preproc=yes
50372     ;;
50373   no:yes:* )
50374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50376     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50377 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50378     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50380     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50381 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50384     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50386     (
50387       cat <<\_ASBOX
50388 ## -------------------------------------- ##
50389 ## Report this to heimdal-bugs@pdc.kth.se ##
50390 ## -------------------------------------- ##
50391 _ASBOX
50392     ) |
50393       sed "s/^/$as_me: WARNING:     /" >&2
50394     ;;
50395 esac
50396 echo "$as_me:$LINENO: checking for $ac_header" >&5
50397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50399   echo $ECHO_N "(cached) $ECHO_C" >&6
50400 else
50401   eval "$as_ac_Header=\$ac_header_preproc"
50402 fi
50403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50405
50406 fi
50407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50408   cat >>confdefs.h <<_ACEOF
50409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50410 _ACEOF
50411
50412 fi
50413
50414 done
50415
50416
50417
50418
50419 for ac_func in sgi_getcapabilitybyname cap_set_proc
50420 do
50421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50422 echo "$as_me:$LINENO: checking for $ac_func" >&5
50423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50424 if eval "test \"\${$as_ac_var+set}\" = set"; then
50425   echo $ECHO_N "(cached) $ECHO_C" >&6
50426 else
50427   cat >conftest.$ac_ext <<_ACEOF
50428 /* confdefs.h.  */
50429 _ACEOF
50430 cat confdefs.h >>conftest.$ac_ext
50431 cat >>conftest.$ac_ext <<_ACEOF
50432 /* end confdefs.h.  */
50433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50435 #define $ac_func innocuous_$ac_func
50436
50437 /* System header to define __stub macros and hopefully few prototypes,
50438     which can conflict with char $ac_func (); below.
50439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50440     <limits.h> exists even on freestanding compilers.  */
50441
50442 #ifdef __STDC__
50443 # include <limits.h>
50444 #else
50445 # include <assert.h>
50446 #endif
50447
50448 #undef $ac_func
50449
50450 /* Override any gcc2 internal prototype to avoid an error.  */
50451 #ifdef __cplusplus
50452 extern "C"
50453 {
50454 #endif
50455 /* We use char because int might match the return type of a gcc2
50456    builtin and then its argument prototype would still apply.  */
50457 char $ac_func ();
50458 /* The GNU C library defines this for functions which it implements
50459     to always fail with ENOSYS.  Some functions are actually named
50460     something starting with __ and the normal name is an alias.  */
50461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50462 choke me
50463 #else
50464 char (*f) () = $ac_func;
50465 #endif
50466 #ifdef __cplusplus
50467 }
50468 #endif
50469
50470 int
50471 main ()
50472 {
50473 return f != $ac_func;
50474   ;
50475   return 0;
50476 }
50477 _ACEOF
50478 rm -f conftest.$ac_objext conftest$ac_exeext
50479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50480   (eval $ac_link) 2>conftest.er1
50481   ac_status=$?
50482   grep -v '^ *+' conftest.er1 >conftest.err
50483   rm -f conftest.er1
50484   cat conftest.err >&5
50485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50486   (exit $ac_status); } &&
50487          { ac_try='test -z "$ac_c_werror_flag"
50488                          || test ! -s conftest.err'
50489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50490   (eval $ac_try) 2>&5
50491   ac_status=$?
50492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50493   (exit $ac_status); }; } &&
50494          { ac_try='test -s conftest$ac_exeext'
50495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50496   (eval $ac_try) 2>&5
50497   ac_status=$?
50498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50499   (exit $ac_status); }; }; then
50500   eval "$as_ac_var=yes"
50501 else
50502   echo "$as_me: failed program was:" >&5
50503 sed 's/^/| /' conftest.$ac_ext >&5
50504
50505 eval "$as_ac_var=no"
50506 fi
50507 rm -f conftest.err conftest.$ac_objext \
50508       conftest$ac_exeext conftest.$ac_ext
50509 fi
50510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50512 if test `eval echo '${'$as_ac_var'}'` = yes; then
50513   cat >>confdefs.h <<_ACEOF
50514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50515 _ACEOF
50516
50517 fi
50518 done
50519
50520
50521
50522
50523
50524
50525
50526 echo "$as_me:$LINENO: checking for getpwnam_r" >&5
50527 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
50528 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
50529   echo $ECHO_N "(cached) $ECHO_C" >&6
50530 else
50531
50532 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
50533         ac_save_LIBS="$LIBS"
50534         for ac_lib in "" c_r; do
50535                 case "$ac_lib" in
50536                 "") ;;
50537                 yes) ac_lib="" ;;
50538                 no) continue ;;
50539                 -l*) ;;
50540                 *) ac_lib="-l$ac_lib" ;;
50541                 esac
50542                 LIBS=" $ac_lib  $ac_save_LIBS"
50543                 cat >conftest.$ac_ext <<_ACEOF
50544 /* confdefs.h.  */
50545 _ACEOF
50546 cat confdefs.h >>conftest.$ac_ext
50547 cat >>conftest.$ac_ext <<_ACEOF
50548 /* end confdefs.h.  */
50549
50550 int
50551 main ()
50552 {
50553 getpwnam_r()
50554   ;
50555   return 0;
50556 }
50557 _ACEOF
50558 rm -f conftest.$ac_objext conftest$ac_exeext
50559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50560   (eval $ac_link) 2>conftest.er1
50561   ac_status=$?
50562   grep -v '^ *+' conftest.er1 >conftest.err
50563   rm -f conftest.er1
50564   cat conftest.err >&5
50565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50566   (exit $ac_status); } &&
50567          { ac_try='test -z "$ac_c_werror_flag"
50568                          || test ! -s conftest.err'
50569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50570   (eval $ac_try) 2>&5
50571   ac_status=$?
50572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50573   (exit $ac_status); }; } &&
50574          { ac_try='test -s conftest$ac_exeext'
50575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50576   (eval $ac_try) 2>&5
50577   ac_status=$?
50578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50579   (exit $ac_status); }; }; then
50580   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
50581 else
50582   echo "$as_me: failed program was:" >&5
50583 sed 's/^/| /' conftest.$ac_ext >&5
50584
50585 fi
50586 rm -f conftest.err conftest.$ac_objext \
50587       conftest$ac_exeext conftest.$ac_ext
50588         done
50589         eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
50590         LIBS="$ac_save_LIBS"
50591 fi
50592
50593 fi
50594
50595
50596 eval "ac_res=\$ac_cv_funclib_getpwnam_r"
50597
50598 if false; then
50599
50600 for ac_func in getpwnam_r
50601 do
50602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50603 echo "$as_me:$LINENO: checking for $ac_func" >&5
50604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50605 if eval "test \"\${$as_ac_var+set}\" = set"; then
50606   echo $ECHO_N "(cached) $ECHO_C" >&6
50607 else
50608   cat >conftest.$ac_ext <<_ACEOF
50609 /* confdefs.h.  */
50610 _ACEOF
50611 cat confdefs.h >>conftest.$ac_ext
50612 cat >>conftest.$ac_ext <<_ACEOF
50613 /* end confdefs.h.  */
50614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50616 #define $ac_func innocuous_$ac_func
50617
50618 /* System header to define __stub macros and hopefully few prototypes,
50619     which can conflict with char $ac_func (); below.
50620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50621     <limits.h> exists even on freestanding compilers.  */
50622
50623 #ifdef __STDC__
50624 # include <limits.h>
50625 #else
50626 # include <assert.h>
50627 #endif
50628
50629 #undef $ac_func
50630
50631 /* Override any gcc2 internal prototype to avoid an error.  */
50632 #ifdef __cplusplus
50633 extern "C"
50634 {
50635 #endif
50636 /* We use char because int might match the return type of a gcc2
50637    builtin and then its argument prototype would still apply.  */
50638 char $ac_func ();
50639 /* The GNU C library defines this for functions which it implements
50640     to always fail with ENOSYS.  Some functions are actually named
50641     something starting with __ and the normal name is an alias.  */
50642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50643 choke me
50644 #else
50645 char (*f) () = $ac_func;
50646 #endif
50647 #ifdef __cplusplus
50648 }
50649 #endif
50650
50651 int
50652 main ()
50653 {
50654 return f != $ac_func;
50655   ;
50656   return 0;
50657 }
50658 _ACEOF
50659 rm -f conftest.$ac_objext conftest$ac_exeext
50660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50661   (eval $ac_link) 2>conftest.er1
50662   ac_status=$?
50663   grep -v '^ *+' conftest.er1 >conftest.err
50664   rm -f conftest.er1
50665   cat conftest.err >&5
50666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50667   (exit $ac_status); } &&
50668          { ac_try='test -z "$ac_c_werror_flag"
50669                          || test ! -s conftest.err'
50670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50671   (eval $ac_try) 2>&5
50672   ac_status=$?
50673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50674   (exit $ac_status); }; } &&
50675          { ac_try='test -s conftest$ac_exeext'
50676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50677   (eval $ac_try) 2>&5
50678   ac_status=$?
50679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50680   (exit $ac_status); }; }; then
50681   eval "$as_ac_var=yes"
50682 else
50683   echo "$as_me: failed program was:" >&5
50684 sed 's/^/| /' conftest.$ac_ext >&5
50685
50686 eval "$as_ac_var=no"
50687 fi
50688 rm -f conftest.err conftest.$ac_objext \
50689       conftest$ac_exeext conftest.$ac_ext
50690 fi
50691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50693 if test `eval echo '${'$as_ac_var'}'` = yes; then
50694   cat >>confdefs.h <<_ACEOF
50695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50696 _ACEOF
50697
50698 fi
50699 done
50700
50701 fi
50702 # getpwnam_r
50703 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
50704 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
50705 eval "LIB_getpwnam_r=$ac_res"
50706
50707 case "$ac_res" in
50708         yes)
50709         eval "ac_cv_func_getpwnam_r=yes"
50710         eval "LIB_getpwnam_r="
50711         cat >>confdefs.h <<_ACEOF
50712 #define $ac_tr_func 1
50713 _ACEOF
50714
50715         echo "$as_me:$LINENO: result: yes" >&5
50716 echo "${ECHO_T}yes" >&6
50717         ;;
50718         no)
50719         eval "ac_cv_func_getpwnam_r=no"
50720         eval "LIB_getpwnam_r="
50721         echo "$as_me:$LINENO: result: no" >&5
50722 echo "${ECHO_T}no" >&6
50723         ;;
50724         *)
50725         eval "ac_cv_func_getpwnam_r=yes"
50726         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
50727         cat >>confdefs.h <<_ACEOF
50728 #define $ac_tr_func 1
50729 _ACEOF
50730
50731         cat >>confdefs.h <<_ACEOF
50732 #define $ac_tr_lib 1
50733 _ACEOF
50734
50735         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
50736 echo "${ECHO_T}yes, in $ac_res" >&6
50737         ;;
50738 esac
50739
50740
50741 if test "$ac_cv_func_getpwnam_r" = yes; then
50742         echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
50743 echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
50744 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
50745   echo $ECHO_N "(cached) $ECHO_C" >&6
50746 else
50747   ac_libs="$LIBS"
50748         LIBS="$LIBS $LIB_getpwnam_r"
50749         if test "$cross_compiling" = yes; then
50750   :
50751 else
50752   cat >conftest.$ac_ext <<_ACEOF
50753 /* confdefs.h.  */
50754 _ACEOF
50755 cat confdefs.h >>conftest.$ac_ext
50756 cat >>conftest.$ac_ext <<_ACEOF
50757 /* end confdefs.h.  */
50758
50759 #include <pwd.h>
50760 int main()
50761 {
50762         struct passwd pw, *pwd;
50763         return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
50764 }
50765
50766 _ACEOF
50767 rm -f conftest$ac_exeext
50768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50769   (eval $ac_link) 2>&5
50770   ac_status=$?
50771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50774   (eval $ac_try) 2>&5
50775   ac_status=$?
50776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50777   (exit $ac_status); }; }; then
50778   ac_cv_func_getpwnam_r_posix=yes
50779 else
50780   echo "$as_me: program exited with status $ac_status" >&5
50781 echo "$as_me: failed program was:" >&5
50782 sed 's/^/| /' conftest.$ac_ext >&5
50783
50784 ( exit $ac_status )
50785 ac_cv_func_getpwnam_r_posix=no
50786 fi
50787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50788 fi
50789 LIBS="$ac_libs"
50790 fi
50791 echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
50792 echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
50793 if test "$ac_cv_func_getpwnam_r_posix" = yes; then
50794
50795 cat >>confdefs.h <<\_ACEOF
50796 #define POSIX_GETPWNAM_R 1
50797 _ACEOF
50798
50799 fi
50800 fi
50801
50802
50803
50804
50805 for ac_func in getudbnam setlim
50806 do
50807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50808 echo "$as_me:$LINENO: checking for $ac_func" >&5
50809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50810 if eval "test \"\${$as_ac_var+set}\" = set"; then
50811   echo $ECHO_N "(cached) $ECHO_C" >&6
50812 else
50813   cat >conftest.$ac_ext <<_ACEOF
50814 /* confdefs.h.  */
50815 _ACEOF
50816 cat confdefs.h >>conftest.$ac_ext
50817 cat >>conftest.$ac_ext <<_ACEOF
50818 /* end confdefs.h.  */
50819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50821 #define $ac_func innocuous_$ac_func
50822
50823 /* System header to define __stub macros and hopefully few prototypes,
50824     which can conflict with char $ac_func (); below.
50825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50826     <limits.h> exists even on freestanding compilers.  */
50827
50828 #ifdef __STDC__
50829 # include <limits.h>
50830 #else
50831 # include <assert.h>
50832 #endif
50833
50834 #undef $ac_func
50835
50836 /* Override any gcc2 internal prototype to avoid an error.  */
50837 #ifdef __cplusplus
50838 extern "C"
50839 {
50840 #endif
50841 /* We use char because int might match the return type of a gcc2
50842    builtin and then its argument prototype would still apply.  */
50843 char $ac_func ();
50844 /* The GNU C library defines this for functions which it implements
50845     to always fail with ENOSYS.  Some functions are actually named
50846     something starting with __ and the normal name is an alias.  */
50847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50848 choke me
50849 #else
50850 char (*f) () = $ac_func;
50851 #endif
50852 #ifdef __cplusplus
50853 }
50854 #endif
50855
50856 int
50857 main ()
50858 {
50859 return f != $ac_func;
50860   ;
50861   return 0;
50862 }
50863 _ACEOF
50864 rm -f conftest.$ac_objext conftest$ac_exeext
50865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50866   (eval $ac_link) 2>conftest.er1
50867   ac_status=$?
50868   grep -v '^ *+' conftest.er1 >conftest.err
50869   rm -f conftest.er1
50870   cat conftest.err >&5
50871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50872   (exit $ac_status); } &&
50873          { ac_try='test -z "$ac_c_werror_flag"
50874                          || test ! -s conftest.err'
50875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50876   (eval $ac_try) 2>&5
50877   ac_status=$?
50878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50879   (exit $ac_status); }; } &&
50880          { ac_try='test -s conftest$ac_exeext'
50881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50882   (eval $ac_try) 2>&5
50883   ac_status=$?
50884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50885   (exit $ac_status); }; }; then
50886   eval "$as_ac_var=yes"
50887 else
50888   echo "$as_me: failed program was:" >&5
50889 sed 's/^/| /' conftest.$ac_ext >&5
50890
50891 eval "$as_ac_var=no"
50892 fi
50893 rm -f conftest.err conftest.$ac_objext \
50894       conftest$ac_exeext conftest.$ac_ext
50895 fi
50896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50898 if test `eval echo '${'$as_ac_var'}'` = yes; then
50899   cat >>confdefs.h <<_ACEOF
50900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50901 _ACEOF
50902
50903 fi
50904 done
50905
50906
50907
50908
50909
50910
50911 echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
50912 echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
50913 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
50914   echo $ECHO_N "(cached) $ECHO_C" >&6
50915 else
50916
50917 cat >conftest.$ac_ext <<_ACEOF
50918 /* confdefs.h.  */
50919 _ACEOF
50920 cat confdefs.h >>conftest.$ac_ext
50921 cat >>conftest.$ac_ext <<_ACEOF
50922 /* end confdefs.h.  */
50923 #include <utmp.h>
50924 int
50925 main ()
50926 {
50927 struct utmp x; x.ut_addr;
50928   ;
50929   return 0;
50930 }
50931 _ACEOF
50932 rm -f conftest.$ac_objext
50933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50934   (eval $ac_compile) 2>conftest.er1
50935   ac_status=$?
50936   grep -v '^ *+' conftest.er1 >conftest.err
50937   rm -f conftest.er1
50938   cat conftest.err >&5
50939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50940   (exit $ac_status); } &&
50941          { ac_try='test -z "$ac_c_werror_flag"
50942                          || test ! -s conftest.err'
50943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50944   (eval $ac_try) 2>&5
50945   ac_status=$?
50946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50947   (exit $ac_status); }; } &&
50948          { ac_try='test -s conftest.$ac_objext'
50949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50950   (eval $ac_try) 2>&5
50951   ac_status=$?
50952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50953   (exit $ac_status); }; }; then
50954   ac_cv_type_struct_utmp_ut_addr=yes
50955 else
50956   echo "$as_me: failed program was:" >&5
50957 sed 's/^/| /' conftest.$ac_ext >&5
50958
50959 ac_cv_type_struct_utmp_ut_addr=no
50960 fi
50961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50962 fi
50963 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
50964 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
50965 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
50966
50967
50968 cat >>confdefs.h <<\_ACEOF
50969 #define HAVE_STRUCT_UTMP_UT_ADDR 1
50970 _ACEOF
50971
50972
50973 fi
50974
50975
50976
50977
50978 echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
50979 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
50980 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
50981   echo $ECHO_N "(cached) $ECHO_C" >&6
50982 else
50983
50984 cat >conftest.$ac_ext <<_ACEOF
50985 /* confdefs.h.  */
50986 _ACEOF
50987 cat confdefs.h >>conftest.$ac_ext
50988 cat >>conftest.$ac_ext <<_ACEOF
50989 /* end confdefs.h.  */
50990 #include <utmp.h>
50991 int
50992 main ()
50993 {
50994 struct utmp x; x.ut_host;
50995   ;
50996   return 0;
50997 }
50998 _ACEOF
50999 rm -f conftest.$ac_objext
51000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51001   (eval $ac_compile) 2>conftest.er1
51002   ac_status=$?
51003   grep -v '^ *+' conftest.er1 >conftest.err
51004   rm -f conftest.er1
51005   cat conftest.err >&5
51006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51007   (exit $ac_status); } &&
51008          { ac_try='test -z "$ac_c_werror_flag"
51009                          || test ! -s conftest.err'
51010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51011   (eval $ac_try) 2>&5
51012   ac_status=$?
51013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51014   (exit $ac_status); }; } &&
51015          { ac_try='test -s conftest.$ac_objext'
51016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51017   (eval $ac_try) 2>&5
51018   ac_status=$?
51019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51020   (exit $ac_status); }; }; then
51021   ac_cv_type_struct_utmp_ut_host=yes
51022 else
51023   echo "$as_me: failed program was:" >&5
51024 sed 's/^/| /' conftest.$ac_ext >&5
51025
51026 ac_cv_type_struct_utmp_ut_host=no
51027 fi
51028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51029 fi
51030 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
51031 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
51032 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
51033
51034
51035 cat >>confdefs.h <<\_ACEOF
51036 #define HAVE_STRUCT_UTMP_UT_HOST 1
51037 _ACEOF
51038
51039
51040 fi
51041
51042
51043
51044
51045 echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
51046 echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
51047 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
51048   echo $ECHO_N "(cached) $ECHO_C" >&6
51049 else
51050
51051 cat >conftest.$ac_ext <<_ACEOF
51052 /* confdefs.h.  */
51053 _ACEOF
51054 cat confdefs.h >>conftest.$ac_ext
51055 cat >>conftest.$ac_ext <<_ACEOF
51056 /* end confdefs.h.  */
51057 #include <utmp.h>
51058 int
51059 main ()
51060 {
51061 struct utmp x; x.ut_id;
51062   ;
51063   return 0;
51064 }
51065 _ACEOF
51066 rm -f conftest.$ac_objext
51067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51068   (eval $ac_compile) 2>conftest.er1
51069   ac_status=$?
51070   grep -v '^ *+' conftest.er1 >conftest.err
51071   rm -f conftest.er1
51072   cat conftest.err >&5
51073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51074   (exit $ac_status); } &&
51075          { ac_try='test -z "$ac_c_werror_flag"
51076                          || test ! -s conftest.err'
51077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51078   (eval $ac_try) 2>&5
51079   ac_status=$?
51080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51081   (exit $ac_status); }; } &&
51082          { ac_try='test -s conftest.$ac_objext'
51083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51084   (eval $ac_try) 2>&5
51085   ac_status=$?
51086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51087   (exit $ac_status); }; }; then
51088   ac_cv_type_struct_utmp_ut_id=yes
51089 else
51090   echo "$as_me: failed program was:" >&5
51091 sed 's/^/| /' conftest.$ac_ext >&5
51092
51093 ac_cv_type_struct_utmp_ut_id=no
51094 fi
51095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51096 fi
51097 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
51098 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
51099 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
51100
51101
51102 cat >>confdefs.h <<\_ACEOF
51103 #define HAVE_STRUCT_UTMP_UT_ID 1
51104 _ACEOF
51105
51106
51107 fi
51108
51109
51110
51111
51112 echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
51113 echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
51114 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
51115   echo $ECHO_N "(cached) $ECHO_C" >&6
51116 else
51117
51118 cat >conftest.$ac_ext <<_ACEOF
51119 /* confdefs.h.  */
51120 _ACEOF
51121 cat confdefs.h >>conftest.$ac_ext
51122 cat >>conftest.$ac_ext <<_ACEOF
51123 /* end confdefs.h.  */
51124 #include <utmp.h>
51125 int
51126 main ()
51127 {
51128 struct utmp x; x.ut_pid;
51129   ;
51130   return 0;
51131 }
51132 _ACEOF
51133 rm -f conftest.$ac_objext
51134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51135   (eval $ac_compile) 2>conftest.er1
51136   ac_status=$?
51137   grep -v '^ *+' conftest.er1 >conftest.err
51138   rm -f conftest.er1
51139   cat conftest.err >&5
51140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51141   (exit $ac_status); } &&
51142          { ac_try='test -z "$ac_c_werror_flag"
51143                          || test ! -s conftest.err'
51144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51145   (eval $ac_try) 2>&5
51146   ac_status=$?
51147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51148   (exit $ac_status); }; } &&
51149          { ac_try='test -s conftest.$ac_objext'
51150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51151   (eval $ac_try) 2>&5
51152   ac_status=$?
51153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51154   (exit $ac_status); }; }; then
51155   ac_cv_type_struct_utmp_ut_pid=yes
51156 else
51157   echo "$as_me: failed program was:" >&5
51158 sed 's/^/| /' conftest.$ac_ext >&5
51159
51160 ac_cv_type_struct_utmp_ut_pid=no
51161 fi
51162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51163 fi
51164 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
51165 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
51166 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
51167
51168
51169 cat >>confdefs.h <<\_ACEOF
51170 #define HAVE_STRUCT_UTMP_UT_PID 1
51171 _ACEOF
51172
51173
51174 fi
51175
51176
51177
51178
51179 echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
51180 echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
51181 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
51182   echo $ECHO_N "(cached) $ECHO_C" >&6
51183 else
51184
51185 cat >conftest.$ac_ext <<_ACEOF
51186 /* confdefs.h.  */
51187 _ACEOF
51188 cat confdefs.h >>conftest.$ac_ext
51189 cat >>conftest.$ac_ext <<_ACEOF
51190 /* end confdefs.h.  */
51191 #include <utmp.h>
51192 int
51193 main ()
51194 {
51195 struct utmp x; x.ut_type;
51196   ;
51197   return 0;
51198 }
51199 _ACEOF
51200 rm -f conftest.$ac_objext
51201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51202   (eval $ac_compile) 2>conftest.er1
51203   ac_status=$?
51204   grep -v '^ *+' conftest.er1 >conftest.err
51205   rm -f conftest.er1
51206   cat conftest.err >&5
51207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51208   (exit $ac_status); } &&
51209          { ac_try='test -z "$ac_c_werror_flag"
51210                          || test ! -s conftest.err'
51211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51212   (eval $ac_try) 2>&5
51213   ac_status=$?
51214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51215   (exit $ac_status); }; } &&
51216          { ac_try='test -s conftest.$ac_objext'
51217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51218   (eval $ac_try) 2>&5
51219   ac_status=$?
51220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51221   (exit $ac_status); }; }; then
51222   ac_cv_type_struct_utmp_ut_type=yes
51223 else
51224   echo "$as_me: failed program was:" >&5
51225 sed 's/^/| /' conftest.$ac_ext >&5
51226
51227 ac_cv_type_struct_utmp_ut_type=no
51228 fi
51229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51230 fi
51231 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
51232 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
51233 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
51234
51235
51236 cat >>confdefs.h <<\_ACEOF
51237 #define HAVE_STRUCT_UTMP_UT_TYPE 1
51238 _ACEOF
51239
51240
51241 fi
51242
51243
51244
51245
51246 echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
51247 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
51248 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
51249   echo $ECHO_N "(cached) $ECHO_C" >&6
51250 else
51251
51252 cat >conftest.$ac_ext <<_ACEOF
51253 /* confdefs.h.  */
51254 _ACEOF
51255 cat confdefs.h >>conftest.$ac_ext
51256 cat >>conftest.$ac_ext <<_ACEOF
51257 /* end confdefs.h.  */
51258 #include <utmp.h>
51259 int
51260 main ()
51261 {
51262 struct utmp x; x.ut_user;
51263   ;
51264   return 0;
51265 }
51266 _ACEOF
51267 rm -f conftest.$ac_objext
51268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51269   (eval $ac_compile) 2>conftest.er1
51270   ac_status=$?
51271   grep -v '^ *+' conftest.er1 >conftest.err
51272   rm -f conftest.er1
51273   cat conftest.err >&5
51274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51275   (exit $ac_status); } &&
51276          { ac_try='test -z "$ac_c_werror_flag"
51277                          || test ! -s conftest.err'
51278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51279   (eval $ac_try) 2>&5
51280   ac_status=$?
51281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51282   (exit $ac_status); }; } &&
51283          { ac_try='test -s conftest.$ac_objext'
51284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51285   (eval $ac_try) 2>&5
51286   ac_status=$?
51287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51288   (exit $ac_status); }; }; then
51289   ac_cv_type_struct_utmp_ut_user=yes
51290 else
51291   echo "$as_me: failed program was:" >&5
51292 sed 's/^/| /' conftest.$ac_ext >&5
51293
51294 ac_cv_type_struct_utmp_ut_user=no
51295 fi
51296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51297 fi
51298 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
51299 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
51300 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
51301
51302
51303 cat >>confdefs.h <<\_ACEOF
51304 #define HAVE_STRUCT_UTMP_UT_USER 1
51305 _ACEOF
51306
51307
51308 fi
51309
51310
51311
51312
51313 echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
51314 echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
51315 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
51316   echo $ECHO_N "(cached) $ECHO_C" >&6
51317 else
51318
51319 cat >conftest.$ac_ext <<_ACEOF
51320 /* confdefs.h.  */
51321 _ACEOF
51322 cat confdefs.h >>conftest.$ac_ext
51323 cat >>conftest.$ac_ext <<_ACEOF
51324 /* end confdefs.h.  */
51325 #include <utmpx.h>
51326 int
51327 main ()
51328 {
51329 struct utmpx x; x.ut_exit;
51330   ;
51331   return 0;
51332 }
51333 _ACEOF
51334 rm -f conftest.$ac_objext
51335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51336   (eval $ac_compile) 2>conftest.er1
51337   ac_status=$?
51338   grep -v '^ *+' conftest.er1 >conftest.err
51339   rm -f conftest.er1
51340   cat conftest.err >&5
51341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51342   (exit $ac_status); } &&
51343          { ac_try='test -z "$ac_c_werror_flag"
51344                          || test ! -s conftest.err'
51345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51346   (eval $ac_try) 2>&5
51347   ac_status=$?
51348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51349   (exit $ac_status); }; } &&
51350          { ac_try='test -s conftest.$ac_objext'
51351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51352   (eval $ac_try) 2>&5
51353   ac_status=$?
51354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51355   (exit $ac_status); }; }; then
51356   ac_cv_type_struct_utmpx_ut_exit=yes
51357 else
51358   echo "$as_me: failed program was:" >&5
51359 sed 's/^/| /' conftest.$ac_ext >&5
51360
51361 ac_cv_type_struct_utmpx_ut_exit=no
51362 fi
51363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51364 fi
51365 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
51366 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
51367 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
51368
51369
51370 cat >>confdefs.h <<\_ACEOF
51371 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
51372 _ACEOF
51373
51374
51375 fi
51376
51377
51378
51379
51380 echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
51381 echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
51382 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
51383   echo $ECHO_N "(cached) $ECHO_C" >&6
51384 else
51385
51386 cat >conftest.$ac_ext <<_ACEOF
51387 /* confdefs.h.  */
51388 _ACEOF
51389 cat confdefs.h >>conftest.$ac_ext
51390 cat >>conftest.$ac_ext <<_ACEOF
51391 /* end confdefs.h.  */
51392 #include <utmpx.h>
51393 int
51394 main ()
51395 {
51396 struct utmpx x; x.ut_syslen;
51397   ;
51398   return 0;
51399 }
51400 _ACEOF
51401 rm -f conftest.$ac_objext
51402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51403   (eval $ac_compile) 2>conftest.er1
51404   ac_status=$?
51405   grep -v '^ *+' conftest.er1 >conftest.err
51406   rm -f conftest.er1
51407   cat conftest.err >&5
51408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51409   (exit $ac_status); } &&
51410          { ac_try='test -z "$ac_c_werror_flag"
51411                          || test ! -s conftest.err'
51412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51413   (eval $ac_try) 2>&5
51414   ac_status=$?
51415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51416   (exit $ac_status); }; } &&
51417          { ac_try='test -s conftest.$ac_objext'
51418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51419   (eval $ac_try) 2>&5
51420   ac_status=$?
51421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51422   (exit $ac_status); }; }; then
51423   ac_cv_type_struct_utmpx_ut_syslen=yes
51424 else
51425   echo "$as_me: failed program was:" >&5
51426 sed 's/^/| /' conftest.$ac_ext >&5
51427
51428 ac_cv_type_struct_utmpx_ut_syslen=no
51429 fi
51430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51431 fi
51432 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
51433 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
51434 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
51435
51436
51437 cat >>confdefs.h <<\_ACEOF
51438 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
51439 _ACEOF
51440
51441
51442 fi
51443
51444
51445
51446 echo "$as_me:$LINENO: checking for int8_t" >&5
51447 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
51448 if test "${ac_cv_type_int8_t+set}" = set; then
51449   echo $ECHO_N "(cached) $ECHO_C" >&6
51450 else
51451   cat >conftest.$ac_ext <<_ACEOF
51452 /* confdefs.h.  */
51453 _ACEOF
51454 cat confdefs.h >>conftest.$ac_ext
51455 cat >>conftest.$ac_ext <<_ACEOF
51456 /* end confdefs.h.  */
51457
51458 #ifdef HAVE_INTTYPES_H
51459 #include <inttypes.h>
51460 #endif
51461 #ifdef HAVE_SYS_TYPES_H
51462 #include <sys/types.h>
51463 #endif
51464 #ifdef HAVE_SYS_BITYPES_H
51465 #include <sys/bitypes.h>
51466 #endif
51467 #ifdef HAVE_BIND_BITYPES_H
51468 #include <bind/bitypes.h>
51469 #endif
51470 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51471 #include <netinet/in6_machtypes.h>
51472 #endif
51473
51474
51475 int
51476 main ()
51477 {
51478 if ((int8_t *) 0)
51479   return 0;
51480 if (sizeof (int8_t))
51481   return 0;
51482   ;
51483   return 0;
51484 }
51485 _ACEOF
51486 rm -f conftest.$ac_objext
51487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51488   (eval $ac_compile) 2>conftest.er1
51489   ac_status=$?
51490   grep -v '^ *+' conftest.er1 >conftest.err
51491   rm -f conftest.er1
51492   cat conftest.err >&5
51493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51494   (exit $ac_status); } &&
51495          { ac_try='test -z "$ac_c_werror_flag"
51496                          || test ! -s conftest.err'
51497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51498   (eval $ac_try) 2>&5
51499   ac_status=$?
51500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51501   (exit $ac_status); }; } &&
51502          { ac_try='test -s conftest.$ac_objext'
51503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51504   (eval $ac_try) 2>&5
51505   ac_status=$?
51506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51507   (exit $ac_status); }; }; then
51508   ac_cv_type_int8_t=yes
51509 else
51510   echo "$as_me: failed program was:" >&5
51511 sed 's/^/| /' conftest.$ac_ext >&5
51512
51513 ac_cv_type_int8_t=no
51514 fi
51515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51516 fi
51517 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
51518 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
51519 if test $ac_cv_type_int8_t = yes; then
51520
51521 cat >>confdefs.h <<_ACEOF
51522 #define HAVE_INT8_T 1
51523 _ACEOF
51524
51525
51526 fi
51527 echo "$as_me:$LINENO: checking for int16_t" >&5
51528 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
51529 if test "${ac_cv_type_int16_t+set}" = set; then
51530   echo $ECHO_N "(cached) $ECHO_C" >&6
51531 else
51532   cat >conftest.$ac_ext <<_ACEOF
51533 /* confdefs.h.  */
51534 _ACEOF
51535 cat confdefs.h >>conftest.$ac_ext
51536 cat >>conftest.$ac_ext <<_ACEOF
51537 /* end confdefs.h.  */
51538
51539 #ifdef HAVE_INTTYPES_H
51540 #include <inttypes.h>
51541 #endif
51542 #ifdef HAVE_SYS_TYPES_H
51543 #include <sys/types.h>
51544 #endif
51545 #ifdef HAVE_SYS_BITYPES_H
51546 #include <sys/bitypes.h>
51547 #endif
51548 #ifdef HAVE_BIND_BITYPES_H
51549 #include <bind/bitypes.h>
51550 #endif
51551 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51552 #include <netinet/in6_machtypes.h>
51553 #endif
51554
51555
51556 int
51557 main ()
51558 {
51559 if ((int16_t *) 0)
51560   return 0;
51561 if (sizeof (int16_t))
51562   return 0;
51563   ;
51564   return 0;
51565 }
51566 _ACEOF
51567 rm -f conftest.$ac_objext
51568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51569   (eval $ac_compile) 2>conftest.er1
51570   ac_status=$?
51571   grep -v '^ *+' conftest.er1 >conftest.err
51572   rm -f conftest.er1
51573   cat conftest.err >&5
51574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51575   (exit $ac_status); } &&
51576          { ac_try='test -z "$ac_c_werror_flag"
51577                          || test ! -s conftest.err'
51578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51579   (eval $ac_try) 2>&5
51580   ac_status=$?
51581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51582   (exit $ac_status); }; } &&
51583          { ac_try='test -s conftest.$ac_objext'
51584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51585   (eval $ac_try) 2>&5
51586   ac_status=$?
51587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51588   (exit $ac_status); }; }; then
51589   ac_cv_type_int16_t=yes
51590 else
51591   echo "$as_me: failed program was:" >&5
51592 sed 's/^/| /' conftest.$ac_ext >&5
51593
51594 ac_cv_type_int16_t=no
51595 fi
51596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51597 fi
51598 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
51599 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
51600 if test $ac_cv_type_int16_t = yes; then
51601
51602 cat >>confdefs.h <<_ACEOF
51603 #define HAVE_INT16_T 1
51604 _ACEOF
51605
51606
51607 fi
51608 echo "$as_me:$LINENO: checking for int32_t" >&5
51609 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
51610 if test "${ac_cv_type_int32_t+set}" = set; then
51611   echo $ECHO_N "(cached) $ECHO_C" >&6
51612 else
51613   cat >conftest.$ac_ext <<_ACEOF
51614 /* confdefs.h.  */
51615 _ACEOF
51616 cat confdefs.h >>conftest.$ac_ext
51617 cat >>conftest.$ac_ext <<_ACEOF
51618 /* end confdefs.h.  */
51619
51620 #ifdef HAVE_INTTYPES_H
51621 #include <inttypes.h>
51622 #endif
51623 #ifdef HAVE_SYS_TYPES_H
51624 #include <sys/types.h>
51625 #endif
51626 #ifdef HAVE_SYS_BITYPES_H
51627 #include <sys/bitypes.h>
51628 #endif
51629 #ifdef HAVE_BIND_BITYPES_H
51630 #include <bind/bitypes.h>
51631 #endif
51632 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51633 #include <netinet/in6_machtypes.h>
51634 #endif
51635
51636
51637 int
51638 main ()
51639 {
51640 if ((int32_t *) 0)
51641   return 0;
51642 if (sizeof (int32_t))
51643   return 0;
51644   ;
51645   return 0;
51646 }
51647 _ACEOF
51648 rm -f conftest.$ac_objext
51649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51650   (eval $ac_compile) 2>conftest.er1
51651   ac_status=$?
51652   grep -v '^ *+' conftest.er1 >conftest.err
51653   rm -f conftest.er1
51654   cat conftest.err >&5
51655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51656   (exit $ac_status); } &&
51657          { ac_try='test -z "$ac_c_werror_flag"
51658                          || test ! -s conftest.err'
51659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51660   (eval $ac_try) 2>&5
51661   ac_status=$?
51662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51663   (exit $ac_status); }; } &&
51664          { ac_try='test -s conftest.$ac_objext'
51665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51666   (eval $ac_try) 2>&5
51667   ac_status=$?
51668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51669   (exit $ac_status); }; }; then
51670   ac_cv_type_int32_t=yes
51671 else
51672   echo "$as_me: failed program was:" >&5
51673 sed 's/^/| /' conftest.$ac_ext >&5
51674
51675 ac_cv_type_int32_t=no
51676 fi
51677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51678 fi
51679 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
51680 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
51681 if test $ac_cv_type_int32_t = yes; then
51682
51683 cat >>confdefs.h <<_ACEOF
51684 #define HAVE_INT32_T 1
51685 _ACEOF
51686
51687
51688 fi
51689 echo "$as_me:$LINENO: checking for int64_t" >&5
51690 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
51691 if test "${ac_cv_type_int64_t+set}" = set; then
51692   echo $ECHO_N "(cached) $ECHO_C" >&6
51693 else
51694   cat >conftest.$ac_ext <<_ACEOF
51695 /* confdefs.h.  */
51696 _ACEOF
51697 cat confdefs.h >>conftest.$ac_ext
51698 cat >>conftest.$ac_ext <<_ACEOF
51699 /* end confdefs.h.  */
51700
51701 #ifdef HAVE_INTTYPES_H
51702 #include <inttypes.h>
51703 #endif
51704 #ifdef HAVE_SYS_TYPES_H
51705 #include <sys/types.h>
51706 #endif
51707 #ifdef HAVE_SYS_BITYPES_H
51708 #include <sys/bitypes.h>
51709 #endif
51710 #ifdef HAVE_BIND_BITYPES_H
51711 #include <bind/bitypes.h>
51712 #endif
51713 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51714 #include <netinet/in6_machtypes.h>
51715 #endif
51716
51717
51718 int
51719 main ()
51720 {
51721 if ((int64_t *) 0)
51722   return 0;
51723 if (sizeof (int64_t))
51724   return 0;
51725   ;
51726   return 0;
51727 }
51728 _ACEOF
51729 rm -f conftest.$ac_objext
51730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51731   (eval $ac_compile) 2>conftest.er1
51732   ac_status=$?
51733   grep -v '^ *+' conftest.er1 >conftest.err
51734   rm -f conftest.er1
51735   cat conftest.err >&5
51736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51737   (exit $ac_status); } &&
51738          { ac_try='test -z "$ac_c_werror_flag"
51739                          || test ! -s conftest.err'
51740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51741   (eval $ac_try) 2>&5
51742   ac_status=$?
51743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51744   (exit $ac_status); }; } &&
51745          { ac_try='test -s conftest.$ac_objext'
51746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51747   (eval $ac_try) 2>&5
51748   ac_status=$?
51749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51750   (exit $ac_status); }; }; then
51751   ac_cv_type_int64_t=yes
51752 else
51753   echo "$as_me: failed program was:" >&5
51754 sed 's/^/| /' conftest.$ac_ext >&5
51755
51756 ac_cv_type_int64_t=no
51757 fi
51758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51759 fi
51760 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
51761 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
51762 if test $ac_cv_type_int64_t = yes; then
51763
51764 cat >>confdefs.h <<_ACEOF
51765 #define HAVE_INT64_T 1
51766 _ACEOF
51767
51768
51769 fi
51770 echo "$as_me:$LINENO: checking for u_int8_t" >&5
51771 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
51772 if test "${ac_cv_type_u_int8_t+set}" = set; then
51773   echo $ECHO_N "(cached) $ECHO_C" >&6
51774 else
51775   cat >conftest.$ac_ext <<_ACEOF
51776 /* confdefs.h.  */
51777 _ACEOF
51778 cat confdefs.h >>conftest.$ac_ext
51779 cat >>conftest.$ac_ext <<_ACEOF
51780 /* end confdefs.h.  */
51781
51782 #ifdef HAVE_INTTYPES_H
51783 #include <inttypes.h>
51784 #endif
51785 #ifdef HAVE_SYS_TYPES_H
51786 #include <sys/types.h>
51787 #endif
51788 #ifdef HAVE_SYS_BITYPES_H
51789 #include <sys/bitypes.h>
51790 #endif
51791 #ifdef HAVE_BIND_BITYPES_H
51792 #include <bind/bitypes.h>
51793 #endif
51794 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51795 #include <netinet/in6_machtypes.h>
51796 #endif
51797
51798
51799 int
51800 main ()
51801 {
51802 if ((u_int8_t *) 0)
51803   return 0;
51804 if (sizeof (u_int8_t))
51805   return 0;
51806   ;
51807   return 0;
51808 }
51809 _ACEOF
51810 rm -f conftest.$ac_objext
51811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51812   (eval $ac_compile) 2>conftest.er1
51813   ac_status=$?
51814   grep -v '^ *+' conftest.er1 >conftest.err
51815   rm -f conftest.er1
51816   cat conftest.err >&5
51817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51818   (exit $ac_status); } &&
51819          { ac_try='test -z "$ac_c_werror_flag"
51820                          || test ! -s conftest.err'
51821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51822   (eval $ac_try) 2>&5
51823   ac_status=$?
51824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51825   (exit $ac_status); }; } &&
51826          { ac_try='test -s conftest.$ac_objext'
51827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51828   (eval $ac_try) 2>&5
51829   ac_status=$?
51830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51831   (exit $ac_status); }; }; then
51832   ac_cv_type_u_int8_t=yes
51833 else
51834   echo "$as_me: failed program was:" >&5
51835 sed 's/^/| /' conftest.$ac_ext >&5
51836
51837 ac_cv_type_u_int8_t=no
51838 fi
51839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51840 fi
51841 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
51842 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
51843 if test $ac_cv_type_u_int8_t = yes; then
51844
51845 cat >>confdefs.h <<_ACEOF
51846 #define HAVE_U_INT8_T 1
51847 _ACEOF
51848
51849
51850 fi
51851 echo "$as_me:$LINENO: checking for u_int16_t" >&5
51852 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
51853 if test "${ac_cv_type_u_int16_t+set}" = set; then
51854   echo $ECHO_N "(cached) $ECHO_C" >&6
51855 else
51856   cat >conftest.$ac_ext <<_ACEOF
51857 /* confdefs.h.  */
51858 _ACEOF
51859 cat confdefs.h >>conftest.$ac_ext
51860 cat >>conftest.$ac_ext <<_ACEOF
51861 /* end confdefs.h.  */
51862
51863 #ifdef HAVE_INTTYPES_H
51864 #include <inttypes.h>
51865 #endif
51866 #ifdef HAVE_SYS_TYPES_H
51867 #include <sys/types.h>
51868 #endif
51869 #ifdef HAVE_SYS_BITYPES_H
51870 #include <sys/bitypes.h>
51871 #endif
51872 #ifdef HAVE_BIND_BITYPES_H
51873 #include <bind/bitypes.h>
51874 #endif
51875 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51876 #include <netinet/in6_machtypes.h>
51877 #endif
51878
51879
51880 int
51881 main ()
51882 {
51883 if ((u_int16_t *) 0)
51884   return 0;
51885 if (sizeof (u_int16_t))
51886   return 0;
51887   ;
51888   return 0;
51889 }
51890 _ACEOF
51891 rm -f conftest.$ac_objext
51892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51893   (eval $ac_compile) 2>conftest.er1
51894   ac_status=$?
51895   grep -v '^ *+' conftest.er1 >conftest.err
51896   rm -f conftest.er1
51897   cat conftest.err >&5
51898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51899   (exit $ac_status); } &&
51900          { ac_try='test -z "$ac_c_werror_flag"
51901                          || test ! -s conftest.err'
51902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51903   (eval $ac_try) 2>&5
51904   ac_status=$?
51905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51906   (exit $ac_status); }; } &&
51907          { ac_try='test -s conftest.$ac_objext'
51908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51909   (eval $ac_try) 2>&5
51910   ac_status=$?
51911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51912   (exit $ac_status); }; }; then
51913   ac_cv_type_u_int16_t=yes
51914 else
51915   echo "$as_me: failed program was:" >&5
51916 sed 's/^/| /' conftest.$ac_ext >&5
51917
51918 ac_cv_type_u_int16_t=no
51919 fi
51920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51921 fi
51922 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
51923 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
51924 if test $ac_cv_type_u_int16_t = yes; then
51925
51926 cat >>confdefs.h <<_ACEOF
51927 #define HAVE_U_INT16_T 1
51928 _ACEOF
51929
51930
51931 fi
51932 echo "$as_me:$LINENO: checking for u_int32_t" >&5
51933 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
51934 if test "${ac_cv_type_u_int32_t+set}" = set; then
51935   echo $ECHO_N "(cached) $ECHO_C" >&6
51936 else
51937   cat >conftest.$ac_ext <<_ACEOF
51938 /* confdefs.h.  */
51939 _ACEOF
51940 cat confdefs.h >>conftest.$ac_ext
51941 cat >>conftest.$ac_ext <<_ACEOF
51942 /* end confdefs.h.  */
51943
51944 #ifdef HAVE_INTTYPES_H
51945 #include <inttypes.h>
51946 #endif
51947 #ifdef HAVE_SYS_TYPES_H
51948 #include <sys/types.h>
51949 #endif
51950 #ifdef HAVE_SYS_BITYPES_H
51951 #include <sys/bitypes.h>
51952 #endif
51953 #ifdef HAVE_BIND_BITYPES_H
51954 #include <bind/bitypes.h>
51955 #endif
51956 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51957 #include <netinet/in6_machtypes.h>
51958 #endif
51959
51960
51961 int
51962 main ()
51963 {
51964 if ((u_int32_t *) 0)
51965   return 0;
51966 if (sizeof (u_int32_t))
51967   return 0;
51968   ;
51969   return 0;
51970 }
51971 _ACEOF
51972 rm -f conftest.$ac_objext
51973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51974   (eval $ac_compile) 2>conftest.er1
51975   ac_status=$?
51976   grep -v '^ *+' conftest.er1 >conftest.err
51977   rm -f conftest.er1
51978   cat conftest.err >&5
51979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51980   (exit $ac_status); } &&
51981          { ac_try='test -z "$ac_c_werror_flag"
51982                          || test ! -s conftest.err'
51983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51984   (eval $ac_try) 2>&5
51985   ac_status=$?
51986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51987   (exit $ac_status); }; } &&
51988          { ac_try='test -s conftest.$ac_objext'
51989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51990   (eval $ac_try) 2>&5
51991   ac_status=$?
51992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51993   (exit $ac_status); }; }; then
51994   ac_cv_type_u_int32_t=yes
51995 else
51996   echo "$as_me: failed program was:" >&5
51997 sed 's/^/| /' conftest.$ac_ext >&5
51998
51999 ac_cv_type_u_int32_t=no
52000 fi
52001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52002 fi
52003 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
52004 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
52005 if test $ac_cv_type_u_int32_t = yes; then
52006
52007 cat >>confdefs.h <<_ACEOF
52008 #define HAVE_U_INT32_T 1
52009 _ACEOF
52010
52011
52012 fi
52013 echo "$as_me:$LINENO: checking for u_int64_t" >&5
52014 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
52015 if test "${ac_cv_type_u_int64_t+set}" = set; then
52016   echo $ECHO_N "(cached) $ECHO_C" >&6
52017 else
52018   cat >conftest.$ac_ext <<_ACEOF
52019 /* confdefs.h.  */
52020 _ACEOF
52021 cat confdefs.h >>conftest.$ac_ext
52022 cat >>conftest.$ac_ext <<_ACEOF
52023 /* end confdefs.h.  */
52024
52025 #ifdef HAVE_INTTYPES_H
52026 #include <inttypes.h>
52027 #endif
52028 #ifdef HAVE_SYS_TYPES_H
52029 #include <sys/types.h>
52030 #endif
52031 #ifdef HAVE_SYS_BITYPES_H
52032 #include <sys/bitypes.h>
52033 #endif
52034 #ifdef HAVE_BIND_BITYPES_H
52035 #include <bind/bitypes.h>
52036 #endif
52037 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
52038 #include <netinet/in6_machtypes.h>
52039 #endif
52040
52041
52042 int
52043 main ()
52044 {
52045 if ((u_int64_t *) 0)
52046   return 0;
52047 if (sizeof (u_int64_t))
52048   return 0;
52049   ;
52050   return 0;
52051 }
52052 _ACEOF
52053 rm -f conftest.$ac_objext
52054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52055   (eval $ac_compile) 2>conftest.er1
52056   ac_status=$?
52057   grep -v '^ *+' conftest.er1 >conftest.err
52058   rm -f conftest.er1
52059   cat conftest.err >&5
52060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52061   (exit $ac_status); } &&
52062          { ac_try='test -z "$ac_c_werror_flag"
52063                          || test ! -s conftest.err'
52064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52065   (eval $ac_try) 2>&5
52066   ac_status=$?
52067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52068   (exit $ac_status); }; } &&
52069          { ac_try='test -s conftest.$ac_objext'
52070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52071   (eval $ac_try) 2>&5
52072   ac_status=$?
52073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52074   (exit $ac_status); }; }; then
52075   ac_cv_type_u_int64_t=yes
52076 else
52077   echo "$as_me: failed program was:" >&5
52078 sed 's/^/| /' conftest.$ac_ext >&5
52079
52080 ac_cv_type_u_int64_t=no
52081 fi
52082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52083 fi
52084 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
52085 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
52086 if test $ac_cv_type_u_int64_t = yes; then
52087
52088 cat >>confdefs.h <<_ACEOF
52089 #define HAVE_U_INT64_T 1
52090 _ACEOF
52091
52092
52093 fi
52094 echo "$as_me:$LINENO: checking for uint8_t" >&5
52095 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
52096 if test "${ac_cv_type_uint8_t+set}" = set; then
52097   echo $ECHO_N "(cached) $ECHO_C" >&6
52098 else
52099   cat >conftest.$ac_ext <<_ACEOF
52100 /* confdefs.h.  */
52101 _ACEOF
52102 cat confdefs.h >>conftest.$ac_ext
52103 cat >>conftest.$ac_ext <<_ACEOF
52104 /* end confdefs.h.  */
52105
52106 #ifdef HAVE_INTTYPES_H
52107 #include <inttypes.h>
52108 #endif
52109 #ifdef HAVE_SYS_TYPES_H
52110 #include <sys/types.h>
52111 #endif
52112 #ifdef HAVE_SYS_BITYPES_H
52113 #include <sys/bitypes.h>
52114 #endif
52115 #ifdef HAVE_BIND_BITYPES_H
52116 #include <bind/bitypes.h>
52117 #endif
52118 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
52119 #include <netinet/in6_machtypes.h>
52120 #endif
52121
52122
52123 int
52124 main ()
52125 {
52126 if ((uint8_t *) 0)
52127   return 0;
52128 if (sizeof (uint8_t))
52129   return 0;
52130   ;
52131   return 0;
52132 }
52133 _ACEOF
52134 rm -f conftest.$ac_objext
52135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52136   (eval $ac_compile) 2>conftest.er1
52137   ac_status=$?
52138   grep -v '^ *+' conftest.er1 >conftest.err
52139   rm -f conftest.er1
52140   cat conftest.err >&5
52141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52142   (exit $ac_status); } &&
52143          { ac_try='test -z "$ac_c_werror_flag"
52144                          || test ! -s conftest.err'
52145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52146   (eval $ac_try) 2>&5
52147   ac_status=$?
52148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52149   (exit $ac_status); }; } &&
52150          { ac_try='test -s conftest.$ac_objext'
52151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52152   (eval $ac_try) 2>&5
52153   ac_status=$?
52154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52155   (exit $ac_status); }; }; then
52156   ac_cv_type_uint8_t=yes
52157 else
52158   echo "$as_me: failed program was:" >&5
52159 sed 's/^/| /' conftest.$ac_ext >&5
52160
52161 ac_cv_type_uint8_t=no
52162 fi
52163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52164 fi
52165 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
52166 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
52167 if test $ac_cv_type_uint8_t = yes; then
52168
52169 cat >>confdefs.h <<_ACEOF
52170 #define HAVE_UINT8_T 1
52171 _ACEOF
52172
52173
52174 fi
52175 echo "$as_me:$LINENO: checking for uint16_t" >&5
52176 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
52177 if test "${ac_cv_type_uint16_t+set}" = set; then
52178   echo $ECHO_N "(cached) $ECHO_C" >&6
52179 else
52180   cat >conftest.$ac_ext <<_ACEOF
52181 /* confdefs.h.  */
52182 _ACEOF
52183 cat confdefs.h >>conftest.$ac_ext
52184 cat >>conftest.$ac_ext <<_ACEOF
52185 /* end confdefs.h.  */
52186
52187 #ifdef HAVE_INTTYPES_H
52188 #include <inttypes.h>
52189 #endif
52190 #ifdef HAVE_SYS_TYPES_H
52191 #include <sys/types.h>
52192 #endif
52193 #ifdef HAVE_SYS_BITYPES_H
52194 #include <sys/bitypes.h>
52195 #endif
52196 #ifdef HAVE_BIND_BITYPES_H
52197 #include <bind/bitypes.h>
52198 #endif
52199 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
52200 #include <netinet/in6_machtypes.h>
52201 #endif
52202
52203
52204 int
52205 main ()
52206 {
52207 if ((uint16_t *) 0)
52208   return 0;
52209 if (sizeof (uint16_t))
52210   return 0;
52211   ;
52212   return 0;
52213 }
52214 _ACEOF
52215 rm -f conftest.$ac_objext
52216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52217   (eval $ac_compile) 2>conftest.er1
52218   ac_status=$?
52219   grep -v '^ *+' conftest.er1 >conftest.err
52220   rm -f conftest.er1
52221   cat conftest.err >&5
52222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52223   (exit $ac_status); } &&
52224          { ac_try='test -z "$ac_c_werror_flag"
52225                          || test ! -s conftest.err'
52226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52227   (eval $ac_try) 2>&5
52228   ac_status=$?
52229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52230   (exit $ac_status); }; } &&
52231          { ac_try='test -s conftest.$ac_objext'
52232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52233   (eval $ac_try) 2>&5
52234   ac_status=$?
52235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52236   (exit $ac_status); }; }; then
52237   ac_cv_type_uint16_t=yes
52238 else
52239   echo "$as_me: failed program was:" >&5
52240 sed 's/^/| /' conftest.$ac_ext >&5
52241
52242 ac_cv_type_uint16_t=no
52243 fi
52244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52245 fi
52246 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
52247 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
52248 if test $ac_cv_type_uint16_t = yes; then
52249
52250 cat >>confdefs.h <<_ACEOF
52251 #define HAVE_UINT16_T 1
52252 _ACEOF
52253
52254
52255 fi
52256 echo "$as_me:$LINENO: checking for uint32_t" >&5
52257 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
52258 if test "${ac_cv_type_uint32_t+set}" = set; then
52259   echo $ECHO_N "(cached) $ECHO_C" >&6
52260 else
52261   cat >conftest.$ac_ext <<_ACEOF
52262 /* confdefs.h.  */
52263 _ACEOF
52264 cat confdefs.h >>conftest.$ac_ext
52265 cat >>conftest.$ac_ext <<_ACEOF
52266 /* end confdefs.h.  */
52267
52268 #ifdef HAVE_INTTYPES_H
52269 #include <inttypes.h>
52270 #endif
52271 #ifdef HAVE_SYS_TYPES_H
52272 #include <sys/types.h>
52273 #endif
52274 #ifdef HAVE_SYS_BITYPES_H
52275 #include <sys/bitypes.h>
52276 #endif
52277 #ifdef HAVE_BIND_BITYPES_H
52278 #include <bind/bitypes.h>
52279 #endif
52280 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
52281 #include <netinet/in6_machtypes.h>
52282 #endif
52283
52284
52285 int
52286 main ()
52287 {
52288 if ((uint32_t *) 0)
52289   return 0;
52290 if (sizeof (uint32_t))
52291   return 0;
52292   ;
52293   return 0;
52294 }
52295 _ACEOF
52296 rm -f conftest.$ac_objext
52297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52298   (eval $ac_compile) 2>conftest.er1
52299   ac_status=$?
52300   grep -v '^ *+' conftest.er1 >conftest.err
52301   rm -f conftest.er1
52302   cat conftest.err >&5
52303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52304   (exit $ac_status); } &&
52305          { ac_try='test -z "$ac_c_werror_flag"
52306                          || test ! -s conftest.err'
52307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52308   (eval $ac_try) 2>&5
52309   ac_status=$?
52310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52311   (exit $ac_status); }; } &&
52312          { ac_try='test -s conftest.$ac_objext'
52313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52314   (eval $ac_try) 2>&5
52315   ac_status=$?
52316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52317   (exit $ac_status); }; }; then
52318   ac_cv_type_uint32_t=yes
52319 else
52320   echo "$as_me: failed program was:" >&5
52321 sed 's/^/| /' conftest.$ac_ext >&5
52322
52323 ac_cv_type_uint32_t=no
52324 fi
52325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52326 fi
52327 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
52328 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
52329 if test $ac_cv_type_uint32_t = yes; then
52330
52331 cat >>confdefs.h <<_ACEOF
52332 #define HAVE_UINT32_T 1
52333 _ACEOF
52334
52335
52336 fi
52337 echo "$as_me:$LINENO: checking for uint64_t" >&5
52338 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
52339 if test "${ac_cv_type_uint64_t+set}" = set; then
52340   echo $ECHO_N "(cached) $ECHO_C" >&6
52341 else
52342   cat >conftest.$ac_ext <<_ACEOF
52343 /* confdefs.h.  */
52344 _ACEOF
52345 cat confdefs.h >>conftest.$ac_ext
52346 cat >>conftest.$ac_ext <<_ACEOF
52347 /* end confdefs.h.  */
52348
52349 #ifdef HAVE_INTTYPES_H
52350 #include <inttypes.h>
52351 #endif
52352 #ifdef HAVE_SYS_TYPES_H
52353 #include <sys/types.h>
52354 #endif
52355 #ifdef HAVE_SYS_BITYPES_H
52356 #include <sys/bitypes.h>
52357 #endif
52358 #ifdef HAVE_BIND_BITYPES_H
52359 #include <bind/bitypes.h>
52360 #endif
52361 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
52362 #include <netinet/in6_machtypes.h>
52363 #endif
52364
52365
52366 int
52367 main ()
52368 {
52369 if ((uint64_t *) 0)
52370   return 0;
52371 if (sizeof (uint64_t))
52372   return 0;
52373   ;
52374   return 0;
52375 }
52376 _ACEOF
52377 rm -f conftest.$ac_objext
52378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52379   (eval $ac_compile) 2>conftest.er1
52380   ac_status=$?
52381   grep -v '^ *+' conftest.er1 >conftest.err
52382   rm -f conftest.er1
52383   cat conftest.err >&5
52384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52385   (exit $ac_status); } &&
52386          { ac_try='test -z "$ac_c_werror_flag"
52387                          || test ! -s conftest.err'
52388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52389   (eval $ac_try) 2>&5
52390   ac_status=$?
52391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52392   (exit $ac_status); }; } &&
52393          { ac_try='test -s conftest.$ac_objext'
52394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52395   (eval $ac_try) 2>&5
52396   ac_status=$?
52397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52398   (exit $ac_status); }; }; then
52399   ac_cv_type_uint64_t=yes
52400 else
52401   echo "$as_me: failed program was:" >&5
52402 sed 's/^/| /' conftest.$ac_ext >&5
52403
52404 ac_cv_type_uint64_t=no
52405 fi
52406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52407 fi
52408 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
52409 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
52410 if test $ac_cv_type_uint64_t = yes; then
52411
52412 cat >>confdefs.h <<_ACEOF
52413 #define HAVE_UINT64_T 1
52414 _ACEOF
52415
52416
52417 fi
52418
52419
52420
52421
52422
52423
52424 echo "$as_me:$LINENO: checking for el_init" >&5
52425 echo $ECHO_N "checking for el_init... $ECHO_C" >&6
52426 if test "${ac_cv_funclib_el_init+set}" = set; then
52427   echo $ECHO_N "(cached) $ECHO_C" >&6
52428 else
52429
52430 if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
52431         ac_save_LIBS="$LIBS"
52432         for ac_lib in "" edit; do
52433                 case "$ac_lib" in
52434                 "") ;;
52435                 yes) ac_lib="" ;;
52436                 no) continue ;;
52437                 -l*) ;;
52438                 *) ac_lib="-l$ac_lib" ;;
52439                 esac
52440                 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
52441                 cat >conftest.$ac_ext <<_ACEOF
52442 /* confdefs.h.  */
52443 _ACEOF
52444 cat confdefs.h >>conftest.$ac_ext
52445 cat >>conftest.$ac_ext <<_ACEOF
52446 /* end confdefs.h.  */
52447
52448 int
52449 main ()
52450 {
52451 el_init()
52452   ;
52453   return 0;
52454 }
52455 _ACEOF
52456 rm -f conftest.$ac_objext conftest$ac_exeext
52457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52458   (eval $ac_link) 2>conftest.er1
52459   ac_status=$?
52460   grep -v '^ *+' conftest.er1 >conftest.err
52461   rm -f conftest.er1
52462   cat conftest.err >&5
52463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52464   (exit $ac_status); } &&
52465          { ac_try='test -z "$ac_c_werror_flag"
52466                          || test ! -s conftest.err'
52467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52468   (eval $ac_try) 2>&5
52469   ac_status=$?
52470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52471   (exit $ac_status); }; } &&
52472          { ac_try='test -s conftest$ac_exeext'
52473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52474   (eval $ac_try) 2>&5
52475   ac_status=$?
52476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52477   (exit $ac_status); }; }; then
52478   eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
52479 else
52480   echo "$as_me: failed program was:" >&5
52481 sed 's/^/| /' conftest.$ac_ext >&5
52482
52483 fi
52484 rm -f conftest.err conftest.$ac_objext \
52485       conftest$ac_exeext conftest.$ac_ext
52486         done
52487         eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
52488         LIBS="$ac_save_LIBS"
52489 fi
52490
52491 fi
52492
52493
52494 eval "ac_res=\$ac_cv_funclib_el_init"
52495
52496 if false; then
52497
52498 for ac_func in el_init
52499 do
52500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52501 echo "$as_me:$LINENO: checking for $ac_func" >&5
52502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52503 if eval "test \"\${$as_ac_var+set}\" = set"; then
52504   echo $ECHO_N "(cached) $ECHO_C" >&6
52505 else
52506   cat >conftest.$ac_ext <<_ACEOF
52507 /* confdefs.h.  */
52508 _ACEOF
52509 cat confdefs.h >>conftest.$ac_ext
52510 cat >>conftest.$ac_ext <<_ACEOF
52511 /* end confdefs.h.  */
52512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52514 #define $ac_func innocuous_$ac_func
52515
52516 /* System header to define __stub macros and hopefully few prototypes,
52517     which can conflict with char $ac_func (); below.
52518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52519     <limits.h> exists even on freestanding compilers.  */
52520
52521 #ifdef __STDC__
52522 # include <limits.h>
52523 #else
52524 # include <assert.h>
52525 #endif
52526
52527 #undef $ac_func
52528
52529 /* Override any gcc2 internal prototype to avoid an error.  */
52530 #ifdef __cplusplus
52531 extern "C"
52532 {
52533 #endif
52534 /* We use char because int might match the return type of a gcc2
52535    builtin and then its argument prototype would still apply.  */
52536 char $ac_func ();
52537 /* The GNU C library defines this for functions which it implements
52538     to always fail with ENOSYS.  Some functions are actually named
52539     something starting with __ and the normal name is an alias.  */
52540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52541 choke me
52542 #else
52543 char (*f) () = $ac_func;
52544 #endif
52545 #ifdef __cplusplus
52546 }
52547 #endif
52548
52549 int
52550 main ()
52551 {
52552 return f != $ac_func;
52553   ;
52554   return 0;
52555 }
52556 _ACEOF
52557 rm -f conftest.$ac_objext conftest$ac_exeext
52558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52559   (eval $ac_link) 2>conftest.er1
52560   ac_status=$?
52561   grep -v '^ *+' conftest.er1 >conftest.err
52562   rm -f conftest.er1
52563   cat conftest.err >&5
52564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52565   (exit $ac_status); } &&
52566          { ac_try='test -z "$ac_c_werror_flag"
52567                          || test ! -s conftest.err'
52568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52569   (eval $ac_try) 2>&5
52570   ac_status=$?
52571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52572   (exit $ac_status); }; } &&
52573          { ac_try='test -s conftest$ac_exeext'
52574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52575   (eval $ac_try) 2>&5
52576   ac_status=$?
52577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52578   (exit $ac_status); }; }; then
52579   eval "$as_ac_var=yes"
52580 else
52581   echo "$as_me: failed program was:" >&5
52582 sed 's/^/| /' conftest.$ac_ext >&5
52583
52584 eval "$as_ac_var=no"
52585 fi
52586 rm -f conftest.err conftest.$ac_objext \
52587       conftest$ac_exeext conftest.$ac_ext
52588 fi
52589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52591 if test `eval echo '${'$as_ac_var'}'` = yes; then
52592   cat >>confdefs.h <<_ACEOF
52593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52594 _ACEOF
52595
52596 fi
52597 done
52598
52599 fi
52600 # el_init
52601 eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
52602 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
52603 eval "LIB_el_init=$ac_res"
52604
52605 case "$ac_res" in
52606         yes)
52607         eval "ac_cv_func_el_init=yes"
52608         eval "LIB_el_init="
52609         cat >>confdefs.h <<_ACEOF
52610 #define $ac_tr_func 1
52611 _ACEOF
52612
52613         echo "$as_me:$LINENO: result: yes" >&5
52614 echo "${ECHO_T}yes" >&6
52615         ;;
52616         no)
52617         eval "ac_cv_func_el_init=no"
52618         eval "LIB_el_init="
52619         echo "$as_me:$LINENO: result: no" >&5
52620 echo "${ECHO_T}no" >&6
52621         ;;
52622         *)
52623         eval "ac_cv_func_el_init=yes"
52624         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
52625         cat >>confdefs.h <<_ACEOF
52626 #define $ac_tr_func 1
52627 _ACEOF
52628
52629         cat >>confdefs.h <<_ACEOF
52630 #define $ac_tr_lib 1
52631 _ACEOF
52632
52633         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
52634 echo "${ECHO_T}yes, in $ac_res" >&6
52635         ;;
52636 esac
52637
52638
52639 if test "$ac_cv_func_el_init" = yes ; then
52640         echo "$as_me:$LINENO: checking for four argument el_init" >&5
52641 echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
52642 if test "${ac_cv_func_el_init_four+set}" = set; then
52643   echo $ECHO_N "(cached) $ECHO_C" >&6
52644 else
52645
52646                 cat >conftest.$ac_ext <<_ACEOF
52647 /* confdefs.h.  */
52648 _ACEOF
52649 cat confdefs.h >>conftest.$ac_ext
52650 cat >>conftest.$ac_ext <<_ACEOF
52651 /* end confdefs.h.  */
52652 #include <stdio.h>
52653                         #include <histedit.h>
52654 int
52655 main ()
52656 {
52657 el_init("", NULL, NULL, NULL);
52658   ;
52659   return 0;
52660 }
52661 _ACEOF
52662 rm -f conftest.$ac_objext
52663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52664   (eval $ac_compile) 2>conftest.er1
52665   ac_status=$?
52666   grep -v '^ *+' conftest.er1 >conftest.err
52667   rm -f conftest.er1
52668   cat conftest.err >&5
52669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52670   (exit $ac_status); } &&
52671          { ac_try='test -z "$ac_c_werror_flag"
52672                          || test ! -s conftest.err'
52673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52674   (eval $ac_try) 2>&5
52675   ac_status=$?
52676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52677   (exit $ac_status); }; } &&
52678          { ac_try='test -s conftest.$ac_objext'
52679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52680   (eval $ac_try) 2>&5
52681   ac_status=$?
52682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52683   (exit $ac_status); }; }; then
52684   ac_cv_func_el_init_four=yes
52685 else
52686   echo "$as_me: failed program was:" >&5
52687 sed 's/^/| /' conftest.$ac_ext >&5
52688
52689 ac_cv_func_el_init_four=no
52690 fi
52691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52692 fi
52693 echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
52694 echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
52695         if test "$ac_cv_func_el_init_four" = yes; then
52696
52697 cat >>confdefs.h <<\_ACEOF
52698 #define HAVE_FOUR_VALUED_EL_INIT 1
52699 _ACEOF
52700
52701         fi
52702 fi
52703
52704
52705 ac_foo=no
52706 if test "$with_readline" = yes; then
52707         :
52708 elif test "$ac_cv_func_readline" = yes; then
52709         :
52710 elif test "$ac_cv_func_el_init" = yes; then
52711         ac_foo=yes
52712         LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
52713 else
52714         LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
52715 fi
52716
52717
52718 if test "$ac_foo" = yes; then
52719   el_compat_TRUE=
52720   el_compat_FALSE='#'
52721 else
52722   el_compat_TRUE='#'
52723   el_compat_FALSE=
52724 fi
52725
52726
52727 cat >>confdefs.h <<\_ACEOF
52728 #define HAVE_READLINE 1
52729 _ACEOF
52730
52731
52732
52733
52734
52735 cat >>confdefs.h <<\_ACEOF
52736 #define AUTHENTICATION 1
52737 _ACEOF
52738
52739 cat >>confdefs.h <<\_ACEOF
52740 #define ENCRYPTION 1
52741 _ACEOF
52742
52743 cat >>confdefs.h <<\_ACEOF
52744 #define DES_ENCRYPTION 1
52745 _ACEOF
52746
52747 cat >>confdefs.h <<\_ACEOF
52748 #define DIAGNOSTICS 1
52749 _ACEOF
52750
52751 cat >>confdefs.h <<\_ACEOF
52752 #define OLD_ENVIRON 1
52753 _ACEOF
52754 if false; then
52755
52756 cat >>confdefs.h <<\_ACEOF
52757 #define ENV_HACK 1
52758 _ACEOF
52759
52760 fi
52761
52762 # Simple test for streamspty, based on the existance of getmsg(), alas
52763 # this breaks on SunOS4 which have streams but BSD-like ptys
52764 #
52765 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
52766
52767 case "$host" in
52768 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
52769         ;;
52770 *)
52771         echo "$as_me:$LINENO: checking for getmsg" >&5
52772 echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
52773 if test "${ac_cv_func_getmsg+set}" = set; then
52774   echo $ECHO_N "(cached) $ECHO_C" >&6
52775 else
52776   cat >conftest.$ac_ext <<_ACEOF
52777 /* confdefs.h.  */
52778 _ACEOF
52779 cat confdefs.h >>conftest.$ac_ext
52780 cat >>conftest.$ac_ext <<_ACEOF
52781 /* end confdefs.h.  */
52782 /* Define getmsg to an innocuous variant, in case <limits.h> declares getmsg.
52783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52784 #define getmsg innocuous_getmsg
52785
52786 /* System header to define __stub macros and hopefully few prototypes,
52787     which can conflict with char getmsg (); below.
52788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52789     <limits.h> exists even on freestanding compilers.  */
52790
52791 #ifdef __STDC__
52792 # include <limits.h>
52793 #else
52794 # include <assert.h>
52795 #endif
52796
52797 #undef getmsg
52798
52799 /* Override any gcc2 internal prototype to avoid an error.  */
52800 #ifdef __cplusplus
52801 extern "C"
52802 {
52803 #endif
52804 /* We use char because int might match the return type of a gcc2
52805    builtin and then its argument prototype would still apply.  */
52806 char getmsg ();
52807 /* The GNU C library defines this for functions which it implements
52808     to always fail with ENOSYS.  Some functions are actually named
52809     something starting with __ and the normal name is an alias.  */
52810 #if defined (__stub_getmsg) || defined (__stub___getmsg)
52811 choke me
52812 #else
52813 char (*f) () = getmsg;
52814 #endif
52815 #ifdef __cplusplus
52816 }
52817 #endif
52818
52819 int
52820 main ()
52821 {
52822 return f != getmsg;
52823   ;
52824   return 0;
52825 }
52826 _ACEOF
52827 rm -f conftest.$ac_objext conftest$ac_exeext
52828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52829   (eval $ac_link) 2>conftest.er1
52830   ac_status=$?
52831   grep -v '^ *+' conftest.er1 >conftest.err
52832   rm -f conftest.er1
52833   cat conftest.err >&5
52834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52835   (exit $ac_status); } &&
52836          { ac_try='test -z "$ac_c_werror_flag"
52837                          || test ! -s conftest.err'
52838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52839   (eval $ac_try) 2>&5
52840   ac_status=$?
52841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52842   (exit $ac_status); }; } &&
52843          { ac_try='test -s conftest$ac_exeext'
52844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52845   (eval $ac_try) 2>&5
52846   ac_status=$?
52847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52848   (exit $ac_status); }; }; then
52849   ac_cv_func_getmsg=yes
52850 else
52851   echo "$as_me: failed program was:" >&5
52852 sed 's/^/| /' conftest.$ac_ext >&5
52853
52854 ac_cv_func_getmsg=no
52855 fi
52856 rm -f conftest.err conftest.$ac_objext \
52857       conftest$ac_exeext conftest.$ac_ext
52858 fi
52859 echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
52860 echo "${ECHO_T}$ac_cv_func_getmsg" >&6
52861
52862         if test "$ac_cv_func_getmsg" = "yes"; then
52863                 echo "$as_me:$LINENO: checking if getmsg works" >&5
52864 echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
52865 if test "${ac_cv_func_getmsg_works+set}" = set; then
52866   echo $ECHO_N "(cached) $ECHO_C" >&6
52867 else
52868   if test "$cross_compiling" = yes; then
52869   ac_cv_func_getmsg_works=no
52870 else
52871   cat >conftest.$ac_ext <<_ACEOF
52872 /* confdefs.h.  */
52873 _ACEOF
52874 cat confdefs.h >>conftest.$ac_ext
52875 cat >>conftest.$ac_ext <<_ACEOF
52876 /* end confdefs.h.  */
52877
52878                         #include <stdio.h>
52879                         #include <errno.h>
52880
52881                         int main()
52882                         {
52883                           int ret;
52884                           ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
52885                           if(ret < 0 && errno == ENOSYS)
52886                             return 1;
52887                           return 0;
52888                         }
52889
52890 _ACEOF
52891 rm -f conftest$ac_exeext
52892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52893   (eval $ac_link) 2>&5
52894   ac_status=$?
52895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52898   (eval $ac_try) 2>&5
52899   ac_status=$?
52900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52901   (exit $ac_status); }; }; then
52902   ac_cv_func_getmsg_works=yes
52903 else
52904   echo "$as_me: program exited with status $ac_status" >&5
52905 echo "$as_me: failed program was:" >&5
52906 sed 's/^/| /' conftest.$ac_ext >&5
52907
52908 ( exit $ac_status )
52909 ac_cv_func_getmsg_works=no
52910 fi
52911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52912 fi
52913 fi
52914 echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
52915 echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
52916                 if test "$ac_cv_func_getmsg_works" = "yes"; then
52917
52918 cat >>confdefs.h <<\_ACEOF
52919 #define HAVE_GETMSG 1
52920 _ACEOF
52921
52922
52923 cat >>confdefs.h <<\_ACEOF
52924 #define STREAMSPTY 1
52925 _ACEOF
52926
52927                 fi
52928         fi
52929         ;;
52930 esac
52931
52932
52933
52934
52935
52936
52937
52938 # Extract the first word of "compile_et", so it can be a program name with args.
52939 set dummy compile_et; ac_word=$2
52940 echo "$as_me:$LINENO: checking for $ac_word" >&5
52941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
52942 if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
52943   echo $ECHO_N "(cached) $ECHO_C" >&6
52944 else
52945   if test -n "$COMPILE_ET"; then
52946   ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
52947 else
52948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52949 for as_dir in $PATH
52950 do
52951   IFS=$as_save_IFS
52952   test -z "$as_dir" && as_dir=.
52953   for ac_exec_ext in '' $ac_executable_extensions; do
52954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52955     ac_cv_prog_COMPILE_ET="compile_et"
52956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52957     break 2
52958   fi
52959 done
52960 done
52961
52962 fi
52963 fi
52964 COMPILE_ET=$ac_cv_prog_COMPILE_ET
52965 if test -n "$COMPILE_ET"; then
52966   echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
52967 echo "${ECHO_T}$COMPILE_ET" >&6
52968 else
52969   echo "$as_me:$LINENO: result: no" >&5
52970 echo "${ECHO_T}no" >&6
52971 fi
52972
52973
52974 krb_cv_compile_et="no"
52975 krb_cv_com_err_need_r=""
52976 if test "${COMPILE_ET}" = "compile_et"; then
52977
52978 echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
52979 echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
52980 cat > conftest_et.et <<'EOF'
52981 error_table test conf
52982 prefix CONFTEST
52983 index 1
52984 error_code CODE1, "CODE1"
52985 index 128
52986 error_code CODE2, "CODE2"
52987 end
52988 EOF
52989 if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
52990     save_CPPFLAGS="${CPPFLAGS}"
52991   if test -d "/usr/include/et"; then
52992     CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
52993   fi
52994     if test "$cross_compiling" = yes; then
52995   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
52996 See \`config.log' for more details." >&5
52997 echo "$as_me: error: cannot run test program while cross compiling
52998 See \`config.log' for more details." >&2;}
52999    { (exit 1); exit 1; }; }
53000 else
53001   cat >conftest.$ac_ext <<_ACEOF
53002 /* confdefs.h.  */
53003 _ACEOF
53004 cat confdefs.h >>conftest.$ac_ext
53005 cat >>conftest.$ac_ext <<_ACEOF
53006 /* end confdefs.h.  */
53007
53008 #include <com_err.h>
53009 #include <string.h>
53010 #include "conftest_et.h"
53011 int main(){
53012 #ifndef ERROR_TABLE_BASE_conf
53013 #error compile_et does not handle error_table N M
53014 #endif
53015 return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
53016
53017 _ACEOF
53018 rm -f conftest$ac_exeext
53019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53020   (eval $ac_link) 2>&5
53021   ac_status=$?
53022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53025   (eval $ac_try) 2>&5
53026   ac_status=$?
53027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53028   (exit $ac_status); }; }; then
53029   krb_cv_compile_et="yes"
53030 else
53031   echo "$as_me: program exited with status $ac_status" >&5
53032 echo "$as_me: failed program was:" >&5
53033 sed 's/^/| /' conftest.$ac_ext >&5
53034
53035 ( exit $ac_status )
53036 CPPFLAGS="${save_CPPFLAGS}"
53037 fi
53038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53039 fi
53040 fi
53041 echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
53042 echo "${ECHO_T}${krb_cv_compile_et}" >&6
53043 if test "${krb_cv_compile_et}" = "yes"; then
53044   echo "$as_me:$LINENO: checking for if com_err needs to have a initialize_error_table_r" >&5
53045 echo $ECHO_N "checking for if com_err needs to have a initialize_error_table_r... $ECHO_C" >&6
53046   cat >conftest.$ac_ext <<_ACEOF
53047 /* confdefs.h.  */
53048 _ACEOF
53049 cat confdefs.h >>conftest.$ac_ext
53050 cat >>conftest.$ac_ext <<_ACEOF
53051 /* end confdefs.h.  */
53052 #include "conftest_et.c"
53053 _ACEOF
53054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53055   $EGREP "initialize_error_table_r" >/dev/null 2>&1; then
53056   krb_cv_com_err_need_r="initialize_error_table_r(0,0,0,0);"
53057 fi
53058 rm -f conftest*
53059
53060   if test X"$krb_cv_com_err_need_r" = X ; then
53061     echo "$as_me:$LINENO: result: no" >&5
53062 echo "${ECHO_T}no" >&6
53063   else
53064     echo "$as_me:$LINENO: result: yes" >&5
53065 echo "${ECHO_T}yes" >&6
53066   fi
53067 fi
53068 rm -fr conftest*
53069 fi
53070
53071 if test "${krb_cv_compile_et}" = "yes"; then
53072     krb_cv_save_LIBS="${LIBS}"
53073   LIBS="${LIBS} -lcom_err"
53074   echo "$as_me:$LINENO: checking for com_err" >&5
53075 echo $ECHO_N "checking for com_err... $ECHO_C" >&6
53076   cat >conftest.$ac_ext <<_ACEOF
53077 /* confdefs.h.  */
53078 _ACEOF
53079 cat confdefs.h >>conftest.$ac_ext
53080 cat >>conftest.$ac_ext <<_ACEOF
53081 /* end confdefs.h.  */
53082 #include <com_err.h>
53083 int
53084 main ()
53085 {
53086
53087     const char *p;
53088     p = error_message(0);
53089     $krb_cv_com_err_need_r
53090
53091   ;
53092   return 0;
53093 }
53094 _ACEOF
53095 rm -f conftest.$ac_objext conftest$ac_exeext
53096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53097   (eval $ac_link) 2>conftest.er1
53098   ac_status=$?
53099   grep -v '^ *+' conftest.er1 >conftest.err
53100   rm -f conftest.er1
53101   cat conftest.err >&5
53102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53103   (exit $ac_status); } &&
53104          { ac_try='test -z "$ac_c_werror_flag"
53105                          || test ! -s conftest.err'
53106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53107   (eval $ac_try) 2>&5
53108   ac_status=$?
53109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53110   (exit $ac_status); }; } &&
53111          { ac_try='test -s conftest$ac_exeext'
53112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53113   (eval $ac_try) 2>&5
53114   ac_status=$?
53115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53116   (exit $ac_status); }; }; then
53117   krb_cv_com_err="yes"
53118 else
53119   echo "$as_me: failed program was:" >&5
53120 sed 's/^/| /' conftest.$ac_ext >&5
53121
53122 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
53123 fi
53124 rm -f conftest.err conftest.$ac_objext \
53125       conftest$ac_exeext conftest.$ac_ext
53126   echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
53127 echo "${ECHO_T}${krb_cv_com_err}" >&6
53128   LIBS="${krb_cv_save_LIBS}"
53129 else
53130     krb_cv_com_err="no"
53131 fi
53132
53133 if test "${krb_cv_com_err}" = "yes"; then
53134     DIR_com_err=""
53135     LIB_com_err="-lcom_err"
53136     LIB_com_err_a=""
53137     LIB_com_err_so=""
53138     { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
53139 echo "$as_me: Using the already-installed com_err" >&6;}
53140 else
53141     COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
53142     DIR_com_err="com_err"
53143     LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
53144     LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
53145     LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
53146     { echo "$as_me:$LINENO: Using our own com_err" >&5
53147 echo "$as_me: Using our own com_err" >&6;}
53148 fi
53149
53150
53151
53152
53153
53154
53155
53156
53157 echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
53158 echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
53159
53160 z='sia afskauthlib'
53161 LIB_AUTH_SUBDIRS=
53162 for i in $z; do
53163 case $i in
53164 sia)
53165 if test "$ac_cv_header_siad_h" = yes; then
53166         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
53167 fi
53168 ;;
53169 pam)
53170 case "${host}" in
53171 *-*-freebsd*)   ac_cv_want_pam_krb4=no ;;
53172 *)              ac_cv_want_pam_krb4=yes ;;
53173 esac
53174
53175 if test "$ac_cv_want_pam_krb4" = yes -a \
53176     "$ac_cv_header_security_pam_modules_h" = yes -a \
53177     "$enable_shared" = yes; then
53178         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
53179 fi
53180 ;;
53181 afskauthlib)
53182 case "${host}" in
53183 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
53184 esac
53185 ;;
53186 esac
53187 done
53188 if test "$LIB_AUTH_SUBDIRS"; then
53189         echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
53190 echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
53191 else
53192         echo "$as_me:$LINENO: result: none" >&5
53193 echo "${ECHO_T}none" >&6
53194 fi
53195
53196
53197
53198
53199 # This is done by AC_OUTPUT but we need the result here.
53200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53202
53203
53204         x="${bindir}"
53205         eval y="$x"
53206         while test "x$y" != "x$x"; do
53207                 x="$y"
53208                 eval y="$x"
53209         done
53210
53211 cat >>confdefs.h <<_ACEOF
53212 #define BINDIR "$x"
53213 _ACEOF
53214
53215         x="${libdir}"
53216         eval y="$x"
53217         while test "x$y" != "x$x"; do
53218                 x="$y"
53219                 eval y="$x"
53220         done
53221
53222 cat >>confdefs.h <<_ACEOF
53223 #define LIBDIR "$x"
53224 _ACEOF
53225
53226         x="${libexecdir}"
53227         eval y="$x"
53228         while test "x$y" != "x$x"; do
53229                 x="$y"
53230                 eval y="$x"
53231         done
53232
53233 cat >>confdefs.h <<_ACEOF
53234 #define LIBEXECDIR "$x"
53235 _ACEOF
53236
53237         x="${localstatedir}"
53238         eval y="$x"
53239         while test "x$y" != "x$x"; do
53240                 x="$y"
53241                 eval y="$x"
53242         done
53243
53244 cat >>confdefs.h <<_ACEOF
53245 #define LOCALSTATEDIR "$x"
53246 _ACEOF
53247
53248         x="${sbindir}"
53249         eval y="$x"
53250         while test "x$y" != "x$x"; do
53251                 x="$y"
53252                 eval y="$x"
53253         done
53254
53255 cat >>confdefs.h <<_ACEOF
53256 #define SBINDIR "$x"
53257 _ACEOF
53258
53259         x="${sysconfdir}"
53260         eval y="$x"
53261         while test "x$y" != "x$x"; do
53262                 x="$y"
53263                 eval y="$x"
53264         done
53265
53266 cat >>confdefs.h <<_ACEOF
53267 #define SYSCONFDIR "$x"
53268 _ACEOF
53269
53270
53271
53272 LTLIBOBJS=`echo "$LIBOBJS" |
53273         sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
53274
53275
53276
53277
53278
53279                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         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"
53280
53281
53282 cat >confcache <<\_ACEOF
53283 # This file is a shell script that caches the results of configure
53284 # tests run on this system so they can be shared between configure
53285 # scripts and configure runs, see configure's option --config-cache.
53286 # It is not useful on other systems.  If it contains results you don't
53287 # want to keep, you may remove or edit it.
53288 #
53289 # config.status only pays attention to the cache file if you give it
53290 # the --recheck option to rerun configure.
53291 #
53292 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53293 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53294 # following values.
53295
53296 _ACEOF
53297
53298 # The following way of writing the cache mishandles newlines in values,
53299 # but we know of no workaround that is simple, portable, and efficient.
53300 # So, don't put newlines in cache variables' values.
53301 # Ultrix sh set writes to stderr and can't be redirected directly,
53302 # and sets the high bit in the cache file unless we assign to the vars.
53303 {
53304   (set) 2>&1 |
53305     case `(ac_space=' '; set | grep ac_space) 2>&1` in
53306     *ac_space=\ *)
53307       # `set' does not quote correctly, so add quotes (double-quote
53308       # substitution turns \\\\ into \\, and sed turns \\ into \).
53309       sed -n \
53310         "s/'/'\\\\''/g;
53311           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53312       ;;
53313     *)
53314       # `set' quotes correctly as required by POSIX, so do not add quotes.
53315       sed -n \
53316         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
53317       ;;
53318     esac;
53319 } |
53320   sed '
53321      t clear
53322      : clear
53323      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53324      t end
53325      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53326      : end' >>confcache
53327 if diff $cache_file confcache >/dev/null 2>&1; then :; else
53328   if test -w $cache_file; then
53329     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
53330     cat confcache >$cache_file
53331   else
53332     echo "not updating unwritable cache $cache_file"
53333   fi
53334 fi
53335 rm -f confcache
53336
53337 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53338 # Let make expand exec_prefix.
53339 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53340
53341 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53342 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53343 # trailing colons and then remove the whole line if VPATH becomes empty
53344 # (actually we leave an empty line to preserve line numbers).
53345 if test "x$srcdir" = x.; then
53346   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53347 s/:*\$(srcdir):*/:/;
53348 s/:*\${srcdir}:*/:/;
53349 s/:*@srcdir@:*/:/;
53350 s/^\([^=]*=[     ]*\):*/\1/;
53351 s/:*$//;
53352 s/^[^=]*=[       ]*$//;
53353 }'
53354 fi
53355
53356 DEFS=-DHAVE_CONFIG_H
53357
53358 ac_libobjs=
53359 ac_ltlibobjs=
53360 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53361   # 1. Remove the extension, and $U if already installed.
53362   ac_i=`echo "$ac_i" |
53363          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53364   # 2. Add them.
53365   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53366   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53367 done
53368 LIBOBJS=$ac_libobjs
53369
53370 LTLIBOBJS=$ac_ltlibobjs
53371
53372
53373 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
53374   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
53375 Usually this means the macro was only invoked conditionally." >&5
53376 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
53377 Usually this means the macro was only invoked conditionally." >&2;}
53378    { (exit 1); exit 1; }; }
53379 fi
53380 if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
53381   { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
53382 Usually this means the macro was only invoked conditionally." >&5
53383 echo "$as_me: error: conditional \"KRB4\" was never defined.
53384 Usually this means the macro was only invoked conditionally." >&2;}
53385    { (exit 1); exit 1; }; }
53386 fi
53387 if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
53388   { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
53389 Usually this means the macro was only invoked conditionally." >&5
53390 echo "$as_me: error: conditional \"KRB5\" was never defined.
53391 Usually this means the macro was only invoked conditionally." >&2;}
53392    { (exit 1); exit 1; }; }
53393 fi
53394 if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
53395   { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
53396 Usually this means the macro was only invoked conditionally." >&5
53397 echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
53398 Usually this means the macro was only invoked conditionally." >&2;}
53399    { (exit 1); exit 1; }; }
53400 fi
53401 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
53402   { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
53403 Usually this means the macro was only invoked conditionally." >&5
53404 echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
53405 Usually this means the macro was only invoked conditionally." >&2;}
53406    { (exit 1); exit 1; }; }
53407 fi
53408 if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
53409   { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
53410 Usually this means the macro was only invoked conditionally." >&5
53411 echo "$as_me: error: conditional \"DCE\" was never defined.
53412 Usually this means the macro was only invoked conditionally." >&2;}
53413    { (exit 1); exit 1; }; }
53414 fi
53415 if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
53416   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
53417 Usually this means the macro was only invoked conditionally." >&5
53418 echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
53419 Usually this means the macro was only invoked conditionally." >&2;}
53420    { (exit 1); exit 1; }; }
53421 fi
53422 if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
53423   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
53424 Usually this means the macro was only invoked conditionally." >&5
53425 echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
53426 Usually this means the macro was only invoked conditionally." >&2;}
53427    { (exit 1); exit 1; }; }
53428 fi
53429 if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
53430   { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
53431 Usually this means the macro was only invoked conditionally." >&5
53432 echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
53433 Usually this means the macro was only invoked conditionally." >&2;}
53434    { (exit 1); exit 1; }; }
53435 fi
53436 if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
53437   { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
53438 Usually this means the macro was only invoked conditionally." >&5
53439 echo "$as_me: error: conditional \"have_err_h\" was never defined.
53440 Usually this means the macro was only invoked conditionally." >&2;}
53441    { (exit 1); exit 1; }; }
53442 fi
53443 if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
53444   { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
53445 Usually this means the macro was only invoked conditionally." >&5
53446 echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
53447 Usually this means the macro was only invoked conditionally." >&2;}
53448    { (exit 1); exit 1; }; }
53449 fi
53450 if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
53451   { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
53452 Usually this means the macro was only invoked conditionally." >&5
53453 echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
53454 Usually this means the macro was only invoked conditionally." >&2;}
53455    { (exit 1); exit 1; }; }
53456 fi
53457 if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
53458   { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
53459 Usually this means the macro was only invoked conditionally." >&5
53460 echo "$as_me: error: conditional \"have_vis_h\" was never defined.
53461 Usually this means the macro was only invoked conditionally." >&2;}
53462    { (exit 1); exit 1; }; }
53463 fi
53464 if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
53465   { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
53466 Usually this means the macro was only invoked conditionally." >&5
53467 echo "$as_me: error: conditional \"have_glob_h\" was never defined.
53468 Usually this means the macro was only invoked conditionally." >&2;}
53469    { (exit 1); exit 1; }; }
53470 fi
53471 if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
53472   { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
53473 Usually this means the macro was only invoked conditionally." >&5
53474 echo "$as_me: error: conditional \"OTP\" was never defined.
53475 Usually this means the macro was only invoked conditionally." >&2;}
53476    { (exit 1); exit 1; }; }
53477 fi
53478 if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
53479   { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
53480 Usually this means the macro was only invoked conditionally." >&5
53481 echo "$as_me: error: conditional \"CATMAN\" was never defined.
53482 Usually this means the macro was only invoked conditionally." >&2;}
53483    { (exit 1); exit 1; }; }
53484 fi
53485 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
53486   { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
53487 Usually this means the macro was only invoked conditionally." >&5
53488 echo "$as_me: error: conditional \"AIX\" was never defined.
53489 Usually this means the macro was only invoked conditionally." >&2;}
53490    { (exit 1); exit 1; }; }
53491 fi
53492 if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
53493   { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
53494 Usually this means the macro was only invoked conditionally." >&5
53495 echo "$as_me: error: conditional \"AIX4\" was never defined.
53496 Usually this means the macro was only invoked conditionally." >&2;}
53497    { (exit 1); exit 1; }; }
53498 fi
53499 if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
53500   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
53501 Usually this means the macro was only invoked conditionally." >&5
53502 echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
53503 Usually this means the macro was only invoked conditionally." >&2;}
53504    { (exit 1); exit 1; }; }
53505 fi
53506 if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
53507   { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
53508 Usually this means the macro was only invoked conditionally." >&5
53509 echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
53510 Usually this means the macro was only invoked conditionally." >&2;}
53511    { (exit 1); exit 1; }; }
53512 fi
53513 if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
53514   { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
53515 Usually this means the macro was only invoked conditionally." >&5
53516 echo "$as_me: error: conditional \"IRIX\" was never defined.
53517 Usually this means the macro was only invoked conditionally." >&2;}
53518    { (exit 1); exit 1; }; }
53519 fi
53520 if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
53521   { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
53522 Usually this means the macro was only invoked conditionally." >&5
53523 echo "$as_me: error: conditional \"HAVE_X\" was never defined.
53524 Usually this means the macro was only invoked conditionally." >&2;}
53525    { (exit 1); exit 1; }; }
53526 fi
53527 if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
53528   { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
53529 Usually this means the macro was only invoked conditionally." >&5
53530 echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
53531 Usually this means the macro was only invoked conditionally." >&2;}
53532    { (exit 1); exit 1; }; }
53533 fi
53534 if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
53535   { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
53536 Usually this means the macro was only invoked conditionally." >&5
53537 echo "$as_me: error: conditional \"el_compat\" was never defined.
53538 Usually this means the macro was only invoked conditionally." >&2;}
53539    { (exit 1); exit 1; }; }
53540 fi
53541
53542 : ${CONFIG_STATUS=./config.status}
53543 ac_clean_files_save=$ac_clean_files
53544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53545 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53546 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53547 cat >$CONFIG_STATUS <<_ACEOF
53548 #! $SHELL
53549 # Generated by $as_me.
53550 # Run this file to recreate the current configuration.
53551 # Compiler output produced by configure, useful for debugging
53552 # configure, is in config.log if it exists.
53553
53554 debug=false
53555 ac_cs_recheck=false
53556 ac_cs_silent=false
53557 SHELL=\${CONFIG_SHELL-$SHELL}
53558 _ACEOF
53559
53560 cat >>$CONFIG_STATUS <<\_ACEOF
53561 ## --------------------- ##
53562 ## M4sh Initialization.  ##
53563 ## --------------------- ##
53564
53565 # Be Bourne compatible
53566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53567   emulate sh
53568   NULLCMD=:
53569   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53570   # is contrary to our usage.  Disable this feature.
53571   alias -g '${1+"$@"}'='"$@"'
53572 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53573   set -o posix
53574 fi
53575 DUALCASE=1; export DUALCASE # for MKS sh
53576
53577 # Support unset when possible.
53578 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53579   as_unset=unset
53580 else
53581   as_unset=false
53582 fi
53583
53584
53585 # Work around bugs in pre-3.0 UWIN ksh.
53586 $as_unset ENV MAIL MAILPATH
53587 PS1='$ '
53588 PS2='> '
53589 PS4='+ '
53590
53591 # NLS nuisances.
53592 for as_var in \
53593   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53594   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53595   LC_TELEPHONE LC_TIME
53596 do
53597   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53598     eval $as_var=C; export $as_var
53599   else
53600     $as_unset $as_var
53601   fi
53602 done
53603
53604 # Required to use basename.
53605 if expr a : '\(a\)' >/dev/null 2>&1; then
53606   as_expr=expr
53607 else
53608   as_expr=false
53609 fi
53610
53611 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53612   as_basename=basename
53613 else
53614   as_basename=false
53615 fi
53616
53617
53618 # Name of the executable.
53619 as_me=`$as_basename "$0" ||
53620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53621          X"$0" : 'X\(//\)$' \| \
53622          X"$0" : 'X\(/\)$' \| \
53623          .     : '\(.\)' 2>/dev/null ||
53624 echo X/"$0" |
53625     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53626           /^X\/\(\/\/\)$/{ s//\1/; q; }
53627           /^X\/\(\/\).*/{ s//\1/; q; }
53628           s/.*/./; q'`
53629
53630
53631 # PATH needs CR, and LINENO needs CR and PATH.
53632 # Avoid depending upon Character Ranges.
53633 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53634 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53635 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53636 as_cr_digits='0123456789'
53637 as_cr_alnum=$as_cr_Letters$as_cr_digits
53638
53639 # The user is always right.
53640 if test "${PATH_SEPARATOR+set}" != set; then
53641   echo "#! /bin/sh" >conf$$.sh
53642   echo  "exit 0"   >>conf$$.sh
53643   chmod +x conf$$.sh
53644   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53645     PATH_SEPARATOR=';'
53646   else
53647     PATH_SEPARATOR=:
53648   fi
53649   rm -f conf$$.sh
53650 fi
53651
53652
53653   as_lineno_1=$LINENO
53654   as_lineno_2=$LINENO
53655   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53656   test "x$as_lineno_1" != "x$as_lineno_2" &&
53657   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53658   # Find who we are.  Look in the path if we contain no path at all
53659   # relative or not.
53660   case $0 in
53661     *[\\/]* ) as_myself=$0 ;;
53662     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53663 for as_dir in $PATH
53664 do
53665   IFS=$as_save_IFS
53666   test -z "$as_dir" && as_dir=.
53667   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53668 done
53669
53670        ;;
53671   esac
53672   # We did not find ourselves, most probably we were run as `sh COMMAND'
53673   # in which case we are not to be found in the path.
53674   if test "x$as_myself" = x; then
53675     as_myself=$0
53676   fi
53677   if test ! -f "$as_myself"; then
53678     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53679 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53680    { (exit 1); exit 1; }; }
53681   fi
53682   case $CONFIG_SHELL in
53683   '')
53684     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53685 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53686 do
53687   IFS=$as_save_IFS
53688   test -z "$as_dir" && as_dir=.
53689   for as_base in sh bash ksh sh5; do
53690          case $as_dir in
53691          /*)
53692            if ("$as_dir/$as_base" -c '
53693   as_lineno_1=$LINENO
53694   as_lineno_2=$LINENO
53695   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53696   test "x$as_lineno_1" != "x$as_lineno_2" &&
53697   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53698              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53699              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53700              CONFIG_SHELL=$as_dir/$as_base
53701              export CONFIG_SHELL
53702              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53703            fi;;
53704          esac
53705        done
53706 done
53707 ;;
53708   esac
53709
53710   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53711   # uniformly replaced by the line number.  The first 'sed' inserts a
53712   # line-number line before each line; the second 'sed' does the real
53713   # work.  The second script uses 'N' to pair each line-number line
53714   # with the numbered line, and appends trailing '-' during
53715   # substitution so that $LINENO is not a special case at line end.
53716   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53717   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53718   sed '=' <$as_myself |
53719     sed '
53720       N
53721       s,$,-,
53722       : loop
53723       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53724       t loop
53725       s,-$,,
53726       s,^['$as_cr_digits']*\n,,
53727     ' >$as_me.lineno &&
53728   chmod +x $as_me.lineno ||
53729     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53730 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53731    { (exit 1); exit 1; }; }
53732
53733   # Don't try to exec as it changes $[0], causing all sort of problems
53734   # (the dirname of $[0] is not the place where we might find the
53735   # original and so on.  Autoconf is especially sensible to this).
53736   . ./$as_me.lineno
53737   # Exit status is that of the last command.
53738   exit
53739 }
53740
53741
53742 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53743   *c*,-n*) ECHO_N= ECHO_C='
53744 ' ECHO_T='      ' ;;
53745   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53746   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53747 esac
53748
53749 if expr a : '\(a\)' >/dev/null 2>&1; then
53750   as_expr=expr
53751 else
53752   as_expr=false
53753 fi
53754
53755 rm -f conf$$ conf$$.exe conf$$.file
53756 echo >conf$$.file
53757 if ln -s conf$$.file conf$$ 2>/dev/null; then
53758   # We could just check for DJGPP; but this test a) works b) is more generic
53759   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53760   if test -f conf$$.exe; then
53761     # Don't use ln at all; we don't have any links
53762     as_ln_s='cp -p'
53763   else
53764     as_ln_s='ln -s'
53765   fi
53766 elif ln conf$$.file conf$$ 2>/dev/null; then
53767   as_ln_s=ln
53768 else
53769   as_ln_s='cp -p'
53770 fi
53771 rm -f conf$$ conf$$.exe conf$$.file
53772
53773 if mkdir -p . 2>/dev/null; then
53774   as_mkdir_p=:
53775 else
53776   test -d ./-p && rmdir ./-p
53777   as_mkdir_p=false
53778 fi
53779
53780 as_executable_p="test -f"
53781
53782 # Sed expression to map a string onto a valid CPP name.
53783 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53784
53785 # Sed expression to map a string onto a valid variable name.
53786 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53787
53788
53789 # IFS
53790 # We need space, tab and new line, in precisely that order.
53791 as_nl='
53792 '
53793 IFS="   $as_nl"
53794
53795 # CDPATH.
53796 $as_unset CDPATH
53797
53798 exec 6>&1
53799
53800 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53801 # report actual input values of CONFIG_FILES etc. instead of their
53802 # values after options handling.  Logging --version etc. is OK.
53803 exec 5>>config.log
53804 {
53805   echo
53806   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53807 ## Running $as_me. ##
53808 _ASBOX
53809 } >&5
53810 cat >&5 <<_CSEOF
53811
53812 This file was extended by Heimdal $as_me 0.6.3, which was
53813 generated by GNU Autoconf 2.59.  Invocation command line was
53814
53815   CONFIG_FILES    = $CONFIG_FILES
53816   CONFIG_HEADERS  = $CONFIG_HEADERS
53817   CONFIG_LINKS    = $CONFIG_LINKS
53818   CONFIG_COMMANDS = $CONFIG_COMMANDS
53819   $ $0 $@
53820
53821 _CSEOF
53822 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53823 echo >&5
53824 _ACEOF
53825
53826 # Files that config.status was made for.
53827 if test -n "$ac_config_files"; then
53828   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53829 fi
53830
53831 if test -n "$ac_config_headers"; then
53832   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53833 fi
53834
53835 if test -n "$ac_config_links"; then
53836   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53837 fi
53838
53839 if test -n "$ac_config_commands"; then
53840   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53841 fi
53842
53843 cat >>$CONFIG_STATUS <<\_ACEOF
53844
53845 ac_cs_usage="\
53846 \`$as_me' instantiates files from templates according to the
53847 current configuration.
53848
53849 Usage: $0 [OPTIONS] [FILE]...
53850
53851   -h, --help       print this help, then exit
53852   -V, --version    print version number, then exit
53853   -q, --quiet      do not print progress messages
53854   -d, --debug      don't remove temporary files
53855       --recheck    update $as_me by reconfiguring in the same conditions
53856   --file=FILE[:TEMPLATE]
53857                    instantiate the configuration file FILE
53858   --header=FILE[:TEMPLATE]
53859                    instantiate the configuration header FILE
53860
53861 Configuration files:
53862 $config_files
53863
53864 Configuration headers:
53865 $config_headers
53866
53867 Report bugs to <bug-autoconf@gnu.org>."
53868 _ACEOF
53869
53870 cat >>$CONFIG_STATUS <<_ACEOF
53871 ac_cs_version="\\
53872 Heimdal config.status 0.6.3
53873 configured by $0, generated by GNU Autoconf 2.59,
53874   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53875
53876 Copyright (C) 2003 Free Software Foundation, Inc.
53877 This config.status script is free software; the Free Software Foundation
53878 gives unlimited permission to copy, distribute and modify it."
53879 srcdir=$srcdir
53880 INSTALL="$INSTALL"
53881 _ACEOF
53882
53883 cat >>$CONFIG_STATUS <<\_ACEOF
53884 # If no file are specified by the user, then we need to provide default
53885 # value.  By we need to know if files were specified by the user.
53886 ac_need_defaults=:
53887 while test $# != 0
53888 do
53889   case $1 in
53890   --*=*)
53891     ac_option=`expr "x$1" : 'x\([^=]*\)='`
53892     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53893     ac_shift=:
53894     ;;
53895   -*)
53896     ac_option=$1
53897     ac_optarg=$2
53898     ac_shift=shift
53899     ;;
53900   *) # This is not an option, so the user has probably given explicit
53901      # arguments.
53902      ac_option=$1
53903      ac_need_defaults=false;;
53904   esac
53905
53906   case $ac_option in
53907   # Handling of the options.
53908 _ACEOF
53909 cat >>$CONFIG_STATUS <<\_ACEOF
53910   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53911     ac_cs_recheck=: ;;
53912   --version | --vers* | -V )
53913     echo "$ac_cs_version"; exit 0 ;;
53914   --he | --h)
53915     # Conflict between --help and --header
53916     { { echo "$as_me:$LINENO: error: ambiguous option: $1
53917 Try \`$0 --help' for more information." >&5
53918 echo "$as_me: error: ambiguous option: $1
53919 Try \`$0 --help' for more information." >&2;}
53920    { (exit 1); exit 1; }; };;
53921   --help | --hel | -h )
53922     echo "$ac_cs_usage"; exit 0 ;;
53923   --debug | --d* | -d )
53924     debug=: ;;
53925   --file | --fil | --fi | --f )
53926     $ac_shift
53927     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53928     ac_need_defaults=false;;
53929   --header | --heade | --head | --hea )
53930     $ac_shift
53931     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53932     ac_need_defaults=false;;
53933   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53934   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53935     ac_cs_silent=: ;;
53936
53937   # This is an error.
53938   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53939 Try \`$0 --help' for more information." >&5
53940 echo "$as_me: error: unrecognized option: $1
53941 Try \`$0 --help' for more information." >&2;}
53942    { (exit 1); exit 1; }; } ;;
53943
53944   *) ac_config_targets="$ac_config_targets $1" ;;
53945
53946   esac
53947   shift
53948 done
53949
53950 ac_configure_extra_args=
53951
53952 if $ac_cs_silent; then
53953   exec 6>/dev/null
53954   ac_configure_extra_args="$ac_configure_extra_args --silent"
53955 fi
53956
53957 _ACEOF
53958 cat >>$CONFIG_STATUS <<_ACEOF
53959 if \$ac_cs_recheck; then
53960   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53961   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53962 fi
53963
53964 _ACEOF
53965
53966
53967
53968
53969
53970 cat >>$CONFIG_STATUS <<\_ACEOF
53971 for ac_config_target in $ac_config_targets
53972 do
53973   case "$ac_config_target" in
53974   # Handling of arguments.
53975   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53976   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
53977   "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
53978   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
53979   "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
53980   "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
53981   "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
53982   "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
53983   "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
53984   "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
53985   "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
53986   "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
53987   "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
53988   "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
53989   "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
53990   "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
53991   "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
53992   "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
53993   "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
53994   "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
53995   "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
53996   "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
53997   "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
53998   "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
53999   "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
54000   "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
54001   "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
54002   "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
54003   "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
54004   "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
54005   "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
54006   "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
54007   "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
54008   "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
54009   "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
54010   "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
54011   "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
54012   "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
54013   "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
54014   "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
54015   "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
54016   "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
54017   "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
54018   "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
54019   "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
54020   "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
54021   "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
54022   "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
54023   "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
54024   "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
54025   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
54026   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
54027   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
54028   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54029 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54030    { (exit 1); exit 1; }; };;
54031   esac
54032 done
54033
54034 # If the user did not use the arguments to specify the items to instantiate,
54035 # then the envvar interface is used.  Set only those that are not.
54036 # We use the long form for the default assignment because of an extremely
54037 # bizarre bug on SunOS 4.1.3.
54038 if $ac_need_defaults; then
54039   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54040   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54041 fi
54042
54043 # Have a temporary directory for convenience.  Make it in the build tree
54044 # simply because there is no reason to put it here, and in addition,
54045 # creating and moving files from /tmp can sometimes cause problems.
54046 # Create a temporary directory, and hook for its removal unless debugging.
54047 $debug ||
54048 {
54049   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
54050   trap '{ (exit 1); exit 1; }' 1 2 13 15
54051 }
54052
54053 # Create a (secure) tmp directory for tmp files.
54054
54055 {
54056   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
54057   test -n "$tmp" && test -d "$tmp"
54058 }  ||
54059 {
54060   tmp=./confstat$$-$RANDOM
54061   (umask 077 && mkdir $tmp)
54062 } ||
54063 {
54064    echo "$me: cannot create a temporary directory in ." >&2
54065    { (exit 1); exit 1; }
54066 }
54067
54068 _ACEOF
54069
54070 cat >>$CONFIG_STATUS <<_ACEOF
54071
54072 #
54073 # CONFIG_FILES section.
54074 #
54075
54076 # No need to generate the scripts if there are no CONFIG_FILES.
54077 # This happens for instance when ./config.status config.h
54078 if test -n "\$CONFIG_FILES"; then
54079   # Protect against being on the right side of a sed subst in config.status.
54080   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
54081    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
54082 s,@SHELL@,$SHELL,;t t
54083 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
54084 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
54085 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
54086 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
54087 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
54088 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
54089 s,@exec_prefix@,$exec_prefix,;t t
54090 s,@prefix@,$prefix,;t t
54091 s,@program_transform_name@,$program_transform_name,;t t
54092 s,@bindir@,$bindir,;t t
54093 s,@sbindir@,$sbindir,;t t
54094 s,@libexecdir@,$libexecdir,;t t
54095 s,@datadir@,$datadir,;t t
54096 s,@sysconfdir@,$sysconfdir,;t t
54097 s,@sharedstatedir@,$sharedstatedir,;t t
54098 s,@localstatedir@,$localstatedir,;t t
54099 s,@libdir@,$libdir,;t t
54100 s,@includedir@,$includedir,;t t
54101 s,@oldincludedir@,$oldincludedir,;t t
54102 s,@infodir@,$infodir,;t t
54103 s,@mandir@,$mandir,;t t
54104 s,@build_alias@,$build_alias,;t t
54105 s,@host_alias@,$host_alias,;t t
54106 s,@target_alias@,$target_alias,;t t
54107 s,@DEFS@,$DEFS,;t t
54108 s,@ECHO_C@,$ECHO_C,;t t
54109 s,@ECHO_N@,$ECHO_N,;t t
54110 s,@ECHO_T@,$ECHO_T,;t t
54111 s,@LIBS@,$LIBS,;t t
54112 s,@CC@,$CC,;t t
54113 s,@CFLAGS@,$CFLAGS,;t t
54114 s,@LDFLAGS@,$LDFLAGS,;t t
54115 s,@CPPFLAGS@,$CPPFLAGS,;t t
54116 s,@ac_ct_CC@,$ac_ct_CC,;t t
54117 s,@EXEEXT@,$EXEEXT,;t t
54118 s,@OBJEXT@,$OBJEXT,;t t
54119 s,@CPP@,$CPP,;t t
54120 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
54121 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
54122 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
54123 s,@CYGPATH_W@,$CYGPATH_W,;t t
54124 s,@PACKAGE@,$PACKAGE,;t t
54125 s,@VERSION@,$VERSION,;t t
54126 s,@ACLOCAL@,$ACLOCAL,;t t
54127 s,@AUTOCONF@,$AUTOCONF,;t t
54128 s,@AUTOMAKE@,$AUTOMAKE,;t t
54129 s,@AUTOHEADER@,$AUTOHEADER,;t t
54130 s,@MAKEINFO@,$MAKEINFO,;t t
54131 s,@AMTAR@,$AMTAR,;t t
54132 s,@install_sh@,$install_sh,;t t
54133 s,@STRIP@,$STRIP,;t t
54134 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
54135 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
54136 s,@mkdir_p@,$mkdir_p,;t t
54137 s,@AWK@,$AWK,;t t
54138 s,@SET_MAKE@,$SET_MAKE,;t t
54139 s,@am__leading_dot@,$am__leading_dot,;t t
54140 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
54141 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
54142 s,@MAINT@,$MAINT,;t t
54143 s,@build@,$build,;t t
54144 s,@build_cpu@,$build_cpu,;t t
54145 s,@build_vendor@,$build_vendor,;t t
54146 s,@build_os@,$build_os,;t t
54147 s,@host@,$host,;t t
54148 s,@host_cpu@,$host_cpu,;t t
54149 s,@host_vendor@,$host_vendor,;t t
54150 s,@host_os@,$host_os,;t t
54151 s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
54152 s,@YACC@,$YACC,;t t
54153 s,@LEX@,$LEX,;t t
54154 s,@LEXLIB@,$LEXLIB,;t t
54155 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
54156 s,@LN_S@,$LN_S,;t t
54157 s,@EGREP@,$EGREP,;t t
54158 s,@ECHO@,$ECHO,;t t
54159 s,@AR@,$AR,;t t
54160 s,@ac_ct_AR@,$ac_ct_AR,;t t
54161 s,@RANLIB@,$RANLIB,;t t
54162 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
54163 s,@CXX@,$CXX,;t t
54164 s,@CXXFLAGS@,$CXXFLAGS,;t t
54165 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
54166 s,@CXXCPP@,$CXXCPP,;t t
54167 s,@F77@,$F77,;t t
54168 s,@FFLAGS@,$FFLAGS,;t t
54169 s,@ac_ct_F77@,$ac_ct_F77,;t t
54170 s,@LIBTOOL@,$LIBTOOL,;t t
54171 s,@WFLAGS@,$WFLAGS,;t t
54172 s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
54173 s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
54174 s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
54175 s,@LIB_openldap@,$LIB_openldap,;t t
54176 s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
54177 s,@LIB_krb4@,$LIB_krb4,;t t
54178 s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
54179 s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
54180 s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
54181 s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
54182 s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t
54183 s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t
54184 s,@KRB4_TRUE@,$KRB4_TRUE,;t t
54185 s,@KRB4_FALSE@,$KRB4_FALSE,;t t
54186 s,@KRB5_TRUE@,$KRB5_TRUE,;t t
54187 s,@KRB5_FALSE@,$KRB5_FALSE,;t t
54188 s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
54189 s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
54190 s,@LIB_kdb@,$LIB_kdb,;t t
54191 s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t
54192 s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t
54193 s,@DIR_des@,$DIR_des,;t t
54194 s,@INCLUDE_des@,$INCLUDE_des,;t t
54195 s,@LIB_des@,$LIB_des,;t t
54196 s,@LIB_des_a@,$LIB_des_a,;t t
54197 s,@LIB_des_so@,$LIB_des_so,;t t
54198 s,@LIB_des_appl@,$LIB_des_appl,;t t
54199 s,@DCE_TRUE@,$DCE_TRUE,;t t
54200 s,@DCE_FALSE@,$DCE_FALSE,;t t
54201 s,@dpagaix_cflags@,$dpagaix_cflags,;t t
54202 s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t
54203 s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t
54204 s,@LIB_db_create@,$LIB_db_create,;t t
54205 s,@LIB_dbopen@,$LIB_dbopen,;t t
54206 s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
54207 s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t
54208 s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t
54209 s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t
54210 s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t
54211 s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t
54212 s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t
54213 s,@DBLIB@,$DBLIB,;t t
54214 s,@LIB_NDBM@,$LIB_NDBM,;t t
54215 s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
54216 s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
54217 s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
54218 s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
54219 s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
54220 s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
54221 s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
54222 s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
54223 s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
54224 s,@LIB_socket@,$LIB_socket,;t t
54225 s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
54226 s,@LIB_syslog@,$LIB_syslog,;t t
54227 s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
54228 s,@LIB_res_search@,$LIB_res_search,;t t
54229 s,@LIB_res_nsearch@,$LIB_res_nsearch,;t t
54230 s,@LIB_dn_expand@,$LIB_dn_expand,;t t
54231 s,@LIBOBJS@,$LIBOBJS,;t t
54232 s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
54233 s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
54234 s,@LIB_getsockopt@,$LIB_getsockopt,;t t
54235 s,@LIB_setsockopt@,$LIB_setsockopt,;t t
54236 s,@LIB_hstrerror@,$LIB_hstrerror,;t t
54237 s,@LIB_bswap16@,$LIB_bswap16,;t t
54238 s,@LIB_bswap32@,$LIB_bswap32,;t t
54239 s,@LIB_pidfile@,$LIB_pidfile,;t t
54240 s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t
54241 s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t
54242 s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t
54243 s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t
54244 s,@LIB_crypt@,$LIB_crypt,;t t
54245 s,@DIR_roken@,$DIR_roken,;t t
54246 s,@LIB_roken@,$LIB_roken,;t t
54247 s,@INCLUDES_roken@,$INCLUDES_roken,;t t
54248 s,@LIB_otp@,$LIB_otp,;t t
54249 s,@OTP_TRUE@,$OTP_TRUE,;t t
54250 s,@OTP_FALSE@,$OTP_FALSE,;t t
54251 s,@LIB_security@,$LIB_security,;t t
54252 s,@NROFF@,$NROFF,;t t
54253 s,@GROFF@,$GROFF,;t t
54254 s,@CATMAN@,$CATMAN,;t t
54255 s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
54256 s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
54257 s,@CATMANEXT@,$CATMANEXT,;t t
54258 s,@INCLUDE_readline@,$INCLUDE_readline,;t t
54259 s,@LIB_readline@,$LIB_readline,;t t
54260 s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
54261 s,@LIB_hesiod@,$LIB_hesiod,;t t
54262 s,@AIX_TRUE@,$AIX_TRUE,;t t
54263 s,@AIX_FALSE@,$AIX_FALSE,;t t
54264 s,@AIX4_TRUE@,$AIX4_TRUE,;t t
54265 s,@AIX4_FALSE@,$AIX4_FALSE,;t t
54266 s,@LIB_dlopen@,$LIB_dlopen,;t t
54267 s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
54268 s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
54269 s,@LIB_loadquery@,$LIB_loadquery,;t t
54270 s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
54271 s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
54272 s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
54273 s,@IRIX_TRUE@,$IRIX_TRUE,;t t
54274 s,@IRIX_FALSE@,$IRIX_FALSE,;t t
54275 s,@X_CFLAGS@,$X_CFLAGS,;t t
54276 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
54277 s,@X_LIBS@,$X_LIBS,;t t
54278 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
54279 s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
54280 s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
54281 s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
54282 s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
54283 s,@LIB_XauFileName@,$LIB_XauFileName,;t t
54284 s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
54285 s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
54286 s,@LIB_logwtmp@,$LIB_logwtmp,;t t
54287 s,@LIB_logout@,$LIB_logout,;t t
54288 s,@LIB_openpty@,$LIB_openpty,;t t
54289 s,@LIB_tgetent@,$LIB_tgetent,;t t
54290 s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
54291 s,@LIB_el_init@,$LIB_el_init,;t t
54292 s,@el_compat_TRUE@,$el_compat_TRUE,;t t
54293 s,@el_compat_FALSE@,$el_compat_FALSE,;t t
54294 s,@COMPILE_ET@,$COMPILE_ET,;t t
54295 s,@DIR_com_err@,$DIR_com_err,;t t
54296 s,@LIB_com_err@,$LIB_com_err,;t t
54297 s,@LIB_com_err_a@,$LIB_com_err_a,;t t
54298 s,@LIB_com_err_so@,$LIB_com_err_so,;t t
54299 s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
54300 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
54301 CEOF
54302
54303 _ACEOF
54304
54305   cat >>$CONFIG_STATUS <<\_ACEOF
54306   # Split the substitutions into bite-sized pieces for seds with
54307   # small command number limits, like on Digital OSF/1 and HP-UX.
54308   ac_max_sed_lines=48
54309   ac_sed_frag=1 # Number of current file.
54310   ac_beg=1 # First line for current file.
54311   ac_end=$ac_max_sed_lines # Line after last line for current file.
54312   ac_more_lines=:
54313   ac_sed_cmds=
54314   while $ac_more_lines; do
54315     if test $ac_beg -gt 1; then
54316       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
54317     else
54318       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
54319     fi
54320     if test ! -s $tmp/subs.frag; then
54321       ac_more_lines=false
54322     else
54323       # The purpose of the label and of the branching condition is to
54324       # speed up the sed processing (if there are no `@' at all, there
54325       # is no need to browse any of the substitutions).
54326       # These are the two extra sed commands mentioned above.
54327       (echo ':t
54328   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
54329       if test -z "$ac_sed_cmds"; then
54330         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
54331       else
54332         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
54333       fi
54334       ac_sed_frag=`expr $ac_sed_frag + 1`
54335       ac_beg=$ac_end
54336       ac_end=`expr $ac_end + $ac_max_sed_lines`
54337     fi
54338   done
54339   if test -z "$ac_sed_cmds"; then
54340     ac_sed_cmds=cat
54341   fi
54342 fi # test -n "$CONFIG_FILES"
54343
54344 _ACEOF
54345 cat >>$CONFIG_STATUS <<\_ACEOF
54346 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
54347   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54348   case $ac_file in
54349   - | *:- | *:-:* ) # input from stdin
54350         cat >$tmp/stdin
54351         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54352         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54353   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54354         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54355   * )   ac_file_in=$ac_file.in ;;
54356   esac
54357
54358   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
54359   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54361          X"$ac_file" : 'X\(//\)[^/]' \| \
54362          X"$ac_file" : 'X\(//\)$' \| \
54363          X"$ac_file" : 'X\(/\)' \| \
54364          .     : '\(.\)' 2>/dev/null ||
54365 echo X"$ac_file" |
54366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54367           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54368           /^X\(\/\/\)$/{ s//\1/; q; }
54369           /^X\(\/\).*/{ s//\1/; q; }
54370           s/.*/./; q'`
54371   { if $as_mkdir_p; then
54372     mkdir -p "$ac_dir"
54373   else
54374     as_dir="$ac_dir"
54375     as_dirs=
54376     while test ! -d "$as_dir"; do
54377       as_dirs="$as_dir $as_dirs"
54378       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54380          X"$as_dir" : 'X\(//\)[^/]' \| \
54381          X"$as_dir" : 'X\(//\)$' \| \
54382          X"$as_dir" : 'X\(/\)' \| \
54383          .     : '\(.\)' 2>/dev/null ||
54384 echo X"$as_dir" |
54385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54386           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54387           /^X\(\/\/\)$/{ s//\1/; q; }
54388           /^X\(\/\).*/{ s//\1/; q; }
54389           s/.*/./; q'`
54390     done
54391     test ! -n "$as_dirs" || mkdir $as_dirs
54392   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54393 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54394    { (exit 1); exit 1; }; }; }
54395
54396   ac_builddir=.
54397
54398 if test "$ac_dir" != .; then
54399   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54400   # A "../" for each directory in $ac_dir_suffix.
54401   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54402 else
54403   ac_dir_suffix= ac_top_builddir=
54404 fi
54405
54406 case $srcdir in
54407   .)  # No --srcdir option.  We are building in place.
54408     ac_srcdir=.
54409     if test -z "$ac_top_builddir"; then
54410        ac_top_srcdir=.
54411     else
54412        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54413     fi ;;
54414   [\\/]* | ?:[\\/]* )  # Absolute path.
54415     ac_srcdir=$srcdir$ac_dir_suffix;
54416     ac_top_srcdir=$srcdir ;;
54417   *) # Relative path.
54418     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54419     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54420 esac
54421
54422 # Do not use `cd foo && pwd` to compute absolute paths, because
54423 # the directories may not exist.
54424 case `pwd` in
54425 .) ac_abs_builddir="$ac_dir";;
54426 *)
54427   case "$ac_dir" in
54428   .) ac_abs_builddir=`pwd`;;
54429   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54430   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54431   esac;;
54432 esac
54433 case $ac_abs_builddir in
54434 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54435 *)
54436   case ${ac_top_builddir}. in
54437   .) ac_abs_top_builddir=$ac_abs_builddir;;
54438   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54439   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54440   esac;;
54441 esac
54442 case $ac_abs_builddir in
54443 .) ac_abs_srcdir=$ac_srcdir;;
54444 *)
54445   case $ac_srcdir in
54446   .) ac_abs_srcdir=$ac_abs_builddir;;
54447   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54448   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54449   esac;;
54450 esac
54451 case $ac_abs_builddir in
54452 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54453 *)
54454   case $ac_top_srcdir in
54455   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54456   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54457   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54458   esac;;
54459 esac
54460
54461
54462   case $INSTALL in
54463   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54464   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54465   esac
54466
54467   if test x"$ac_file" != x-; then
54468     { echo "$as_me:$LINENO: creating $ac_file" >&5
54469 echo "$as_me: creating $ac_file" >&6;}
54470     rm -f "$ac_file"
54471   fi
54472   # Let's still pretend it is `configure' which instantiates (i.e., don't
54473   # use $as_me), people would be surprised to read:
54474   #    /* config.h.  Generated by config.status.  */
54475   if test x"$ac_file" = x-; then
54476     configure_input=
54477   else
54478     configure_input="$ac_file.  "
54479   fi
54480   configure_input=$configure_input"Generated from `echo $ac_file_in |
54481                                      sed 's,.*/,,'` by configure."
54482
54483   # First look for the input files in the build tree, otherwise in the
54484   # src tree.
54485   ac_file_inputs=`IFS=:
54486     for f in $ac_file_in; do
54487       case $f in
54488       -) echo $tmp/stdin ;;
54489       [\\/$]*)
54490          # Absolute (can't be DOS-style, as IFS=:)
54491          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54492 echo "$as_me: error: cannot find input file: $f" >&2;}
54493    { (exit 1); exit 1; }; }
54494          echo "$f";;
54495       *) # Relative
54496          if test -f "$f"; then
54497            # Build tree
54498            echo "$f"
54499          elif test -f "$srcdir/$f"; then
54500            # Source tree
54501            echo "$srcdir/$f"
54502          else
54503            # /dev/null tree
54504            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54505 echo "$as_me: error: cannot find input file: $f" >&2;}
54506    { (exit 1); exit 1; }; }
54507          fi;;
54508       esac
54509     done` || { (exit 1); exit 1; }
54510 _ACEOF
54511 cat >>$CONFIG_STATUS <<_ACEOF
54512   sed "$ac_vpsub
54513 $extrasub
54514 _ACEOF
54515 cat >>$CONFIG_STATUS <<\_ACEOF
54516 :t
54517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54518 s,@configure_input@,$configure_input,;t t
54519 s,@srcdir@,$ac_srcdir,;t t
54520 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54521 s,@top_srcdir@,$ac_top_srcdir,;t t
54522 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54523 s,@builddir@,$ac_builddir,;t t
54524 s,@abs_builddir@,$ac_abs_builddir,;t t
54525 s,@top_builddir@,$ac_top_builddir,;t t
54526 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54527 s,@INSTALL@,$ac_INSTALL,;t t
54528 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54529   rm -f $tmp/stdin
54530   if test x"$ac_file" != x-; then
54531     mv $tmp/out $ac_file
54532   else
54533     cat $tmp/out
54534     rm -f $tmp/out
54535   fi
54536
54537 done
54538 _ACEOF
54539 cat >>$CONFIG_STATUS <<\_ACEOF
54540
54541 #
54542 # CONFIG_HEADER section.
54543 #
54544
54545 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54546 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54547 #
54548 # ac_d sets the value in "#define NAME VALUE" lines.
54549 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
54550 ac_dB='[         ].*$,\1#\2'
54551 ac_dC=' '
54552 ac_dD=',;t'
54553 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54554 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
54555 ac_uB='$,\1#\2define\3'
54556 ac_uC=' '
54557 ac_uD=',;t'
54558
54559 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54560   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54561   case $ac_file in
54562   - | *:- | *:-:* ) # input from stdin
54563         cat >$tmp/stdin
54564         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54565         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54566   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54567         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54568   * )   ac_file_in=$ac_file.in ;;
54569   esac
54570
54571   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54572 echo "$as_me: creating $ac_file" >&6;}
54573
54574   # First look for the input files in the build tree, otherwise in the
54575   # src tree.
54576   ac_file_inputs=`IFS=:
54577     for f in $ac_file_in; do
54578       case $f in
54579       -) echo $tmp/stdin ;;
54580       [\\/$]*)
54581          # Absolute (can't be DOS-style, as IFS=:)
54582          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54583 echo "$as_me: error: cannot find input file: $f" >&2;}
54584    { (exit 1); exit 1; }; }
54585          # Do quote $f, to prevent DOS paths from being IFS'd.
54586          echo "$f";;
54587       *) # Relative
54588          if test -f "$f"; then
54589            # Build tree
54590            echo "$f"
54591          elif test -f "$srcdir/$f"; then
54592            # Source tree
54593            echo "$srcdir/$f"
54594          else
54595            # /dev/null tree
54596            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54597 echo "$as_me: error: cannot find input file: $f" >&2;}
54598    { (exit 1); exit 1; }; }
54599          fi;;
54600       esac
54601     done` || { (exit 1); exit 1; }
54602   # Remove the trailing spaces.
54603   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
54604
54605 _ACEOF
54606
54607 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54608 # `conftest.undefs', that substitutes the proper values into
54609 # config.h.in to produce config.h.  The first handles `#define'
54610 # templates, and the second `#undef' templates.
54611 # And first: Protect against being on the right side of a sed subst in
54612 # config.status.  Protect against being in an unquoted here document
54613 # in config.status.
54614 rm -f conftest.defines conftest.undefs
54615 # Using a here document instead of a string reduces the quoting nightmare.
54616 # Putting comments in sed scripts is not portable.
54617 #
54618 # `end' is used to avoid that the second main sed command (meant for
54619 # 0-ary CPP macros) applies to n-ary macro definitions.
54620 # See the Autoconf documentation for `clear'.
54621 cat >confdef2sed.sed <<\_ACEOF
54622 s/[\\&,]/\\&/g
54623 s,[\\$`],\\&,g
54624 t clear
54625 : clear
54626 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54627 t end
54628 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54629 : end
54630 _ACEOF
54631 # If some macros were called several times there might be several times
54632 # the same #defines, which is useless.  Nevertheless, we may not want to
54633 # sort them, since we want the *last* AC-DEFINE to be honored.
54634 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54635 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54636 rm -f confdef2sed.sed
54637
54638 # This sed command replaces #undef with comments.  This is necessary, for
54639 # example, in the case of _POSIX_SOURCE, which is predefined and required
54640 # on some systems where configure will not decide to define it.
54641 cat >>conftest.undefs <<\_ACEOF
54642 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54643 _ACEOF
54644
54645 # Break up conftest.defines because some shells have a limit on the size
54646 # of here documents, and old seds have small limits too (100 cmds).
54647 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54648 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54649 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54650 echo '  :' >>$CONFIG_STATUS
54651 rm -f conftest.tail
54652 while grep . conftest.defines >/dev/null
54653 do
54654   # Write a limited-size here document to $tmp/defines.sed.
54655   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54656   # Speed up: don't consider the non `#define' lines.
54657   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
54658   # Work around the forget-to-reset-the-flag bug.
54659   echo 't clr' >>$CONFIG_STATUS
54660   echo ': clr' >>$CONFIG_STATUS
54661   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54662   echo 'CEOF
54663   sed -f $tmp/defines.sed $tmp/in >$tmp/out
54664   rm -f $tmp/in
54665   mv $tmp/out $tmp/in
54666 ' >>$CONFIG_STATUS
54667   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54668   rm -f conftest.defines
54669   mv conftest.tail conftest.defines
54670 done
54671 rm -f conftest.defines
54672 echo '  fi # grep' >>$CONFIG_STATUS
54673 echo >>$CONFIG_STATUS
54674
54675 # Break up conftest.undefs because some shells have a limit on the size
54676 # of here documents, and old seds have small limits too (100 cmds).
54677 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54678 rm -f conftest.tail
54679 while grep . conftest.undefs >/dev/null
54680 do
54681   # Write a limited-size here document to $tmp/undefs.sed.
54682   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54683   # Speed up: don't consider the non `#undef'
54684   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
54685   # Work around the forget-to-reset-the-flag bug.
54686   echo 't clr' >>$CONFIG_STATUS
54687   echo ': clr' >>$CONFIG_STATUS
54688   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54689   echo 'CEOF
54690   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54691   rm -f $tmp/in
54692   mv $tmp/out $tmp/in
54693 ' >>$CONFIG_STATUS
54694   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54695   rm -f conftest.undefs
54696   mv conftest.tail conftest.undefs
54697 done
54698 rm -f conftest.undefs
54699
54700 cat >>$CONFIG_STATUS <<\_ACEOF
54701   # Let's still pretend it is `configure' which instantiates (i.e., don't
54702   # use $as_me), people would be surprised to read:
54703   #    /* config.h.  Generated by config.status.  */
54704   if test x"$ac_file" = x-; then
54705     echo "/* Generated by configure.  */" >$tmp/config.h
54706   else
54707     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54708   fi
54709   cat $tmp/in >>$tmp/config.h
54710   rm -f $tmp/in
54711   if test x"$ac_file" != x-; then
54712     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54713       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54714 echo "$as_me: $ac_file is unchanged" >&6;}
54715     else
54716       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54718          X"$ac_file" : 'X\(//\)[^/]' \| \
54719          X"$ac_file" : 'X\(//\)$' \| \
54720          X"$ac_file" : 'X\(/\)' \| \
54721          .     : '\(.\)' 2>/dev/null ||
54722 echo X"$ac_file" |
54723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54724           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54725           /^X\(\/\/\)$/{ s//\1/; q; }
54726           /^X\(\/\).*/{ s//\1/; q; }
54727           s/.*/./; q'`
54728       { if $as_mkdir_p; then
54729     mkdir -p "$ac_dir"
54730   else
54731     as_dir="$ac_dir"
54732     as_dirs=
54733     while test ! -d "$as_dir"; do
54734       as_dirs="$as_dir $as_dirs"
54735       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54737          X"$as_dir" : 'X\(//\)[^/]' \| \
54738          X"$as_dir" : 'X\(//\)$' \| \
54739          X"$as_dir" : 'X\(/\)' \| \
54740          .     : '\(.\)' 2>/dev/null ||
54741 echo X"$as_dir" |
54742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54743           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54744           /^X\(\/\/\)$/{ s//\1/; q; }
54745           /^X\(\/\).*/{ s//\1/; q; }
54746           s/.*/./; q'`
54747     done
54748     test ! -n "$as_dirs" || mkdir $as_dirs
54749   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54750 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54751    { (exit 1); exit 1; }; }; }
54752
54753       rm -f $ac_file
54754       mv $tmp/config.h $ac_file
54755     fi
54756   else
54757     cat $tmp/config.h
54758     rm -f $tmp/config.h
54759   fi
54760 # Compute $ac_file's index in $config_headers.
54761 _am_stamp_count=1
54762 for _am_header in $config_headers :; do
54763   case $_am_header in
54764     $ac_file | $ac_file:* )
54765       break ;;
54766     * )
54767       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54768   esac
54769 done
54770 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54771 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54772          X$ac_file : 'X\(//\)[^/]' \| \
54773          X$ac_file : 'X\(//\)$' \| \
54774          X$ac_file : 'X\(/\)' \| \
54775          .     : '\(.\)' 2>/dev/null ||
54776 echo X$ac_file |
54777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54778           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54779           /^X\(\/\/\)$/{ s//\1/; q; }
54780           /^X\(\/\).*/{ s//\1/; q; }
54781           s/.*/./; q'`/stamp-h$_am_stamp_count
54782 done
54783 _ACEOF
54784
54785 cat >>$CONFIG_STATUS <<\_ACEOF
54786
54787 { (exit 0); exit 0; }
54788 _ACEOF
54789 chmod +x $CONFIG_STATUS
54790 ac_clean_files=$ac_clean_files_save
54791
54792
54793 # configure is writing to config.log, and then calls config.status.
54794 # config.status does its own redirection, appending to config.log.
54795 # Unfortunately, on DOS this fails, as config.log is still kept open
54796 # by configure, so config.status won't be able to write to it; its
54797 # output is simply discarded.  So we exec the FD to /dev/null,
54798 # effectively closing config.log, so it can be properly (re)opened and
54799 # appended to by config.status.  When coming back to configure, we
54800 # need to make the FD available again.
54801 if test "$no_create" != yes; then
54802   ac_cs_success=:
54803   ac_config_status_args=
54804   test "$silent" = yes &&
54805     ac_config_status_args="$ac_config_status_args --quiet"
54806   exec 5>/dev/null
54807   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54808   exec 5>>config.log
54809   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54810   # would make configure fail if this is the last instruction.
54811   $ac_cs_success || { (exit 1); exit 1; }
54812 fi
54813
54814
54815
54816 cat > include/newversion.h.in <<EOF
54817 const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
54818 const char *heimdal_version = "Heimdal 0.6.3";
54819 EOF
54820
54821 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
54822         echo "include/version.h is unchanged"
54823         rm -f include/newversion.h.in
54824 else
54825         echo "creating include/version.h"
54826         User=${USER-${LOGNAME}}
54827         Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
54828         Date=`date`
54829         mv -f include/newversion.h.in include/version.h.in
54830         sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
54831 fi