2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for Heimdal 1.5.2.
6 # Report bugs to <heimdal-bugs@h5l.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE
=1; export DUALCASE
# for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print
-rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
58 as_echo_n='/usr
/ucb
/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
71 as_echo_n='sh
-c $as_echo_n_body as_echo
'
74 as_echo='sh
-c $as_echo_body as_echo
'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev
/null
; then :
191 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
196 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir
=.
203 for as_base
in sh bash ksh sh5
; do
204 # Try only shells that exist, to save several forks.
205 as_shell
=$as_dir/$as_base
206 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$as_shell as_have_required
=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
217 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
219 CONFIG_SHELL
=$SHELL as_have_required
=yes
224 if test "x$CONFIG_SHELL" != x
; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
230 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
232 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
235 if test x
$as_have_required = xno
; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x
${ZSH_VERSION+set} = xset
; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: heimdal-bugs@h5l.org about your system, including any
244 $0: error possibly output before this message. Then install
245 $0: a modern shell, or manually run the script under such a
246 $0: shell if you do have one."
252 SHELL
=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE
= GREP_OPTIONS
=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir
=.
/$as_dir;;
297 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
301 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs
="'$as_qdir' $as_dirs"
305 as_dir
=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
331 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
366 as_val
=`expr "$@" || test $? -eq 1`
371 # as_fn_error ERROR [LINENO LOG_FD]
372 # ---------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with status $?, using 1 if that was 0.
378 as_status
=$?
; test $as_status -eq 0 && as_status
=1
380 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
383 $as_echo "$as_me: error: $1" >&2
384 as_fn_exit
$as_status
387 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
394 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
406 as_me
=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits
='0123456789'
430 as_cr_alnum
=$as_cr_Letters$as_cr_digits
433 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
434 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C
= ECHO_N
= ECHO_T
=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
477 rm -f conf$$ conf$$.exe conf$$.
file
478 if test -d conf$$.dir
; then
479 rm -f conf$$.dir
/conf$$.
file
482 mkdir conf$$.dir
2>/dev
/null
484 if (echo >conf$$.
file) 2>/dev
/null
; then
485 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
493 elif ln conf$$.
file conf$$
2>/dev
/null
; then
501 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
502 rmdir conf$$.dir
2>/dev
/null
504 if mkdir
-p .
2>/dev
/null
; then
505 as_mkdir_p
='mkdir -p "$as_dir"'
507 test -d .
/-p && rmdir .
/-p
511 if test -x / >/dev
/null
2>&1; then
514 if ls -dL / >/dev
/null
2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p
=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 SHELL
=${CONFIG_SHELL-/bin/sh}
543 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
547 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
554 ac_default_prefix
=/usr
/local
556 ac_config_libobj_dir
=.
563 # Identity of this package.
564 PACKAGE_NAME
='Heimdal'
565 PACKAGE_TARNAME
='heimdal'
566 PACKAGE_VERSION
='1.5.2'
567 PACKAGE_STRING
='Heimdal 1.5.2'
568 PACKAGE_BUGREPORT
='heimdal-bugs@h5l.org'
571 ac_unique_file
="kuser/kinit.c"
572 # Factoring default headers for most tests.
573 ac_includes_default
="\
575 #ifdef HAVE_SYS_TYPES_H
576 # include <sys/types.h>
578 #ifdef HAVE_SYS_STAT_H
579 # include <sys/stat.h>
585 # ifdef HAVE_STDLIB_H
590 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #ifdef HAVE_STRINGS_H
596 # include <strings.h>
598 #ifdef HAVE_INTTYPES_H
599 # include <inttypes.h>
608 ac_default_prefix
=/usr
/heimdal
610 enable_option_checking
=no
611 ac_subst_vars
='am__EXEEXT_FALSE
614 HEIMDAL_DOCUMENTATION_FALSE
615 HEIMDAL_DOCUMENTATION_TRUE
626 FRAMEWORK_SECURITY_FALSE
627 FRAMEWORK_SECURITY_TRUE
672 have_socket_wrapper_FALSE
673 have_socket_wrapper_TRUE
744 do_roken_rename_FALSE
768 OPENLDAP_MODULE_FALSE
778 LDFLAGS_VERSION_SCRIPT
792 AIX_DYNAMIC_AFS_FALSE
850 MAINTAINER_MODE_FALSE
860 INSTALL_STRIP_PROGRAM
902 program_transform_name
915 enable_option_checking
916 enable_maintainer_mode
917 enable_dependency_tracking
931 with_openldap_include
933 enable_hdb_openldap_module
951 enable_pthread_support
955 with_berkeley_db_include
959 enable_socket_wrapper
963 enable_afs_string_to_key
966 with_readline_include
980 enable_heimdal_documentation
982 ac_precious_vars
='build_alias
997 ac_subdirs_all
='lib/libedit'
999 # Initialize some variables set by options.
1001 ac_init_version
=false
1002 ac_unrecognized_opts
=
1003 ac_unrecognized_sep
=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file
=/dev
/null
1013 program_transform_name
=s
,x
,x
,
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir
='${exec_prefix}/bin'
1028 sbindir
='${exec_prefix}/sbin'
1029 libexecdir
='${exec_prefix}/libexec'
1030 datarootdir
='${prefix}/share'
1031 datadir
='${datarootdir}'
1032 sysconfdir
='${prefix}/etc'
1033 sharedstatedir
='${prefix}/com'
1034 localstatedir
='${prefix}/var'
1035 includedir
='${prefix}/include'
1036 oldincludedir
='/usr/include'
1037 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1038 infodir
='${datarootdir}/info'
1043 libdir
='${exec_prefix}/lib'
1044 localedir
='${datarootdir}/locale'
1045 mandir
='${datarootdir}/man'
1051 # If the previous option needs an argument, assign it.
1052 if test -n "$ac_prev"; then
1053 eval $ac_prev=\
$ac_option
1059 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063 # Accept the important Cygnus configure options, so we can diagnose typos.
1065 case $ac_dashdash$ac_option in
1069 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1071 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1072 bindir
=$ac_optarg ;;
1074 -build |
--build |
--buil |
--bui |
--bu)
1075 ac_prev
=build_alias
;;
1076 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1077 build_alias
=$ac_optarg ;;
1079 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1080 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1081 ac_prev
=cache_file
;;
1082 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1083 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1084 cache_file
=$ac_optarg ;;
1086 --config-cache |
-C)
1087 cache_file
=config.cache
;;
1089 -datadir |
--datadir |
--datadi |
--datad)
1091 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1092 datadir
=$ac_optarg ;;
1094 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1095 |
--dataroo |
--dataro |
--datar)
1096 ac_prev
=datarootdir
;;
1097 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1098 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1099 datarootdir
=$ac_optarg ;;
1101 -disable-* |
--disable-*)
1102 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1105 as_fn_error
"invalid feature name: $ac_useropt"
1106 ac_useropt_orig
=$ac_useropt
1107 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_
$ac_useropt"
1112 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1113 ac_unrecognized_sep
=', ';;
1115 eval enable_
$ac_useropt=no
;;
1117 -docdir |
--docdir |
--docdi |
--doc |
--do)
1119 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1120 docdir
=$ac_optarg ;;
1122 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1124 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1125 dvidir
=$ac_optarg ;;
1127 -enable-* |
--enable-*)
1128 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1131 as_fn_error
"invalid feature name: $ac_useropt"
1132 ac_useropt_orig
=$ac_useropt
1133 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "enable_
$ac_useropt"
1138 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1139 ac_unrecognized_sep
=', ';;
1141 eval enable_
$ac_useropt=\
$ac_optarg ;;
1143 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1144 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1145 |
--exec |
--exe |
--ex)
1146 ac_prev
=exec_prefix
;;
1147 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1148 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1149 |
--exec=* |
--exe=* |
--ex=*)
1150 exec_prefix
=$ac_optarg ;;
1152 -gas |
--gas |
--ga |
--g)
1153 # Obsolete; use --with-gas.
1156 -help |
--help |
--hel |
--he |
-h)
1157 ac_init_help
=long
;;
1158 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1159 ac_init_help
=recursive
;;
1160 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1161 ac_init_help
=short
;;
1163 -host |
--host |
--hos |
--ho)
1164 ac_prev
=host_alias
;;
1165 -host=* |
--host=* |
--hos=* |
--ho=*)
1166 host_alias
=$ac_optarg ;;
1168 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1170 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1172 htmldir
=$ac_optarg ;;
1174 -includedir |
--includedir |
--includedi |
--included |
--include \
1175 |
--includ |
--inclu |
--incl |
--inc)
1176 ac_prev
=includedir
;;
1177 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1178 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1179 includedir
=$ac_optarg ;;
1181 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1183 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1184 infodir
=$ac_optarg ;;
1186 -libdir |
--libdir |
--libdi |
--libd)
1188 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1189 libdir
=$ac_optarg ;;
1191 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1192 |
--libexe |
--libex |
--libe)
1193 ac_prev
=libexecdir
;;
1194 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1195 |
--libexe=* |
--libex=* |
--libe=*)
1196 libexecdir
=$ac_optarg ;;
1198 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1199 ac_prev
=localedir
;;
1200 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1201 localedir
=$ac_optarg ;;
1203 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1204 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1205 ac_prev
=localstatedir
;;
1206 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1207 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1208 localstatedir
=$ac_optarg ;;
1210 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1212 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1213 mandir
=$ac_optarg ;;
1215 -nfp |
--nfp |
--nf)
1216 # Obsolete; use --without-fp.
1219 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1220 |
--no-cr |
--no-c |
-n)
1223 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1224 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1227 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1228 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1229 |
--oldin |
--oldi |
--old |
--ol |
--o)
1230 ac_prev
=oldincludedir
;;
1231 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1232 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1233 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1234 oldincludedir
=$ac_optarg ;;
1236 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1238 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1239 prefix
=$ac_optarg ;;
1241 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1242 |
--program-pre |
--program-pr |
--program-p)
1243 ac_prev
=program_prefix
;;
1244 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1245 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1246 program_prefix
=$ac_optarg ;;
1248 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1249 |
--program-suf |
--program-su |
--program-s)
1250 ac_prev
=program_suffix
;;
1251 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1252 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1253 program_suffix
=$ac_optarg ;;
1255 -program-transform-name |
--program-transform-name \
1256 |
--program-transform-nam |
--program-transform-na \
1257 |
--program-transform-n |
--program-transform- \
1258 |
--program-transform |
--program-transfor \
1259 |
--program-transfo |
--program-transf \
1260 |
--program-trans |
--program-tran \
1261 |
--progr-tra |
--program-tr |
--program-t)
1262 ac_prev
=program_transform_name
;;
1263 -program-transform-name=* |
--program-transform-name=* \
1264 |
--program-transform-nam=* |
--program-transform-na=* \
1265 |
--program-transform-n=* |
--program-transform-=* \
1266 |
--program-transform=* |
--program-transfor=* \
1267 |
--program-transfo=* |
--program-transf=* \
1268 |
--program-trans=* |
--program-tran=* \
1269 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1270 program_transform_name
=$ac_optarg ;;
1272 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1274 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1275 pdfdir
=$ac_optarg ;;
1277 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1279 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1282 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1283 |
-silent |
--silent |
--silen |
--sile |
--sil)
1286 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1288 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1290 sbindir
=$ac_optarg ;;
1292 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1293 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1294 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1296 ac_prev
=sharedstatedir
;;
1297 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1298 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1299 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1301 sharedstatedir
=$ac_optarg ;;
1303 -site |
--site |
--sit)
1305 -site=* |
--site=* |
--sit=*)
1308 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1310 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1311 srcdir
=$ac_optarg ;;
1313 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1314 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1315 ac_prev
=sysconfdir
;;
1316 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1317 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1318 sysconfdir
=$ac_optarg ;;
1320 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1321 ac_prev
=target_alias
;;
1322 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1323 target_alias
=$ac_optarg ;;
1325 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1328 -version |
--version |
--versio |
--versi |
--vers |
-V)
1329 ac_init_version
=: ;;
1332 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1335 as_fn_error
"invalid package name: $ac_useropt"
1336 ac_useropt_orig
=$ac_useropt
1337 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1342 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1343 ac_unrecognized_sep
=', ';;
1345 eval with_
$ac_useropt=\
$ac_optarg ;;
1347 -without-* |
--without-*)
1348 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1351 as_fn_error
"invalid package name: $ac_useropt"
1352 ac_useropt_orig
=$ac_useropt
1353 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1354 case $ac_user_opts in
1358 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1359 ac_unrecognized_sep
=', ';;
1361 eval with_
$ac_useropt=no
;;
1364 # Obsolete; use --with-x.
1367 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1368 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1369 ac_prev
=x_includes
;;
1370 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1371 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1372 x_includes
=$ac_optarg ;;
1374 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1375 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1376 ac_prev
=x_libraries
;;
1377 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1378 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1379 x_libraries
=$ac_optarg ;;
1381 -*) as_fn_error
"unrecognized option: \`$ac_option'
1382 Try \`$0 --help' for more information."
1386 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1387 # Reject names that are not valid shell variable names.
1388 case $ac_envvar in #(
1389 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1390 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1392 eval $ac_envvar=\
$ac_optarg
1393 export $ac_envvar ;;
1396 # FIXME: should be removed in autoconf 3.0.
1397 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1398 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1399 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1400 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1406 if test -n "$ac_prev"; then
1407 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1408 as_fn_error
"missing argument to $ac_option"
1411 if test -n "$ac_unrecognized_opts"; then
1412 case $enable_option_checking in
1414 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1415 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1419 # Check all directory arguments for consistency.
1420 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1421 datadir sysconfdir sharedstatedir localstatedir includedir \
1422 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1423 libdir localedir mandir
1425 eval ac_val
=\$
$ac_var
1426 # Remove trailing slashes.
1429 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1430 eval $ac_var=\
$ac_val;;
1432 # Be sure to have absolute directory names.
1434 [\\/$
]* | ?
:[\\/]* ) continue;;
1435 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1437 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1440 # There might be people who depend on the old broken behavior: `$host'
1441 # used to hold the argument of --host etc.
1442 # FIXME: To remove some day.
1445 target
=$target_alias
1447 # FIXME: To remove some day.
1448 if test "x$host_alias" != x
; then
1449 if test "x$build_alias" = x
; then
1450 cross_compiling
=maybe
1451 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1452 If a cross compiler is detected then cross compile mode will be used." >&2
1453 elif test "x$build_alias" != "x$host_alias"; then
1459 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1461 test "$silent" = yes && exec 6>/dev
/null
1464 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1465 ac_ls_di
=`ls -di .` &&
1466 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1467 as_fn_error
"working directory cannot be determined"
1468 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1469 as_fn_error
"pwd does not report name of working directory"
1472 # Find the source files, if location was not specified.
1473 if test -z "$srcdir"; then
1474 ac_srcdir_defaulted
=yes
1475 # Try the directory containing this script, then the parent directory.
1476 ac_confdir
=`$as_dirname -- "$as_myself" ||
1477 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1478 X"$as_myself" : 'X\(//\)[^/]' \| \
1479 X"$as_myself" : 'X\(//\)$' \| \
1480 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1481 $as_echo X"$as_myself" |
1482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1504 ac_srcdir_defaulted
=no
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1507 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1508 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1510 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1512 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1514 # When building in place, set srcdir=.
1515 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518 # Remove unnecessary trailing slashes from srcdir.
1519 # Double slashes in file names in object file debugging info
1520 # mess up M-x gdb in Emacs.
1522 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524 for ac_var
in $ac_precious_vars; do
1525 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1526 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1527 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1528 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1532 # Report the --help message.
1534 if test "$ac_init_help" = "long"; then
1535 # Omit some internal or obsolete options to make the list less imposing.
1536 # This message is too long to be a string in the A/UX 3.1 sh.
1538 \`configure' configures Heimdal 1.5.2 to adapt to many kinds of systems.
1540 Usage: $0 [OPTION]... [VAR=VALUE]...
1542 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543 VAR=VALUE. See below for descriptions of some of the useful variables.
1545 Defaults for the options are specified in brackets.
1548 -h, --help display this help and exit
1549 --help=short display options specific to this package
1550 --help=recursive display the short help of all the included packages
1551 -V, --version display version information and exit
1552 -q, --quiet, --silent do not print \`checking...' messages
1553 --cache-file=FILE cache test results in FILE [disabled]
1554 -C, --config-cache alias for \`--cache-file=config.cache'
1555 -n, --no-create do not create output files
1556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1558 Installation directories:
1559 --prefix=PREFIX install architecture-independent files in PREFIX
1560 [$ac_default_prefix]
1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1564 By default, \`make install' will install all the files in
1565 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567 for instance \`--prefix=\$HOME'.
1569 For better control, use the options below.
1571 Fine tuning of the installation directories:
1572 --bindir=DIR user executables [EPREFIX/bin]
1573 --sbindir=DIR system admin executables [EPREFIX/sbin]
1574 --libexecdir=DIR program executables [EPREFIX/libexec]
1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578 --libdir=DIR object code libraries [EPREFIX/lib]
1579 --includedir=DIR C header files [PREFIX/include]
1580 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1581 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1582 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1583 --infodir=DIR info documentation [DATAROOTDIR/info]
1584 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1585 --mandir=DIR man documentation [DATAROOTDIR/man]
1586 --docdir=DIR documentation root [DATAROOTDIR/doc/heimdal]
1587 --htmldir=DIR html documentation [DOCDIR]
1588 --dvidir=DIR dvi documentation [DOCDIR]
1589 --pdfdir=DIR pdf documentation [DOCDIR]
1590 --psdir=DIR ps documentation [DOCDIR]
1596 --program-prefix=PREFIX prepend PREFIX to installed program names
1597 --program-suffix=SUFFIX append SUFFIX to installed program names
1598 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1601 --x-includes=DIR X include files are
in DIR
1602 --x-libraries=DIR X library files are
in DIR
1605 --build=BUILD configure
for building on BUILD
[guessed
]
1606 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1610 if test -n "$ac_init_help"; then
1611 case $ac_init_help in
1612 short | recursive
) echo "Configuration of Heimdal 1.5.2:";;
1617 --disable-option-checking ignore unrecognized
--enable/--with options
1618 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1619 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1620 --enable-maintainer-mode enable make rules and dependencies not useful
1621 (and sometimes confusing
) to the casual installer
1622 --disable-dependency-tracking speeds up one-time build
1623 --enable-dependency-tracking do not reject slow dependency extractors
1624 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1625 --enable-static[=PKGS
] build static libraries
[default
=yes]
1626 --enable-fast-install[=PKGS
]
1627 optimize
for fast installation
[default
=yes]
1628 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1629 --disable-largefile omit support
for large files
1630 --disable-dynamic-afs do not use loaded AFS library with AIX
1631 --enable-hdb-openldap-module
1632 if you want support to build openldap hdb as shared
1634 --disable-pk-init if you want disable to PK-INIT support
1635 --disable-digest if you want disable to DIGEST support
1636 --disable-kx509 if you want disable to kx509 support
1637 --disable-sqlite-cache if you want support
for cache
in sqlite
1638 --enable-pthread-support
1639 if you want thread safe libraries
1640 --enable-dce if you want support
for DCE
/DFS PAG
's
1641 --disable-afs-support if you don't want support
for AFS
1642 --disable-ndbm-db if you don
't want ndbm db
1643 --enable-developer enable developer warnings
1644 --enable-socket-wrapper use sambas socket-wrapper for testing
1645 --disable-otp if you don't want OTP support
1646 --enable-osfc2 enable some OSF C2 support
1647 --disable-mmap disable use of mmap
1648 --disable-afs-string-to-key
1649 disable use of weak AFS string-to-key functions
1650 --enable-bigendian the target is big endian
1651 --enable-littleendian the target is little endian
1652 --enable-kcm enable Kerberos Credentials Manager
1653 --disable-heimdal-documentation
1654 if you want disable to heimdal documentation
1657 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1658 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1659 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1661 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1662 --with-sysroot=DIR Search
for dependent libraries within DIR
1663 (or the compiler
's sysroot if not specified).
1664 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)
1665 --with-cross-tools=dir use cross tools in dir
1666 --with-openldap=dir use openldap in dir
1667 --with-openldap-lib=dir use openldap libraries in dir
1668 --with-openldap-include=dir
1669 use openldap headers in dir
1670 --with-openldap-config=path
1671 config program for openldap
1672 --with-capng use libcap-ng to drop KDC privileges [default=check]
1673 --with-sqlite3=dir use sqlite3 in dir
1674 --with-sqlite3-lib=dir use sqlite3 libraries in dir
1675 --with-sqlite3-include=dir
1676 use sqlite3 headers in dir
1677 --with-sqlite3-config=path
1678 config program for sqlite3
1679 --with-libintl=dir use libintl in dir
1680 --with-libintl-lib=dir use libintl libraries in dir
1681 --with-libintl-include=dir
1682 use libintl headers in dir
1683 --with-libintl-config=path
1684 config program for libintl
1685 --with-hdbdir Default location for KDC database
1686 [default=/var/heimdal]
1687 --with-openssl=dir use openssl in dir
1688 --with-openssl-lib=dir use openssl libraries in dir
1689 --with-openssl-include=dir
1690 use openssl headers in dir
1691 --with-berkeley-db enable support for berkeley db [default=check]
1692 --with-berkeley-db-include=dir
1693 use berkeley-db headers in dir
1694 --without-ipv6 do not enable IPv6 support
1695 --with-readline=dir use readline in dir
1696 --with-readline-lib=dir use readline libraries in dir
1697 --with-readline-include=dir
1698 use readline headers in dir
1699 --with-readline-config=path
1700 config program for readline
1701 --with-libedit=dir use libedit in dir
1702 --with-libedit-lib=dir use libedit libraries in dir
1703 --with-libedit-include=dir
1704 use libedit headers in dir
1705 --with-libedit-config=path
1706 config program for libedit
1707 --with-hesiod=dir use hesiod in dir
1708 --with-hesiod-lib=dir use hesiod libraries in dir
1709 --with-hesiod-include=dir
1710 use hesiod headers in dir
1711 --with-hesiod-config=path
1712 config program for hesiod
1713 --with-x use the X Window System
1715 Some influential environment variables:
1716 CC C compiler command
1717 CFLAGS C compiler flags
1718 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1719 nonstandard directory <lib dir>
1720 LIBS libraries to pass to the linker, e.g. -l<library>
1721 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1722 you have headers in a nonstandard directory <include dir>
1724 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1725 the first program found out of
: `bison -y', `byacc
', `yacc'.
1726 YFLAGS The list of arguments that will be passed by default to
$YACC.
1727 This
script will default YFLAGS to the empty string to avoid a
1728 default value of
`-d' given by some make applications.
1729 PKG_CONFIG path to pkg-config utility
1731 C compiler flags for CAPNG, overriding pkg-config
1732 CAPNG_LIBS linker flags for CAPNG, overriding pkg-config
1733 XMKMF Path to xmkmf, Makefile generator for X Window System
1735 Use these variables to override the choices made by `configure
' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1738 Report bugs to <heimdal-bugs@h5l.org>.
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1762 ac_abs_top_builddir=$ac_pwd
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir=$ac_top_build_prefix
1768 .) # We are building in place.
1770 ac_top_srcdir=$ac_top_builddir_sub
1771 ac_abs_top_srcdir=$ac_pwd ;;
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
1773 ac_srcdir=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir=$srcdir
1775 ac_abs_top_srcdir=$srcdir ;;
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" || { ac_status=$?; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794 cd "$ac_pwd" || { ac_status=$?; break; }
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1801 Heimdal configure 1.5.2
1802 generated by GNU Autoconf 2.65
1804 Copyright (C) 2009 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1831 if test -s conftest.err; then
1832 grep -v '^
*+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's
/^
/|
/' conftest.$ac_ext >&5
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_c_try_compile
1853 # ac_fn_c_try_cpp LINENO
1854 # ----------------------
1855 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868 if test -s conftest.err; then
1869 grep -v '^
*+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } >/dev/null && {
1875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1876 test ! -s conftest.err
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's
/^
/|
/' conftest.$ac_ext >&5
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 as_fn_set_status $ac_retval
1890 # ac_fn_c_try_link LINENO
1891 # -----------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext conftest$ac_exeext
1897 if { { ac_try="$ac_link"
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^
*+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest$ac_exeext && {
1916 test "$cross_compiling" = yes ||
1917 $as_test_x conftest$ac_exeext
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's
/^
/|
/' conftest.$ac_ext >&5
1926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928 # interfere with the next link command; also delete a directory that is
1929 # left behind by Apple's compiler. We
do this before executing the actions.
1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1932 as_fn_set_status
$ac_retval
1934 } # ac_fn_c_try_link
1936 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1937 # -------------------------------------------------------
1938 # Tests whether HEADER exists and can be compiled using the include files in
1939 # INCLUDES, setting the cache variable VAR accordingly.
1940 ac_fn_c_check_header_compile
()
1942 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 $as_echo_n "(cached) " >&6
1948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1953 if ac_fn_c_try_compile
"$LINENO"; then :
1958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1965 } # ac_fn_c_check_header_compile
1967 # ac_fn_c_try_run LINENO
1968 # ----------------------
1969 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1970 # that executables *can* be run.
1973 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1974 if { { ac_try
="$ac_link"
1976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_link") 2>&5
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1985 { { case "(($ac_try" in
1986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1987 *) ac_try_echo
=$ac_try;;
1989 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_try") 2>&5
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; }; }; then :
1997 $as_echo "$as_me: program exited with status $ac_status" >&5
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.
$ac_ext >&5
2001 ac_retval
=$ac_status
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2005 as_fn_set_status
$ac_retval
2009 # ac_fn_c_check_func LINENO FUNC VAR
2010 # ----------------------------------
2011 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2012 ac_fn_c_check_func
()
2014 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2024 #define $2 innocuous_$2
2026 /* System header to define __stub macros and hopefully few prototypes,
2027 which can conflict with char $2 (); below.
2028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2029 <limits.h> exists even on freestanding compilers. */
2032 # include <limits.h>
2034 # include <assert.h>
2039 /* Override any GCC internal prototype to avoid an error.
2040 Use char because int might match the return type of a GCC
2041 builtin and then its argument prototype would still apply. */
2046 /* The GNU C library defines this for functions which it implements
2047 to always fail with ENOSYS. Some functions are actually named
2048 something starting with __ and the normal name is an alias. */
2049 #if defined __stub_$2 || defined __stub___$2
2061 if ac_fn_c_try_link
"$LINENO"; then :
2066 rm -f core conftest.err conftest.
$ac_objext \
2067 conftest
$ac_exeext conftest.
$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2074 } # ac_fn_c_check_func
2076 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2077 # -------------------------------------------------------
2078 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2079 # the include files in INCLUDES and setting the cache variable VAR
2081 ac_fn_c_check_header_mongrel
()
2083 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2084 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2094 # Is the header compilable?
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2096 $as_echo_n "checking $2 usability... " >&6; }
2097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2102 if ac_fn_c_try_compile
"$LINENO"; then :
2103 ac_header_compiler
=yes
2105 ac_header_compiler
=no
2107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2109 $as_echo "$ac_header_compiler" >&6; }
2111 # Is the header present?
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2113 $as_echo_n "checking $2 presence... " >&6; }
2114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2118 if ac_fn_c_try_cpp
"$LINENO"; then :
2119 ac_header_preproc
=yes
2121 ac_header_preproc
=no
2123 rm -f conftest.err conftest.
$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2125 $as_echo "$ac_header_preproc" >&6; }
2127 # So? What about this header?
2128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2131 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2133 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2137 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2139 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2141 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2143 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2145 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147 ## ----------------------------------- ##
2148 ## Report this to heimdal-bugs@h5l.org ##
2149 ## ----------------------------------- ##
2151 ) |
sed "s/^/$as_me: WARNING: /" >&2
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2157 $as_echo_n "(cached) " >&6
2159 eval "$3=\$ac_header_compiler"
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2167 } # ac_fn_c_check_header_mongrel
2169 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2170 # -------------------------------------------
2171 # Tests whether TYPE exists after having included INCLUDES, setting cache
2172 # variable VAR accordingly.
2173 ac_fn_c_check_type
()
2175 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2179 $as_echo_n "(cached) " >&6
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2194 if ac_fn_c_try_compile
"$LINENO"; then :
2195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2207 if ac_fn_c_try_compile
"$LINENO"; then :
2212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218 $as_echo "$ac_res" >&6; }
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2221 } # ac_fn_c_check_type
2223 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2224 # ----------------------------------------------
2225 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2226 ac_fn_c_check_header_preproc
()
2228 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230 $as_echo_n "checking for $2... " >&6; }
2231 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2232 $as_echo_n "(cached) " >&6
2234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2238 if ac_fn_c_try_cpp
"$LINENO"; then :
2243 rm -f conftest.err conftest.
$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2250 } # ac_fn_c_check_header_preproc
2251 cat >config.log
<<_ACEOF
2252 This file contains any messages produced by compilers while
2253 running configure, to aid debugging if configure makes a mistake.
2255 It was created by Heimdal $as_me 1.5.2, which was
2256 generated by GNU Autoconf 2.65. Invocation command line was
2268 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2269 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2270 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2271 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2272 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2274 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2275 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2277 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2278 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2279 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2280 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2281 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2282 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2283 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir
=.
2292 $as_echo "PATH: $as_dir"
2308 # Keep a trace of the command line.
2309 # Strip out --no-create and --no-recursion so they do not pile up.
2310 # Strip out --silent because we don't want to record it for future runs.
2311 # Also quote any args containing shell meta-characters.
2312 # Make two passes to allow for proper duplicate-argument suppression.
2316 ac_must_keep_next
=false
2322 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2323 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2324 |
-silent |
--silent |
--silen |
--sile |
--sil)
2327 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2330 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2332 as_fn_append ac_configure_args1
" '$ac_arg'"
2333 if test $ac_must_keep_next = true
; then
2334 ac_must_keep_next
=false
# Got value, back to normal.
2337 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2338 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2339 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2340 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2341 case "$ac_configure_args0 " in
2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2345 -* ) ac_must_keep_next
=true
;;
2348 as_fn_append ac_configure_args
" '$ac_arg'"
2353 { ac_configure_args0
=; unset ac_configure_args0
;}
2354 { ac_configure_args1
=; unset ac_configure_args1
;}
2356 # When interrupted or exit'd, cleanup temporary files, and complete
2357 # config.log. We remove comments because anyway the quotes in there
2358 # would cause problems or look ugly.
2359 # WARNING: Use '\'' to represent an apostrophe within the trap.
2360 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361 trap 'exit_status=$?
2362 # Save into config.log some information that might help in debugging.
2367 ## ---------------- ##
2368 ## Cache variables. ##
2369 ## ---------------- ##
2372 # The following way of writing the cache mishandles newlines in values,
2374 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2375 eval ac_val=\$$ac_var
2379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2383 _ | IFS | as_nl) ;; #(
2384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2385 *) { eval $ac_var=; unset $ac_var;} ;;
2390 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2391 *${as_nl}ac_space=\ *)
2393 "s/'\''/'\''\\\\'\'''\''/g;
2394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2405 ## ----------------- ##
2406 ## Output variables. ##
2407 ## ----------------- ##
2410 for ac_var in $ac_subst_vars
2412 eval ac_val=\$$ac_var
2414 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 $as_echo "$ac_var='\''$ac_val'\''"
2420 if test -n "$ac_subst_files"; then
2422 ## ------------------- ##
2423 ## File substitutions. ##
2424 ## ------------------- ##
2427 for ac_var
in $ac_subst_files
2429 eval ac_val
=\$
$ac_var
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 $as_echo "$ac_var='\''$ac_val'\''"
2438 if test -s confdefs.h; then
2448 test "$ac_signal" != 0 &&
2449 $as_echo "$as_me: caught signal $ac_signal"
2450 $as_echo "$as_me: exit $exit_status"
2452 rm -f core *.core core.conftest.* &&
2453 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2456 for ac_signal
in 1 2 13 15; do
2457 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2462 rm -f -r conftest
* confdefs.h
2464 $as_echo "/* confdefs.h */" > confdefs.h
2466 # Predefined preprocessor variables.
2468 cat >>confdefs.h
<<_ACEOF
2469 #define PACKAGE_NAME "$PACKAGE_NAME"
2472 cat >>confdefs.h
<<_ACEOF
2473 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2476 cat >>confdefs.h
<<_ACEOF
2477 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2480 cat >>confdefs.h
<<_ACEOF
2481 #define PACKAGE_STRING "$PACKAGE_STRING"
2484 cat >>confdefs.h
<<_ACEOF
2485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2488 cat >>confdefs.h
<<_ACEOF
2489 #define PACKAGE_URL "$PACKAGE_URL"
2493 # Let the site file select an alternate cache file if it wants to.
2494 # Prefer an explicitly selected file to automatically selected ones.
2497 if test -n "$CONFIG_SITE"; then
2498 ac_site_file1
=$CONFIG_SITE
2499 elif test "x$prefix" != xNONE
; then
2500 ac_site_file1
=$prefix/share
/config.site
2501 ac_site_file2
=$prefix/etc
/config.site
2503 ac_site_file1
=$ac_default_prefix/share
/config.site
2504 ac_site_file2
=$ac_default_prefix/etc
/config.site
2506 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2508 test "x$ac_site_file" = xNONE
&& continue
2509 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512 sed 's/^/| /' "$ac_site_file" >&5
2517 if test -r "$cache_file"; then
2518 # Some versions of bash will fail to source /dev/null (special files
2519 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2520 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522 $as_echo "$as_me: loading cache $cache_file" >&6;}
2524 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2525 *) .
"./$cache_file";;
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530 $as_echo "$as_me: creating cache $cache_file" >&6;}
2534 as_fn_append ac_header_list
" stdlib.h"
2535 as_fn_append ac_header_list
" unistd.h"
2536 as_fn_append ac_header_list
" sys/param.h"
2537 # Check that the precious variables saved in the cache have kept the same
2539 ac_cache_corrupted
=false
2540 for ac_var
in $ac_precious_vars; do
2541 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2542 eval ac_new_set
=\
$ac_env_${ac_var}_set
2543 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2544 eval ac_new_val
=\
$ac_env_${ac_var}_value
2545 case $ac_old_set,$ac_new_set in
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549 ac_cache_corrupted
=: ;;
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2553 ac_cache_corrupted
=: ;;
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w
=`echo x $ac_old_val`
2559 ac_new_val_w
=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted
=:
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\
$ac_old_val
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2578 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2579 *) ac_arg
=$ac_var=$ac_new_val ;;
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2583 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2587 if $ac_cache_corrupted; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2599 ac_cpp
='$CPP $CPPFLAGS'
2600 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2606 ac_config_headers
="$ac_config_headers include/config.h"
2610 am__api_version
='1.11'
2613 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2614 for ac_t
in install-sh
install.sh shtool
; do
2615 if test -f "$ac_dir/$ac_t"; then
2617 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2622 if test -z "$ac_aux_dir"; then
2623 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2626 # These three variables are undocumented and unsupported,
2627 # and are intended to be withdrawn in a future Autoconf release.
2628 # They can cause serious problems if a builder's source tree is in a directory
2629 # whose full name contains unusual characters.
2630 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2631 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2632 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2635 # Find a good install program. We prefer a C program (faster),
2636 # so one script is as good as another. But avoid the broken or
2637 # incompatible versions:
2638 # SysV /etc/install, /usr/sbin/install
2639 # SunOS /usr/etc/install
2640 # IRIX /sbin/install
2642 # AmigaOS /C/install, which installs bootblocks on floppy discs
2643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2646 # OS/2's system install, which has a completely different semantic
2647 # ./install, which can be erroneously created by make from ./install.sh.
2648 # Reject install programs that cannot install multiple files.
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2650 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2651 if test -z "$INSTALL"; then
2652 if test "${ac_cv_path_install+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2659 test -z "$as_dir" && as_dir
=.
2660 # Account for people who put trailing slashes in PATH elements.
2661 case $as_dir/ in #((
2662 .
/ | .
// |
/[cC
]/* | \
2663 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2664 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2667 # OSF1 and SCO ODT 3.0 have their own names for install.
2668 # Don't use installbsd from OSF since it installs stuff as root
2670 for ac_prog
in ginstall scoinst
install; do
2671 for ac_exec_ext
in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2673 if test $ac_prog = install &&
2674 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2675 # AIX install. It has an incompatible calling convention.
2677 elif test $ac_prog = install &&
2678 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2679 # program-specific install script used by HP pwplus--don't use.
2682 rm -rf conftest.one conftest.two conftest.dir
2683 echo one
> conftest.one
2684 echo two
> conftest.two
2686 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2687 test -s conftest.one
&& test -s conftest.two
&&
2688 test -s conftest.dir
/conftest.one
&&
2689 test -s conftest.dir
/conftest.two
2691 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2704 rm -rf conftest.one conftest.two conftest.dir
2707 if test "${ac_cv_path_install+set}" = set; then
2708 INSTALL
=$ac_cv_path_install
2710 # As a last resort, use the slow shell script. Don't cache a
2711 # value for INSTALL within a source directory, because that will
2712 # break other packages using the cache if that directory is
2713 # removed, or if the value is a relative name.
2714 INSTALL
=$ac_install_sh
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2718 $as_echo "$INSTALL" >&6; }
2720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2721 # It thinks the first close brace ends the variable substitution.
2722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2726 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2729 $as_echo_n "checking whether build environment is sane... " >&6; }
2732 echo timestamp
> conftest.
file
2733 # Reject unsafe characters in $srcdir or the absolute working directory
2734 # name. Accept space and tab only in the latter.
2738 *[\\\"\
#\$\&\'\`$am_lf]*)
2739 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2742 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2743 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2746 # Do `set' in a subshell so we don't clobber the current shell's
2747 # arguments. Must try -L first in case configure is actually a
2748 # symlink; some systems play weird games with the mod time of symlinks
2749 # (eg FreeBSD returns the mod time of the symlink's containing
2752 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2753 if test "$*" = "X"; then
2755 set X
`ls -t "$srcdir/configure" conftest.file`
2758 if test "$*" != "X $srcdir/configure conftest.file" \
2759 && test "$*" != "X conftest.file $srcdir/configure"; then
2761 # If neither matched, then we have a broken ls. This can happen
2762 # if, for instance, CONFIG_SHELL is bash and it inherits a
2763 # broken ls alias from the environment. This has actually
2764 # happened. Such a system could not be considered "sane".
2765 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2766 alias in your environment" "$LINENO" 5
2769 test "$2" = conftest.
file
2775 as_fn_error
"newly created file is older than distributed files!
2776 Check your system clock" "$LINENO" 5
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2779 $as_echo "yes" >&6; }
2780 test "$program_prefix" != NONE
&&
2781 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2782 # Use a double $ so make ignores it.
2783 test "$program_suffix" != NONE
&&
2784 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2785 # Double any \ or $.
2786 # By default was `s,x,x', remove it if useless.
2787 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2788 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2790 # expand $ac_aux_dir to an absolute path
2791 am_aux_dir
=`cd $ac_aux_dir && pwd`
2793 if test x
"${MISSING+set}" != xset
; then
2796 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2798 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2801 # Use eval to expand $SHELL
2802 if eval "$MISSING --run true"; then
2803 am_missing_run
="$MISSING --run "
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2807 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2810 if test x
"${install_sh}" != xset
; then
2813 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2815 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2819 # Installed binaries are usually stripped using `strip' when the user
2820 # run `make install-strip'. However `strip' might not be the right
2821 # tool to use in cross-compilation environments, therefore Automake
2822 # will honor the `STRIP' environment variable to overrule this program.
2823 if test "$cross_compiling" != no
; then
2824 if test -n "$ac_tool_prefix"; then
2825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2826 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if test "${ac_cv_prog_STRIP+set}" = set; then :
2830 $as_echo_n "(cached) " >&6
2832 if test -n "$STRIP"; then
2833 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2839 test -z "$as_dir" && as_dir
=.
2840 for ac_exec_ext
in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 STRIP
=$ac_cv_prog_STRIP
2853 if test -n "$STRIP"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2855 $as_echo "$STRIP" >&6; }
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2863 if test -z "$ac_cv_prog_STRIP"; then
2865 # Extract the first word of "strip", so it can be a program name with args.
2866 set dummy strip
; ac_word
=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2870 $as_echo_n "(cached) " >&6
2872 if test -n "$ac_ct_STRIP"; then
2873 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir
=.
2880 for ac_exec_ext
in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_ac_ct_STRIP
="strip"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2893 if test -n "$ac_ct_STRIP"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2895 $as_echo "$ac_ct_STRIP" >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2901 if test "x$ac_ct_STRIP" = x
; then
2904 case $cross_compiling:$ac_tool_warned in
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2908 ac_tool_warned
=yes ;;
2913 STRIP
="$ac_cv_prog_STRIP"
2917 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2920 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2921 if test -z "$MKDIR_P"; then
2922 if test "${ac_cv_path_mkdir+set}" = set; then :
2923 $as_echo_n "(cached) " >&6
2925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2926 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2929 test -z "$as_dir" && as_dir
=.
2930 for ac_prog
in mkdir gmkdir
; do
2931 for ac_exec_ext
in '' $ac_executable_extensions; do
2932 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2933 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2934 'mkdir (GNU coreutils) '* | \
2935 'mkdir (coreutils) '* | \
2936 'mkdir (fileutils) '4.1*)
2937 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2947 test -d .
/--version && rmdir .
/--version
2948 if test "${ac_cv_path_mkdir+set}" = set; then
2949 MKDIR_P
="$ac_cv_path_mkdir -p"
2951 # As a last resort, use the slow shell script. Don't cache a
2952 # value for MKDIR_P within a source directory, because that will
2953 # break other packages using the cache if that directory is
2954 # removed, or if the value is a relative name.
2955 MKDIR_P
="$ac_install_sh -d"
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2959 $as_echo "$MKDIR_P" >&6; }
2963 [\\/$
]* | ?
:[\\/]*) ;;
2964 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2967 for ac_prog
in gawk mawk nawk
awk
2969 # Extract the first word of "$ac_prog", so it can be a program name with args.
2970 set dummy
$ac_prog; ac_word
=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if test "${ac_cv_prog_AWK+set}" = set; then :
2974 $as_echo_n "(cached) " >&6
2976 if test -n "$AWK"; then
2977 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir
=.
2984 for ac_exec_ext
in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_AWK
="$ac_prog"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 if test -n "$AWK"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2999 $as_echo "$AWK" >&6; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3006 test -n "$AWK" && break
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3010 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3012 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3013 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3014 $as_echo_n "(cached) " >&6
3016 cat >conftest.
make <<\_ACEOF
3019 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3021 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3022 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3024 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3026 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3030 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 SET_MAKE
="MAKE=${MAKE-make}"
3040 rm -rf .tst
2>/dev
/null
3041 mkdir .tst
2>/dev
/null
3042 if test -d .tst
; then
3047 rmdir .tst
2>/dev
/null
3049 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3050 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3051 # is not polluted with repeated "-I."
3052 am__isrc
=' -I$(srcdir)'
3053 # test to see if srcdir already configured
3054 if test -f $srcdir/config.status
; then
3055 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3059 # test whether we have cygpath
3060 if test -z "$CYGPATH_W"; then
3061 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3062 CYGPATH_W
='cygpath -w'
3069 # Define the identity of the package.
3074 cat >>confdefs.h
<<_ACEOF
3075 #define PACKAGE "$PACKAGE"
3079 cat >>confdefs.h
<<_ACEOF
3080 #define VERSION "$VERSION"
3083 # Some tools Automake needs.
3085 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3088 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3091 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3094 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3097 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3099 # We need awk for the "check" target. The system "awk" is bad on
3101 # Always define AMTAR for backward compatibility.
3103 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3105 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3113 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3114 # Check whether --enable-maintainer-mode was given.
3115 if test "${enable_maintainer_mode+set}" = set; then :
3116 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3118 USE_MAINTAINER_MODE
=no
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3122 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3123 if test $USE_MAINTAINER_MODE = yes; then
3124 MAINTAINER_MODE_TRUE
=
3125 MAINTAINER_MODE_FALSE
='#'
3127 MAINTAINER_MODE_TRUE
='#'
3128 MAINTAINER_MODE_FALSE
=
3131 MAINT
=$MAINTAINER_MODE_TRUE
3136 ac_cpp
='$CPP $CPPFLAGS'
3137 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3142 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if test "${ac_cv_prog_CC+set}" = set; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC
="$CC" # Let the user override the test.
3151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir
=.
3156 for ac_exec_ext
in '' $ac_executable_extensions; do
3157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3179 if test -z "$ac_cv_prog_CC"; then
3181 # Extract the first word of "gcc", so it can be a program name with args.
3182 set dummy gcc
; ac_word
=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir
=.
3196 for ac_exec_ext
in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_ac_ct_CC
="gcc"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3217 if test "x$ac_ct_CC" = x
; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned
=yes ;;
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3235 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if test "${ac_cv_prog_CC+set}" = set; then :
3239 $as_echo_n "(cached) " >&6
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC
="$CC" # Let the user override the test.
3244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir
=.
3249 for ac_exec_ext
in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3273 if test -z "$CC"; then
3274 # Extract the first word of "cc", so it can be a program name with args.
3275 set dummy cc
; ac_word
=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC
="$CC" # Let the user override the test.
3285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir
=.
3290 for ac_exec_ext
in '' $ac_executable_extensions; do
3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3293 ac_prog_rejected
=yes
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 if test $ac_prog_rejected = yes; then
3305 # We found a bogon in the path, so make sure we never use it.
3306 set dummy
$ac_cv_prog_CC
3308 if test $# != 0; then
3309 # We chose a different compiler from the bogus one.
3310 # However, it has the same basename, so the bogon will be chosen
3311 # first if we set CC to just the basename; use the full file name.
3313 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3319 if test -n "$CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321 $as_echo "$CC" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3329 if test -z "$CC"; then
3330 if test -n "$ac_tool_prefix"; then
3331 for ac_prog
in cl.exe
3333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3334 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if test "${ac_cv_prog_CC+set}" = set; then :
3338 $as_echo_n "(cached) " >&6
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC
="$CC" # Let the user override the test.
3343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir
=.
3348 for ac_exec_ext
in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3370 test -n "$CC" && break
3373 if test -z "$CC"; then
3375 for ac_prog
in cl.exe
3377 # Extract the first word of "$ac_prog", so it can be a program name with args.
3378 set dummy
$ac_prog; ac_word
=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3384 if test -n "$ac_ct_CC"; then
3385 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir
=.
3392 for ac_exec_ext
in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_ac_ct_CC
="$ac_prog"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3405 if test -n "$ac_ct_CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3407 $as_echo "$ac_ct_CC" >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3414 test -n "$ac_ct_CC" && break
3417 if test "x$ac_ct_CC" = x
; then
3420 case $cross_compiling:$ac_tool_warned in
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3424 ac_tool_warned
=yes ;;
3433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error
"no acceptable C compiler found in \$PATH
3436 See \`config.log' for more details." "$LINENO" 5; }
3438 # Provide some information about the compiler.
3439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3442 for ac_option
in --version -v -V -qversion; do
3443 { { ac_try
="$ac_compiler $ac_option >&5"
3445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3452 if test -s conftest.err; then
3454 ... rest of stderr output deleted ...
3455 10q' conftest.err >conftest.er1
3456 cat conftest.er1 >&5
3458 rm -f conftest.er1 conftest.err
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3474 ac_clean_files_save=$ac_clean_files
3475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3476 # Try to create an executable without -o first, disregard a.out.
3477 # It will help us diagnose broken compilers, and finding out an intuition
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3480 $as_echo_n "checking whether the C compiler works... " >&6; }
3481 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3483 # The possible output files:
3484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3487 for ac_file in $ac_files
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3496 if { { ac_try="$ac_link_default"
3498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3499 *) ac_try_echo
=$ac_try;;
3501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_link_default") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3510 # so that the user can short-circuit this test for compilers unknown to
3512 for ac_file
in $ac_files ''
3514 test -f "$ac_file" ||
continue
3516 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3519 # We found the default executable, but exeext='' is most
3523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3525 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3527 # We set ac_cv_exeext here because the later test for it is not
3528 # safe: cross compilers may not add the suffix if given an `-o'
3529 # argument, so we may need to know it at that point already.
3530 # Even if this section looks crufty: it has the advantage of
3537 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3542 if test -z "$ac_file"; then :
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3545 $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.
$ac_ext >&5
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 { as_fn_set_status
77
3551 as_fn_error
"C compiler cannot create executables
3552 See \`config.log' for more details." "$LINENO" 5; }; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3555 $as_echo "yes" >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3558 $as_echo_n "checking for C compiler default output file name... " >&6; }
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3560 $as_echo "$ac_file" >&6; }
3561 ac_exeext
=$ac_cv_exeext
3563 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3564 ac_clean_files
=$ac_clean_files_save
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3566 $as_echo_n "checking for suffix of executables... " >&6; }
3567 if { { ac_try
="$ac_link"
3569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_link") 2>&5
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; then :
3578 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3579 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3580 # work properly (i.e., refer to `conftest.exe'), while it won't with
3582 for ac_file
in conftest.exe conftest conftest.
*; do
3583 test -f "$ac_file" ||
continue
3585 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3586 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3595 See \`config.log' for more details." "$LINENO" 5; }
3597 rm -f conftest conftest
$ac_cv_exeext
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3599 $as_echo "$ac_cv_exeext" >&6; }
3601 rm -f conftest.
$ac_ext
3602 EXEEXT
=$ac_cv_exeext
3604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3610 FILE *f = fopen ("conftest.out", "w");
3611 return ferror (f) || fclose (f) != 0;
3617 ac_clean_files
="$ac_clean_files conftest.out"
3618 # Check that the compiler produces executables we can run. If not, either
3619 # the compiler is broken, or we cross compile.
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3621 $as_echo_n "checking whether we are cross compiling... " >&6; }
3622 if test "$cross_compiling" != yes; then
3623 { { ac_try
="$ac_link"
3625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629 $as_echo "$ac_try_echo"; } >&5
3630 (eval "$ac_link") 2>&5
3632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633 test $ac_status = 0; }
3634 if { ac_try='./conftest$ac_cv_exeext'
3635 { { case "(($ac_try" in
3636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3637 *) ac_try_echo
=$ac_try;;
3639 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640 $as_echo "$ac_try_echo"; } >&5
3641 (eval "$ac_try") 2>&5
3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644 test $ac_status = 0; }; }; then
3647 if test "$cross_compiling" = maybe
; then
3650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error
"cannot run C compiled programs.
3653 If you meant to cross compile, use \`--host'.
3654 See \`config.log' for more details." "$LINENO" 5; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3659 $as_echo "$cross_compiling" >&6; }
3661 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3662 ac_clean_files
=$ac_clean_files_save
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3664 $as_echo_n "checking for suffix of object files... " >&6; }
3665 if test "${ac_cv_objext+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3679 rm -f conftest.o conftest.obj
3680 if { { ac_try
="$ac_compile"
3682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_compile") 2>&5
3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690 test $ac_status = 0; }; then :
3691 for ac_file in conftest.o conftest.obj conftest.*; do
3692 test -f "$ac_file" || continue;
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700 $as_echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error "cannot compute suffix of object files
: cannot compile
3706 See \
`config.log' for more details." "$LINENO" 5; }
3708 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3711 $as_echo "$ac_cv_objext" >&6; }
3712 OBJEXT=$ac_cv_objext
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3715 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3716 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3717 $as_echo_n "(cached) " >&6
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3733 if ac_fn_c_try_compile "$LINENO"; then :
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3743 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3744 if test $ac_compiler_gnu = yes; then
3749 ac_test_CFLAGS=${CFLAGS+set}
3750 ac_save_CFLAGS=$CFLAGS
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3752 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3753 if test "${ac_cv_prog_cc_g+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3756 ac_save_c_werror_flag=$ac_c_werror_flag
3757 ac_c_werror_flag=yes
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3771 if ac_fn_c_try_compile "$LINENO"; then :
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3786 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3802 if ac_fn_c_try_compile "$LINENO"; then :
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 ac_c_werror_flag=$ac_save_c_werror_flag
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3813 $as_echo "$ac_cv_prog_cc_g" >&6; }
3814 if test "$ac_test_CFLAGS" = set; then
3815 CFLAGS=$ac_save_CFLAGS
3816 elif test $ac_cv_prog_cc_g = yes; then
3817 if test "$GCC" = yes; then
3823 if test "$GCC" = yes; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3830 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3831 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3834 ac_cv_prog_cc_c89=no
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 #include <sys/types.h>
3841 #include <sys/stat.h>
3842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3843 struct buf { int x; };
3844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3845 static char *e (p, i)
3851 static char *f (char * (*g) (char **, int), char **p, ...)
3856 s = g (p, va_arg (v,int));
3861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3862 function prototypes and stuff, but not '\xHH' hex character constants.
3863 These don't provoke an error unfortunately, instead are silently treated
3864 as 'x'. The following induces an error, until -std is added to get
3865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3866 array size at least. It's necessary to write '\x00'==0 to get something
3867 that's true only with -std. */
3868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3871 inside strings and character constants. */
3873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3875 int test (int i, double x);
3876 struct s1 {int (*f) (int a);};
3877 struct s2 {int (*f) (double a);};
3878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3892 CC="$ac_save_CC $ac_arg"
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_c89=$ac_arg
3896 rm -f core conftest.err conftest.$ac_objext
3897 test "x$ac_cv_prog_cc_c89" != "xno" && break
3899 rm -f conftest.$ac_ext
3904 case "x$ac_cv_prog_cc_c89" in
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3907 $as_echo "none needed" >&6; } ;;
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3910 $as_echo "unsupported" >&6; } ;;
3912 CC="$CC $ac_cv_prog_cc_c89"
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3914 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3916 if test "x$ac_cv_prog_cc_c89" != xno; then :
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925 DEPDIR="${am__leading_dot}deps"
3927 ac_config_commands="$ac_config_commands depfiles"
3930 am_make=${MAKE-make}
3931 cat > confinc << 'END'
3933 @echo this is the am__doit target
3936 # If we don't find an include directive, just comment out the code.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3938 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3942 # First try GNU make style include.
3943 echo "include confinc" > confmf
3944 # Ignore all kinds of additional output from `make'.
3945 case `$am_make -s -f confmf 2> /dev/null` in #(
3946 *the\ am__doit\ target*)
3952 # Now try BSD make style include.
3953 if test "$am__include" = "#"; then
3954 echo '.include
"confinc"' > confmf
3955 case `$am_make -s -f confmf 2> /dev/null` in #(
3956 *the\ am__doit\ target*)
3957 am__include=.include
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3966 $as_echo "$_am_result" >&6; }
3967 rm -f confinc confmf
3969 # Check whether --enable-dependency-tracking was given.
3970 if test "${enable_dependency_tracking+set}" = set; then :
3971 enableval=$enable_dependency_tracking;
3974 if test "x$enable_dependency_tracking" != xno; then
3975 am_depcomp="$ac_aux_dir/depcomp"
3978 if test "x$enable_dependency_tracking" != xno
; then
3988 depcc
="$CC" am_compiler_list
=
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3991 $as_echo_n "checking dependency style of $depcc... " >&6; }
3992 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3996 # We make a subdir and do the tests there. Otherwise we can end up
3997 # making bogus files that we don't know about and never remove. For
3998 # instance it was reported that on HP-UX the gcc test will end up
3999 # making a dummy file named `D' -- because `-MD' means `put the output
4002 # Copy depcomp to subdir because otherwise we won't find it if we're
4003 # using a relative directory.
4004 cp "$am_depcomp" conftest.dir
4006 # We will build objects and dependencies in a subdirectory because
4007 # it helps to detect inapplicable dependency modes. For instance
4008 # both Tru64's cc and ICC support -MD to output dependencies as a
4009 # side effect of compilation, but ICC will put the dependencies in
4010 # the current directory while Tru64 will put them in the object
4014 am_cv_CC_dependencies_compiler_type
=none
4015 if test "$am_compiler_list" = ""; then
4016 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4019 case " $depcc " in #(
4020 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4023 for depmode
in $am_compiler_list; do
4024 # Setup a source with many dependencies, because some compilers
4025 # like to wrap large dependency lists on column 80 (with \), and
4026 # we should not choose a depcomp mode which is confused by this.
4028 # We need to recreate these files for each test, as the compiler may
4029 # overwrite some of them when testing with obscure command lines.
4030 # This happens at least with the AIX C compiler.
4032 for i
in 1 2 3 4 5 6; do
4033 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4034 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4035 # Solaris 8's {/usr,}/bin/sh.
4036 touch sub
/conftst
$i.h
4038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4040 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4041 # mode. It turns out that the SunPro C++ compiler does not properly
4042 # handle `-M -o', and we need to detect this. Also, some Intel
4043 # versions had trouble with output in subdirs
4044 am__obj
=sub
/conftest.
${OBJEXT-o}
4045 am__minus_obj
="-o $am__obj"
4048 # This depmode causes a compiler race in universal mode.
4049 test "$am__universal" = false ||
continue
4052 # after this tag, mechanisms are not by side-effect, so they'll
4053 # only be used when explicitly requested
4054 if test "x$enable_dependency_tracking" = xyes
; then
4060 msvisualcpp | msvcmsys
)
4061 # This compiler won't grok `-c -o', but also, the minuso test has
4062 # not run yet. These depmodes are late enough in the game, and
4063 # so weak that their functioning should not be impacted.
4064 am__obj
=conftest.
${OBJEXT-o}
4069 if depmode
=$depmode \
4070 source=sub
/conftest.c object
=$am__obj \
4071 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4072 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4073 >/dev
/null
2>conftest.err
&&
4074 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4075 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4076 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4077 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4078 # icc doesn't choke on unknown options, it will just issue warnings
4079 # or remarks (even with -Werror). So we grep stderr for any message
4080 # that says an option was ignored or not supported.
4081 # When given -MP, icc 7.0 and 7.1 complain thusly:
4082 # icc: Command line warning: ignoring option '-M'; no argument required
4083 # The diagnosis changed in icc 8.0:
4084 # icc: Command line remark: option '-MP' not supported
4085 if (grep 'ignoring option' conftest.err ||
4086 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4087 am_cv_CC_dependencies_compiler_type
=$depmode
4096 am_cv_CC_dependencies_compiler_type
=none
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4101 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4102 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4105 test "x$enable_dependency_tracking" != xno \
4106 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4108 am__fastdepCC_FALSE
='#'
4110 am__fastdepCC_TRUE
='#'
4111 am__fastdepCC_FALSE
=
4115 if test "x$CC" != xcc
; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4117 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4120 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4122 set dummy
$CC; ac_cc
=`$as_echo "$2" |
4123 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4124 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4125 $as_echo_n "(cached) " >&6
4127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4138 # Make sure it works both with $CC and with simple cc.
4139 # We do the test twice because some compilers refuse to overwrite an
4140 # existing .o file with -o, though they will create one.
4141 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4143 if { { case "(($ac_try" in
4144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149 (eval "$ac_try") 2>&5
4151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152 test $ac_status = 0; } &&
4153 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4155 *) ac_try_echo
=$ac_try;;
4157 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4158 $as_echo "$ac_try_echo"; } >&5
4159 (eval "$ac_try") 2>&5
4161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162 test $ac_status = 0; };
4164 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
4165 if test "x$CC" != xcc
; then
4166 # Test first that cc exists at all.
4167 if { ac_try
='cc -c conftest.$ac_ext >&5'
4168 { { case "(($ac_try" in
4169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173 $as_echo "$ac_try_echo"; } >&5
4174 (eval "$ac_try") 2>&5
4176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }; }; then
4178 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4180 if { { case "(($ac_try" in
4181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4182 *) ac_try_echo
=$ac_try;;
4184 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4185 $as_echo "$ac_try_echo"; } >&5
4186 (eval "$ac_try") 2>&5
4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; } &&
4190 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195 $as_echo "$ac_try_echo"; } >&5
4196 (eval "$ac_try") 2>&5
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; };
4204 # cc exists but doesn't like -o.
4205 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4210 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4212 rm -f core conftest*
4215 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4217 $as_echo "yes" >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4222 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4226 # FIXME: we rely on the cache variable name because
4227 # there is no other way.
4229 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4230 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4231 if test "$am_t" != yes; then
4232 # Losing compiler, so override with the script.
4233 # FIXME: It is wrong to rewrite CC.
4234 # But if we don't then we get into trouble of one sort or another.
4235 # A longer-term fix would be to have automake use am__CC in this case,
4236 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4237 CC="$am_aux_dir/compile $CC"
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4247 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4248 # On Suns, sometimes $CPP names a directory.
4249 if test -n "$CPP" && test -d "$CPP"; then
4252 if test -z "$CPP"; then
4253 if test "${ac_cv_prog_CPP+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4256 # Double quotes because CPP needs to be expanded
4257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4260 for ac_c_preproc_warn_flag in '' yes
4262 # Use a header file that comes with gcc, so configuring glibc
4263 # with a fresh cross-compiler works.
4264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4265 # <limits.h> exists even on freestanding compilers.
4266 # On the NeXT, cc -E runs the code through the compiler's parser,
4267 # not just through cpp. "Syntax error" is here to catch this case.
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4271 # include <limits.h>
4273 # include <assert.h>
4277 if ac_fn_c_try_cpp "$LINENO"; then :
4280 # Broken: fails on valid input.
4283 rm -f conftest.err conftest.$ac_ext
4285 # OK, works on sane cases. Now check whether nonexistent headers
4286 # can be detected and how.
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289 #include <ac_nonexistent.h>
4291 if ac_fn_c_try_cpp "$LINENO"; then :
4292 # Broken: success on invalid input.
4295 # Passes both tests.
4299 rm -f conftest.err conftest.$ac_ext
4302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4303 rm -f conftest.err conftest.
$ac_ext
4304 if $ac_preproc_ok; then :
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4317 $as_echo "$CPP" >&6; }
4319 for ac_c_preproc_warn_flag
in '' yes
4321 # Use a header file that comes with gcc, so configuring glibc
4322 # with a fresh cross-compiler works.
4323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324 # <limits.h> exists even on freestanding compilers.
4325 # On the NeXT, cc -E runs the code through the compiler's parser,
4326 # not just through cpp. "Syntax error" is here to catch this case.
4327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4330 # include <limits.h>
4332 # include <assert.h>
4336 if ac_fn_c_try_cpp
"$LINENO"; then :
4339 # Broken: fails on valid input.
4342 rm -f conftest.err conftest.
$ac_ext
4344 # OK, works on sane cases. Now check whether nonexistent headers
4345 # can be detected and how.
4346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 #include <ac_nonexistent.h>
4350 if ac_fn_c_try_cpp
"$LINENO"; then :
4351 # Broken: success on invalid input.
4354 # Passes both tests.
4358 rm -f conftest.err conftest.
$ac_ext
4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4362 rm -f conftest.err conftest.
$ac_ext
4363 if $ac_preproc_ok; then :
4366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4369 See \`config.log' for more details." "$LINENO" 5; }
4373 ac_cpp
='$CPP $CPPFLAGS'
4374 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4381 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4387 macro_revision
='1.3293'
4401 ltmain
="$ac_aux_dir/ltmain.sh"
4403 # Make sure we can run config.sub.
4404 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4405 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4408 $as_echo_n "checking build system type... " >&6; }
4409 if test "${ac_cv_build+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4412 ac_build_alias
=$build_alias
4413 test "x$ac_build_alias" = x
&&
4414 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4415 test "x$ac_build_alias" = x
&&
4416 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4417 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4418 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4422 $as_echo "$ac_cv_build" >&6; }
4423 case $ac_cv_build in
4425 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4428 ac_save_IFS
=$IFS; IFS
='-'
4434 # Remember, the first character of IFS is used to create $*,
4435 # except with old shells:
4438 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4442 $as_echo_n "checking host system type... " >&6; }
4443 if test "${ac_cv_host+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4446 if test "x$host_alias" = x
; then
4447 ac_cv_host
=$ac_cv_build
4449 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4450 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4455 $as_echo "$ac_cv_host" >&6; }
4458 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4461 ac_save_IFS
=$IFS; IFS
='-'
4467 # Remember, the first character of IFS is used to create $*,
4468 # except with old shells:
4471 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4474 # Backslashify metacharacters that are still active within
4475 # double-quoted strings.
4476 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4478 # Same as above, but do not quote variable references.
4479 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4481 # Sed substitution to delay expansion of an escaped shell variable in a
4482 # double_quote_subst'ed string.
4483 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4485 # Sed substitution to delay expansion of an escaped single quote.
4486 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4488 # Sed substitution to avoid accidental globbing in evaled expressions
4489 no_glob_subst
='s/\*/\\\*/g'
4491 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4493 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4496 $as_echo_n "checking how to print strings... " >&6; }
4497 # Test print first, because it will be a builtin if present.
4498 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4499 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4501 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4504 # Use this function as a fallback that always works.
4505 func_fallback_echo ()
4507 eval 'cat <<_LTECHO_EOF
4511 ECHO='func_fallback_echo
'
4514 # func_echo_all arg...
4515 # Invoke $ECHO with all args, space-separated.
4522 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4523 $as_echo "printf" >&6; } ;;
4524 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4525 $as_echo "print -r" >&6; } ;;
4526 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4527 $as_echo "cat" >&6; } ;;
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4544 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4545 if test "${ac_cv_path_SED+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4548 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4549 for ac_i in 1 2 3 4 5 6 7; do
4550 ac_script="$ac_script$as_nl$ac_script"
4552 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4553 { ac_script=; unset ac_script;}
4554 if test -z "$SED"; then
4555 ac_path_SED_found=false
4556 # Loop through the user's path and
test for each of PROGNAME-LIST
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_prog
in sed gsed
; do
4563 for ac_exec_ext
in '' $ac_executable_extensions; do
4564 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4565 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4566 # Check for GNU ac_path_SED and select it if it is found.
4567 # Check for GNU $ac_path_SED
4568 case `"$ac_path_SED" --version 2>&1` in
4570 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4573 $as_echo_n 0123456789 >"conftest.in"
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 $as_echo '' >> "conftest.nl"
4580 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4582 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4583 if test $ac_count -gt ${ac_path_SED_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_SED
="$ac_path_SED"
4586 ac_path_SED_max
=$ac_count
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4594 $ac_path_SED_found && break 3
4599 if test -z "$ac_cv_path_SED"; then
4600 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4608 $as_echo "$ac_cv_path_SED" >&6; }
4609 SED
="$ac_cv_path_SED"
4612 test -z "$SED" && SED
=sed
4613 Xsed
="$SED -e 1s/^X//"
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4626 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4627 if test "${ac_cv_path_GREP+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4630 if test -z "$GREP"; then
4631 ac_path_GREP_found
=false
4632 # Loop through the user's path and test for each of PROGNAME-LIST
4633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4634 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4637 test -z "$as_dir" && as_dir
=.
4638 for ac_prog
in grep ggrep
; do
4639 for ac_exec_ext
in '' $ac_executable_extensions; do
4640 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4641 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4642 # Check for GNU ac_path_GREP and select it if it is found.
4643 # Check for GNU $ac_path_GREP
4644 case `"$ac_path_GREP" --version 2>&1` in
4646 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4649 $as_echo_n 0123456789 >"conftest.in"
4652 cat "conftest.in" "conftest.in" >"conftest.tmp"
4653 mv "conftest.tmp" "conftest.in"
4654 cp "conftest.in" "conftest.nl"
4655 $as_echo 'GREP' >> "conftest.nl"
4656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4657 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4658 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4660 # Best one so far, save it but keep looking for a better one
4661 ac_cv_path_GREP
="$ac_path_GREP"
4662 ac_path_GREP_max
=$ac_count
4664 # 10*(2^10) chars as input seems more than enough
4665 test $ac_count -gt 10 && break
4667 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4670 $ac_path_GREP_found && break 3
4675 if test -z "$ac_cv_path_GREP"; then
4676 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4679 ac_cv_path_GREP
=$GREP
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4684 $as_echo "$ac_cv_path_GREP" >&6; }
4685 GREP
="$ac_cv_path_GREP"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4689 $as_echo_n "checking for egrep... " >&6; }
4690 if test "${ac_cv_path_EGREP+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4693 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4694 then ac_cv_path_EGREP
="$GREP -E"
4696 if test -z "$EGREP"; then
4697 ac_path_EGREP_found
=false
4698 # Loop through the user's path and test for each of PROGNAME-LIST
4699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4700 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4703 test -z "$as_dir" && as_dir
=.
4704 for ac_prog
in egrep; do
4705 for ac_exec_ext
in '' $ac_executable_extensions; do
4706 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4707 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4708 # Check for GNU ac_path_EGREP and select it if it is found.
4709 # Check for GNU $ac_path_EGREP
4710 case `"$ac_path_EGREP" --version 2>&1` in
4712 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4715 $as_echo_n 0123456789 >"conftest.in"
4718 cat "conftest.in" "conftest.in" >"conftest.tmp"
4719 mv "conftest.tmp" "conftest.in"
4720 cp "conftest.in" "conftest.nl"
4721 $as_echo 'EGREP' >> "conftest.nl"
4722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4723 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4724 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4726 # Best one so far, save it but keep looking for a better one
4727 ac_cv_path_EGREP
="$ac_path_EGREP"
4728 ac_path_EGREP_max
=$ac_count
4730 # 10*(2^10) chars as input seems more than enough
4731 test $ac_count -gt 10 && break
4733 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4736 $ac_path_EGREP_found && break 3
4741 if test -z "$ac_cv_path_EGREP"; then
4742 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4745 ac_cv_path_EGREP
=$EGREP
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4751 $as_echo "$ac_cv_path_EGREP" >&6; }
4752 EGREP
="$ac_cv_path_EGREP"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4756 $as_echo_n "checking for fgrep... " >&6; }
4757 if test "${ac_cv_path_FGREP+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4760 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4761 then ac_cv_path_FGREP
="$GREP -F"
4763 if test -z "$FGREP"; then
4764 ac_path_FGREP_found
=false
4765 # Loop through the user's path and test for each of PROGNAME-LIST
4766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4767 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4770 test -z "$as_dir" && as_dir
=.
4771 for ac_prog
in fgrep
; do
4772 for ac_exec_ext
in '' $ac_executable_extensions; do
4773 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4774 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4775 # Check for GNU ac_path_FGREP and select it if it is found.
4776 # Check for GNU $ac_path_FGREP
4777 case `"$ac_path_FGREP" --version 2>&1` in
4779 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4782 $as_echo_n 0123456789 >"conftest.in"
4785 cat "conftest.in" "conftest.in" >"conftest.tmp"
4786 mv "conftest.tmp" "conftest.in"
4787 cp "conftest.in" "conftest.nl"
4788 $as_echo 'FGREP' >> "conftest.nl"
4789 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4790 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4791 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4792 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4793 # Best one so far, save it but keep looking for a better one
4794 ac_cv_path_FGREP
="$ac_path_FGREP"
4795 ac_path_FGREP_max
=$ac_count
4797 # 10*(2^10) chars as input seems more than enough
4798 test $ac_count -gt 10 && break
4800 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4803 $ac_path_FGREP_found && break 3
4808 if test -z "$ac_cv_path_FGREP"; then
4809 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4812 ac_cv_path_FGREP
=$FGREP
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4818 $as_echo "$ac_cv_path_FGREP" >&6; }
4819 FGREP
="$ac_cv_path_FGREP"
4822 test -z "$GREP" && GREP
=grep
4842 # Check whether --with-gnu-ld was given.
4843 if test "${with_gnu_ld+set}" = set; then :
4844 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4850 if test "$GCC" = yes; then
4851 # Check if gcc -print-prog-name=ld gives a path.
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4853 $as_echo_n "checking for ld used by $CC... " >&6; }
4856 # gcc leaves a trailing carriage return which upsets mingw
4857 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4859 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4862 # Accept absolute paths.
4864 re_direlt
='/[^/][^/]*/\.\./'
4865 # Canonicalize the pathname of ld
4866 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4867 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4868 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4870 test -z "$LD" && LD
="$ac_prog"
4873 # If it fails, then pretend we aren't using GCC.
4877 # If it is relative, then search for the first ld in PATH.
4881 elif test "$with_gnu_ld" = yes; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4883 $as_echo_n "checking for GNU ld... " >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4886 $as_echo_n "checking for non-GNU ld... " >&6; }
4888 if test "${lt_cv_path_LD+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4891 if test -z "$LD"; then
4892 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4893 for ac_dir
in $PATH; do
4895 test -z "$ac_dir" && ac_dir
=.
4896 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4897 lt_cv_path_LD
="$ac_dir/$ac_prog"
4898 # Check to see if the program is GNU ld. I'd rather use --version,
4899 # but apparently some variants of GNU ld only accept -v.
4900 # Break only if it was the GNU/non-GNU ld that we prefer.
4901 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4902 *GNU
* |
*'with BFD'*)
4903 test "$with_gnu_ld" != no
&& break
4906 test "$with_gnu_ld" != yes && break
4913 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4918 if test -n "$LD"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4920 $as_echo "$LD" >&6; }
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4925 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4927 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4928 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4931 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4932 case `$LD -v 2>&1 </dev/null` in
4933 *GNU
* |
*'with BFD'*)
4934 lt_cv_prog_gnu_ld
=yes
4937 lt_cv_prog_gnu_ld
=no
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4942 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4943 with_gnu_ld
=$lt_cv_prog_gnu_ld
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4954 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4955 if test "${lt_cv_path_NM+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4958 if test -n "$NM"; then
4959 # Let the user override the test.
4962 lt_nm_to_check
="${ac_tool_prefix}nm"
4963 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4964 lt_nm_to_check
="$lt_nm_to_check nm"
4966 for lt_tmp_nm
in $lt_nm_to_check; do
4967 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4968 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4970 test -z "$ac_dir" && ac_dir
=.
4971 tmp_nm
="$ac_dir/$lt_tmp_nm"
4972 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4973 # Check to see if the nm accepts a BSD-compat flag.
4974 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4975 # nm: unknown option "B" ignored
4976 # Tru64's nm complains that /dev/null is an invalid object file
4977 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4978 */dev
/null
* |
*'Invalid file or object type'*)
4979 lt_cv_path_NM
="$tmp_nm -B"
4983 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4985 lt_cv_path_NM
="$tmp_nm -p"
4989 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4990 continue # so that we can try to find one that supports BSD flags
4999 : ${lt_cv_path_NM=no}
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5003 $as_echo "$lt_cv_path_NM" >&6; }
5004 if test "$lt_cv_path_NM" != "no"; then
5007 # Didn't find any BSD compatible name lister, look for dumpbin.
5008 if test -n "$DUMPBIN"; then :
5009 # Let the user override the test.
5011 if test -n "$ac_tool_prefix"; then
5012 for ac_prog
in dumpbin
"link -dump"
5014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5019 $as_echo_n "(cached) " >&6
5021 if test -n "$DUMPBIN"; then
5022 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir
=.
5029 for ac_exec_ext
in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 DUMPBIN
=$ac_cv_prog_DUMPBIN
5042 if test -n "$DUMPBIN"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5044 $as_echo "$DUMPBIN" >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5051 test -n "$DUMPBIN" && break
5054 if test -z "$DUMPBIN"; then
5055 ac_ct_DUMPBIN
=$DUMPBIN
5056 for ac_prog
in dumpbin
"link -dump"
5058 # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy
$ac_prog; ac_word
=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5065 if test -n "$ac_ct_DUMPBIN"; then
5066 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir
=.
5073 for ac_exec_ext
in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5086 if test -n "$ac_ct_DUMPBIN"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5088 $as_echo "$ac_ct_DUMPBIN" >&6; }
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5095 test -n "$ac_ct_DUMPBIN" && break
5098 if test "x$ac_ct_DUMPBIN" = x
; then
5101 case $cross_compiling:$ac_tool_warned in
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105 ac_tool_warned
=yes ;;
5107 DUMPBIN
=$ac_ct_DUMPBIN
5111 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5113 DUMPBIN
="$DUMPBIN -symbols"
5121 if test "$DUMPBIN" != ":"; then
5125 test -z "$NM" && NM
=nm
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5133 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5134 if test "${lt_cv_nm_interface+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5137 lt_cv_nm_interface
="BSD nm"
5138 echo "int some_variable = 0;" > conftest.
$ac_ext
5139 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5140 (eval "$ac_compile" 2>conftest.err
)
5141 cat conftest.err
>&5
5142 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5143 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5144 cat conftest.err
>&5
5145 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5146 cat conftest.out
>&5
5147 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5148 lt_cv_nm_interface
="MS dumpbin"
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5153 $as_echo "$lt_cv_nm_interface" >&6; }
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5156 $as_echo_n "checking whether ln -s works... " >&6; }
5158 if test "$LN_S" = "ln -s"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160 $as_echo "yes" >&6; }
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5163 $as_echo "no, using $LN_S" >&6; }
5166 # find the maximum length of command line arguments
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5168 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5169 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5177 # On DJGPP, this test can blow up pretty badly due to problems in libc
5178 # (any single argument exceeding 2000 bytes causes a buffer overrun
5179 # during glob expansion). Even if it were fixed, the result of this
5180 # check would be larger than it should be.
5181 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5185 # Under GNU Hurd, this test is not required because there is
5186 # no limit to the length of command line arguments.
5187 # Libtool will interpret -1 as no limit whatsoever
5188 lt_cv_sys_max_cmd_len
=-1;
5191 cygwin
* | mingw
* | cegcc
*)
5192 # On Win9x/ME, this test blows up -- it succeeds, but takes
5193 # about 5 minutes as the teststring grows exponentially.
5194 # Worse, since 9x/ME are not pre-emptively multitasking,
5195 # you end up with a "frozen" computer, even though with patience
5196 # the test eventually succeeds (with a max line length of 256k).
5197 # Instead, let's just punt: use the minimum linelength reported by
5198 # all of the supported platforms: 8192 (on NT/2K/XP).
5199 lt_cv_sys_max_cmd_len
=8192;
5203 # On MiNT this can take a long time and run out of memory.
5204 lt_cv_sys_max_cmd_len
=8192;
5208 # On AmigaOS with pdksh, this test takes hours, literally.
5209 # So we just punt and use a minimum line length of 8192.
5210 lt_cv_sys_max_cmd_len
=8192;
5213 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5214 # This has been around since 386BSD, at least. Likely further.
5215 if test -x /sbin
/sysctl
; then
5216 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5217 elif test -x /usr
/sbin
/sysctl
; then
5218 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5220 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5222 # And add a safety zone
5223 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5224 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5228 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5229 lt_cv_sys_max_cmd_len
=196608
5233 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5234 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5235 # nice to cause kernel panics so lets avoid the loop below.
5236 # First set a reasonable default.
5237 lt_cv_sys_max_cmd_len
=16384
5239 if test -x /sbin
/sysconfig
; then
5240 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5241 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5246 lt_cv_sys_max_cmd_len
=102400
5248 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5249 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5250 if test -n "$kargmax"; then
5251 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5253 lt_cv_sys_max_cmd_len
=32768
5257 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5258 if test -n "$lt_cv_sys_max_cmd_len"; then
5259 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5260 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5262 # Make teststring a little bigger before we do anything with it.
5263 # a 1K string should be a reasonable start.
5264 for i
in 1 2 3 4 5 6 7 8 ; do
5265 teststring
=$teststring$teststring
5267 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5268 # If test is not a shell built-in, we'll probably end up computing a
5269 # maximum length that is only half of the actual maximum length, but
5271 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5272 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5273 test $i != 17 # 1/2 MB should be enough
5276 teststring
=$teststring$teststring
5278 # Only check the string length outside the loop.
5279 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5281 # Add a significant safety factor because C++ compilers can tack on
5282 # massive amounts of additional arguments before passing them to the
5283 # linker. It appears as though 1/2 is a usable value.
5284 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5291 if test -n $lt_cv_sys_max_cmd_len ; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5293 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5296 $as_echo "none" >&6; }
5298 max_cmd_len
=$lt_cv_sys_max_cmd_len
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5310 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5311 # Try some XSI features
5314 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5316 && eval 'test $(( 1 + 1 )) -eq 2 \
5317 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5320 $as_echo "$xsi_shell" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5324 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5326 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5328 && lt_shell_append=yes
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5330 $as_echo "$lt_shell_append" >&6; }
5333 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5343 # test EBCDIC or ASCII
5344 case `echo X|tr X '\101'` in
5345 A) # ASCII based system
5346 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5347 lt_SP2NL='tr \040 \012'
5348 lt_NL2SP='tr \015\012 \040\040'
5350 *) # EBCDIC based system
5351 lt_SP2NL='tr \100 \n'
5352 lt_NL2SP='tr \r\n \100\100'
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5365 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5366 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
5367 $as_echo_n "(cached
) " >&6
5372 *-*-mingw* ) # actually msys
5373 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5376 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5378 * ) # otherwise, assume *nix
5379 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5385 *-*-mingw* ) # actually msys
5386 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5389 lt_cv_to_host_file_cmd=func_convert_file_noop
5391 * ) # otherwise, assume *nix
5392 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5396 * ) # unhandled hosts (and "normal
" native builds)
5397 lt_cv_to_host_file_cmd=func_convert_file_noop
5403 to_host_file_cmd=$lt_cv_to_host_file_cmd
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5405 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5412 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5413 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
5414 $as_echo_n "(cached
) " >&6
5416 #assume ordinary cross tools, or native build.
5417 lt_cv_to_tool_file_cmd=func_convert_file_noop
5421 *-*-mingw* ) # actually msys
5422 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5430 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5432 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5439 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5440 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5441 $as_echo_n "(cached
) " >&6
5443 lt_cv_ld_reload_flag='-r'
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5446 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5447 reload_flag=$lt_cv_ld_reload_flag
5448 case $reload_flag in
5450 *) reload_flag=" $reload_flag" ;;
5452 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5454 cygwin* | mingw* | pw32* | cegcc*)
5455 if test "$GCC" != yes; then
5460 if test "$GCC" = yes; then
5461 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5463 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5476 if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5478 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5480 $as_echo_n "checking
for $ac_word...
" >&6; }
5481 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5482 $as_echo_n "(cached
) " >&6
5484 if test -n "$OBJDUMP"; then
5485 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5504 OBJDUMP=$ac_cv_prog_OBJDUMP
5505 if test -n "$OBJDUMP"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5507 $as_echo "$OBJDUMP" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5510 $as_echo "no
" >&6; }
5515 if test -z "$ac_cv_prog_OBJDUMP"; then
5516 ac_ct_OBJDUMP=$OBJDUMP
5517 # Extract the first word of "objdump
", so it can be a program name with args.
5518 set dummy objdump; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5520 $as_echo_n "checking
for $ac_word...
" >&6; }
5521 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5522 $as_echo_n "(cached
) " >&6
5524 if test -n "$ac_ct_OBJDUMP"; then
5525 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5544 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5545 if test -n "$ac_ct_OBJDUMP"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5547 $as_echo "$ac_ct_OBJDUMP" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5550 $as_echo "no
" >&6; }
5553 if test "x
$ac_ct_OBJDUMP" = x; then
5556 case $cross_compiling:$ac_tool_warned in
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5559 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5560 ac_tool_warned=yes ;;
5562 OBJDUMP=$ac_ct_OBJDUMP
5565 OBJDUMP="$ac_cv_prog_OBJDUMP"
5568 test -z "$OBJDUMP" && OBJDUMP=objdump
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5579 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5580 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5581 $as_echo_n "(cached
) " >&6
5583 lt_cv_file_magic_cmd='$MAGIC_CMD'
5584 lt_cv_file_magic_test_file=
5585 lt_cv_deplibs_check_method='unknown'
5586 # Need to set the preceding variable on all platforms that support
5587 # interlibrary dependencies.
5588 # 'none' -- dependencies not supported.
5589 # `unknown' -- same as none, but documents that we really don't know.
5590 # 'pass_all' -- all dependencies passed with no checks.
5591 # 'test_compile' -- check by making test program.
5592 # 'file_magic [[regex]]' -- check by looking for files in library path
5593 # which responds to the $file_magic_cmd with a given extended regex.
5594 # If you have `file' or equivalent on your system and you're not sure
5595 # whether `pass_all' will *always* work, you probably want this one.
5599 lt_cv_deplibs_check_method=pass_all
5603 lt_cv_deplibs_check_method=pass_all
5607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5608 lt_cv_file_magic_cmd='/usr/bin/file -L'
5609 lt_cv_file_magic_test_file=/shlib/libc.so
5613 # func_win32_libid is a shell function defined in ltmain.sh
5614 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5615 lt_cv_file_magic_cmd='func_win32_libid'
5619 # Base MSYS/MinGW do not provide the 'file' command needed by
5620 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5621 # unless we find 'file', for example because we are cross-compiling.
5622 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5623 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5624 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5625 lt_cv_file_magic_cmd='func_win32_libid'
5627 # Keep this pattern in sync with the one in func_win32_libid.
5628 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5629 lt_cv_file_magic_cmd='$OBJDUMP -f'
5634 # use the weaker test based on 'objdump'. See mingw*.
5635 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5636 lt_cv_file_magic_cmd='$OBJDUMP -f'
5639 darwin* | rhapsody*)
5640 lt_cv_deplibs_check_method=pass_all
5643 freebsd* | dragonfly*)
5644 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5647 # Not sure whether the presence of OpenBSD here was a mistake.
5648 # Let's accept both of them until this is cleared up.
5649 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5650 lt_cv_file_magic_cmd=/usr/bin/file
5651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5655 lt_cv_deplibs_check_method=pass_all
5660 lt_cv_deplibs_check_method=pass_all
5664 lt_cv_deplibs_check_method=pass_all
5667 hpux10.20* | hpux11*)
5668 lt_cv_file_magic_cmd=/usr/bin/file
5671 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5672 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5675 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5676 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5679 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5680 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5686 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5690 irix5* | irix6* | nonstopux*)
5692 *-32|*"-32 ") libmagic=32-bit;;
5693 *-n32|*"-n32 ") libmagic=N32;;
5694 *-64|*"-64 ") libmagic=64-bit;;
5695 *) libmagic=never-match;;
5697 lt_cv_deplibs_check_method=pass_all
5700 # This must be Linux ELF.
5701 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5702 lt_cv_deplibs_check_method=pass_all
5706 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5715 lt_cv_file_magic_cmd=/usr/bin/file
5716 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5720 lt_cv_deplibs_check_method=pass_all
5724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5731 osf3* | osf4* | osf5*)
5732 lt_cv_deplibs_check_method=pass_all
5736 lt_cv_deplibs_check_method=pass_all
5740 lt_cv_deplibs_check_method=pass_all
5743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5744 lt_cv_deplibs_check_method=pass_all
5748 case $host_vendor in
5750 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]'
5751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5754 lt_cv_deplibs_check_method=pass_all
5757 lt_cv_file_magic_cmd='/bin/file'
5758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5761 lt_cv_file_magic_cmd='/bin/file'
5762 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5763 lt_cv_file_magic_test_file=/lib/libc.so
5766 lt_cv_deplibs_check_method=pass_all
5769 lt_cv_deplibs_check_method=pass_all
5775 lt_cv_deplibs_check_method=pass_all
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5781 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5785 if test "$build" = "$host"; then
5788 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5791 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5797 file_magic_cmd=$lt_cv_file_magic_cmd
5798 deplibs_check_method=$lt_cv_deplibs_check_method
5799 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5822 if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5826 $as_echo_n "checking
for $ac_word...
" >&6; }
5827 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5828 $as_echo_n "(cached
) " >&6
5830 if test -n "$DLLTOOL"; then
5831 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5850 DLLTOOL=$ac_cv_prog_DLLTOOL
5851 if test -n "$DLLTOOL"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5853 $as_echo "$DLLTOOL" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5856 $as_echo "no
" >&6; }
5861 if test -z "$ac_cv_prog_DLLTOOL"; then
5862 ac_ct_DLLTOOL=$DLLTOOL
5863 # Extract the first word of "dlltool
", so it can be a program name with args.
5864 set dummy dlltool; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5866 $as_echo_n "checking
for $ac_word...
" >&6; }
5867 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5868 $as_echo_n "(cached
) " >&6
5870 if test -n "$ac_ct_DLLTOOL"; then
5871 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5890 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5891 if test -n "$ac_ct_DLLTOOL"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5893 $as_echo "$ac_ct_DLLTOOL" >&6; }
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5896 $as_echo "no
" >&6; }
5899 if test "x
$ac_ct_DLLTOOL" = x; then
5902 case $cross_compiling:$ac_tool_warned in
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5905 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5906 ac_tool_warned=yes ;;
5908 DLLTOOL=$ac_ct_DLLTOOL
5911 DLLTOOL="$ac_cv_prog_DLLTOOL"
5914 test -z "$DLLTOOL" && DLLTOOL=dlltool
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5926 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5927 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
5928 $as_echo_n "(cached
) " >&6
5930 lt_cv_sharedlib_from_linklib_cmd='unknown'
5933 cygwin* | mingw* | pw32* | cegcc*)
5934 # two different shell functions defined in ltmain.sh
5935 # decide which to use based on capabilities of $DLLTOOL
5936 case `$DLLTOOL --help 2>&1` in
5937 *--identify-strict*)
5938 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5941 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5946 # fallback: assume linklib IS sharedlib
5947 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5953 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5954 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5955 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5964 if test -n "$ac_tool_prefix"; then
5967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5970 $as_echo_n "checking
for $ac_word...
" >&6; }
5971 if test "${ac_cv_prog_AR+set}" = set; then :
5972 $as_echo_n "(cached
) " >&6
5974 if test -n "$AR"; then
5975 ac_cv_prog_AR="$AR" # Let the user override the test.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5995 if test -n "$AR"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5997 $as_echo "$AR" >&6; }
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6000 $as_echo "no
" >&6; }
6004 test -n "$AR" && break
6007 if test -z "$AR"; then
6011 # Extract the first word of "$ac_prog", so it can be a program name with args.
6012 set dummy $ac_prog; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6014 $as_echo_n "checking
for $ac_word...
" >&6; }
6015 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6016 $as_echo_n "(cached
) " >&6
6018 if test -n "$ac_ct_AR"; then
6019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_prog_ac_ct_AR="$ac_prog"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6038 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6039 if test -n "$ac_ct_AR"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6041 $as_echo "$ac_ct_AR" >&6; }
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6044 $as_echo "no
" >&6; }
6048 test -n "$ac_ct_AR" && break
6051 if test "x
$ac_ct_AR" = x; then
6054 case $cross_compiling:$ac_tool_warned in
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6057 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6058 ac_tool_warned=yes ;;
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
6078 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
6079 if test "${lt_cv_ar_at_file+set}" = set; then :
6080 $as_echo_n "(cached
) " >&6
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6094 if ac_fn_c_try_compile "$LINENO"; then :
6095 echo conftest.$ac_objext > conftest.lst
6096 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6097 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6098 (eval $lt_ar_try) 2>&5
6100 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6101 test $ac_status = 0; }
6102 if test "$ac_status" -eq 0; then
6103 # Ensure the archiver fails upon bogus file names.
6104 rm -f conftest.$ac_objext libconftest.a
6105 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6106 (eval $lt_ar_try) 2>&5
6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6109 test $ac_status = 0; }
6110 if test "$ac_status" -ne 0; then
6114 rm -f conftest.* libconftest.a
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
6121 $as_echo "$lt_cv_ar_at_file" >&6; }
6123 if test "x
$lt_cv_ar_at_file" = xno; then
6126 archiver_list_spec=$lt_cv_ar_at_file
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}strip; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6139 $as_echo_n "checking
for $ac_word...
" >&6; }
6140 if test "${ac_cv_prog_STRIP+set}" = set; then :
6141 $as_echo_n "(cached
) " >&6
6143 if test -n "$STRIP"; then
6144 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6163 STRIP=$ac_cv_prog_STRIP
6164 if test -n "$STRIP"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6166 $as_echo "$STRIP" >&6; }
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6169 $as_echo "no
" >&6; }
6174 if test -z "$ac_cv_prog_STRIP"; then
6176 # Extract the first word of "strip
", so it can be a program name with args.
6177 set dummy strip; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6179 $as_echo_n "checking
for $ac_word...
" >&6; }
6180 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6181 $as_echo_n "(cached
) " >&6
6183 if test -n "$ac_ct_STRIP"; then
6184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_STRIP="strip
"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6203 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6204 if test -n "$ac_ct_STRIP"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6206 $as_echo "$ac_ct_STRIP" >&6; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6209 $as_echo "no
" >&6; }
6212 if test "x
$ac_ct_STRIP" = x; then
6215 case $cross_compiling:$ac_tool_warned in
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6218 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6219 ac_tool_warned=yes ;;
6224 STRIP="$ac_cv_prog_STRIP"
6227 test -z "$STRIP" && STRIP=:
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6238 $as_echo_n "checking
for $ac_word...
" >&6; }
6239 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6240 $as_echo_n "(cached
) " >&6
6242 if test -n "$RANLIB"; then
6243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6262 RANLIB=$ac_cv_prog_RANLIB
6263 if test -n "$RANLIB"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6265 $as_echo "$RANLIB" >&6; }
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6268 $as_echo "no
" >&6; }
6273 if test -z "$ac_cv_prog_RANLIB"; then
6274 ac_ct_RANLIB=$RANLIB
6275 # Extract the first word of "ranlib
", so it can be a program name with args.
6276 set dummy ranlib; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6278 $as_echo_n "checking
for $ac_word...
" >&6; }
6279 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6280 $as_echo_n "(cached
) " >&6
6282 if test -n "$ac_ct_RANLIB"; then
6283 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6302 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6303 if test -n "$ac_ct_RANLIB"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6305 $as_echo "$ac_ct_RANLIB" >&6; }
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6308 $as_echo "no
" >&6; }
6311 if test "x
$ac_ct_RANLIB" = x; then
6314 case $cross_compiling:$ac_tool_warned in
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6317 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6318 ac_tool_warned=yes ;;
6320 RANLIB=$ac_ct_RANLIB
6323 RANLIB="$ac_cv_prog_RANLIB"
6326 test -z "$RANLIB" && RANLIB=:
6333 # Determine commands to create old-style static archives.
6334 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6335 old_postinstall_cmds='chmod 644 $oldlib'
6336 old_postuninstall_cmds=
6338 if test -n "$RANLIB"; then
6341 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6344 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6347 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6352 lock_old_archive_extraction=yes ;;
6354 lock_old_archive_extraction=no ;;
6395 # If no C compiler was specified, use CC.
6398 # If no C compiler flags were specified, use CFLAGS.
6399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6401 # Allow CC to be a program name with arguments.
6405 # Check for command to grab the raw symbol name followed by C symbol from nm.
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6407 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6408 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6409 $as_echo_n "(cached
) " >&6
6412 # These are sane defaults that work on at least a few old systems.
6413 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6415 # Character class describing NM global symbol codes.
6416 symcode='[BCDEGRST]'
6418 # Regexp to match symbols that can be accessed directly from C.
6419 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6421 # Define system-specific variables.
6426 cygwin* | mingw* | pw32* | cegcc*)
6427 symcode='[ABCDGISTW]'
6430 if test "$host_cpu" = ia64; then
6431 symcode='[ABCDEGRST]'
6435 symcode='[BCDEGRST]'
6438 symcode='[BCDEGQRST]'
6449 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6457 # If we're using GNU nm, then use its standard symbol codes.
6458 case `$NM -V 2>&1` in
6459 *GNU* | *'with BFD'*)
6460 symcode='[ABCDGIRSTW]' ;;
6463 # Transform an extracted symbol line into a proper C declaration.
6464 # Some systems (esp. on ia64) link data and code symbols differently,
6465 # so use this general approach.
6466 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6468 # Transform an extracted symbol line into symbol name and symbol address
6469 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6470 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6472 # Handle CRLF in mingw tool chain
6476 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6480 # Try without a prefix underscore, then with it.
6481 for ac_symprfx in "" "_
"; do
6483 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6484 symxfrm="\\1 $ac_symprfx\\2 \\2"
6486 # Write the raw and C identifiers.
6487 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6488 # Fake it for dumpbin and say T for any non-static function
6489 # and D for any global variable.
6490 # Also find C++ and __fastcall symbols from MSVC++,
6491 # which start with @ or ?.
6492 lt_cv_sys_global_symbol_pipe="$AWK '"\
6493 " {last_section=section; section=\$ 3};"\
6494 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6495 " \$ 0!~/External *\|/{next};"\
6496 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6497 " {if(hide[section]) next};"\
6498 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6499 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6500 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6501 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6502 " ' prfx
=^
$ac_symprfx"
6504 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6506 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6508 # Check to see that the pipe works correctly.
6512 cat > conftest.$ac_ext <<_LT_EOF
6517 void nm_test_func(void);
6518 void nm_test_func(void){}
6522 int main(){nm_test_var='a';nm_test_func();return(0);}
6525 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6526 (eval $ac_compile) 2>&5
6528 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6529 test $ac_status = 0; }; then
6530 # Now try to grab the symbols.
6532 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6533 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6536 test $ac_status = 0; } && test -s "$nlist"; then
6537 # Try sorting and uniquifying the output.
6538 if sort "$nlist" | uniq > "$nlist"T; then
6539 mv -f "$nlist"T "$nlist"
6544 # Make sure that we snagged all the symbols we need.
6545 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6546 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6547 cat <<_LT_EOF > conftest.$ac_ext
6548 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6549 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6550 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6551 relocations are performed -- see ld's documentation on pseudo-relocs. */
6552 # define LT_DLSYM_CONST
6553 #elif defined(__osf__)
6554 /* This system does not cope well with relocations in const data. */
6555 # define LT_DLSYM_CONST
6557 # define LT_DLSYM_CONST const
6565 # Now generate the symbol file.
6566 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6568 cat <<_LT_EOF >> conftest.$ac_ext
6570 /* The mapping between symbol names and symbols. */
6571 LT_DLSYM_CONST struct {
6575 lt__PROGRAM__LTX_preloaded_symbols[] =
6577 { "@PROGRAM@
", (void *) 0 },
6579 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6580 cat <<\_LT_EOF >> conftest.$ac_ext
6584 /* This works around a problem in FreeBSD linker */
6585 #ifdef FREEBSD_WORKAROUND
6586 static const void *lt_preloaded_setup() {
6587 return lt__PROGRAM__LTX_preloaded_symbols;
6595 # Now try linking the two files.
6596 mv conftest.$ac_objext conftstm.$ac_objext
6597 lt_globsym_save_LIBS=$LIBS
6598 lt_globsym_save_CFLAGS=$CFLAGS
6599 LIBS="conftstm.
$ac_objext"
6600 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6601 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6602 (eval $ac_link) 2>&5
6604 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6605 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6608 LIBS=$lt_globsym_save_LIBS
6609 CFLAGS=$lt_globsym_save_CFLAGS
6611 echo "cannot
find nm_test_func
in $nlist" >&5
6614 echo "cannot
find nm_test_var
in $nlist" >&5
6617 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6620 echo "$progname: failed program was
:" >&5
6621 cat conftest.$ac_ext >&5
6623 rm -rf conftest* conftst*
6625 # Do not use the global_symbol_pipe unless it works.
6626 if test "$pipe_works" = yes; then
6629 lt_cv_sys_global_symbol_pipe=
6635 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6636 lt_cv_sys_global_symbol_to_cdecl=
6638 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6640 $as_echo "failed
" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6643 $as_echo "ok
" >&6; }
6646 # Response file support.
6647 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6648 nm_file_list_spec='@'
6649 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6650 nm_file_list_spec='@'
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6680 $as_echo_n "checking
for sysroot...
" >&6; }
6682 # Check whether --with-sysroot was given.
6683 if test "${with_sysroot+set}" = set; then :
6684 withval=$with_sysroot;
6691 case ${with_sysroot} in #(
6693 if test "$GCC" = yes; then
6694 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6698 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
6704 $as_echo "${with_sysroot}" >&6; }
6705 as_fn_error "The sysroot must be an absolute path.
" "$LINENO" 5
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6710 $as_echo "${lt_sysroot:-no}" >&6; }
6716 # Check whether --enable-libtool-lock was given.
6717 if test "${enable_libtool_lock+set}" = set; then :
6718 enableval=$enable_libtool_lock;
6721 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6723 # Some flags need to be propagated to the compiler or linker for good
6727 # Find out which ABI we are using.
6728 echo 'int i;' > conftest.$ac_ext
6729 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 case `/usr/bin/file conftest.$ac_objext` in
6746 # Find out which ABI we are using.
6747 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6748 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6749 (eval $ac_compile) 2>&5
6751 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6752 test $ac_status = 0; }; then
6753 if test "$lt_cv_prog_gnu_ld" = yes; then
6754 case `/usr/bin/file conftest.$ac_objext` in
6756 LD="${LD-ld} -melf32bsmip"
6759 LD="${LD-ld} -melf32bmipn32"
6762 LD="${LD-ld} -melf64bmip"
6766 case `/usr/bin/file conftest.$ac_objext` in
6782 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6783 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6784 # Find out which ABI we are using.
6785 echo 'int i;' > conftest.$ac_ext
6786 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6787 (eval $ac_compile) 2>&5
6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6790 test $ac_status = 0; }; then
6791 case `/usr/bin/file conftest.o` in
6794 x86_64-*kfreebsd*-gnu)
6795 LD="${LD-ld} -m elf_i386_fbsd
"
6798 LD="${LD-ld} -m elf_i386
"
6800 ppc64-*linux*|powerpc64-*linux*)
6801 LD="${LD-ld} -m elf32ppclinux
"
6804 LD="${LD-ld} -m elf_s390
"
6807 LD="${LD-ld} -m elf32_sparc
"
6813 x86_64-*kfreebsd*-gnu)
6814 LD="${LD-ld} -m elf_x86_64_fbsd
"
6817 LD="${LD-ld} -m elf_x86_64
"
6819 ppc*-*linux*|powerpc*-*linux*)
6820 LD="${LD-ld} -m elf64ppc
"
6822 s390*-*linux*|s390*-*tpf*)
6823 LD="${LD-ld} -m elf64_s390
"
6826 LD="${LD-ld} -m elf64_sparc
"
6836 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6837 SAVE_CFLAGS="$CFLAGS"
6838 CFLAGS="$CFLAGS -belf"
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6840 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6841 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6842 $as_echo_n "(cached
) " >&6
6845 ac_cpp='$CPP $CPPFLAGS'
6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6861 if ac_fn_c_try_link "$LINENO"; then :
6862 lt_cv_cc_needs_belf=yes
6864 lt_cv_cc_needs_belf=no
6866 rm -f core conftest.err conftest.$ac_objext \
6867 conftest$ac_exeext conftest.$ac_ext
6869 ac_cpp='$CPP $CPPFLAGS'
6870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6876 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6877 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6878 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6879 CFLAGS="$SAVE_CFLAGS"
6883 # Find out which ABI we are using.
6884 echo 'int i;' > conftest.$ac_ext
6885 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886 (eval $ac_compile) 2>&5
6888 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6889 test $ac_status = 0; }; then
6890 case `/usr/bin/file conftest.o` in
6892 case $lt_cv_prog_gnu_ld in
6893 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6895 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6907 need_locks="$enable_libtool_lock"
6909 if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6911 set dummy ${ac_tool_prefix}mt; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6913 $as_echo_n "checking
for $ac_word...
" >&6; }
6914 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
6915 $as_echo_n "(cached
) " >&6
6917 if test -n "$MANIFEST_TOOL"; then
6918 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6937 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6938 if test -n "$MANIFEST_TOOL"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6940 $as_echo "$MANIFEST_TOOL" >&6; }
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6943 $as_echo "no
" >&6; }
6948 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6949 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6950 # Extract the first word of "mt
", so it can be a program name with args.
6951 set dummy mt; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6953 $as_echo_n "checking
for $ac_word...
" >&6; }
6954 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
6955 $as_echo_n "(cached
) " >&6
6957 if test -n "$ac_ct_MANIFEST_TOOL"; then
6958 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6977 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6978 if test -n "$ac_ct_MANIFEST_TOOL"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
6980 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6983 $as_echo "no
" >&6; }
6986 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
6989 case $cross_compiling:$ac_tool_warned in
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6992 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6993 ac_tool_warned=yes ;;
6995 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6998 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7001 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7003 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7004 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
7005 $as_echo_n "(cached
) " >&6
7007 lt_cv_path_mainfest_tool=no
7008 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7009 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7010 cat conftest.err >&5
7011 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7012 lt_cv_path_mainfest_tool=yes
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7017 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7018 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
7028 rhapsody* | darwin*)
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7031 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7033 $as_echo_n "checking
for $ac_word...
" >&6; }
7034 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7035 $as_echo_n "(cached
) " >&6
7037 if test -n "$DSYMUTIL"; then
7038 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7057 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7058 if test -n "$DSYMUTIL"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7060 $as_echo "$DSYMUTIL" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7063 $as_echo "no
" >&6; }
7068 if test -z "$ac_cv_prog_DSYMUTIL"; then
7069 ac_ct_DSYMUTIL=$DSYMUTIL
7070 # Extract the first word of "dsymutil
", so it can be a program name with args.
7071 set dummy dsymutil; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7073 $as_echo_n "checking
for $ac_word...
" >&6; }
7074 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7075 $as_echo_n "(cached
) " >&6
7077 if test -n "$ac_ct_DSYMUTIL"; then
7078 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7097 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7098 if test -n "$ac_ct_DSYMUTIL"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7100 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7103 $as_echo "no
" >&6; }
7106 if test "x
$ac_ct_DSYMUTIL" = x; then
7109 case $cross_compiling:$ac_tool_warned in
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7112 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7113 ac_tool_warned=yes ;;
7115 DSYMUTIL=$ac_ct_DSYMUTIL
7118 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7125 $as_echo_n "checking
for $ac_word...
" >&6; }
7126 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7127 $as_echo_n "(cached
) " >&6
7129 if test -n "$NMEDIT"; then
7130 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7149 NMEDIT=$ac_cv_prog_NMEDIT
7150 if test -n "$NMEDIT"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7152 $as_echo "$NMEDIT" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7155 $as_echo "no
" >&6; }
7160 if test -z "$ac_cv_prog_NMEDIT"; then
7161 ac_ct_NMEDIT=$NMEDIT
7162 # Extract the first word of "nmedit
", so it can be a program name with args.
7163 set dummy nmedit; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7165 $as_echo_n "checking
for $ac_word...
" >&6; }
7166 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7167 $as_echo_n "(cached
) " >&6
7169 if test -n "$ac_ct_NMEDIT"; then
7170 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7189 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7190 if test -n "$ac_ct_NMEDIT"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7192 $as_echo "$ac_ct_NMEDIT" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7195 $as_echo "no
" >&6; }
7198 if test "x
$ac_ct_NMEDIT" = x; then
7201 case $cross_compiling:$ac_tool_warned in
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7204 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7205 ac_tool_warned=yes ;;
7207 NMEDIT=$ac_ct_NMEDIT
7210 NMEDIT="$ac_cv_prog_NMEDIT"
7213 if test -n "$ac_tool_prefix"; then
7214 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7215 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7217 $as_echo_n "checking
for $ac_word...
" >&6; }
7218 if test "${ac_cv_prog_LIPO+set}" = set; then :
7219 $as_echo_n "(cached
) " >&6
7221 if test -n "$LIPO"; then
7222 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7232 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7241 LIPO=$ac_cv_prog_LIPO
7242 if test -n "$LIPO"; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7244 $as_echo "$LIPO" >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7247 $as_echo "no
" >&6; }
7252 if test -z "$ac_cv_prog_LIPO"; then
7254 # Extract the first word of "lipo
", so it can be a program name with args.
7255 set dummy lipo; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7257 $as_echo_n "checking
for $ac_word...
" >&6; }
7258 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7259 $as_echo_n "(cached
) " >&6
7261 if test -n "$ac_ct_LIPO"; then
7262 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_prog_ac_ct_LIPO="lipo
"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7281 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7282 if test -n "$ac_ct_LIPO"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7284 $as_echo "$ac_ct_LIPO" >&6; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7287 $as_echo "no
" >&6; }
7290 if test "x
$ac_ct_LIPO" = x; then
7293 case $cross_compiling:$ac_tool_warned in
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7296 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7297 ac_tool_warned=yes ;;
7302 LIPO="$ac_cv_prog_LIPO"
7305 if test -n "$ac_tool_prefix"; then
7306 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7307 set dummy ${ac_tool_prefix}otool; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7309 $as_echo_n "checking
for $ac_word...
" >&6; }
7310 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7311 $as_echo_n "(cached
) " >&6
7313 if test -n "$OTOOL"; then
7314 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7333 OTOOL=$ac_cv_prog_OTOOL
7334 if test -n "$OTOOL"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7336 $as_echo "$OTOOL" >&6; }
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7339 $as_echo "no
" >&6; }
7344 if test -z "$ac_cv_prog_OTOOL"; then
7346 # Extract the first word of "otool
", so it can be a program name with args.
7347 set dummy otool; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7349 $as_echo_n "checking
for $ac_word...
" >&6; }
7350 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7351 $as_echo_n "(cached
) " >&6
7353 if test -n "$ac_ct_OTOOL"; then
7354 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_prog_ac_ct_OTOOL="otool
"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7373 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7374 if test -n "$ac_ct_OTOOL"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7376 $as_echo "$ac_ct_OTOOL" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7379 $as_echo "no
" >&6; }
7382 if test "x
$ac_ct_OTOOL" = x; then
7385 case $cross_compiling:$ac_tool_warned in
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7388 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7389 ac_tool_warned=yes ;;
7394 OTOOL="$ac_cv_prog_OTOOL"
7397 if test -n "$ac_tool_prefix"; then
7398 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7399 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7401 $as_echo_n "checking
for $ac_word...
" >&6; }
7402 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7403 $as_echo_n "(cached
) " >&6
7405 if test -n "$OTOOL64"; then
7406 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7415 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7425 OTOOL64=$ac_cv_prog_OTOOL64
7426 if test -n "$OTOOL64"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7428 $as_echo "$OTOOL64" >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7431 $as_echo "no
" >&6; }
7436 if test -z "$ac_cv_prog_OTOOL64"; then
7437 ac_ct_OTOOL64=$OTOOL64
7438 # Extract the first word of "otool64
", so it can be a program name with args.
7439 set dummy otool64; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7441 $as_echo_n "checking
for $ac_word...
" >&6; }
7442 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7443 $as_echo_n "(cached
) " >&6
7445 if test -n "$ac_ct_OTOOL64"; then
7446 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7455 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7465 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7466 if test -n "$ac_ct_OTOOL64"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7468 $as_echo "$ac_ct_OTOOL64" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7471 $as_echo "no
" >&6; }
7474 if test "x
$ac_ct_OTOOL64" = x; then
7477 case $cross_compiling:$ac_tool_warned in
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7480 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7481 ac_tool_warned=yes ;;
7483 OTOOL64=$ac_ct_OTOOL64
7486 OTOOL64="$ac_cv_prog_OTOOL64"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7516 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7517 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7518 $as_echo_n "(cached
) " >&6
7520 lt_cv_apple_cc_single_mod=no
7521 if test -z "${LT_MULTI_MODULE}"; then
7522 # By default we will add the -single_module flag. You can override
7523 # by either setting the environment variable LT_MULTI_MODULE
7524 # non-empty at configure time, or by adding -multi_module to the
7526 rm -rf libconftest.dylib*
7527 echo "int foo
(void
){return 1;}" > conftest.c
7528 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7529 -dynamiclib -Wl,-single_module conftest.c
" >&5
7530 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7531 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7533 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7534 lt_cv_apple_cc_single_mod=yes
7536 cat conftest.err >&5
7538 rm -rf libconftest.dylib*
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7543 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7545 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7546 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7547 $as_echo_n "(cached
) " >&6
7549 lt_cv_ld_exported_symbols_list=no
7550 save_LDFLAGS=$LDFLAGS
7551 echo "_main
" > conftest.sym
7552 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7564 if ac_fn_c_try_link "$LINENO"; then :
7565 lt_cv_ld_exported_symbols_list=yes
7567 lt_cv_ld_exported_symbols_list=no
7569 rm -f core conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7571 LDFLAGS="$save_LDFLAGS"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7575 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7577 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7578 if test "${lt_cv_ld_force_load+set}" = set; then :
7579 $as_echo_n "(cached
) " >&6
7581 lt_cv_ld_force_load=no
7582 cat > conftest.c << _LT_EOF
7583 int forced_loaded() { return 2;}
7585 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7586 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7587 echo "$AR cru libconftest.a conftest.o
" >&5
7588 $AR cru libconftest.a conftest.o 2>&5
7589 echo "$RANLIB libconftest.a
" >&5
7590 $RANLIB libconftest.a 2>&5
7591 cat > conftest.c << _LT_EOF
7592 int main() { return 0;}
7594 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7595 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7597 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7598 lt_cv_ld_force_load=yes
7600 cat conftest.err >&5
7602 rm -f conftest.err libconftest.a conftest conftest.c
7603 rm -rf conftest.dSYM
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7607 $as_echo "$lt_cv_ld_force_load" >&6; }
7609 rhapsody* | darwin1.[012])
7610 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7613 darwin*) # darwin 5.x on
7614 # if running on 10.5 or later, the deployment target defaults
7615 # to the OS version, if on x86, and 10.4, the deployment
7616 # target defaults to 10.4. Don't you love it?
7617 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7618 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7621 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7623 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7627 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7628 _lt_dar_single_mod='$single_module'
7630 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7631 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7633 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7635 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7636 _lt_dsymutil='~$DSYMUTIL $lib || :'
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7645 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7646 if test "${ac_cv_header_stdc+set}" = set; then :
7647 $as_echo_n "(cached
) " >&6
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7664 if ac_fn_c_try_compile "$LINENO"; then :
7665 ac_cv_header_stdc=yes
7667 ac_cv_header_stdc=no
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 if test $ac_cv_header_stdc = yes; then
7672 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7678 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7679 $EGREP "memchr
" >/dev/null 2>&1; then :
7682 ac_cv_header_stdc=no
7688 if test $ac_cv_header_stdc = yes; then
7689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7695 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7696 $EGREP "free
" >/dev/null 2>&1; then :
7699 ac_cv_header_stdc=no
7705 if test $ac_cv_header_stdc = yes; then
7706 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7707 if test "$cross_compiling" = yes; then :
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7714 #if ((' ' & 0x0FF) == 0x020)
7715 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7716 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7718 # define ISLOWER(c) \
7719 (('a' <= (c) && (c) <= 'i') \
7720 || ('j' <= (c) && (c) <= 'r') \
7721 || ('s' <= (c) && (c) <= 'z'))
7722 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7725 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7730 for (i = 0; i < 256; i++)
7731 if (XOR (islower (i), ISLOWER (i))
7732 || toupper (i) != TOUPPER (i))
7737 if ac_fn_c_try_run "$LINENO"; then :
7740 ac_cv_header_stdc=no
7742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7743 conftest.$ac_objext conftest.beam conftest.$ac_ext
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7749 $as_echo "$ac_cv_header_stdc" >&6; }
7750 if test $ac_cv_header_stdc = yes; then
7752 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7756 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7757 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7758 inttypes.h stdint.h unistd.h
7760 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7761 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7763 eval as_val
=\$
$as_ac_Header
7764 if test "x$as_val" = x
""yes; then :
7765 cat >>confdefs.h
<<_ACEOF
7766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7774 for ac_header
in dlfcn.h
7776 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7778 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7779 cat >>confdefs.h
<<_ACEOF
7780 #define HAVE_DLFCN_H 1
7801 # Check whether --enable-shared was given.
7802 if test "${enable_shared+set}" = set; then :
7803 enableval
=$enable_shared; p
=${PACKAGE-default}
7805 yes) enable_shared
=yes ;;
7806 no
) enable_shared
=no
;;
7809 # Look at the argument we got. We use all the common list separators.
7810 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7811 for pkg
in $enableval; do
7813 if test "X$pkg" = "X$p"; then
7832 # Check whether --enable-static was given.
7833 if test "${enable_static+set}" = set; then :
7834 enableval
=$enable_static; p
=${PACKAGE-default}
7836 yes) enable_static
=yes ;;
7837 no
) enable_static
=no
;;
7840 # Look at the argument we got. We use all the common list separators.
7841 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7842 for pkg
in $enableval; do
7844 if test "X$pkg" = "X$p"; then
7864 # Check whether --with-pic was given.
7865 if test "${with_pic+set}" = set; then :
7866 withval
=$with_pic; pic_mode
="$withval"
7872 test -z "$pic_mode" && pic_mode
=default
7880 # Check whether --enable-fast-install was given.
7881 if test "${enable_fast_install+set}" = set; then :
7882 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7884 yes) enable_fast_install
=yes ;;
7885 no
) enable_fast_install
=no
;;
7887 enable_fast_install
=no
7888 # Look at the argument we got. We use all the common list separators.
7889 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7890 for pkg
in $enableval; do
7892 if test "X$pkg" = "X$p"; then
7893 enable_fast_install
=yes
7900 enable_fast_install
=yes
7913 # This can be used to rebuild libtool when needed
7914 LIBTOOL_DEPS
="$ltmain"
7916 # Always use our own libtool.
7917 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7944 test -z "$LN_S" && LN_S
="ln -s"
7959 if test -n "${ZSH_VERSION+set}" ; then
7960 setopt NO_GLOB_SUBST
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7964 $as_echo_n "checking for objdir... " >&6; }
7965 if test "${lt_cv_objdir+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7968 rm -f .libs
2>/dev
/null
7969 mkdir .libs
2>/dev
/null
7970 if test -d .libs
; then
7973 # MS-DOS does not allow filenames that begin with a dot.
7976 rmdir .libs
2>/dev
/null
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7979 $as_echo "$lt_cv_objdir" >&6; }
7980 objdir
=$lt_cv_objdir
7986 cat >>confdefs.h
<<_ACEOF
7987 #define LT_OBJDIR "$lt_cv_objdir/"
7995 # AIX sometimes has problems with the GCC collect2 program. For some
7996 # reason, if we set the COLLECT_NAMES environment variable, the problems
7997 # vanish in a puff of smoke.
7998 if test "X${COLLECT_NAMES+set}" != Xset
; then
8000 export COLLECT_NAMES
8007 can_build_shared
=yes
8009 # All known linkers require a `.a' archive for static linking (except MSVC,
8010 # which needs '.lib').
8013 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8016 old_CFLAGS
="$CFLAGS"
8018 # Set sane defaults for various variables
8019 test -z "$CC" && CC
=cc
8020 test -z "$LTCC" && LTCC
=$CC
8021 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8022 test -z "$LD" && LD
=ld
8023 test -z "$ac_objext" && ac_objext
=o
8025 for cc_temp
in $compiler""; do
8027 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8028 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8033 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8036 # Only perform the check for file, if the check method requires it
8037 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8038 case $deplibs_check_method in
8040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8042 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8048 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8051 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8052 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8053 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8054 for ac_dir
in $ac_dummy; do
8056 test -z "$ac_dir" && ac_dir
=.
8057 if test -f $ac_dir/${ac_tool_prefix}file; then
8058 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8059 if test -n "$file_magic_test_file"; then
8060 case $deplibs_check_method in
8062 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8063 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8064 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8065 $EGREP "$file_magic_regex" > /dev
/null
; then
8070 *** Warning: the command libtool uses to detect shared libraries,
8071 *** $file_magic_cmd, produces output that libtool cannot recognize.
8072 *** The result is that libtool may fail to recognize shared libraries
8073 *** as such. This will affect the creation of libtool libraries that
8074 *** depend on shared libraries, but programs linked with such libtool
8075 *** libraries will work regardless of this problem. Nevertheless, you
8076 *** may want to report the problem to your system manager and/or to
8077 *** bug-libtool@gnu.org
8087 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8092 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8093 if test -n "$MAGIC_CMD"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8095 $as_echo "$MAGIC_CMD" >&6; }
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8105 if test -z "$lt_cv_path_MAGIC_CMD"; then
8106 if test -n "$ac_tool_prefix"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8108 $as_echo_n "checking for file... " >&6; }
8109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8114 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8117 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8118 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8119 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8120 for ac_dir
in $ac_dummy; do
8122 test -z "$ac_dir" && ac_dir
=.
8123 if test -f $ac_dir/file; then
8124 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8125 if test -n "$file_magic_test_file"; then
8126 case $deplibs_check_method in
8128 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8129 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8130 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8131 $EGREP "$file_magic_regex" > /dev
/null
; then
8136 *** Warning: the command libtool uses to detect shared libraries,
8137 *** $file_magic_cmd, produces output that libtool cannot recognize.
8138 *** The result is that libtool may fail to recognize shared libraries
8139 *** as such. This will affect the creation of libtool libraries that
8140 *** depend on shared libraries, but programs linked with such libtool
8141 *** libraries will work regardless of this problem. Nevertheless, you
8142 *** may want to report the problem to your system manager and/or to
8143 *** bug-libtool@gnu.org
8153 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8158 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8159 if test -n "$MAGIC_CMD"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8161 $as_echo "$MAGIC_CMD" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8177 # Use C for the default configuration in the libtool script
8181 ac_cpp
='$CPP $CPPFLAGS'
8182 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8183 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8184 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8187 # Source file extension for C test sources.
8190 # Object file extension for compiled C test sources.
8194 # Code to be used in simple compile tests
8195 lt_simple_compile_test_code
="int some_variable = 0;"
8197 # Code to be used in simple link tests
8198 lt_simple_link_test_code
='int main(){return(0);}'
8206 # If no C compiler was specified, use CC.
8209 # If no C compiler flags were specified, use CFLAGS.
8210 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8212 # Allow CC to be a program name with arguments.
8215 # Save the default compiler, since it gets overwritten when the other
8216 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8217 compiler_DEFAULT
=$CC
8219 # save warnings/boilerplate of simple test code
8220 ac_outfile
=conftest.
$ac_objext
8221 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8222 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8223 _lt_compiler_boilerplate
=`cat conftest.err`
8226 ac_outfile
=conftest.
$ac_objext
8227 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8228 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8229 _lt_linker_boilerplate
=`cat conftest.err`
8234 ## There is no encapsulation within the following macros, do not change
8235 ## the running order or otherwise move them around unless you know exactly
8236 ## what you are doing...
8237 if test -n "$compiler"; then
8239 lt_prog_compiler_no_builtin_flag
=
8241 if test "$GCC" = yes; then
8242 case $cc_basename in
8244 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8246 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8250 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8251 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8254 lt_cv_prog_compiler_rtti_exceptions
=no
8255 ac_outfile
=conftest.
$ac_objext
8256 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8257 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8258 # Insert the option either (1) after the last *FLAGS variable, or
8259 # (2) before a word containing "conftest.", or (3) at the end.
8260 # Note that $ac_compile itself does not contain backslashes and begins
8261 # with a dollar sign (not a hyphen), so the echo should work correctly.
8262 # The option is referenced via a variable to avoid confusing sed.
8263 lt_compile
=`echo "$ac_compile" | $SED \
8264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8266 -e 's:$: $lt_compiler_flag:'`
8267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8268 (eval "$lt_compile" 2>conftest.err
)
8270 cat conftest.err
>&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 if (exit $ac_status) && test -s "$ac_outfile"; then
8273 # The compiler can only warn and ignore the option if not recognized
8274 # So say no if there are warnings other than the usual output.
8275 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8276 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8277 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8278 lt_cv_prog_compiler_rtti_exceptions
=yes
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8285 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8287 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8288 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8300 lt_prog_compiler_wl
=
8301 lt_prog_compiler_pic
=
8302 lt_prog_compiler_static
=
8305 if test "$GCC" = yes; then
8306 lt_prog_compiler_wl
='-Wl,'
8307 lt_prog_compiler_static
='-static'
8311 # All AIX code is PIC.
8312 if test "$host_cpu" = ia64
; then
8313 # AIX 5 now supports IA64 processor
8314 lt_prog_compiler_static
='-Bstatic'
8321 # see comment about AmigaOS4 .so support
8322 lt_prog_compiler_pic
='-fPIC'
8325 # FIXME: we need at least 68020 code to build shared libraries, but
8326 # adding the `-m68020' flag to GCC prevents building anything better,
8328 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8333 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8334 # PIC is the default for these OSes.
8337 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8338 # This hack is so that the source file can tell whether it is being
8339 # built for inclusion in a dll (and should export symbols for example).
8340 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8341 # (--disable-auto-import) libraries
8342 lt_prog_compiler_pic
='-DDLL_EXPORT'
8345 darwin
* | rhapsody
*)
8346 # PIC is the default on this platform
8347 # Common symbols not allowed in MH_DYLIB files
8348 lt_prog_compiler_pic
='-fno-common'
8352 # PIC is the default for Haiku.
8353 # The "-static" flag exists, but is broken.
8354 lt_prog_compiler_static
=
8358 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8359 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8360 # sets the default TLS model and affects inlining.
8366 lt_prog_compiler_pic
='-fPIC'
8372 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8373 # Instead, we relocate shared libraries at runtime.
8377 # Just because we use GCC doesn't mean we suddenly get shared libraries
8378 # on systems that don't support them.
8379 lt_prog_compiler_can_build_shared
=no
8384 # QNX uses GNU C++, but need to define -shared option too, otherwise
8386 lt_prog_compiler_pic
='-fPIC -shared'
8390 if test -d /usr
/nec
; then
8391 lt_prog_compiler_pic
=-Kconform_pic
8396 lt_prog_compiler_pic
='-fPIC'
8400 case $cc_basename in
8401 nvcc
*) # Cuda Compiler Driver 2.2
8402 lt_prog_compiler_wl
='-Xlinker '
8403 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8407 # PORTME Check for flag to pass linker flags through the system compiler.
8410 lt_prog_compiler_wl
='-Wl,'
8411 if test "$host_cpu" = ia64
; then
8412 # AIX 5 now supports IA64 processor
8413 lt_prog_compiler_static
='-Bstatic'
8415 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8419 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8420 # This hack is so that the source file can tell whether it is being
8421 # built for inclusion in a dll (and should export symbols for example).
8422 lt_prog_compiler_pic
='-DDLL_EXPORT'
8425 hpux9
* | hpux10
* | hpux11
*)
8426 lt_prog_compiler_wl
='-Wl,'
8427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8434 lt_prog_compiler_pic
='+Z'
8437 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8438 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8441 irix5
* | irix6
* | nonstopux
*)
8442 lt_prog_compiler_wl
='-Wl,'
8443 # PIC (with -KPIC) is the default.
8444 lt_prog_compiler_static
='-non_shared'
8447 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8448 case $cc_basename in
8449 # old Intel for x86_64 which still supported -KPIC.
8451 lt_prog_compiler_wl
='-Wl,'
8452 lt_prog_compiler_pic
='-KPIC'
8453 lt_prog_compiler_static
='-static'
8455 # icc used to be incompatible with GCC.
8456 # ICC 10 doesn't accept -KPIC any more.
8458 lt_prog_compiler_wl
='-Wl,'
8459 lt_prog_compiler_pic
='-fPIC'
8460 lt_prog_compiler_static
='-static'
8462 # Lahey Fortran 8.1.
8464 lt_prog_compiler_wl
='-Wl,'
8465 lt_prog_compiler_pic
='--shared'
8466 lt_prog_compiler_static
='--static'
8469 # NAG Fortran compiler
8470 lt_prog_compiler_wl
='-Wl,-Wl,,'
8471 lt_prog_compiler_pic
='-PIC'
8472 lt_prog_compiler_static
='-Bstatic'
8474 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8475 # Portland Group compilers (*not* the Pentium gcc compiler,
8476 # which looks to be a dead project)
8477 lt_prog_compiler_wl
='-Wl,'
8478 lt_prog_compiler_pic
='-fpic'
8479 lt_prog_compiler_static
='-Bstatic'
8482 lt_prog_compiler_wl
='-Wl,'
8483 # All Alpha code is PIC.
8484 lt_prog_compiler_static
='-non_shared'
8486 xl
* | bgxl
* | bgf
* | mpixl
*)
8487 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8488 lt_prog_compiler_wl
='-Wl,'
8489 lt_prog_compiler_pic
='-qpic'
8490 lt_prog_compiler_static
='-qstaticlink'
8493 case `$CC -V 2>&1 | sed 5q` in
8494 *Sun\ F
* |
*Sun
*Fortran
*)
8495 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8496 lt_prog_compiler_pic
='-KPIC'
8497 lt_prog_compiler_static
='-Bstatic'
8498 lt_prog_compiler_wl
=''
8502 lt_prog_compiler_pic
='-KPIC'
8503 lt_prog_compiler_static
='-Bstatic'
8504 lt_prog_compiler_wl
='-Wl,'
8512 lt_prog_compiler_pic
='-KPIC'
8513 lt_prog_compiler_static
='-Bstatic'
8517 # QNX uses GNU C++, but need to define -shared option too, otherwise
8519 lt_prog_compiler_pic
='-fPIC -shared'
8522 osf3
* | osf4
* | osf5
*)
8523 lt_prog_compiler_wl
='-Wl,'
8524 # All OSF/1 code is PIC.
8525 lt_prog_compiler_static
='-non_shared'
8529 lt_prog_compiler_static
='-non_shared'
8533 lt_prog_compiler_pic
='-KPIC'
8534 lt_prog_compiler_static
='-Bstatic'
8535 case $cc_basename in
8536 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8537 lt_prog_compiler_wl
='-Qoption ld ';;
8539 lt_prog_compiler_wl
='-Wl,';;
8544 lt_prog_compiler_wl
='-Qoption ld '
8545 lt_prog_compiler_pic
='-PIC'
8546 lt_prog_compiler_static
='-Bstatic'
8549 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8550 lt_prog_compiler_wl
='-Wl,'
8551 lt_prog_compiler_pic
='-KPIC'
8552 lt_prog_compiler_static
='-Bstatic'
8556 if test -d /usr
/nec
;then
8557 lt_prog_compiler_pic
='-Kconform_pic'
8558 lt_prog_compiler_static
='-Bstatic'
8562 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8563 lt_prog_compiler_wl
='-Wl,'
8564 lt_prog_compiler_pic
='-KPIC'
8565 lt_prog_compiler_static
='-Bstatic'
8569 lt_prog_compiler_wl
='-Wl,'
8570 lt_prog_compiler_can_build_shared
=no
8574 lt_prog_compiler_pic
='-pic'
8575 lt_prog_compiler_static
='-Bstatic'
8579 lt_prog_compiler_can_build_shared
=no
8585 # For platforms which do not support PIC, -DPIC is meaningless:
8587 lt_prog_compiler_pic
=
8590 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8595 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8596 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8599 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8602 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8603 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8606 # Check to make sure the PIC flag actually works.
8608 if test -n "$lt_prog_compiler_pic"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8610 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8611 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8612 $as_echo_n "(cached) " >&6
8614 lt_cv_prog_compiler_pic_works
=no
8615 ac_outfile
=conftest.
$ac_objext
8616 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8617 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8618 # Insert the option either (1) after the last *FLAGS variable, or
8619 # (2) before a word containing "conftest.", or (3) at the end.
8620 # Note that $ac_compile itself does not contain backslashes and begins
8621 # with a dollar sign (not a hyphen), so the echo should work correctly.
8622 # The option is referenced via a variable to avoid confusing sed.
8623 lt_compile
=`echo "$ac_compile" | $SED \
8624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8626 -e 's:$: $lt_compiler_flag:'`
8627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8628 (eval "$lt_compile" 2>conftest.err
)
8630 cat conftest.err
>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 if (exit $ac_status) && test -s "$ac_outfile"; then
8633 # The compiler can only warn and ignore the option if not recognized
8634 # So say no if there are warnings other than the usual output.
8635 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8636 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8637 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8638 lt_cv_prog_compiler_pic_works
=yes
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8645 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8647 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8648 case $lt_prog_compiler_pic in
8650 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8653 lt_prog_compiler_pic
=
8654 lt_prog_compiler_can_build_shared
=no
8670 # Check to make sure the static flag actually works.
8672 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8674 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8675 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8676 $as_echo_n "(cached) " >&6
8678 lt_cv_prog_compiler_static_works
=no
8679 save_LDFLAGS
="$LDFLAGS"
8680 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8681 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8682 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8683 # The linker can only warn and ignore the option if not recognized
8684 # So say no if there are warnings
8685 if test -s conftest.err
; then
8686 # Append any errors to the config.log.
8687 cat conftest.err
1>&5
8688 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8689 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8690 if diff conftest.exp conftest.er2
>/dev
/null
; then
8691 lt_cv_prog_compiler_static_works
=yes
8694 lt_cv_prog_compiler_static_works
=yes
8698 LDFLAGS
="$save_LDFLAGS"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8702 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8704 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8707 lt_prog_compiler_static
=
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8717 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8718 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
8721 lt_cv_prog_compiler_c_o
=no
8722 $RM -r conftest
2>/dev
/null
8726 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8728 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8729 # Insert the option either (1) after the last *FLAGS variable, or
8730 # (2) before a word containing "conftest.", or (3) at the end.
8731 # Note that $ac_compile itself does not contain backslashes and begins
8732 # with a dollar sign (not a hyphen), so the echo should work correctly.
8733 lt_compile
=`echo "$ac_compile" | $SED \
8734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736 -e 's:$: $lt_compiler_flag:'`
8737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8738 (eval "$lt_compile" 2>out
/conftest.err
)
8740 cat out
/conftest.err
>&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8744 # The compiler can only warn and ignore the option if not recognized
8745 # So say no if there are warnings
8746 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8747 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8748 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8749 lt_cv_prog_compiler_c_o
=yes
8754 # SGI C++ compiler will create directory out/ii_files/ for
8755 # template instantiation
8756 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8757 $RM out
/* && rmdir out
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8764 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8772 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8773 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8776 lt_cv_prog_compiler_c_o
=no
8777 $RM -r conftest
2>/dev
/null
8781 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8783 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8784 # Insert the option either (1) after the last *FLAGS variable, or
8785 # (2) before a word containing "conftest.", or (3) at the end.
8786 # Note that $ac_compile itself does not contain backslashes and begins
8787 # with a dollar sign (not a hyphen), so the echo should work correctly.
8788 lt_compile
=`echo "$ac_compile" | $SED \
8789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8791 -e 's:$: $lt_compiler_flag:'`
8792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8793 (eval "$lt_compile" 2>out
/conftest.err
)
8795 cat out
/conftest.err
>&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8799 # The compiler can only warn and ignore the option if not recognized
8800 # So say no if there are warnings
8801 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8802 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8803 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8804 lt_cv_prog_compiler_c_o
=yes
8809 # SGI C++ compiler will create directory out/ii_files/ for
8810 # template instantiation
8811 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8812 $RM out
/* && rmdir out
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8819 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8824 hard_links
="nottested"
8825 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8826 # do not overwrite the value of need_locks provided by the user
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8828 $as_echo_n "checking if we can lock with hard links... " >&6; }
8831 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8833 ln conftest.a conftest.b
2>&5 || hard_links
=no
8834 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8836 $as_echo "$hard_links" >&6; }
8837 if test "$hard_links" = no
; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8839 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8852 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8855 allow_undefined_flag
=
8856 always_export_symbols
=no
8858 archive_expsym_cmds
=
8859 compiler_needs_object
=no
8860 enable_shared_with_static_runtimes
=no
8861 export_dynamic_flag_spec
=
8862 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8863 hardcode_automatic
=no
8865 hardcode_direct_absolute
=no
8866 hardcode_libdir_flag_spec
=
8867 hardcode_libdir_flag_spec_ld
=
8868 hardcode_libdir_separator
=
8870 hardcode_shlibpath_var
=unsupported
8872 link_all_deplibs
=unknown
8875 old_archive_from_new_cmds
=
8876 old_archive_from_expsyms_cmds
=
8877 thread_safe_flag_spec
=
8878 whole_archive_flag_spec
=
8879 # include_expsyms should be a list of space-separated symbols to be *always*
8880 # included in the symbol list
8882 # exclude_expsyms can be an extended regexp of symbols to exclude
8883 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8884 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8885 # as well as any symbol that contains `d'.
8886 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8887 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8888 # platforms (ab)use it in PIC code, but their linkers get confused if
8889 # the symbol is explicitly referenced. Since portable code cannot
8890 # rely on this symbol name, it's probably fine to never include it in
8891 # preloaded symbol tables.
8892 # Exclude shared library initialization/finalization symbols.
8893 extract_expsyms_cmds
=
8896 cygwin
* | mingw
* | pw32
* | cegcc
*)
8897 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8898 # When not using gcc, we currently assume that we are using
8899 # Microsoft Visual C++.
8900 if test "$GCC" != yes; then
8905 # we just hope/assume this is gcc and not c89 (= MSVC++)
8915 # On some targets, GNU ld is compatible enough with the native linker
8916 # that we're better off using the native interface for both.
8917 lt_use_gnu_ld_interface
=no
8918 if test "$with_gnu_ld" = yes; then
8921 # The AIX port of GNU ld has always aspired to compatibility
8922 # with the native linker. However, as the warning in the GNU ld
8923 # block says, versions before 2.19.5* couldn't really create working
8924 # shared libraries, regardless of the interface used.
8925 case `$LD -v 2>&1` in
8926 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8927 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8928 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8930 lt_use_gnu_ld_interface
=yes
8935 lt_use_gnu_ld_interface
=yes
8940 if test "$lt_use_gnu_ld_interface" = yes; then
8941 # If archive_cmds runs LD, not CC, wlarc should be empty
8944 # Set some defaults for GNU ld with shared library support. These
8945 # are reset later if shared libraries are not supported. Putting them
8946 # here allows them to be overridden if necessary.
8947 runpath_var
=LD_RUN_PATH
8948 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8949 export_dynamic_flag_spec
='${wl}--export-dynamic'
8950 # ancient GNU ld didn't support --whole-archive et. al.
8951 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8952 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8954 whole_archive_flag_spec
=
8956 supports_anon_versioning
=no
8957 case `$LD -v 2>&1` in
8958 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8959 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8960 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8961 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8962 *\
2.11.
*) ;; # other 2.11 versions
8963 *) supports_anon_versioning
=yes ;;
8966 # See if GNU ld supports shared libraries.
8969 # On AIX/PPC, the GNU linker is very broken
8970 if test "$host_cpu" != ia64
; then
8974 *** Warning: the GNU linker, at least up to release 2.19, is reported
8975 *** to be unable to reliably create shared libraries on AIX.
8976 *** Therefore, libtool is disabling shared libraries support. If you
8977 *** really care for shared libraries, you may want to install binutils
8978 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8979 *** You will then need to restart the configuration process.
8988 # see comment about AmigaOS4 .so support
8989 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990 archive_expsym_cmds
=''
8993 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)'
8994 hardcode_libdir_flag_spec
='-L$libdir'
8995 hardcode_minus_L
=yes
9001 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9002 allow_undefined_flag
=unsupported
9003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9004 # support --undefined. This deserves some investigation. FIXME
9005 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 cygwin
* | mingw
* | pw32
* | cegcc
*)
9012 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9013 # as there is no search path for DLLs.
9014 hardcode_libdir_flag_spec
='-L$libdir'
9015 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9016 allow_undefined_flag
=unsupported
9017 always_export_symbols
=no
9018 enable_shared_with_static_runtimes
=yes
9019 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9020 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9022 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9023 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9024 # If the export-symbols file already is a .def file (1st line
9025 # is EXPORTS), use it as is; otherwise, prepend...
9026 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9027 cp $export_symbols $output_objdir/$soname.def;
9029 echo EXPORTS > $output_objdir/$soname.def;
9030 cat $export_symbols >> $output_objdir/$soname.def;
9032 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9039 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040 link_all_deplibs
=yes
9045 hardcode_shlibpath_var
=no
9046 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9047 export_dynamic_flag_spec
='${wl}-E'
9048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9049 # Instead, shared libraries are loaded at an image base (0x10000000 by
9050 # default) and relocated if they conflict, which is a slow very memory
9051 # consuming and fragmenting process. To avoid this, we pick a random,
9052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9054 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9055 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9058 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9060 if test "$host_os" = linux-dietlibc
; then
9061 case $cc_basename in
9062 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9065 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9066 && test "$tmp_diet" = no
9068 tmp_addflag
=' $pic_flag'
9069 tmp_sharedflag
='-shared'
9070 case $cc_basename,$host_cpu in
9071 pgcc
*) # Portland Group C compiler
9072 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9073 tmp_addflag
=' $pic_flag'
9075 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9076 # Portland Group f77 and f90 compilers
9077 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9078 tmp_addflag
=' $pic_flag -Mnomain' ;;
9079 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9080 tmp_addflag
=' -i_dynamic' ;;
9081 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9082 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9083 ifc
* | ifort
*) # Intel Fortran compiler
9084 tmp_addflag
=' -nofor_main' ;;
9085 lf95
*) # Lahey Fortran 8.1
9086 whole_archive_flag_spec
=
9087 tmp_sharedflag
='--shared' ;;
9088 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9089 tmp_sharedflag
='-qmkshrobj'
9091 nvcc
*) # Cuda Compiler Driver 2.2
9092 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9093 compiler_needs_object
=yes
9096 case `$CC -V 2>&1 | sed 5q` in
9097 *Sun\ C
*) # Sun C 5.9
9098 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9099 compiler_needs_object
=yes
9100 tmp_sharedflag
='-G' ;;
9101 *Sun\ F
*) # Sun Fortran 8.3
9102 tmp_sharedflag
='-G' ;;
9104 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9106 if test "x$supports_anon_versioning" = xyes
; then
9107 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9109 echo "local: *; };" >> $output_objdir/$libname.ver~
9110 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9113 case $cc_basename in
9114 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9115 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9116 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9117 hardcode_libdir_flag_spec
=
9118 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9119 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9120 if test "x$supports_anon_versioning" = xyes
; then
9121 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9123 echo "local: *; };" >> $output_objdir/$libname.ver~
9124 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9134 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9135 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9138 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9139 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9144 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9148 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9149 *** create shared libraries on Solaris systems. Therefore, libtool
9150 *** is disabling shared libraries support. We urge you to upgrade GNU
9151 *** binutils to release 2.9.1 or newer. Another option is to modify
9152 *** your PATH or compiler configuration so that the native linker is
9153 *** used, and then restart.
9156 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9157 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9164 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9165 case `$LD -v 2>&1` in
9166 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9170 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9171 *** reliably create shared libraries on SCO systems. Therefore, libtool
9172 *** is disabling shared libraries support. We urge you to upgrade GNU
9173 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9174 *** your PATH or compiler configuration so that the native linker is
9175 *** used, and then restart.
9180 # For security reasons, it is highly recommended that you always
9181 # use absolute paths for naming shared libraries, and exclude the
9182 # DT_RUNPATH tag from executables and libraries. But doing so
9183 # requires that you compile everything twice, which is a pain.
9184 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9185 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9186 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9196 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9199 hardcode_shlibpath_var
=no
9203 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9204 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9205 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9212 if test "$ld_shlibs" = no
; then
9214 hardcode_libdir_flag_spec
=
9215 export_dynamic_flag_spec
=
9216 whole_archive_flag_spec
=
9219 # PORTME fill in a description of your system's linker (not GNU ld)
9222 allow_undefined_flag
=unsupported
9223 always_export_symbols
=yes
9224 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'
9225 # Note: this linker hardcodes the directories in LIBPATH if there
9226 # are no directories specified by -L.
9227 hardcode_minus_L
=yes
9228 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9229 # Neither direct hardcoding nor static linking is supported with a
9231 hardcode_direct
=unsupported
9236 if test "$host_cpu" = ia64
; then
9237 # On IA64, the linker does run time linking by default, so we don't
9238 # have to do anything special.
9239 aix_use_runtimelinking
=no
9240 exp_sym_flag
='-Bexport'
9243 # If we're using GNU nm, then we don't want the "-C" option.
9244 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9245 # Also, AIX nm treats weak defined symbols like other global
9246 # defined symbols, whereas GNU nm marks them as "W".
9247 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9248 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9250 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'
9252 aix_use_runtimelinking
=no
9254 # Test if we are trying to use run time linking or normal
9255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9256 # need to do runtime linking.
9257 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9258 for ld_flag
in $LDFLAGS; do
9259 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9260 aix_use_runtimelinking
=yes
9267 exp_sym_flag
='-bexport'
9268 no_entry_flag
='-bnoentry'
9271 # When large executables or shared objects are built, AIX ld can
9272 # have problems creating the table of contents. If linking a library
9273 # or program results in "error TOC overflow" add -mminimal-toc to
9274 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9275 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9279 hardcode_direct_absolute
=yes
9280 hardcode_libdir_separator
=':'
9281 link_all_deplibs
=yes
9282 file_list_spec
='${wl}-f,'
9284 if test "$GCC" = yes; then
9285 case $host_os in aix4.
[012]|aix4.
[012].
*)
9286 # We only want to do this on AIX 4.2 and lower, the check
9287 # below for broken collect2 doesn't work under 4.3+
9288 collect2name
=`${CC} -print-prog-name=collect2`
9289 if test -f "$collect2name" &&
9290 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9292 # We have reworked collect2
9295 # We have old collect2
9296 hardcode_direct
=unsupported
9297 # It fails to find uninstalled libraries when the uninstalled
9298 # path is not listed in the libpath. Setting hardcode_minus_L
9299 # to unsupported forces relinking
9300 hardcode_minus_L
=yes
9301 hardcode_libdir_flag_spec
='-L$libdir'
9302 hardcode_libdir_separator
=
9306 shared_flag
='-shared'
9307 if test "$aix_use_runtimelinking" = yes; then
9308 shared_flag
="$shared_flag "'${wl}-G'
9312 if test "$host_cpu" = ia64
; then
9313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9314 # chokes on -Wl,-G. The following line is correct:
9317 if test "$aix_use_runtimelinking" = yes; then
9318 shared_flag
='${wl}-G'
9320 shared_flag
='${wl}-bM:SRE'
9325 export_dynamic_flag_spec
='${wl}-bexpall'
9326 # It seems that -bexpall does not export symbols beginning with
9327 # underscore (_), so it is better to generate a list of symbols to export.
9328 always_export_symbols
=yes
9329 if test "$aix_use_runtimelinking" = yes; then
9330 # Warning - without using the other runtime loading flags (-brtl),
9331 # -berok will link without error, but may produce a broken library.
9332 allow_undefined_flag
='-berok'
9333 # Determine the default libpath from the value encoded in an
9335 if test "${lt_cv_aix_libpath+set}" = set; then
9336 aix_libpath
=$lt_cv_aix_libpath
9338 if test "${lt_cv_aix_libpath_+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9352 if ac_fn_c_try_link
"$LINENO"; then :
9354 lt_aix_libpath_sed
='
9355 /Import File Strings/,/^$/ {
9357 s/^0 *\([^ ]*\) *$/\1/
9361 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9362 # Check for a 64-bit object if we didn't find anything.
9363 if test -z "$lt_cv_aix_libpath_"; then
9364 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9367 rm -f core conftest.err conftest.
$ac_objext \
9368 conftest
$ac_exeext conftest.
$ac_ext
9369 if test -z "$lt_cv_aix_libpath_"; then
9370 lt_cv_aix_libpath_
="/usr/lib:/lib"
9375 aix_libpath
=$lt_cv_aix_libpath_
9378 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9379 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9381 if test "$host_cpu" = ia64
; then
9382 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9383 allow_undefined_flag
="-z nodefs"
9384 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9386 # Determine the default libpath from the value encoded in an
9388 if test "${lt_cv_aix_libpath+set}" = set; then
9389 aix_libpath
=$lt_cv_aix_libpath
9391 if test "${lt_cv_aix_libpath_+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9405 if ac_fn_c_try_link
"$LINENO"; then :
9407 lt_aix_libpath_sed
='
9408 /Import File Strings/,/^$/ {
9410 s/^0 *\([^ ]*\) *$/\1/
9414 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9415 # Check for a 64-bit object if we didn't find anything.
9416 if test -z "$lt_cv_aix_libpath_"; then
9417 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9420 rm -f core conftest.err conftest.
$ac_objext \
9421 conftest
$ac_exeext conftest.
$ac_ext
9422 if test -z "$lt_cv_aix_libpath_"; then
9423 lt_cv_aix_libpath_
="/usr/lib:/lib"
9428 aix_libpath
=$lt_cv_aix_libpath_
9431 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9432 # Warning - without using the other run time loading flags,
9433 # -berok will link without error, but may produce a broken library.
9434 no_undefined_flag
=' ${wl}-bernotok'
9435 allow_undefined_flag
=' ${wl}-berok'
9436 if test "$with_gnu_ld" = yes; then
9437 # We only use this code for GNU lds that support --whole-archive.
9438 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9440 # Exported symbols can be pulled into shared objects from archives
9441 whole_archive_flag_spec
='$convenience'
9443 archive_cmds_need_lc
=yes
9444 # This is similar to how AIX traditionally builds its shared libraries.
9445 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9453 # see comment about AmigaOS4 .so support
9454 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455 archive_expsym_cmds
=''
9458 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)'
9459 hardcode_libdir_flag_spec
='-L$libdir'
9460 hardcode_minus_L
=yes
9466 export_dynamic_flag_spec
=-rdynamic
9469 cygwin
* | mingw
* | pw32
* | cegcc
*)
9470 # When not using gcc, we currently assume that we are using
9471 # Microsoft Visual C++.
9472 # hardcode_libdir_flag_spec is actually meaningless, as there is
9473 # no search path for DLLs.
9474 case $cc_basename in
9477 hardcode_libdir_flag_spec
=' '
9478 allow_undefined_flag
=unsupported
9479 always_export_symbols
=yes
9481 # Tell ltmain to make .lib files, not .a files.
9483 # Tell ltmain to make .dll files, not .so files.
9485 # FIXME: Setting linknames here is a bad hack.
9486 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9487 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9488 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
9490 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
9492 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9494 # The linker will not automatically build a static lib if we build a DLL.
9495 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9496 enable_shared_with_static_runtimes
=yes
9497 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9499 old_postinstall_cmds
='chmod 644 $oldlib'
9500 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9501 lt_tool_outputfile="@TOOL_OUTPUT@"~
9502 case $lt_outputfile in
9505 lt_outputfile="$lt_outputfile.exe"
9506 lt_tool_outputfile="$lt_tool_outputfile.exe"
9509 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9510 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9511 $RM "$lt_outputfile.manifest";
9515 # Assume MSVC wrapper
9516 hardcode_libdir_flag_spec
=' '
9517 allow_undefined_flag
=unsupported
9518 # Tell ltmain to make .lib files, not .a files.
9520 # Tell ltmain to make .dll files, not .so files.
9522 # FIXME: Setting linknames here is a bad hack.
9523 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9524 # The linker will automatically build a .lib file if we build a DLL.
9525 old_archive_from_new_cmds
='true'
9526 # FIXME: Should let the user specify the lib program.
9527 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9528 enable_shared_with_static_runtimes
=yes
9533 darwin
* | rhapsody
*)
9536 archive_cmds_need_lc
=no
9538 hardcode_automatic
=yes
9539 hardcode_shlibpath_var
=unsupported
9540 if test "$lt_cv_ld_force_load" = "yes"; then
9541 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9543 whole_archive_flag_spec
=''
9545 link_all_deplibs
=yes
9546 allow_undefined_flag
="$_lt_dar_allow_undefined"
9547 case $cc_basename in
9548 ifort
*) _lt_dar_can_shared
=yes ;;
9549 *) _lt_dar_can_shared
=$GCC ;;
9551 if test "$_lt_dar_can_shared" = "yes"; then
9552 output_verbose_link_cmd
=func_echo_all
9553 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9554 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9555 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9556 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9565 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566 hardcode_libdir_flag_spec
='-L$libdir'
9567 hardcode_shlibpath_var
=no
9574 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9575 # support. Future versions do this automatically, but an explicit c++rt0.o
9576 # does not break anything, and helps significantly (at the cost of a little
9579 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9580 hardcode_libdir_flag_spec
='-R$libdir'
9582 hardcode_shlibpath_var
=no
9585 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9587 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9589 hardcode_minus_L
=yes
9590 hardcode_shlibpath_var
=no
9593 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9594 freebsd
* | dragonfly
*)
9595 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596 hardcode_libdir_flag_spec
='-R$libdir'
9598 hardcode_shlibpath_var
=no
9602 if test "$GCC" = yes; then
9603 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9605 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'
9607 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9608 hardcode_libdir_separator
=:
9611 # hardcode_minus_L: Not really in the search PATH,
9612 # but as the default location of the library.
9613 hardcode_minus_L
=yes
9614 export_dynamic_flag_spec
='${wl}-E'
9618 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9619 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9621 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9623 if test "$with_gnu_ld" = no
; then
9624 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9625 hardcode_libdir_flag_spec_ld
='+b $libdir'
9626 hardcode_libdir_separator
=:
9628 hardcode_direct_absolute
=yes
9629 export_dynamic_flag_spec
='${wl}-E'
9630 # hardcode_minus_L: Not really in the search PATH,
9631 # but as the default location of the library.
9632 hardcode_minus_L
=yes
9637 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9640 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9646 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9652 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9655 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9659 # Older versions of the 11.00 compiler do not understand -b yet
9660 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9662 $as_echo_n "checking if $CC understands -b... " >&6; }
9663 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9666 lt_cv_prog_compiler__b
=no
9667 save_LDFLAGS
="$LDFLAGS"
9668 LDFLAGS
="$LDFLAGS -b"
9669 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9670 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9671 # The linker can only warn and ignore the option if not recognized
9672 # So say no if there are warnings
9673 if test -s conftest.err
; then
9674 # Append any errors to the config.log.
9675 cat conftest.err
1>&5
9676 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9677 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9678 if diff conftest.exp conftest.er2
>/dev
/null
; then
9679 lt_cv_prog_compiler__b
=yes
9682 lt_cv_prog_compiler__b
=yes
9686 LDFLAGS
="$save_LDFLAGS"
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9690 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9692 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9693 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701 if test "$with_gnu_ld" = no
; then
9702 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9703 hardcode_libdir_separator
=:
9708 hardcode_shlibpath_var
=no
9712 hardcode_direct_absolute
=yes
9713 export_dynamic_flag_spec
='${wl}-E'
9715 # hardcode_minus_L: Not really in the search PATH,
9716 # but as the default location of the library.
9717 hardcode_minus_L
=yes
9723 irix5
* | irix6
* | nonstopux
*)
9724 if test "$GCC" = yes; then
9725 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9726 # Try to use the -exported_symbol ld option, if it does not
9727 # work, assume that -exports_file does not work either and
9728 # implicitly export all symbols.
9729 # This should be the same for all languages, so no per-tag cache variable.
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9731 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9732 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9735 save_LDFLAGS
="$LDFLAGS"
9736 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9739 int foo (void) { return 0; }
9741 if ac_fn_c_try_link
"$LINENO"; then :
9742 lt_cv_irix_exported_symbol
=yes
9744 lt_cv_irix_exported_symbol
=no
9746 rm -f core conftest.err conftest.
$ac_objext \
9747 conftest
$ac_exeext conftest.
$ac_ext
9748 LDFLAGS
="$save_LDFLAGS"
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9751 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9752 if test "$lt_cv_irix_exported_symbol" = yes; then
9753 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9756 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9757 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9759 archive_cmds_need_lc
='no'
9760 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9761 hardcode_libdir_separator
=:
9763 link_all_deplibs
=yes
9767 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9768 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9770 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9772 hardcode_libdir_flag_spec
='-R$libdir'
9774 hardcode_shlibpath_var
=no
9778 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9781 hardcode_libdir_separator
=:
9782 hardcode_shlibpath_var
=no
9789 if test -f /usr
/libexec
/ld.so
; then
9791 hardcode_shlibpath_var
=no
9792 hardcode_direct_absolute
=yes
9793 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9794 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9795 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9796 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9797 export_dynamic_flag_spec
='${wl}-E'
9800 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9801 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9802 hardcode_libdir_flag_spec
='-R$libdir'
9805 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9806 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9816 hardcode_libdir_flag_spec
='-L$libdir'
9817 hardcode_minus_L
=yes
9818 allow_undefined_flag
=unsupported
9819 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'
9820 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9824 if test "$GCC" = yes; then
9825 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9826 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9828 allow_undefined_flag
=' -expect_unresolved \*'
9829 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9831 archive_cmds_need_lc
='no'
9832 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9833 hardcode_libdir_separator
=:
9836 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9837 if test "$GCC" = yes; then
9838 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9839 archive_cmds
='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9840 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9842 allow_undefined_flag
=' -expect_unresolved \*'
9843 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9844 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9845 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9847 # Both c and cxx compiler support -rpath directly
9848 hardcode_libdir_flag_spec
='-rpath $libdir'
9850 archive_cmds_need_lc
='no'
9851 hardcode_libdir_separator
=:
9855 no_undefined_flag
=' -z defs'
9856 if test "$GCC" = yes; then
9858 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9859 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9860 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9862 case `$CC -V 2>&1` in
9865 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9867 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9871 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9872 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9873 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9877 hardcode_libdir_flag_spec
='-R$libdir'
9878 hardcode_shlibpath_var
=no
9880 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9882 # The compiler driver will combine and reorder linker options,
9883 # but understands `-z linker_flag'. GCC discards it without `$wl',
9884 # but is careful enough not to reorder.
9885 # Supported since Solaris 2.6 (maybe 2.5.1?)
9886 if test "$GCC" = yes; then
9887 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9889 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9893 link_all_deplibs
=yes
9897 if test "x$host_vendor" = xsequent
; then
9898 # Use $CC to link under sequent, because it throws in some extra .o
9899 # files that make .init and .fini sections work.
9900 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_libdir_flag_spec
='-L$libdir'
9906 hardcode_minus_L
=yes
9907 hardcode_shlibpath_var
=no
9911 case $host_vendor in
9913 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_direct
=yes # is this really true???
9917 ## LD is ld it makes a PLAMLIB
9918 ## CC just makes a GrossModule.
9919 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9920 reload_cmds
='$CC -r -o $output$reload_objs'
9924 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9928 runpath_var
='LD_RUN_PATH'
9929 hardcode_shlibpath_var
=no
9933 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_shlibpath_var
=no
9935 export_dynamic_flag_spec
='-Bexport'
9939 if test -d /usr
/nec
; then
9940 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 hardcode_shlibpath_var
=no
9942 runpath_var
=LD_RUN_PATH
9943 hardcode_runpath_var
=yes
9948 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9949 no_undefined_flag
='${wl}-z,text'
9950 archive_cmds_need_lc
=no
9951 hardcode_shlibpath_var
=no
9952 runpath_var
='LD_RUN_PATH'
9954 if test "$GCC" = yes; then
9955 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9956 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9963 sysv5
* | sco3.2v5
* | sco5v6
*)
9964 # Note: We can NOT use -z defs as we might desire, because we do not
9965 # link with -lc, and that would cause any symbols used from libc to
9966 # always be unresolved, which means just about no library would
9967 # ever link correctly. If we're not using GNU ld we use -z text
9968 # though, which does catch some bad symbols but isn't as heavy-handed
9970 no_undefined_flag
='${wl}-z,text'
9971 allow_undefined_flag
='${wl}-z,nodefs'
9972 archive_cmds_need_lc
=no
9973 hardcode_shlibpath_var
=no
9974 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9975 hardcode_libdir_separator
=':'
9976 link_all_deplibs
=yes
9977 export_dynamic_flag_spec
='${wl}-Bexport'
9978 runpath_var
='LD_RUN_PATH'
9980 if test "$GCC" = yes; then
9981 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9982 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9985 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 hardcode_libdir_flag_spec
='-L$libdir'
9992 hardcode_shlibpath_var
=no
10000 if test x
$host_vendor = xsni
; then
10002 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10003 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10010 $as_echo "$ld_shlibs" >&6; }
10011 test "$ld_shlibs" = no
&& can_build_shared
=no
10013 with_gnu_ld
=$with_gnu_ld
10030 # Do we need to explicitly link libc?
10032 case "x$archive_cmds_need_lc" in
10034 # Assume -lc should be added
10035 archive_cmds_need_lc
=yes
10037 if test "$enable_shared" = yes && test "$GCC" = yes; then
10038 case $archive_cmds in
10040 # FIXME: we may have to deal with multi-command sequences.
10043 # Test whether the compiler implicitly links with -lc since on some
10044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10045 # to ld, don't add -lc before -lgcc.
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10047 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10048 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10049 $as_echo_n "(cached) " >&6
10052 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10055 (eval $ac_compile) 2>&5
10057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10058 test $ac_status = 0; } 2>conftest.err
; then
10061 libobjs
=conftest.
$ac_objext
10063 wl
=$lt_prog_compiler_wl
10064 pic_flag
=$lt_prog_compiler_pic
10070 lt_save_allow_undefined_flag
=$allow_undefined_flag
10071 allow_undefined_flag
=
10072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10073 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10076 test $ac_status = 0; }
10078 lt_cv_archive_cmds_need_lc
=no
10080 lt_cv_archive_cmds_need_lc
=yes
10082 allow_undefined_flag
=$lt_save_allow_undefined_flag
10084 cat conftest.err
1>&5
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10090 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10091 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10255 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10257 if test "$GCC" = yes; then
10259 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10260 *) lt_awk_arg
="/^libraries:/" ;;
10263 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10264 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10266 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10267 case $lt_search_path_spec in
10269 # if the path contains ";" then we assume it to be the separator
10270 # otherwise default to the standard path separator (i.e. ":") - it is
10271 # assumed that no part of a normal pathname contains ";" but that should
10272 # okay in the real world where ";" in dirpaths is itself problematic.
10273 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10276 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10279 # Ok, now we have the path, separated by spaces, we can step through it
10280 # and add multilib dir if necessary.
10281 lt_tmp_lt_search_path_spec
=
10282 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10283 for lt_sys_path
in $lt_search_path_spec; do
10284 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10285 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10287 test -d "$lt_sys_path" && \
10288 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10291 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10292 BEGIN {RS=" "; FS="/|\n";} {
10295 for (lt_i = NF; lt_i > 0; lt_i--) {
10296 if ($lt_i != "" && $lt_i != ".") {
10297 if ($lt_i == "..") {
10300 if (lt_count == 0) {
10301 lt_foo="/" $lt_i lt_foo;
10308 if (lt_foo != "") { lt_freq[lt_foo]++; }
10309 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10311 # AWK program above erroneously prepends '/' to C:/dos/paths
10314 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10315 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10317 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10319 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10321 library_names_spec
=
10322 libname_spec
='lib$name'
10326 postuninstall_cmds
=
10330 shlibpath_overrides_runpath
=unknown
10332 dynamic_linker
="$host_os ld.so"
10333 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10334 need_lib_prefix
=unknown
10335 hardcode_into_libs
=no
10337 # when you set need_version to no, make sure it does not cause -set_version
10338 # flags to be left without arguments
10339 need_version
=unknown
10344 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10345 shlibpath_var
=LIBPATH
10347 # AIX 3 has no versioning support, so we append a major version to the name.
10348 soname_spec
='${libname}${release}${shared_ext}$major'
10355 hardcode_into_libs
=yes
10356 if test "$host_cpu" = ia64
; then
10357 # AIX 5 supports IA64
10358 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10359 shlibpath_var
=LD_LIBRARY_PATH
10361 # With GCC up to 2.95.x, collect2 would create an import file
10362 # for dependence libraries. The import file would start with
10363 # the line `#! .'. This would cause the generated library to
10364 # depend on `.', always an invalid library. This was fixed in
10365 # development snapshots of GCC prior to 3.0.
10367 aix4 | aix4.
[01] | aix4.
[01].
*)
10368 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10370 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10373 can_build_shared
=no
10377 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10378 # soname into executable. Probably we can add versioning support to
10379 # collect2, so additional links can be useful in future.
10380 if test "$aix_use_runtimelinking" = yes; then
10381 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10382 # instead of lib<name>.a to let people know that these are not
10383 # typical AIX shared libraries.
10384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 # We preserve .a as extension for shared libraries through AIX4.2
10387 # and later when we are not doing run time linking.
10388 library_names_spec
='${libname}${release}.a $libname.a'
10389 soname_spec
='${libname}${release}${shared_ext}$major'
10391 shlibpath_var
=LIBPATH
10398 # Since July 2007 AmigaOS4 officially supports .so libraries.
10399 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10403 library_names_spec
='$libname.ixlibrary $libname.a'
10404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10405 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10411 library_names_spec
='${libname}${shared_ext}'
10412 dynamic_linker
="$host_os ld.so"
10413 shlibpath_var
=LIBRARY_PATH
10419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420 soname_spec
='${libname}${release}${shared_ext}$major'
10421 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10422 shlibpath_var
=LD_LIBRARY_PATH
10423 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10424 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10425 # the default ld.so.conf also contains /usr/contrib/lib and
10426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10427 # libtool to hard-code these into programs
10430 cygwin
* | mingw
* | pw32
* | cegcc
*)
10431 version_type
=windows
10436 case $GCC,$cc_basename in
10439 library_names_spec
='$libname.dll.a'
10440 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10441 postinstall_cmds
='base_file=`basename \${file}`~
10442 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10443 dldir=$destdir/`dirname \$dlpath`~
10444 test -d \$dldir || mkdir -p \$dldir~
10445 $install_prog $dir/$dlname \$dldir/$dlname~
10446 chmod a+x \$dldir/$dlname~
10447 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10448 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10450 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10451 dlpath=$dir/\$dldll~
10453 shlibpath_overrides_runpath
=yes
10457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10458 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10460 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10463 # MinGW DLLs use traditional 'lib' prefix
10464 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10467 # pw32 DLLs use 'pw' prefix rather than 'lib'
10468 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10471 dynamic_linker
='Win32 ld.exe'
10476 libname_spec
='$name'
10477 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10478 library_names_spec
='${libname}.dll.lib'
10482 sys_lib_search_path_spec
=
10485 for lt_path
in $LIB
10488 # Let DOS variable expansion print the short 8.3 style file name.
10489 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10490 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10493 # Convert to MSYS style.
10494 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10497 # Convert to unix form, then to dos form, then back to unix form
10498 # but this time dos style (no spaces!) so that the unix form looks
10499 # like /cygdrive/c/PROGRA~1:/cygdr...
10500 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10501 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10502 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10505 sys_lib_search_path_spec
="$LIB"
10506 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10507 # It is most probably a Windows format PATH.
10508 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10510 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10512 # FIXME: find the short name or the path components, as spaces are
10513 # common. (e.g. "Program Files" -> "PROGRA~1")
10517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10518 postinstall_cmds
='base_file=`basename \${file}`~
10519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10520 dldir=$destdir/`dirname \$dlpath`~
10521 test -d \$dldir || mkdir -p \$dldir~
10522 $install_prog $dir/$dlname \$dldir/$dlname'
10523 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10524 dlpath=$dir/\$dldll~
10526 shlibpath_overrides_runpath
=yes
10527 dynamic_linker
='Win32 link.exe'
10531 # Assume MSVC wrapper
10532 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10533 dynamic_linker
='Win32 ld.exe'
10536 # FIXME: first we should search . and the directory the executable is in
10540 darwin
* | rhapsody
*)
10541 dynamic_linker
="$host_os dyld"
10542 version_type
=darwin
10545 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10546 soname_spec
='${libname}${release}${major}$shared_ext'
10547 shlibpath_overrides_runpath
=yes
10548 shlibpath_var
=DYLD_LIBRARY_PATH
10549 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10551 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10552 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10560 soname_spec
='${libname}${release}${shared_ext}$major'
10561 shlibpath_var
=LD_LIBRARY_PATH
10568 freebsd
* | dragonfly
*)
10569 # DragonFly does not have aout. When/if they implement a new
10570 # versioning mechanism, adjust this.
10571 if test -x /usr
/bin
/objformat
; then
10572 objformat
=`/usr/bin/objformat`
10575 freebsd
[123]*) objformat
=aout
;;
10576 *) objformat
=elf
;;
10579 version_type
=freebsd-
$objformat
10580 case $version_type in
10582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10587 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10591 shlibpath_var
=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath
=yes
10596 freebsd3.
[01]* | freebsdelf3.
[01]*)
10597 shlibpath_overrides_runpath
=yes
10598 hardcode_into_libs
=yes
10600 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10601 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10602 shlibpath_overrides_runpath
=no
10603 hardcode_into_libs
=yes
10605 *) # from 4.6 on, and DragonFly
10606 shlibpath_overrides_runpath
=yes
10607 hardcode_into_libs
=yes
10616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10617 soname_spec
='${libname}${release}${shared_ext}$major'
10618 shlibpath_var
=LD_LIBRARY_PATH
10619 hardcode_into_libs
=yes
10626 dynamic_linker
="$host_os runtime_loader"
10627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10628 soname_spec
='${libname}${release}${shared_ext}$major'
10629 shlibpath_var
=LIBRARY_PATH
10630 shlibpath_overrides_runpath
=yes
10631 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10632 hardcode_into_libs
=yes
10635 hpux9
* | hpux10
* | hpux11
*)
10636 # Give a soname corresponding to the major version so that dld.sl refuses to
10637 # link against other versions.
10644 hardcode_into_libs
=yes
10645 dynamic_linker
="$host_os dld.so"
10646 shlibpath_var
=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10648 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 soname_spec
='${libname}${release}${shared_ext}$major'
10650 if test "X$HPUX_IA64_MODE" = X32
; then
10651 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10653 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10655 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10659 hardcode_into_libs
=yes
10660 dynamic_linker
="$host_os dld.sl"
10661 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10662 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10663 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 soname_spec
='${libname}${release}${shared_ext}$major'
10665 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10666 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10670 dynamic_linker
="$host_os dld.sl"
10671 shlibpath_var
=SHLIB_PATH
10672 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674 soname_spec
='${libname}${release}${shared_ext}$major'
10677 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10678 postinstall_cmds
='chmod 555 $lib'
10679 # or fails outright, so override atomically:
10680 install_override_mode
=555
10687 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10688 soname_spec
='${libname}${release}${shared_ext}$major'
10689 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10690 shlibpath_var
=LD_LIBRARY_PATH
10691 shlibpath_overrides_runpath
=no
10692 hardcode_into_libs
=yes
10695 irix5
* | irix6
* | nonstopux
*)
10697 nonstopux
*) version_type
=nonstopux
;;
10699 if test "$lt_cv_prog_gnu_ld" = yes; then
10707 soname_spec
='${libname}${release}${shared_ext}$major'
10708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10710 irix5
* | nonstopux
*)
10711 libsuff
= shlibsuff
=
10714 case $LD in # libtool.m4 will add one of these switches to LD
10715 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10716 libsuff
= shlibsuff
= libmagic
=32-bit;;
10717 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10718 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10719 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10720 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10721 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10725 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10726 shlibpath_overrides_runpath
=no
10727 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10728 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10729 hardcode_into_libs
=yes
10732 # No shared lib support for Linux oldld, aout, or coff.
10733 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10737 # This must be Linux ELF.
10738 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 soname_spec
='${libname}${release}${shared_ext}$major'
10744 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10745 shlibpath_var
=LD_LIBRARY_PATH
10746 shlibpath_overrides_runpath
=no
10748 # Some binutils ld are patched to set DT_RUNPATH
10749 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10750 $as_echo_n "(cached) " >&6
10752 lt_cv_shlibpath_overrides_runpath
=no
10753 save_LDFLAGS
=$LDFLAGS
10754 save_libdir
=$libdir
10755 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10756 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10768 if ac_fn_c_try_link
"$LINENO"; then :
10769 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10770 lt_cv_shlibpath_overrides_runpath
=yes
10773 rm -f core conftest.err conftest.
$ac_objext \
10774 conftest
$ac_exeext conftest.
$ac_ext
10775 LDFLAGS
=$save_LDFLAGS
10776 libdir
=$save_libdir
10780 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10782 # This implies no fast_install, which is unacceptable.
10783 # Some rework will be needed to allow for fast_install
10784 # before this can be enabled.
10785 hardcode_into_libs
=yes
10787 # Append ld.so.conf contents to the search path
10788 if test -f /etc
/ld.so.conf
; then
10789 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10790 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10793 # We used to test for /lib/ld.so.1 and disable shared libraries on
10794 # powerpc, because MkLinux only supported shared libraries with the
10795 # GNU dynamic linker. Since this was broken with cross compilers,
10796 # most powerpc-linux boxes support dynamic linking these days and
10797 # people can always --disable-shared, the test was removed, and we
10798 # assume the GNU/Linux dynamic linker is in use.
10799 dynamic_linker
='GNU/Linux ld.so'
10806 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10808 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10809 dynamic_linker
='NetBSD (a.out) ld.so'
10811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10812 soname_spec
='${libname}${release}${shared_ext}$major'
10813 dynamic_linker
='NetBSD ld.elf_so'
10815 shlibpath_var
=LD_LIBRARY_PATH
10816 shlibpath_overrides_runpath
=yes
10817 hardcode_into_libs
=yes
10822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823 shlibpath_var
=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath
=yes
10831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832 soname_spec
='${libname}${release}${shared_ext}$major'
10833 shlibpath_var
=LD_LIBRARY_PATH
10834 shlibpath_overrides_runpath
=no
10835 hardcode_into_libs
=yes
10836 dynamic_linker
='ldqnx.so'
10841 sys_lib_dlsearch_path_spec
="/usr/lib"
10843 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10845 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10846 *) need_version
=no
;;
10848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10849 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10850 shlibpath_var
=LD_LIBRARY_PATH
10851 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10853 openbsd2.
[89] | openbsd2.
[89].
*)
10854 shlibpath_overrides_runpath
=no
10857 shlibpath_overrides_runpath
=yes
10861 shlibpath_overrides_runpath
=yes
10866 libname_spec
='$name'
10869 library_names_spec
='$libname${shared_ext} $libname.a'
10870 dynamic_linker
='OS/2 ld.exe'
10871 shlibpath_var
=LIBPATH
10874 osf3
* | osf4
* | osf5
*)
10878 soname_spec
='${libname}${release}${shared_ext}$major'
10879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 shlibpath_var
=LD_LIBRARY_PATH
10881 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10882 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec
='${libname}${release}${shared_ext}$major'
10895 shlibpath_var
=LD_LIBRARY_PATH
10896 shlibpath_overrides_runpath
=yes
10897 hardcode_into_libs
=yes
10898 # ldd complains unless libraries are executable
10899 postinstall_cmds
='chmod +x $lib'
10904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10905 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10906 shlibpath_var
=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath
=yes
10908 if test "$with_gnu_ld" = yes; then
10916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917 soname_spec
='${libname}${release}${shared_ext}$major'
10918 shlibpath_var
=LD_LIBRARY_PATH
10919 case $host_vendor in
10921 shlibpath_overrides_runpath
=no
10923 runpath_var
=LD_RUN_PATH
10931 shlibpath_overrides_runpath
=no
10932 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10938 if test -d /usr
/nec
;then
10940 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10941 soname_spec
='$libname${shared_ext}.$major'
10942 shlibpath_var
=LD_LIBRARY_PATH
10946 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10947 version_type
=freebsd-elf
10950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10951 soname_spec
='${libname}${release}${shared_ext}$major'
10952 shlibpath_var
=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath
=yes
10954 hardcode_into_libs
=yes
10955 if test "$with_gnu_ld" = yes; then
10956 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10958 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10961 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10965 sys_lib_dlsearch_path_spec
='/usr/lib'
10969 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 shlibpath_var
=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath
=no
10976 hardcode_into_libs
=yes
10981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 soname_spec
='${libname}${release}${shared_ext}$major'
10983 shlibpath_var
=LD_LIBRARY_PATH
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10991 $as_echo "$dynamic_linker" >&6; }
10992 test "$dynamic_linker" = no
&& can_build_shared
=no
10994 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10995 if test "$GCC" = yes; then
10996 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10999 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11000 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11002 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11003 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11098 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11100 if test -n "$hardcode_libdir_flag_spec" ||
11101 test -n "$runpath_var" ||
11102 test "X$hardcode_automatic" = "Xyes" ; then
11104 # We can hardcode non-existent directories.
11105 if test "$hardcode_direct" != no
&&
11106 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11107 # have to relink, otherwise we might link with an installed library
11108 # when we should be linking with a yet-to-be-installed one
11109 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11110 test "$hardcode_minus_L" != no
; then
11111 # Linking always hardcodes the temporary library directory.
11112 hardcode_action
=relink
11114 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11115 hardcode_action
=immediate
11118 # We cannot hardcode anything, or else we can only hardcode existing
11120 hardcode_action
=unsupported
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11123 $as_echo "$hardcode_action" >&6; }
11125 if test "$hardcode_action" = relink ||
11126 test "$inherit_rpath" = yes; then
11127 # Fast installation is not supported
11128 enable_fast_install
=no
11129 elif test "$shlibpath_overrides_runpath" = yes ||
11130 test "$enable_shared" = no
; then
11131 # Fast installation is not necessary
11132 enable_fast_install
=needless
11140 if test "x$enable_dlopen" != xyes
; then
11141 enable_dlopen
=unknown
11142 enable_dlopen_self
=unknown
11143 enable_dlopen_self_static
=unknown
11150 lt_cv_dlopen
="load_add_on"
11152 lt_cv_dlopen_self
=yes
11155 mingw
* | pw32
* | cegcc
*)
11156 lt_cv_dlopen
="LoadLibrary"
11161 lt_cv_dlopen
="dlopen"
11166 # if libdl is installed we need to link against it
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11168 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11172 ac_check_lib_save_LIBS
=$LIBS
11174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11192 if ac_fn_c_try_link
"$LINENO"; then :
11193 ac_cv_lib_dl_dlopen
=yes
11195 ac_cv_lib_dl_dlopen
=no
11197 rm -f core conftest.err conftest.
$ac_objext \
11198 conftest
$ac_exeext conftest.
$ac_ext
11199 LIBS
=$ac_check_lib_save_LIBS
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11202 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11203 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11204 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11207 lt_cv_dlopen
="dyld"
11209 lt_cv_dlopen_self
=yes
11216 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11217 if test "x$ac_cv_func_shl_load" = x
""yes; then :
11218 lt_cv_dlopen
="shl_load"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11221 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11222 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11225 ac_check_lib_save_LIBS
=$LIBS
11227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11240 return shl_load ();
11245 if ac_fn_c_try_link
"$LINENO"; then :
11246 ac_cv_lib_dld_shl_load
=yes
11248 ac_cv_lib_dld_shl_load
=no
11250 rm -f core conftest.err conftest.
$ac_objext \
11251 conftest
$ac_exeext conftest.
$ac_ext
11252 LIBS
=$ac_check_lib_save_LIBS
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11255 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11256 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
11257 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11259 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11260 if test "x$ac_cv_func_dlopen" = x
""yes; then :
11261 lt_cv_dlopen
="dlopen"
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11264 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11266 $as_echo_n "(cached) " >&6
11268 ac_check_lib_save_LIBS
=$LIBS
11270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11273 /* Override any GCC internal prototype to avoid an error.
11274 Use char because int might match the return type of a GCC
11275 builtin and then its argument prototype would still apply. */
11288 if ac_fn_c_try_link
"$LINENO"; then :
11289 ac_cv_lib_dl_dlopen
=yes
11291 ac_cv_lib_dl_dlopen
=no
11293 rm -f core conftest.err conftest.
$ac_objext \
11294 conftest
$ac_exeext conftest.
$ac_ext
11295 LIBS
=$ac_check_lib_save_LIBS
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11298 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11299 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11300 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11303 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11304 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11305 $as_echo_n "(cached) " >&6
11307 ac_check_lib_save_LIBS
=$LIBS
11308 LIBS
="-lsvld $LIBS"
11309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11327 if ac_fn_c_try_link
"$LINENO"; then :
11328 ac_cv_lib_svld_dlopen
=yes
11330 ac_cv_lib_svld_dlopen
=no
11332 rm -f core conftest.err conftest.
$ac_objext \
11333 conftest
$ac_exeext conftest.
$ac_ext
11334 LIBS
=$ac_check_lib_save_LIBS
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11337 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11338 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11339 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11342 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11343 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11346 ac_check_lib_save_LIBS
=$LIBS
11348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11351 /* Override any GCC internal prototype to avoid an error.
11352 Use char because int might match the return type of a GCC
11353 builtin and then its argument prototype would still apply. */
11361 return dld_link ();
11366 if ac_fn_c_try_link
"$LINENO"; then :
11367 ac_cv_lib_dld_dld_link
=yes
11369 ac_cv_lib_dld_dld_link
=no
11371 rm -f core conftest.err conftest.
$ac_objext \
11372 conftest
$ac_exeext conftest.
$ac_ext
11373 LIBS
=$ac_check_lib_save_LIBS
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11376 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11377 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11378 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11399 if test "x$lt_cv_dlopen" != xno
; then
11405 case $lt_cv_dlopen in
11407 save_CPPFLAGS
="$CPPFLAGS"
11408 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11410 save_LDFLAGS
="$LDFLAGS"
11411 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11414 LIBS
="$lt_cv_dlopen_libs $LIBS"
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11417 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11418 if test "${lt_cv_dlopen_self+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11421 if test "$cross_compiling" = yes; then :
11422 lt_cv_dlopen_self
=cross
11424 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11425 lt_status
=$lt_dlunknown
11426 cat > conftest.
$ac_ext <<_LT_EOF
11427 #line $LINENO "configure"
11428 #include "confdefs.h"
11437 # define LT_DLGLOBAL RTLD_GLOBAL
11440 # define LT_DLGLOBAL DL_GLOBAL
11442 # define LT_DLGLOBAL 0
11446 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11447 find out it does not work in some platform. */
11448 #ifndef LT_DLLAZY_OR_NOW
11450 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11453 # define LT_DLLAZY_OR_NOW DL_LAZY
11456 # define LT_DLLAZY_OR_NOW RTLD_NOW
11459 # define LT_DLLAZY_OR_NOW DL_NOW
11461 # define LT_DLLAZY_OR_NOW 0
11468 /* When -fvisbility=hidden is used, assume the code has been annotated
11469 correspondingly for the symbols needed. */
11470 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11471 int fnord () __attribute__((visibility("default")));
11474 int fnord () { return 42; }
11477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11478 int status = $lt_dlunknown;
11482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11485 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11486 else puts (dlerror ());
11488 /* dlclose (self); */
11496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11497 (eval $ac_link) 2>&5
11499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11501 (.
/conftest
; exit; ) >&5 2>/dev
/null
11503 case x
$lt_status in
11504 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11505 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11506 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11509 # compilation failed
11510 lt_cv_dlopen_self
=no
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11518 $as_echo "$lt_cv_dlopen_self" >&6; }
11520 if test "x$lt_cv_dlopen_self" = xyes
; then
11521 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11523 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11524 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
11527 if test "$cross_compiling" = yes; then :
11528 lt_cv_dlopen_self_static
=cross
11530 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11531 lt_status
=$lt_dlunknown
11532 cat > conftest.
$ac_ext <<_LT_EOF
11533 #line $LINENO "configure"
11534 #include "confdefs.h"
11543 # define LT_DLGLOBAL RTLD_GLOBAL
11546 # define LT_DLGLOBAL DL_GLOBAL
11548 # define LT_DLGLOBAL 0
11552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11553 find out it does not work in some platform. */
11554 #ifndef LT_DLLAZY_OR_NOW
11556 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11559 # define LT_DLLAZY_OR_NOW DL_LAZY
11562 # define LT_DLLAZY_OR_NOW RTLD_NOW
11565 # define LT_DLLAZY_OR_NOW DL_NOW
11567 # define LT_DLLAZY_OR_NOW 0
11574 /* When -fvisbility=hidden is used, assume the code has been annotated
11575 correspondingly for the symbols needed. */
11576 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11577 int fnord () __attribute__((visibility("default")));
11580 int fnord () { return 42; }
11583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11584 int status = $lt_dlunknown;
11588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11591 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11592 else puts (dlerror ());
11594 /* dlclose (self); */
11602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11603 (eval $ac_link) 2>&5
11605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11606 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11607 (.
/conftest
; exit; ) >&5 2>/dev
/null
11609 case x
$lt_status in
11610 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11611 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11612 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11615 # compilation failed
11616 lt_cv_dlopen_self_static
=no
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11624 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11627 CPPFLAGS
="$save_CPPFLAGS"
11628 LDFLAGS
="$save_LDFLAGS"
11633 case $lt_cv_dlopen_self in
11634 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11635 *) enable_dlopen_self
=unknown
;;
11638 case $lt_cv_dlopen_self_static in
11639 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11640 *) enable_dlopen_self_static
=unknown
;;
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11663 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11664 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11665 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11666 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11668 $as_echo "yes" >&6; }
11670 # FIXME - insert some real tests, host_os isn't really good enough
11673 if test -n "$STRIP" ; then
11674 striplib
="$STRIP -x"
11675 old_striplib
="$STRIP -S"
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11677 $as_echo "yes" >&6; }
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680 $as_echo "no" >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11701 # Report which library types will actually be built
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11703 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11705 $as_echo "$can_build_shared" >&6; }
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11708 $as_echo_n "checking whether to build shared libraries... " >&6; }
11709 test "$can_build_shared" = "no" && enable_shared
=no
11711 # On AIX, shared libraries and static libraries use the same namespace, and
11712 # are all built from PIC.
11715 test "$enable_shared" = yes && enable_static
=no
11716 if test -n "$RANLIB"; then
11717 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11718 postinstall_cmds
='$RANLIB $lib'
11723 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11724 test "$enable_shared" = yes && enable_static
=no
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11729 $as_echo "$enable_shared" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11732 $as_echo_n "checking whether to build static libraries... " >&6; }
11733 # Make sure either enable_shared or enable_static is yes.
11734 test "$enable_shared" = yes || enable_static
=yes
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11736 $as_echo "$enable_static" >&6; }
11743 ac_cpp
='$CPP $CPPFLAGS'
11744 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11745 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11746 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11762 ac_config_commands
="$ac_config_commands libtool"
11767 # Only expand once:
11773 test "$sysconfdir" = '${prefix}/etc' && sysconfdir
='/etc'
11774 test "$localstatedir" = '${prefix}/var' && localstatedir
='/var/heimdal'
11777 CANONICAL_HOST
=$host
11780 # Check whether --enable-largefile was given.
11781 if test "${enable_largefile+set}" = set; then :
11782 enableval
=$enable_largefile;
11785 if test "$enable_largefile" != no
; then
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11788 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11789 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11792 ac_cv_sys_largefile_CC
=no
11793 if test "$GCC" != yes; then
11796 # IRIX 6.2 and later do not support large files by default,
11797 # so use the C compiler's -n32 option if that helps.
11798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11800 #include <sys/types.h>
11801 /* Check that off_t can represent 2**63 - 1 correctly.
11802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11803 since some C++ compilers masquerading as C compilers
11804 incorrectly reject 9223372036854775807. */
11805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11807 && LARGE_OFF_T % 2147483647 == 1)
11817 if ac_fn_c_try_compile
"$LINENO"; then :
11820 rm -f core conftest.err conftest.
$ac_objext
11822 if ac_fn_c_try_compile
"$LINENO"; then :
11823 ac_cv_sys_largefile_CC
=' -n32'; break
11825 rm -f core conftest.err conftest.
$ac_objext
11829 rm -f conftest.
$ac_ext
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11833 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11834 if test "$ac_cv_sys_largefile_CC" != no
; then
11835 CC
=$CC$ac_cv_sys_largefile_CC
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11839 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11840 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11846 #include <sys/types.h>
11847 /* Check that off_t can represent 2**63 - 1 correctly.
11848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11849 since some C++ compilers masquerading as C compilers
11850 incorrectly reject 9223372036854775807. */
11851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11853 && LARGE_OFF_T % 2147483647 == 1)
11863 if ac_fn_c_try_compile
"$LINENO"; then :
11864 ac_cv_sys_file_offset_bits
=no
; break
11866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11869 #define _FILE_OFFSET_BITS 64
11870 #include <sys/types.h>
11871 /* Check that off_t can represent 2**63 - 1 correctly.
11872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11873 since some C++ compilers masquerading as C compilers
11874 incorrectly reject 9223372036854775807. */
11875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11877 && LARGE_OFF_T % 2147483647 == 1)
11887 if ac_fn_c_try_compile
"$LINENO"; then :
11888 ac_cv_sys_file_offset_bits
=64; break
11890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11891 ac_cv_sys_file_offset_bits
=unknown
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11896 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11897 case $ac_cv_sys_file_offset_bits in #(
11900 cat >>confdefs.h
<<_ACEOF
11901 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11906 if test $ac_cv_sys_file_offset_bits = unknown
; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11908 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11909 if test "${ac_cv_sys_large_files+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #include <sys/types.h>
11916 /* Check that off_t can represent 2**63 - 1 correctly.
11917 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11918 since some C++ compilers masquerading as C compilers
11919 incorrectly reject 9223372036854775807. */
11920 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11921 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11922 && LARGE_OFF_T % 2147483647 == 1)
11932 if ac_fn_c_try_compile
"$LINENO"; then :
11933 ac_cv_sys_large_files
=no
; break
11935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938 #define _LARGE_FILES 1
11939 #include <sys/types.h>
11940 /* Check that off_t can represent 2**63 - 1 correctly.
11941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11942 since some C++ compilers masquerading as C compilers
11943 incorrectly reject 9223372036854775807. */
11944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11946 && LARGE_OFF_T % 2147483647 == 1)
11956 if ac_fn_c_try_compile
"$LINENO"; then :
11957 ac_cv_sys_large_files
=1; break
11959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11960 ac_cv_sys_large_files
=unknown
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11965 $as_echo "$ac_cv_sys_large_files" >&6; }
11966 case $ac_cv_sys_large_files in #(
11969 cat >>confdefs.h
<<_ACEOF
11970 #define _LARGE_FILES $ac_cv_sys_large_files
11979 if test "$enable_largefile" != no
-a "$ac_cv_sys_large_files" != no
; then
11980 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
11982 if test "$enable_largefile" != no
-a "$ac_cv_sys_file_offset_bits" != no
; then
11983 CPPFLAGS
="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
11992 $as_echo_n "checking for dlopen... " >&6; }
11993 if test "${ac_cv_funclib_dlopen+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11997 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
11998 ac_save_LIBS
="$LIBS"
11999 for ac_lib
in "" dl
; do
12005 *) ac_lib
="-l$ac_lib" ;;
12007 LIBS
=" $ac_lib $ac_save_LIBS"
12008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12011 #ifdef HAVE_DLFCN_H
12022 if ac_fn_c_try_link
"$LINENO"; then :
12023 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
12025 rm -f core conftest.err conftest.
$ac_objext \
12026 conftest
$ac_exeext conftest.
$ac_ext
12028 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
12029 LIBS
="$ac_save_LIBS"
12035 eval "ac_res=\$ac_cv_funclib_dlopen"
12038 for ac_func
in dlopen
12040 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12041 if test "x$ac_cv_func_dlopen" = x
""yes; then :
12042 cat >>confdefs.h
<<_ACEOF
12043 #define HAVE_DLOPEN 1
12051 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12052 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12053 eval "LIB_dlopen=$ac_res"
12057 eval "ac_cv_func_dlopen=yes"
12059 cat >>confdefs.h
<<_ACEOF
12060 #define $ac_tr_func 1
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12064 $as_echo "yes" >&6; }
12067 eval "ac_cv_func_dlopen=no"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12073 eval "ac_cv_func_dlopen=yes"
12074 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12075 cat >>confdefs.h
<<_ACEOF
12076 #define $ac_tr_func 1
12079 cat >>confdefs.h
<<_ACEOF
12080 #define $ac_tr_lib 1
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
12084 $as_echo "yes, in $ac_res" >&6; }
12089 if test "$ac_cv_funclib_dlopen" != no
; then
12091 HAVE_DLOPEN_FALSE
='#'
12093 HAVE_DLOPEN_TRUE
='#'
12110 if test "$aix" != no
; then
12117 if test "$aix" = 4; then
12125 # Check whether --enable-dynamic-afs was given.
12126 if test "${enable_dynamic_afs+set}" = set; then :
12127 enableval
=$enable_dynamic_afs;
12131 if test "$aix" != no
; then
12134 $as_echo "#define NEED_QSORT 1" >>confdefs.h
12137 if test "$enable_dynamic_afs" != no
; then
12139 if test "$ac_cv_func_dlopen" = no
; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for loadquery" >&5
12144 $as_echo_n "checking for loadquery... " >&6; }
12145 if test "${ac_cv_funclib_loadquery+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
12149 if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
12150 ac_save_LIBS
="$LIBS"
12151 for ac_lib
in "" ld
; do
12157 *) ac_lib
="-l$ac_lib" ;;
12159 LIBS
=" $ac_lib $ac_save_LIBS"
12160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12171 if ac_fn_c_try_link
"$LINENO"; then :
12172 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
12174 rm -f core conftest.err conftest.
$ac_objext \
12175 conftest
$ac_exeext conftest.
$ac_ext
12177 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
12178 LIBS
="$ac_save_LIBS"
12184 eval "ac_res=\$ac_cv_funclib_loadquery"
12187 for ac_func
in loadquery
12189 ac_fn_c_check_func
"$LINENO" "loadquery" "ac_cv_func_loadquery"
12190 if test "x$ac_cv_func_loadquery" = x
""yes; then :
12191 cat >>confdefs.h
<<_ACEOF
12192 #define HAVE_LOADQUERY 1
12200 eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12201 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12202 eval "LIB_loadquery=$ac_res"
12206 eval "ac_cv_func_loadquery=yes"
12207 eval "LIB_loadquery="
12208 cat >>confdefs.h
<<_ACEOF
12209 #define $ac_tr_func 1
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12213 $as_echo "yes" >&6; }
12216 eval "ac_cv_func_loadquery=no"
12217 eval "LIB_loadquery="
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12222 eval "ac_cv_func_loadquery=yes"
12223 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12224 cat >>confdefs.h
<<_ACEOF
12225 #define $ac_tr_func 1
12228 cat >>confdefs.h
<<_ACEOF
12229 #define $ac_tr_lib 1
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
12233 $as_echo "yes, in $ac_res" >&6; }
12239 if test "$ac_cv_func_dlopen" != no
; then
12240 AIX_EXTRA_KAFS
='$(LIB_dlopen)'
12241 elif test "$ac_cv_func_loadquery" != no
; then
12242 AIX_EXTRA_KAFS
='$(LIB_loadquery)'
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: not using dynloaded AFS library" >&5
12245 $as_echo "$as_me: not using dynloaded AFS library" >&6;}
12247 enable_dynamic_afs
=no
12254 if test "$enable_dynamic_afs" != no
; then
12255 AIX_DYNAMIC_AFS_TRUE
=
12256 AIX_DYNAMIC_AFS_FALSE
='#'
12258 AIX_DYNAMIC_AFS_TRUE
='#'
12259 AIX_DYNAMIC_AFS_FALSE
=
12262 if test "$aix" != no
; then
12264 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
12278 if test "$irix" != no
; then
12293 *-*-solaris2.
[89] |
*-*-solaris2.1
[0-9])
12300 if test "$sunos" != no
; then
12302 cat >>confdefs.h
<<_ACEOF
12303 #define SunOS $sunos
12310 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
12316 for ac_prog
in 'bison -y' byacc
12318 # Extract the first word of "$ac_prog", so it can be a program name with args.
12319 set dummy
$ac_prog; ac_word
=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_prog_YACC+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12325 if test -n "$YACC"; then
12326 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
12328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12329 for as_dir
in $PATH
12332 test -z "$as_dir" && as_dir
=.
12333 for ac_exec_ext
in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_prog_YACC
="$ac_prog"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 YACC
=$ac_cv_prog_YACC
12346 if test -n "$YACC"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12348 $as_echo "$YACC" >&6; }
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12355 test -n "$YACC" && break
12357 test -n "$YACC" || YACC
="yacc"
12359 for ac_prog
in flex
lex
12361 # Extract the first word of "$ac_prog", so it can be a program name with args.
12362 set dummy
$ac_prog; ac_word
=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if test "${ac_cv_prog_LEX+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12368 if test -n "$LEX"; then
12369 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
12371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12372 for as_dir
in $PATH
12375 test -z "$as_dir" && as_dir
=.
12376 for ac_exec_ext
in '' $ac_executable_extensions; do
12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378 ac_cv_prog_LEX
="$ac_prog"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 LEX
=$ac_cv_prog_LEX
12389 if test -n "$LEX"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12391 $as_echo "$LEX" >&6; }
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12398 test -n "$LEX" && break
12400 test -n "$LEX" || LEX
=":"
12402 if test "x$LEX" != "x:"; then
12403 cat >conftest.l
<<_ACEOF
12409 e { yyless (input () != 0); }
12410 f { unput (yytext[0]); }
12411 . { BEGIN INITIAL; }
12413 #ifdef YYTEXT_POINTER
12414 extern char *yytext;
12419 return ! yylex () + ! yywrap ();
12422 { { ac_try
="$LEX conftest.l"
12423 case "(($ac_try" in
12424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12428 $as_echo "$ac_try_echo"; } >&5
12429 (eval "$LEX conftest.l") 2>&5
12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12432 test $ac_status = 0; }
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12434 $as_echo_n "checking lex output file root... " >&6; }
12435 if test "${ac_cv_prog_lex_root+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12439 if test -f lex.yy.c; then
12440 ac_cv_prog_lex_root=lex.yy
12441 elif test -f lexyy.c; then
12442 ac_cv_prog_lex_root=lexyy
12444 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12448 $as_echo "$ac_cv_prog_lex_root" >&6; }
12449 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12451 if test -z "${LEXLIB+set}"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12453 $as_echo_n "checking lex library... " >&6; }
12454 if test "${ac_cv_lib_lex+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12459 ac_cv_lib_lex='none needed'
12460 for ac_lib in '' -lfl -ll; do
12461 LIBS="$ac_lib $ac_save_LIBS"
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12464 `cat $LEX_OUTPUT_ROOT.c
`
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_lib_lex=$ac_lib
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 test "$ac_cv_lib_lex" != 'none needed' && break
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12477 $as_echo "$ac_cv_lib_lex" >&6; }
12478 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12483 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12484 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12485 $as_echo_n "(cached) " >&6
12487 # POSIX says lex can declare yytext either as a pointer or an array; the
12488 # default is implementation-dependent. Figure out which it is, since
12489 # not all implementations provide the %pointer and %array declarations.
12490 ac_cv_prog_lex_yytext_pointer=no
12492 LIBS="$LEXLIB $ac_save_LIBS"
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #define YYTEXT_POINTER 1
12496 `cat $LEX_OUTPUT_ROOT.c
`
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 ac_cv_prog_lex_yytext_pointer=yes
12501 rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12507 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12508 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12510 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12513 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12516 if test "$LEX" = :; then
12517 LEX=${am_missing_run}flex
12519 for ac_prog in gawk mawk nawk awk
12521 # Extract the first word of "$ac_prog", so it can be a program name with args.
12522 set dummy $ac_prog; ac_word=$2
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524 $as_echo_n "checking for $ac_word... " >&6; }
12525 if test "${ac_cv_prog_AWK+set}" = set; then :
12526 $as_echo_n "(cached) " >&6
12528 if test -n "$AWK"; then
12529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532 for as_dir in $PATH
12535 test -z "$as_dir" && as_dir=.
12536 for ac_exec_ext in '' $ac_executable_extensions; do
12537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12538 ac_cv_prog_AWK="$ac_prog"
12539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12548 AWK=$ac_cv_prog_AWK
12549 if test -n "$AWK"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12551 $as_echo "$AWK" >&6; }
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12558 test -n "$AWK" && break
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ln -s or something else" >&5
12562 $as_echo_n "checking for ln -s or something else... " >&6; }
12563 if test "${ac_cv_prog_LN_S+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
12567 if ln -s X conftestdata 2>/dev/null
12570 ac_cv_prog_LN_S="ln -s"
12572 touch conftestdata1
12573 if ln conftestdata1 conftestdata2; then
12574 rm -f conftestdata*
12581 LN_S="$ac_cv_prog_LN_S"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_LN_S" >&5
12583 $as_echo "$ac_cv_prog_LN_S" >&6; }
12588 # Check whether --with-mips_abi was given.
12589 if test "${with_mips_abi+set}" = set; then :
12590 withval=$with_mips_abi;
12596 with_mips_abi="${with_mips_abi:-yes}"
12597 if test -n "$GCC"; then
12599 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
12600 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
12602 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
12603 # GCC and revert back to O32. The same goes if O32 is asked for - old
12604 # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
12606 # Don't you just love *all* the different SGI ABIs?
12608 case "${with_mips_abi}" in
12609 32|o32) abi='-mabi=32'; abilibdirext='' ;;
12610 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
12611 64) abi='-mabi=64'; abilibdirext='64' ;;
12612 no) abi=''; abilibdirext='';;
12613 *) as_fn_error "\"Invalid ABI specified\"" "$LINENO" 5 ;;
12615 if test -n "$abi" ; then
12616 ac_foo=krb_cv_gcc_`echo $abi |
tr =- __
`
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the $abi option" >&5
12618 $as_echo_n "checking if $CC supports the $abi option... " >&6; }
12619 if { as_var=$ac_foo; eval "test \"\${$as_var+set}\" = set"; }; then :
12620 $as_echo_n "(cached) " >&6
12623 save_CFLAGS="$CFLAGS"
12624 CFLAGS="$CFLAGS $abi"
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12636 if ac_fn_c_try_compile "$LINENO"; then :
12641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS"
12645 ac_res=`eval echo \\\$
$ac_foo`
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12647 $as_echo "$ac_res" >&6; }
12648 if test $ac_res = no; then
12649 # Try to figure out why that failed...
12652 save_CFLAGS="$CFLAGS"
12653 CFLAGS="$CFLAGS -mabi=n32"
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12665 if ac_fn_c_try_compile "$LINENO"; then :
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CLAGS="$save_CFLAGS"
12671 if test $ac_res = yes; then
12673 as_fn_error "$CC does not support the $with_mips_abi ABI" "$LINENO" 5
12679 -mabi=n32|-mabi=64)
12680 if test $with_mips_abi = yes; then
12681 # Old GCC, default to O32
12686 as_fn_error "$CC does not support the $with_mips_abi ABI" "$LINENO" 5
12690 fi #if test $ac_res = no; then
12691 fi #if test -n "$abi" ; then
12693 case "${with_mips_abi}" in
12694 32|o32) abi='-32'; abilibdirext='' ;;
12695 n32|yes) abi='-n32'; abilibdirext='32' ;;
12696 64) abi='-64'; abilibdirext='64' ;;
12697 no) abi=''; abilibdirext='';;
12698 *) as_fn_error "\"Invalid ABI specified\"" "$LINENO" 5 ;;
12700 fi #if test -n "$GCC"; then
12705 libdir="$libdir$abilibdirext"
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
12709 $as_echo_n "checking for __attribute__... " >&6; }
12710 if test "${ac_cv___attribute__+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12716 #include <stdlib.h>
12717 static void foo(void) __attribute__ ((noreturn));
12726 if ac_fn_c_try_compile "$LINENO"; then :
12727 ac_cv___attribute__=yes
12729 ac_cv___attribute__=no
12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734 if test "$ac_cv___attribute__" = "yes"; then
12736 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
12740 $as_echo "$ac_cv___attribute__" >&6; }
12746 if test "$enable_shared" = "yes"; then
12747 ENABLE_SHARED_TRUE=
12748 ENABLE_SHARED_FALSE='#'
12750 ENABLE_SHARED_TRUE='#'
12751 ENABLE_SHARED_FALSE=
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
12756 $as_echo_n "checking for ld --version-script... " >&6; }
12757 if test "${rk_cv_version_script+set}" = set; then :
12758 $as_echo_n "(cached) " >&6
12761 rk_cv_version_script=no
12763 cat > conftest.map <<EOF
12768 global: gss_init_creds;
12771 cat > conftest.c <<EOF
12772 int gss_init_creds(int foo) { return 0; }
12775 if { ac_try='${CC-cc} -c $CFLAGS -fPIC conftest.c'
12776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12777 (eval $ac_try) 2>&5
12779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12780 test $ac_status = 0; }; } &&
12781 { ac_try='${CC-cc} -shared -Wl,--version-script,conftest.map $CFLAGS $LDFLAGS -o libconftestlib.so conftest.o'
12782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12783 (eval $ac_try) 2>&5
12785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12786 test $ac_status = 0; }; };
12788 rk_cv_version_script=yes
12790 rm -rf conftest* libconftest* .libs
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_version_script" >&5
12794 $as_echo "$rk_cv_version_script" >&6; }
12796 if test $rk_cv_version_script = yes ; then
12798 LDFLAGS_VERSION_SCRIPT="-Wl,--version-script,"
12801 LDFLAGS_VERSION_SCRIPT=
12805 if test $doversioning = yes; then
12806 versionscript_TRUE=
12807 versionscript_FALSE='#'
12809 versionscript_TRUE='#'
12810 versionscript_FALSE=
12820 if test "${cross_compiling}" = yes; then
12821 CROSS_COMPILE_TRUE=
12822 CROSS_COMPILE_FALSE='#'
12824 CROSS_COMPILE_TRUE='#'
12825 CROSS_COMPILE_FALSE=
12830 # Check whether --with-cross-tools was given.
12831 if test "${with_cross_tools+set}" = set; then :
12832 withval=$with_cross_tools; if test "$withval" = "yes"; then
12833 as_fn_error "Need path to cross tools" "$LINENO" 5
12835 with_cross_tools="${with_cross_tools}/"
12840 if test "${cross_compiling}" != yes ; then
12842 ASN1_COMPILE="\$(top_builddir)/lib/asn1/asn1_compile\$(EXEEXT)"
12843 SLC="\$(top_builddir)/lib/sl/slc"
12845 ASN1_COMPILE_DEP="\$(ASN1_COMPILE)"
12848 ASN1_COMPILE="${with_cross_tools}asn1_compile"
12849 SLC="${with_cross_tools}slc"
12854 ac_cv_prog_COMPILE_ET=${with_cross_tools}compile_et
12866 $as_echo "#define HEIM_WEAK_CRYPTO 1" >>confdefs.h
12871 # Check whether --with-openldap was given.
12872 if test "${with_openldap+set}" = set; then :
12873 withval=$with_openldap;
12877 # Check whether --with-openldap-lib was given.
12878 if test "${with_openldap_lib+set}" = set; then :
12879 withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
12880 as_fn_error "No argument for --with-openldap-lib" "$LINENO" 5
12881 elif test "X$with_openldap" = "X"; then
12887 # Check whether --with-openldap-include was given.
12888 if test "${with_openldap_include+set}" = set; then :
12889 withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then
12890 as_fn_error "No argument for --with-openldap-include" "$LINENO" 5
12891 elif test "X$with_openldap" = "X"; then
12897 # Check whether --with-openldap-config was given.
12898 if test "${with_openldap_config+set}" = set; then :
12899 withval=$with_openldap_config;
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openldap" >&5
12906 $as_echo_n "checking for openldap... " >&6; }
12908 case "$with_openldap" in
12911 *) d="$with_openldap" ;;
12917 if test "$with_openldap_include" = ""; then
12918 if test -d "$i/include/openldap"; then
12919 header_dirs="$header_dirs $i/include/openldap"
12921 if test -d "$i/include"; then
12922 header_dirs="$header_dirs $i/include"
12925 if test "$with_openldap_lib" = ""; then
12926 if test -d "$i/lib$abilibdirext"; then
12927 lib_dirs="$lib_dirs $i/lib$abilibdirext"
12932 if test "$with_openldap_include"; then
12933 header_dirs="$with_openldap_include $header_dirs"
12935 if test "$with_openldap_lib"; then
12936 lib_dirs="$with_openldap_lib $lib_dirs"
12939 if test "$with_openldap_config" = ""; then
12940 with_openldap_config=''
12946 case "$with_openldap_config" in
12948 if test -f $with_openldap/bin/ ; then
12949 with_openldap_config=$with_openldap/bin/
12954 case "$with_openldap_config" in
12958 openldap_cflags="`$with_openldap_config --cflags 2>&1`"
12959 openldap_libs="`$with_openldap_config --libs 2>&1`"
12964 if test "$with_openldap" != no; then
12965 save_CFLAGS="$CFLAGS"
12967 if test "$openldap_cflags" -a "$openldap_libs"; then
12968 CFLAGS="$openldap_cflags $save_CFLAGS"
12969 LIBS="$openldap_libs $save_LIBS"
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12983 if ac_fn_c_try_link "$LINENO"; then :
12985 INCLUDE_openldap="$openldap_cflags"
12986 LIB_openldap="$openldap_libs"
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_openldap_config" >&5
12988 $as_echo "from $with_openldap_config" >&6; }
12991 rm -f core conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext conftest.$ac_ext
12994 if test "$found" = no; then
12996 for i in $header_dirs; do
12997 CFLAGS="-I$i $save_CFLAGS"
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13011 if ac_fn_c_try_compile "$LINENO"; then :
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13016 for i in $lib_dirs; do
13017 LIBS="-L$i -lldap -llber $save_LIBS"
13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019 /* end confdefs.h. */
13030 if ac_fn_c_try_link "$LINENO"; then :
13033 rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
13036 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
13037 INCLUDE_openldap="-I$ires"
13038 LIB_openldap="-L$lres -lldap -llber "
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
13041 $as_echo "headers $ires, libraries $lres" >&6; }
13044 CFLAGS="$save_CFLAGS"
13048 if test "$found" = yes; then
13050 cat >>confdefs.h <<_ACEOF
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060 $as_echo "no" >&6; }
13067 # Check whether --enable-hdb-openldap-module was given.
13068 if test "${enable_hdb_openldap_module+set}" = set; then :
13069 enableval=$enable_hdb_openldap_module;
13072 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
13074 $as_echo "#define OPENLDAP_MODULE 1" >>confdefs.h
13077 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
13078 OPENLDAP_MODULE_TRUE=
13079 OPENLDAP_MODULE_FALSE='#'
13081 OPENLDAP_MODULE_TRUE='#'
13082 OPENLDAP_MODULE_FALSE=
13087 # Check whether --enable-pk-init was given.
13088 if test "${enable_pk_init+set}" = set; then :
13089 enableval=$enable_pk_init;
13092 if test "$enable_pk_init" != no ;then
13094 $as_echo "#define PKINIT 1" >>confdefs.h
13097 if test "$enable_pk_init" != no; then
13106 # Check whether --enable-digest was given.
13107 if test "${enable_digest+set}" = set; then :
13108 enableval=$enable_digest;
13111 if test "$enable_digest" != no ;then
13113 $as_echo "#define DIGEST 1" >>confdefs.h
13117 # Check whether --enable-kx509 was given.
13118 if test "${enable_kx509+set}" = set; then :
13119 enableval=$enable_kx509;
13122 if test "$enable_kx509" != no ;then
13124 $as_echo "#define KX509 1" >>confdefs.h
13130 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13131 if test -n "$ac_tool_prefix"; then
13132 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13133 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135 $as_echo_n "checking for $ac_word... " >&6; }
13136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13137 $as_echo_n "(cached) " >&6
13139 case $PKG_CONFIG in
13141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13163 if test -n "$PKG_CONFIG"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13165 $as_echo "$PKG_CONFIG" >&6; }
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13173 if test -z "$ac_cv_path_PKG_CONFIG"; then
13174 ac_pt_PKG_CONFIG=$PKG_CONFIG
13175 # Extract the first word of "pkg-config", so it can be a program name with args.
13176 set dummy pkg-config; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13182 case $ac_pt_PKG_CONFIG in
13184 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13194 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13206 if test -n "$ac_pt_PKG_CONFIG"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13208 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13214 if test "x$ac_pt_PKG_CONFIG" = x; then
13217 case $cross_compiling:$ac_tool_warned in
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13221 ac_tool_warned=yes ;;
13223 PKG_CONFIG=$ac_pt_PKG_CONFIG
13226 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13230 if test -n "$PKG_CONFIG"; then
13231 _pkg_min_version=0.9.0
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13233 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13234 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13236 $as_echo "yes" >&6; }
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239 $as_echo "no" >&6; }
13246 # Check whether --with-capng was given.
13247 if test "${with_capng+set}" = set; then :
13248 withval=$with_capng;
13253 if test "$with_capng" != "no"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPNG" >&5
13257 $as_echo_n "checking for CAPNG... " >&6; }
13259 if test -n "$PKG_CONFIG"; then
13260 if test -n "$CAPNG_CFLAGS"; then
13261 pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS"
13263 if test -n "$PKG_CONFIG" && \
13264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5
13265 ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5
13267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13268 test $ac_status = 0; }; then
13269 pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng >= 0.4.0" 2>/dev
/null
`
13277 if test -n "$PKG_CONFIG"; then
13278 if test -n "$CAPNG_LIBS"; then
13279 pkg_cv_CAPNG_LIBS="$CAPNG_LIBS"
13281 if test -n "$PKG_CONFIG" && \
13282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5
13283 ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5
13285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13286 test $ac_status = 0; }; then
13287 pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng >= 0.4.0" 2>/dev
/null
`
13298 if test $pkg_failed = yes; then
13300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13301 _pkg_short_errors_supported=yes
13303 _pkg_short_errors_supported=no
13305 if test $_pkg_short_errors_supported = yes; then
13306 CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"`
13308 CAPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"`
13310 # Put the nasty error message in config.log where it belongs
13311 echo "$CAPNG_PKG_ERRORS" >&5
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13316 elif test $pkg_failed = untried; then
13319 CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS
13320 CAPNG_LIBS=$pkg_cv_CAPNG_LIBS
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13322 $as_echo "yes" >&6; }
13326 if test "$with_capng" = "yes"; then
13328 cat >>confdefs.h <<_ACEOF
13329 #define HAVE_CAPNG 1
13333 if test "$with_capng" != "no"; then
13335 HAVE_CAPNG_FALSE='#'
13337 HAVE_CAPNG_TRUE='#'
13346 # Check whether --with-sqlite3 was given.
13347 if test "${with_sqlite3+set}" = set; then :
13348 withval=$with_sqlite3;
13352 # Check whether --with-sqlite3-lib was given.
13353 if test "${with_sqlite3_lib+set}" = set; then :
13354 withval=$with_sqlite3_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
13355 as_fn_error "No argument for --with-sqlite3-lib" "$LINENO" 5
13356 elif test "X$with_sqlite3" = "X"; then
13362 # Check whether --with-sqlite3-include was given.
13363 if test "${with_sqlite3_include+set}" = set; then :
13364 withval=$with_sqlite3_include; if test "$withval" = "yes" -o "$withval" = "no"; then
13365 as_fn_error "No argument for --with-sqlite3-include" "$LINENO" 5
13366 elif test "X$with_sqlite3" = "X"; then
13372 # Check whether --with-sqlite3-config was given.
13373 if test "${with_sqlite3_config+set}" = set; then :
13374 withval=$with_sqlite3_config;
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
13381 $as_echo_n "checking for sqlite3... " >&6; }
13383 case "$with_sqlite3" in
13386 *) d="$with_sqlite3" ;;
13392 if test "$with_sqlite3_include" = ""; then
13393 if test -d "$i/include/sqlite3"; then
13394 header_dirs="$header_dirs $i/include/sqlite3"
13396 if test -d "$i/include"; then
13397 header_dirs="$header_dirs $i/include"
13400 if test "$with_sqlite3_lib" = ""; then
13401 if test -d "$i/lib$abilibdirext"; then
13402 lib_dirs="$lib_dirs $i/lib$abilibdirext"
13407 if test "$with_sqlite3_include"; then
13408 header_dirs="$with_sqlite3_include $header_dirs"
13410 if test "$with_sqlite3_lib"; then
13411 lib_dirs="$with_sqlite3_lib $lib_dirs"
13414 if test "$with_sqlite3_config" = ""; then
13415 with_sqlite3_config=''
13421 case "$with_sqlite3_config" in
13423 if test -f $with_sqlite3/bin/ ; then
13424 with_sqlite3_config=$with_sqlite3/bin/
13429 case "$with_sqlite3_config" in
13433 sqlite3_cflags="`$with_sqlite3_config --cflags 2>&1`"
13434 sqlite3_libs="`$with_sqlite3_config --libs 2>&1`"
13439 if test "$with_sqlite3" != no; then
13440 save_CFLAGS="$CFLAGS"
13442 if test "$sqlite3_cflags" -a "$sqlite3_libs"; then
13443 CFLAGS="$sqlite3_cflags $save_CFLAGS"
13444 LIBS="$sqlite3_libs $save_LIBS"
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 #include <sqlite3.h>
13449 #ifndef SQLITE_OPEN_CREATE
13450 #error "old version"
13460 if ac_fn_c_try_link "$LINENO"; then :
13462 INCLUDE_sqlite3="$sqlite3_cflags"
13463 LIB_sqlite3="$sqlite3_libs"
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_sqlite3_config" >&5
13465 $as_echo "from $with_sqlite3_config" >&6; }
13468 rm -f core conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13471 if test "$found" = no; then
13473 for i in $header_dirs; do
13474 CFLAGS="-I$i $save_CFLAGS"
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478 #include <sqlite3.h>
13479 #ifndef SQLITE_OPEN_CREATE
13480 #error "old version"
13490 if ac_fn_c_try_compile "$LINENO"; then :
13493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495 for i in $lib_dirs; do
13496 LIBS="-L$i -lsqlite3 $save_LIBS"
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 #include <sqlite3.h>
13500 #ifndef SQLITE_OPEN_CREATE
13501 #error "old version"
13511 if ac_fn_c_try_link "$LINENO"; then :
13514 rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13517 if test "$ires" -a "$lres" -a "$with_sqlite3" != "no"; then
13518 INCLUDE_sqlite3="-I$ires"
13519 LIB_sqlite3="-L$lres -lsqlite3 "
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
13522 $as_echo "headers $ires, libraries $lres" >&6; }
13525 CFLAGS="$save_CFLAGS"
13529 if test "$found" = yes; then
13531 cat >>confdefs.h <<_ACEOF
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 $as_echo "no" >&6; }
13548 if test "X$with_sqlite3" != Xyes ; then
13549 INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite"
13550 LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la"
13552 if test "X$with_sqlite3" = Xyes; then
13562 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
13565 # Check whether --enable-sqlite-cache was given.
13566 if test "${enable_sqlite_cache+set}" = set; then :
13567 enableval=$enable_sqlite_cache;
13570 if test "$enable_sqlite_cache" != no; then
13572 $as_echo "#define HAVE_SCC 1" >>confdefs.h
13575 if test "$enable_sqlite_cache" != no; then
13587 # Check whether --with-libintl was given.
13588 if test "${with_libintl+set}" = set; then :
13589 withval=$with_libintl;
13593 # Check whether --with-libintl-lib was given.
13594 if test "${with_libintl_lib+set}" = set; then :
13595 withval=$with_libintl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
13596 as_fn_error "No argument for --with-libintl-lib" "$LINENO" 5
13597 elif test "X$with_libintl" = "X"; then
13603 # Check whether --with-libintl-include was given.
13604 if test "${with_libintl_include+set}" = set; then :
13605 withval=$with_libintl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
13606 as_fn_error "No argument for --with-libintl-include" "$LINENO" 5
13607 elif test "X$with_libintl" = "X"; then
13613 # Check whether --with-libintl-config was given.
13614 if test "${with_libintl_config+set}" = set; then :
13615 withval=$with_libintl_config;
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl" >&5
13622 $as_echo_n "checking for libintl... " >&6; }
13624 case "$with_libintl" in
13627 *) d="$with_libintl" ;;
13633 if test "$with_libintl_include" = ""; then
13634 if test -d "$i/include/libintl"; then
13635 header_dirs="$header_dirs $i/include/libintl"
13637 if test -d "$i/include"; then
13638 header_dirs="$header_dirs $i/include"
13641 if test "$with_libintl_lib" = ""; then
13642 if test -d "$i/lib$abilibdirext"; then
13643 lib_dirs="$lib_dirs $i/lib$abilibdirext"
13648 if test "$with_libintl_include"; then
13649 header_dirs="$with_libintl_include $header_dirs"
13651 if test "$with_libintl_lib"; then
13652 lib_dirs="$with_libintl_lib $lib_dirs"
13655 if test "$with_libintl_config" = ""; then
13656 with_libintl_config=''
13662 case "$with_libintl_config" in
13664 if test -f $with_libintl/bin/ ; then
13665 with_libintl_config=$with_libintl/bin/
13670 case "$with_libintl_config" in
13674 libintl_cflags="`$with_libintl_config --cflags 2>&1`"
13675 libintl_libs="`$with_libintl_config --libs 2>&1`"
13680 if test "$with_libintl" != no; then
13681 save_CFLAGS="$CFLAGS"
13683 if test "$libintl_cflags" -a "$libintl_libs"; then
13684 CFLAGS="$libintl_cflags $save_CFLAGS"
13685 LIBS="$libintl_libs $save_LIBS"
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689 #include <libintl.h>
13698 if ac_fn_c_try_link "$LINENO"; then :
13700 INCLUDE_libintl="$libintl_cflags"
13701 LIB_libintl="$libintl_libs"
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libintl_config" >&5
13703 $as_echo "from $with_libintl_config" >&6; }
13706 rm -f core conftest.err conftest.$ac_objext \
13707 conftest$ac_exeext conftest.$ac_ext
13709 if test "$found" = no; then
13711 for i in $header_dirs; do
13712 CFLAGS="-I$i $save_CFLAGS"
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13716 #include <libintl.h>
13725 if ac_fn_c_try_compile "$LINENO"; then :
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 for i in $lib_dirs; do
13731 LIBS="-L$i -lintl $save_LIBS"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 #include <libintl.h>
13743 if ac_fn_c_try_link "$LINENO"; then :
13746 rm -f core conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
13749 if test "$ires" -a "$lres" -a "$with_libintl" != "no"; then
13750 INCLUDE_libintl="-I$ires"
13751 LIB_libintl="-L$lres -lintl "
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
13754 $as_echo "headers $ires, libraries $lres" >&6; }
13757 CFLAGS="$save_CFLAGS"
13761 if test "$found" = yes; then
13763 cat >>confdefs.h <<_ACEOF
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773 $as_echo "no" >&6; }
13781 # Check whether --with-hdbdir was given.
13782 if test "${with_hdbdir+set}" = set; then :
13783 withval=$with_hdbdir;
13785 with_hdbdir=/var/heimdal
13788 DIR_hdbdir="$with_hdbdir"
13813 do_roken_rename_TRUE=
13814 do_roken_rename_FALSE='#'
13816 do_roken_rename_TRUE='#'
13817 do_roken_rename_FALSE=
13822 $as_echo "#define SUPPORT_INETD 1" >>confdefs.h
13826 $as_echo "#define KRB5 1" >>confdefs.h
13832 # Check whether --with-openssl was given.
13833 if test "${with_openssl+set}" = set; then :
13834 withval=$with_openssl;
13839 # Check whether --with-openssl-lib was given.
13840 if test "${with_openssl_lib+set}" = set; then :
13841 withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
13842 as_fn_error "No argument for --with-openssl-lib" "$LINENO" 5
13843 elif test "X$with_openssl" = "X"; then
13850 # Check whether --with-openssl-include was given.
13851 if test "${with_openssl_include+set}" = set; then :
13852 withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
13853 as_fn_error "No argument for --with-openssl-include" "$LINENO" 5
13854 elif test "X$with_openssl" = "X"; then
13860 case "$with_openssl" in
13864 *) if test "$with_openssl_include" = ""; then
13865 with_openssl_include="$with_openssl/include"
13867 if test "$with_openssl_lib" = ""; then
13868 with_openssl_lib="$with_openssl/lib$abilibdirext"
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5
13877 $as_echo_n "checking for crypto library... " >&6; }
13881 if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
13882 save_CPPFLAGS="$CPPFLAGS"
13886 for i in $LIB_krb4; do
13888 -L*) cdirs="$cdirs $i";;
13889 -l*) clibs="$clibs $i";;
13894 for i in $INCLUDE_krb4; do
13895 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
13896 for j in $cdirs; do
13897 for k in $clibs; do
13898 LIBS="$j $k $save_LIBS"
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13902 #undef KRB5 /* makes md4.h et al unhappy */
13903 #ifdef HAVE_OPENSSL
13904 #ifdef HAVE_SYS_TYPES_H
13905 #include <sys/types.h>
13907 #include <openssl/evp.h>
13908 #include <openssl/md4.h>
13909 #include <openssl/md5.h>
13910 #include <openssl/sha.h>
13911 #include <openssl/des.h>
13912 #include <openssl/rc4.h>
13913 #include <openssl/aes.h>
13914 #include <openssl/ec.h>
13915 #include <openssl/engine.h>
13916 #include <openssl/ui.h>
13917 #include <openssl/rand.h>
13918 #include <openssl/hmac.h>
13919 #include <openssl/pkcs12.h>
13921 #include <hcrypto/evp.h>
13922 #include <hcrypto/md4.h>
13923 #include <hcrypto/md5.h>
13924 #include <hcrypto/sha.h>
13925 #include <hcrypto/des.h>
13926 #include <hcrypto/rc4.h>
13927 #include <hcrypto/aes.h>
13928 #include <hcrypto/engine.h>
13929 #include <hcrypto/hmac.h>
13930 #include <hcrypto/pkcs12.h>
13937 void *schedule = 0;
13945 EVP_MD_CTX_init(&mdctx);
13946 EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
13947 EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
13948 UI_UTIL_read_pw_string(0,0,0,0);
13950 #ifdef HAVE_OPENSSL
13954 OpenSSL_add_all_algorithms();
13955 AES_encrypt(0,0,0);
13956 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
13962 if ac_fn_c_try_link "$LINENO"; then :
13963 openssl=yes ires="$i" lres="$j $k"; break 3
13965 rm -f core conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext conftest.$ac_ext
13969 CFLAGS="$i $save_CFLAGS"
13970 for j in $cdirs; do
13971 for k in $clibs; do
13972 LIBS="$j $k $save_LIBS"
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13976 #undef KRB5 /* makes md4.h et al unhappy */
13977 #ifdef HAVE_OPENSSL
13978 #ifdef HAVE_SYS_TYPES_H
13979 #include <sys/types.h>
13981 #include <openssl/evp.h>
13982 #include <openssl/md4.h>
13983 #include <openssl/md5.h>
13984 #include <openssl/sha.h>
13985 #include <openssl/des.h>
13986 #include <openssl/rc4.h>
13987 #include <openssl/aes.h>
13988 #include <openssl/ec.h>
13989 #include <openssl/engine.h>
13990 #include <openssl/ui.h>
13991 #include <openssl/rand.h>
13992 #include <openssl/hmac.h>
13993 #include <openssl/pkcs12.h>
13995 #include <hcrypto/evp.h>
13996 #include <hcrypto/md4.h>
13997 #include <hcrypto/md5.h>
13998 #include <hcrypto/sha.h>
13999 #include <hcrypto/des.h>
14000 #include <hcrypto/rc4.h>
14001 #include <hcrypto/aes.h>
14002 #include <hcrypto/engine.h>
14003 #include <hcrypto/hmac.h>
14004 #include <hcrypto/pkcs12.h>
14011 void *schedule = 0;
14019 EVP_MD_CTX_init(&mdctx);
14020 EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
14021 EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
14022 UI_UTIL_read_pw_string(0,0,0,0);
14024 #ifdef HAVE_OPENSSL
14028 OpenSSL_add_all_algorithms();
14029 AES_encrypt(0,0,0);
14030 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
14036 if ac_fn_c_try_link "$LINENO"; then :
14037 openssl=no ires="$i" lres="$j $k"; break 3
14039 rm -f core conftest.err conftest.$ac_objext \
14040 conftest$ac_exeext conftest.$ac_ext
14045 CFLAGS="$save_CFLAGS"
14047 if test "$ires" -a "$lres"; then
14048 INCLUDE_hcrypto="$ires"
14049 LIB_hcrypto="$lres"
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: same as krb4" >&5
14052 $as_echo "same as krb4" >&6; }
14053 LIB_hcrypto_a='$(LIB_hcrypto)'
14054 LIB_hcrypto_so='$(LIB_hcrypto)'
14055 LIB_hcrypto_appl='$(LIB_hcrypto)'
14059 if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
14060 save_CFLAGS="$CFLAGS"
14064 if test "$with_openssl_include" != ""; then
14065 INCLUDE_hcrypto="-I${with_openssl_include}"
14067 if test "$with_openssl_lib" != ""; then
14068 LIB_hcrypto="-L${with_openssl_lib}"
14070 CFLAGS="-DHAVE_OPENSSL ${INCLUDE_hcrypto} ${CFLAGS}"
14071 saved_LIB_hcrypto="$LIB_hcrypto"
14072 for lres in "" "-ldl" "-lnsl -lsocket" "-lnsl -lsocket -ldl"; do
14073 LIB_hcrypto="${saved_LIB_hcrypto} -lcrypto $lres"
14074 LIB_hcrypto_a="$LIB_hcrypto"
14075 LIB_hcrypto_so="$LIB_hcrypto"
14076 LIB_hcrypto_appl="$LIB_hcrypto"
14077 LIBS="${LIBS} ${LIB_hcrypto}"
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14081 #undef KRB5 /* makes md4.h et al unhappy */
14082 #ifdef HAVE_OPENSSL
14083 #ifdef HAVE_SYS_TYPES_H
14084 #include <sys/types.h>
14086 #include <openssl/evp.h>
14087 #include <openssl/md4.h>
14088 #include <openssl/md5.h>
14089 #include <openssl/sha.h>
14090 #include <openssl/des.h>
14091 #include <openssl/rc4.h>
14092 #include <openssl/aes.h>
14093 #include <openssl/ec.h>
14094 #include <openssl/engine.h>
14095 #include <openssl/ui.h>
14096 #include <openssl/rand.h>
14097 #include <openssl/hmac.h>
14098 #include <openssl/pkcs12.h>
14100 #include <hcrypto/evp.h>
14101 #include <hcrypto/md4.h>
14102 #include <hcrypto/md5.h>
14103 #include <hcrypto/sha.h>
14104 #include <hcrypto/des.h>
14105 #include <hcrypto/rc4.h>
14106 #include <hcrypto/aes.h>
14107 #include <hcrypto/engine.h>
14108 #include <hcrypto/hmac.h>
14109 #include <hcrypto/pkcs12.h>
14116 void *schedule = 0;
14124 EVP_MD_CTX_init(&mdctx);
14125 EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
14126 EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
14127 UI_UTIL_read_pw_string(0,0,0,0);
14129 #ifdef HAVE_OPENSSL
14133 OpenSSL_add_all_algorithms();
14134 AES_encrypt(0,0,0);
14135 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
14141 if ac_fn_c_try_link "$LINENO"; then :
14143 crypto_lib=libcrypto openssl=yes
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libcrypto" >&5
14145 $as_echo "libcrypto" >&6; }
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 if test "$crypto_lib" = libcrypto ; then
14154 CFLAGS="$save_CFLAGS"
14158 if test "$crypto_lib" = "unknown"; then
14160 DIR_hcrypto='hcrypto'
14161 LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la'
14162 LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a'
14163 LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so'
14164 LIB_hcrypto_appl="-lhcrypto"
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: included libhcrypto" >&5
14167 $as_echo "included libhcrypto" >&6; }
14171 if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
14172 as_fn_error "the crypto library used by krb4 lacks features
14173 required by Kerberos 5; to continue, you need to install a newer
14174 Kerberos 4 or configure --without-krb4" "$LINENO" 5
14177 if test "$openssl" = "yes"; then
14179 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
14182 if test "$openssl" = yes; then
14184 HAVE_OPENSSL_FALSE='#'
14186 HAVE_OPENSSL_TRUE='#'
14187 HAVE_OPENSSL_FALSE=
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling threadsafe libraries" >&5
14200 $as_echo_n "checking if compiling threadsafe libraries... " >&6; }
14202 # Check whether --enable-pthread-support was given.
14203 if test "${enable_pthread_support+set}" = set; then :
14204 enableval=$enable_pthread_support;
14206 enable_pthread_support=maybe
14212 native_pthread_support=yes
14213 if test "$GCC" = yes; then
14214 PTHREAD_CFLAGS=-pthreads
14215 PTHREAD_LIBADD=-pthreads
14223 native_pthread_support="if running netbsd 1.6T or newer"
14224 PTHREAD_LIBADD="-lpthread"
14226 *-*-netbsd[3456789]*)
14227 native_pthread_support="netbsd 3 uses explict pthread"
14228 PTHREAD_LIBADD="-lpthread"
14230 *-*-freebsd[56789]*)
14231 native_pthread_support=yes
14232 PTHREAD_LIBADD="-pthread"
14235 native_pthread_support=yes
14236 PTHREAD_CFLAGS=-pthread
14237 PTHREAD_LIBADD=-pthread
14239 *-*-linux* | *-*-linux-gnu)
14242 native_pthread_support=yes
14243 PTHREAD_CFLAGS=-pthread
14244 PTHREAD_LIBADD=-pthread
14248 *-*-kfreebsd*-gnu*)
14249 native_pthread_support=yes
14250 PTHREAD_CFLAGS=-pthread
14251 PTHREAD_LIBADD=-pthread
14254 native_pthread_support=no
14256 mips-sgi-irix6.[5-9]) # maybe works for earlier versions too
14257 native_pthread_support=yes
14258 PTHREAD_LIBADD="-lpthread"
14261 native_pthread_support=yes
14264 native_pthread_support=no
14268 if test "$enable_pthread_support" = maybe ; then
14269 enable_pthread_support="$native_pthread_support"
14272 if test "$enable_pthread_support" != no; then
14274 $as_echo "#define ENABLE_PTHREAD_SUPPORT 1" >>confdefs.h
14276 LIBS="$PTHREAD_LIBADD $LIBS"
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pthread_support" >&5
14287 $as_echo "$enable_pthread_support" >&6; }
14290 # Check whether --enable-dce was given.
14291 if test "${enable_dce+set}" = set; then :
14292 enableval=$enable_dce;
14295 if test "$enable_dce" = yes; then
14297 $as_echo "#define DCE 1" >>confdefs.h
14300 if test "$enable_dce" = yes; then
14309 ## XXX quite horrible:
14310 if test -f /etc/ibmcxx.cfg; then
14311 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc
/ibmcxx.cfg |
sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
14312 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc
/ibmcxx.cfg |
sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
14315 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
14316 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
14317 dpagaix_ldflags="-Wl,-bI:dfspag.exp"
14323 # Check whether --enable-afs-support was given.
14324 if test "${enable_afs_support+set}" = set; then :
14325 enableval=$enable_afs_support;
14328 if test "$enable_afs_support" = no; then
14330 $as_echo "#define NO_AFS 1" >>confdefs.h
14337 # Check whether --with-berkeley-db was given.
14338 if test "${with_berkeley_db+set}" = set; then :
14339 withval=$with_berkeley_db;
14341 with_berkeley_db=check
14347 # Check whether --with-berkeley-db-include was given.
14348 if test "${with_berkeley_db_include+set}" = set; then :
14349 withval=$with_berkeley_db_include; dbheader=$withval
14351 with_berkeley_db_include=check
14355 # Check whether --enable-ndbm-db was given.
14356 if test "${enable_ndbm_db+set}" = set; then :
14357 enableval=$enable_ndbm_db;
14365 if test "x$with_berkeley_db" != xno; then :
14366 if test "x$with_berkeley_db_include" != xcheck; then :
14367 for ac_header in "$dbheader/db.h"
14369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14370 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14371 eval as_val=\$$as_ac_Header
14372 if test "x$as_val" = x""yes; then :
14373 cat >>confdefs.h <<_ACEOF
14374 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
14379 $as_echo "#define HAVE_DBHEADER 1" >>confdefs.h
14383 if test "x$with_berkeley_db_include" != xcheck; then
14384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14386 as_fn_error "--with-berkeley-db-include was given but include
test failed
14387 See \
`config.log' for more details." "$LINENO" 5; }
14402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14403 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14404 eval as_val=\$$as_ac_Header
14405 if test "x$as_val" = x""yes; then :
14406 cat >>confdefs.h <<_ACEOF
14407 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create" >&5
14421 $as_echo_n "checking for db_create... " >&6; }
14422 if test "${ac_cv_funclib_db_create+set}" = set; then :
14423 $as_echo_n "(cached) " >&6
14426 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
14427 ac_save_LIBS="$LIBS"
14428 for ac_lib in "" $dbheader db5 db4 db3 db; do
14434 *) ac_lib="-l$ac_lib" ;;
14436 LIBS=" $ac_lib $ac_save_LIBS"
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14441 #ifdef HAVE_DBHEADER
14442 #include <$dbheader/db.h>
14443 #elif HAVE_DB5_DB_H
14444 #include <db5/db.h>
14445 #elif HAVE_DB4_DB_H
14446 #include <db4/db.h>
14447 #elif defined(HAVE_DB3_DB_H)
14448 #include <db3/db.h>
14456 db_create(NULL, NULL, 0)
14461 if ac_fn_c_try_link "$LINENO"; then :
14462 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
14464 rm -f core conftest.err conftest.$ac_objext \
14465 conftest$ac_exeext conftest.$ac_ext
14467 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
14468 LIBS="$ac_save_LIBS"
14474 eval "ac_res=\$ac_cv_funclib_db_create"
14477 for ac_func in db_create
14479 ac_fn_c_check_func "$LINENO" "db_create" "ac_cv_func_db_create"
14480 if test "x$ac_cv_func_db_create" = x""yes; then :
14481 cat >>confdefs.h <<_ACEOF
14482 #define HAVE_DB_CREATE 1
14490 eval "ac_tr_func=HAVE_`echo db_create |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
14491 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
14492 eval "LIB_db_create=$ac_res"
14496 eval "ac_cv_func_db_create=yes"
14497 eval "LIB_db_create="
14498 cat >>confdefs.h <<_ACEOF
14499 #define $ac_tr_func 1
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14503 $as_echo "yes" >&6; }
14506 eval "ac_cv_func_db_create=no"
14507 eval "LIB_db_create="
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14512 eval "ac_cv_func_db_create=yes"
14513 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
14514 cat >>confdefs.h <<_ACEOF
14515 #define $ac_tr_func 1
14518 cat >>confdefs.h <<_ACEOF
14519 #define $ac_tr_lib 1
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
14523 $as_echo "yes, in $ac_res" >&6; }
14529 if test "$ac_cv_func_db_create" = "yes"; then
14531 if test "$ac_cv_funclib_db_create" != "yes"; then
14532 DBLIB="$ac_cv_funclib_db_create"
14537 $as_echo "#define HAVE_DB3 1" >>confdefs.h
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen" >&5
14546 $as_echo_n "checking for dbopen... " >&6; }
14547 if test "${ac_cv_funclib_dbopen+set}" = set; then :
14548 $as_echo_n "(cached) " >&6
14551 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
14552 ac_save_LIBS="$LIBS"
14553 for ac_lib in "" db2 db; do
14559 *) ac_lib="-l$ac_lib" ;;
14561 LIBS=" $ac_lib $ac_save_LIBS"
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14566 #if defined(HAVE_DB2_DB_H)
14567 #include <db2/db.h>
14568 #elif defined(HAVE_DB_H)
14577 dbopen(NULL, 0, 0, 0, NULL)
14582 if ac_fn_c_try_link "$LINENO"; then :
14583 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
14585 rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14588 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
14589 LIBS="$ac_save_LIBS"
14595 eval "ac_res=\$ac_cv_funclib_dbopen"
14598 for ac_func in dbopen
14600 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
14601 if test "x$ac_cv_func_dbopen" = x""yes; then :
14602 cat >>confdefs.h <<_ACEOF
14603 #define HAVE_DBOPEN 1
14611 eval "ac_tr_func=HAVE_`echo dbopen |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
14612 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
14613 eval "LIB_dbopen=$ac_res"
14617 eval "ac_cv_func_dbopen=yes"
14619 cat >>confdefs.h <<_ACEOF
14620 #define $ac_tr_func 1
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624 $as_echo "yes" >&6; }
14627 eval "ac_cv_func_dbopen=no"
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14633 eval "ac_cv_func_dbopen=yes"
14634 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
14635 cat >>confdefs.h <<_ACEOF
14636 #define $ac_tr_func 1
14639 cat >>confdefs.h <<_ACEOF
14640 #define $ac_tr_lib 1
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
14644 $as_echo "yes, in $ac_res" >&6; }
14650 if test "$ac_cv_func_dbopen" = "yes"; then
14652 if test "$ac_cv_funclib_dbopen" != "yes"; then
14653 DBLIB="$ac_cv_funclib_dbopen"
14658 $as_echo "#define HAVE_DB1 1" >>confdefs.h
14663 if test "$ac_cv_func_dbm_firstkey" != yes; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
14667 $as_echo_n "checking for dbm_firstkey... " >&6; }
14668 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
14669 $as_echo_n "(cached) " >&6
14672 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
14673 ac_save_LIBS="$LIBS"
14674 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
14680 *) ac_lib="-l$ac_lib" ;;
14682 LIBS=" $ac_lib $ac_save_LIBS"
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14687 #define DB_DBM_HSEARCH 1
14699 if ac_fn_c_try_link "$LINENO"; then :
14700 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
14702 rm -f core conftest.err conftest.$ac_objext \
14703 conftest$ac_exeext conftest.$ac_ext
14705 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
14706 LIBS="$ac_save_LIBS"
14712 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
14715 for ac_func in dbm_firstkey
14717 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
14718 if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
14719 cat >>confdefs.h <<_ACEOF
14720 #define HAVE_DBM_FIRSTKEY 1
14728 eval "ac_tr_func=HAVE_`echo dbm_firstkey |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
14729 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
14730 eval "LIB_dbm_firstkey=$ac_res"
14734 eval "ac_cv_func_dbm_firstkey=yes"
14735 eval "LIB_dbm_firstkey="
14736 cat >>confdefs.h <<_ACEOF
14737 #define $ac_tr_func 1
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14741 $as_echo "yes" >&6; }
14744 eval "ac_cv_func_dbm_firstkey=no"
14745 eval "LIB_dbm_firstkey="
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747 $as_echo "no" >&6; }
14750 eval "ac_cv_func_dbm_firstkey=yes"
14751 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
14752 cat >>confdefs.h <<_ACEOF
14753 #define $ac_tr_func 1
14756 cat >>confdefs.h <<_ACEOF
14757 #define $ac_tr_lib 1
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
14761 $as_echo "yes, in $ac_res" >&6; }
14767 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
14768 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
14769 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
14774 $as_echo "#define HAVE_DB_NDBM 1" >>confdefs.h
14777 $as_echo "#define HAVE_NEW_DB 1" >>confdefs.h
14780 $as_unset ac_cv_func_dbm_firstkey
14781 $as_unset ac_cv_funclib_dbm_firstkey
14786 fi # fi berkeley db
14788 if test "$enable_ndbm_db" != "no"; then
14790 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
14797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14798 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14799 eval as_val=\$$as_ac_Header
14800 if test "x$as_val" = x""yes; then :
14801 cat >>confdefs.h <<_ACEOF
14802 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
14814 $as_echo_n "checking for dbm_firstkey... " >&6; }
14815 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
14816 $as_echo_n "(cached) " >&6
14819 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
14820 ac_save_LIBS="$LIBS"
14821 for ac_lib in "" ndbm; do
14827 *) ac_lib="-l$ac_lib" ;;
14829 LIBS=" $ac_lib $ac_save_LIBS"
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14834 #if defined(HAVE_NDBM_H)
14836 #elif defined(HAVE_DBM_H)
14849 if ac_fn_c_try_link "$LINENO"; then :
14850 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
14852 rm -f core conftest.err conftest.$ac_objext \
14853 conftest$ac_exeext conftest.$ac_ext
14855 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
14856 LIBS="$ac_save_LIBS"
14862 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
14865 for ac_func in dbm_firstkey
14867 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
14868 if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
14869 cat >>confdefs.h <<_ACEOF
14870 #define HAVE_DBM_FIRSTKEY 1
14878 eval "ac_tr_func=HAVE_`echo dbm_firstkey |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
14879 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
14880 eval "LIB_dbm_firstkey=$ac_res"
14884 eval "ac_cv_func_dbm_firstkey=yes"
14885 eval "LIB_dbm_firstkey="
14886 cat >>confdefs.h <<_ACEOF
14887 #define $ac_tr_func 1
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891 $as_echo "yes" >&6; }
14894 eval "ac_cv_func_dbm_firstkey=no"
14895 eval "LIB_dbm_firstkey="
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14897 $as_echo "no" >&6; }
14900 eval "ac_cv_func_dbm_firstkey=yes"
14901 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
14902 cat >>confdefs.h <<_ACEOF
14903 #define $ac_tr_func 1
14906 cat >>confdefs.h <<_ACEOF
14907 #define $ac_tr_lib 1
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
14911 $as_echo "yes, in $ac_res" >&6; }
14917 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
14918 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
14919 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
14924 $as_echo "#define HAVE_NDBM 1" >>confdefs.h
14926 if test "$db_type" = "unknown"; then
14932 $as_unset ac_cv_func_dbm_firstkey
14933 $as_unset ac_cv_funclib_dbm_firstkey
14939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14940 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14941 eval as_val=\$$as_ac_Header
14942 if test "x$as_val" = x""yes; then :
14943 cat >>confdefs.h <<_ACEOF
14944 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
14956 $as_echo_n "checking for dbm_firstkey... " >&6; }
14957 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
14958 $as_echo_n "(cached) " >&6
14961 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
14962 ac_save_LIBS="$LIBS"
14963 for ac_lib in "" gdbm; do
14969 *) ac_lib="-l$ac_lib" ;;
14971 LIBS=" $ac_lib $ac_save_LIBS"
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14976 #include <gdbm/ndbm.h>
14987 if ac_fn_c_try_link "$LINENO"; then :
14988 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
14990 rm -f core conftest.err conftest.$ac_objext \
14991 conftest$ac_exeext conftest.$ac_ext
14993 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
14994 LIBS="$ac_save_LIBS"
15000 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
15003 for ac_func in dbm_firstkey
15005 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
15006 if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
15007 cat >>confdefs.h <<_ACEOF
15008 #define HAVE_DBM_FIRSTKEY 1
15016 eval "ac_tr_func=HAVE_`echo dbm_firstkey |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
15017 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
15018 eval "LIB_dbm_firstkey=$ac_res"
15022 eval "ac_cv_func_dbm_firstkey=yes"
15023 eval "LIB_dbm_firstkey="
15024 cat >>confdefs.h <<_ACEOF
15025 #define $ac_tr_func 1
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15029 $as_echo "yes" >&6; }
15032 eval "ac_cv_func_dbm_firstkey=no"
15033 eval "LIB_dbm_firstkey="
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035 $as_echo "no" >&6; }
15038 eval "ac_cv_func_dbm_firstkey=yes"
15039 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
15040 cat >>confdefs.h <<_ACEOF
15041 #define $ac_tr_func 1
15044 cat >>confdefs.h <<_ACEOF
15045 #define $ac_tr_lib 1
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
15049 $as_echo "yes, in $ac_res" >&6; }
15055 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
15056 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
15057 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
15062 $as_echo "#define HAVE_NDBM 1" >>confdefs.h
15064 if test "$db_type" = "unknown"; then
15073 if test "$have_ndbm" = "yes"; then
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ndbm is implemented with db" >&5
15075 $as_echo_n "checking if ndbm is implemented with db... " >&6; }
15076 if test "$cross_compiling" = yes; then :
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no-cross" >&5
15078 $as_echo "no-cross" >&6; }
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15083 #include <unistd.h>
15085 #if defined(HAVE_GDBM_NDBM_H)
15086 #include <gdbm/ndbm.h>
15087 #elif defined(HAVE_NDBM_H)
15089 #elif defined(HAVE_DBM_H)
15092 int main(int argc, char **argv)
15096 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
15103 if ac_fn_c_try_run "$LINENO"; then :
15105 if test -f conftest.db; then
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15107 $as_echo "yes" >&6; }
15109 $as_echo "#define HAVE_NEW_DB 1" >>confdefs.h
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113 $as_echo "no" >&6; }
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117 $as_echo "no" >&6; }
15119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15120 conftest.$ac_objext conftest.beam conftest.$ac_ext
15125 if test "$db_type" = db1; then
15132 if test "$db_type" = db3; then
15139 if test "$db_type" = ndbm; then
15141 HAVE_NDBM_FALSE='#'
15146 if test "$dbheader" != ""; then
15147 HAVE_DBHEADER_TRUE=
15148 HAVE_DBHEADER_FALSE='#'
15150 HAVE_DBHEADER_TRUE='#'
15151 HAVE_DBHEADER_FALSE=
15154 ## it's probably not correct to include LDFLAGS here, but we might
15155 ## need it, for now just add any possible -L
15157 for i in $LDFLAGS; do
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15168 $as_echo_n "checking for inline... " >&6; }
15169 if test "${ac_cv_c_inline+set}" = set; then :
15170 $as_echo_n "(cached) " >&6
15173 for ac_kw in inline __inline__ __inline; do
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15176 #ifndef __cplusplus
15178 static $ac_kw foo_t static_foo () {return 0; }
15179 $ac_kw foo_t foo () {return 0; }
15183 if ac_fn_c_try_compile "$LINENO"; then :
15184 ac_cv_c_inline=$ac_kw
15186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 test "$ac_cv_c_inline" != no && break
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15192 $as_echo "$ac_cv_c_inline" >&6; }
15194 case $ac_cv_c_inline in
15197 case $ac_cv_c_inline in
15199 *) ac_val=$ac_cv_c_inline;;
15201 cat >>confdefs.h <<_ACEOF
15202 #ifndef __cplusplus
15203 #define inline $ac_val
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15210 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15211 if test "${ac_cv_c_const+set}" = set; then :
15212 $as_echo_n "(cached) " >&6
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15220 /* FIXME: Include the comments suggested by Paul. */
15221 #ifndef __cplusplus
15222 /* Ultrix mips cc rejects this. */
15223 typedef int charset[2];
15225 /* SunOS 4.1.1 cc rejects this. */
15226 char const *const *pcpcc;
15228 /* NEC SVR4.0.2 mips cc rejects this. */
15229 struct point {int x, y;};
15230 static struct point const zero = {0,0};
15231 /* AIX XL C 1.02.0.0 rejects this.
15232 It does not let you subtract one const X* pointer from another in
15233 an arm of an if-expression whose if-part is not a constant
15235 const char *g = "string";
15236 pcpcc = &g + (g ? g-g : 0);
15237 /* HPUX 7.0 cc rejects these. */
15239 ppc = (char**) pcpcc;
15240 pcpcc = (char const *const *) ppc;
15241 { /* SCO 3.2v4 cc rejects this. */
15243 char const *s = 0 ? (char *) 0 : (char const *) 0;
15248 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15249 int x[] = {25, 17};
15250 const int *foo = &x[0];
15253 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15254 typedef const int *iptr;
15258 { /* AIX XL C 1.02.0.0 rejects this saying
15259 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15260 struct s { int j; const int *ap[3]; };
15261 struct s *b; b->j = 5;
15263 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15264 const int foo = 10;
15265 if (!foo) return 0;
15267 return !cs[0] && !zero.x;
15274 if ac_fn_c_try_compile "$LINENO"; then :
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15282 $as_echo "$ac_cv_c_const" >&6; }
15283 if test $ac_cv_c_const = no; then
15285 $as_echo "#define const /**/" >>confdefs.h
15289 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15290 if test "x$ac_cv_type_size_t" = x""yes; then :
15294 cat >>confdefs.h <<_ACEOF
15295 #define size_t unsigned int
15300 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15301 if test "x$ac_cv_type_pid_t" = x""yes; then :
15305 cat >>confdefs.h <<_ACEOF
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15312 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15313 if test "${ac_cv_type_uid_t+set}" = set; then :
15314 $as_echo_n "(cached) " >&6
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318 #include <sys/types.h>
15321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15322 $EGREP "uid_t" >/dev/null 2>&1; then :
15323 ac_cv_type_uid_t=yes
15325 ac_cv_type_uid_t=no
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15331 $as_echo "$ac_cv_type_uid_t" >&6; }
15332 if test $ac_cv_type_uid_t = no; then
15334 $as_echo "#define uid_t int" >>confdefs.h
15337 $as_echo "#define gid_t int" >>confdefs.h
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15343 $as_echo_n "checking return type of signal handlers... " >&6; }
15344 if test "${ac_cv_type_signal+set}" = set; then :
15345 $as_echo_n "(cached) " >&6
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 #include <sys/types.h>
15350 #include <signal.h>
15355 return *(signal (0, 0)) (0) == 1;
15360 if ac_fn_c_try_compile "$LINENO"; then :
15361 ac_cv_type_signal=int
15363 ac_cv_type_signal=void
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15368 $as_echo "$ac_cv_type_signal" >&6; }
15370 cat >>confdefs.h <<_ACEOF
15371 #define RETSIGTYPE $ac_cv_type_signal
15375 if test "$ac_cv_type_signal" = "void" ; then
15377 $as_echo "#define VOID_RETSIGTYPE 1" >>confdefs.h
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15384 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15385 if test "${ac_cv_header_time+set}" = set; then :
15386 $as_echo_n "(cached) " >&6
15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15389 /* end confdefs.h. */
15390 #include <sys/types.h>
15391 #include <sys/time.h>
15397 if ((struct tm *) 0)
15403 if ac_fn_c_try_compile "$LINENO"; then :
15404 ac_cv_header_time=yes
15406 ac_cv_header_time=no
15408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15411 $as_echo "$ac_cv_header_time" >&6; }
15412 if test $ac_cv_header_time = yes; then
15414 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15419 for ac_header in standards.h
15421 ac_fn_c_check_header_mongrel "$LINENO" "standards.h" "ac_cv_header_standards_h" "$ac_includes_default"
15422 if test "x$ac_cv_header_standards_h" = x""yes; then :
15423 cat >>confdefs.h <<_ACEOF
15424 #define HAVE_STANDARDS_H 1
15431 for i in netinet/ip.h netinet/tcp.h; do
15433 cv=`echo "$i" |
sed 'y%./+-%__p_%'`
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $i" >&5
15436 $as_echo_n "checking for $i... " >&6; }
15437 if { as_var=ac_cv_header_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
15438 $as_echo_n "(cached) " >&6
15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h. */
15443 #ifdef HAVE_STANDARDS_H
15444 #include <standards.h>
15449 if ac_fn_c_try_cpp "$LINENO"; then :
15450 eval "ac_cv_header_$cv=yes"
15452 eval "ac_cv_header_$cv=no"
15454 rm -f conftest.err conftest.$ac_ext
15456 eval ac_res=\$ac_cv_header_$cv
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15458 $as_echo "$ac_res" >&6; }
15459 ac_res=`eval echo \\$ac_cv_header_$cv`
15460 if test "$ac_res" = yes; then
15461 ac_tr_hdr=HAVE_`echo $i |
sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15462 cat >>confdefs.h <<_ACEOF
15463 #define $ac_tr_hdr 1
15469 for ac_header in netinet/ip.h netinet/tcp.h
15471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15472 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15473 eval as_val=\$$as_ac_Header
15474 if test "x$as_val" = x""yes; then :
15475 cat >>confdefs.h <<_ACEOF
15476 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15486 for ac_func in getlogin setlogin
15488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15490 eval as_val=\$$as_ac_var
15491 if test "x$as_val" = x""yes; then :
15492 cat >>confdefs.h <<_ACEOF
15493 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15499 if test "$ac_cv_func_getlogin" = yes; then
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getlogin is posix" >&5
15501 $as_echo_n "checking if getlogin is posix... " >&6; }
15502 if test "${ac_cv_func_getlogin_posix+set}" = set; then :
15503 $as_echo_n "(cached) " >&6
15506 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
15507 ac_cv_func_getlogin_posix=no
15509 ac_cv_func_getlogin_posix=yes
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getlogin_posix" >&5
15514 $as_echo "$ac_cv_func_getlogin_posix" >&6; }
15515 if test "$ac_cv_func_getlogin_posix" = yes; then
15517 $as_echo "#define POSIX_GETLOGIN 1" >>confdefs.h
15525 for ac_header in $ac_header_list
15527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15530 eval as_val=\$$as_ac_Header
15531 if test "x$as_val" = x""yes; then :
15532 cat >>confdefs.h <<_ACEOF
15533 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15547 for ac_func in getpagesize
15549 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15550 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15551 cat >>confdefs.h <<_ACEOF
15552 #define HAVE_GETPAGESIZE 1
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15559 $as_echo_n "checking for working mmap... " >&6; }
15560 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15561 $as_echo_n "(cached) " >&6
15563 if test "$cross_compiling" = yes; then :
15564 ac_cv_func_mmap_fixed_mapped=no
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568 $ac_includes_default
15569 /* malloc might have been renamed as rpl_malloc. */
15572 /* Thanks to Mike Haertel and Jim Avera for this test.
15573 Here is a matrix of mmap possibilities:
15574 mmap private not fixed
15575 mmap private fixed at somewhere currently unmapped
15576 mmap private fixed at somewhere already mapped
15577 mmap shared not fixed
15578 mmap shared fixed at somewhere currently unmapped
15579 mmap shared fixed at somewhere already mapped
15580 For private mappings, we should verify that changes cannot be read()
15581 back from the file, nor mmap's back from the file at a different
15582 address. (There have been systems where private was not correctly
15583 implemented like the infamous i386 svr4.0, and systems where the
15584 VM page cache was not coherent with the file system buffer cache
15585 like early versions of FreeBSD and possibly contemporary NetBSD.)
15586 For shared mappings, we should conversely verify that changes get
15587 propagated back to all the places they're supposed to be.
15589 Grep wants private fixed already mapped.
15590 The main things grep needs to know about mmap are:
15591 * does it exist and is it safe to write into the mmap'd area
15592 * how to use it (BSD variants) */
15595 #include <sys/mman.h>
15597 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15601 /* This mess was copied from the GNU getpagesize.h. */
15602 #ifndef HAVE_GETPAGESIZE
15603 # ifdef _SC_PAGESIZE
15604 # define getpagesize() sysconf(_SC_PAGESIZE)
15605 # else /* no _SC_PAGESIZE */
15606 # ifdef HAVE_SYS_PARAM_H
15607 # include <sys/param.h>
15608 # ifdef EXEC_PAGESIZE
15609 # define getpagesize() EXEC_PAGESIZE
15610 # else /* no EXEC_PAGESIZE */
15612 # define getpagesize() NBPG * CLSIZE
15615 # endif /* no CLSIZE */
15616 # else /* no NBPG */
15618 # define getpagesize() NBPC
15619 # else /* no NBPC */
15621 # define getpagesize() PAGESIZE
15622 # endif /* PAGESIZE */
15623 # endif /* no NBPC */
15624 # endif /* no NBPG */
15625 # endif /* no EXEC_PAGESIZE */
15626 # else /* no HAVE_SYS_PARAM_H */
15627 # define getpagesize() 8192 /* punt totally */
15628 # endif /* no HAVE_SYS_PARAM_H */
15629 # endif /* no _SC_PAGESIZE */
15631 #endif /* no HAVE_GETPAGESIZE */
15636 char *data, *data2, *data3;
15640 pagesize = getpagesize ();
15642 /* First, make a file with some known garbage in it. */
15643 data = (char *) malloc (pagesize);
15646 for (i = 0; i < pagesize; ++i)
15647 *(data + i) = rand ();
15649 fd = creat ("conftest.mmap", 0600);
15652 if (write (fd, data, pagesize) != pagesize)
15656 /* Next, check that the tail of a page is zero-filled. File must have
15657 non-zero length, otherwise we risk SIGBUS for entire page. */
15658 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15662 if (write (fd2, data2, 1) != 1)
15664 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15665 if (data2 == MAP_FAILED)
15667 for (i = 0; i < pagesize; ++i)
15671 if (munmap (data2, pagesize))
15674 /* Next, try to mmap the file at a fixed address which already has
15675 something else allocated at it. If we can, also make sure that
15676 we see the same garbage. */
15677 fd = open ("conftest.mmap", O_RDWR);
15680 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15681 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15683 for (i = 0; i < pagesize; ++i)
15684 if (*(data + i) != *(data2 + i))
15687 /* Finally, make sure that changes to the mapped area do not
15688 percolate back to the file as seen by read(). (This is a bug on
15689 some variants of i386 svr4.0.) */
15690 for (i = 0; i < pagesize; ++i)
15691 *(data2 + i) = *(data2 + i) + 1;
15692 data3 = (char *) malloc (pagesize);
15695 if (read (fd, data3, pagesize) != pagesize)
15697 for (i = 0; i < pagesize; ++i)
15698 if (*(data + i) != *(data3 + i))
15704 if ac_fn_c_try_run "$LINENO"; then :
15705 ac_cv_func_mmap_fixed_mapped=yes
15707 ac_cv_func_mmap_fixed_mapped=no
15709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15710 conftest.$ac_objext conftest.beam conftest.$ac_ext
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15715 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15716 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15718 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15721 rm -f conftest.mmap conftest.txt
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realloc if broken" >&5
15725 $as_echo_n "checking if realloc if broken... " >&6; }
15726 if test "${ac_cv_func_realloc_broken+set}" = set; then :
15727 $as_echo_n "(cached) " >&6
15730 ac_cv_func_realloc_broken=no
15731 if test "$cross_compiling" = yes; then :
15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15737 #include <stddef.h>
15738 #include <stdlib.h>
15740 int main(int argc, char **argv)
15742 return realloc(NULL, 17) == NULL;
15746 if ac_fn_c_try_run "$LINENO"; then :
15749 ac_cv_func_realloc_broken=yes
15751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752 conftest.$ac_objext conftest.beam conftest.$ac_ext
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_broken" >&5
15758 $as_echo "$ac_cv_func_realloc_broken" >&6; }
15759 if test "$ac_cv_func_realloc_broken" = yes ; then
15761 $as_echo "#define BROKEN_REALLOC 1" >>confdefs.h
15771 LIB_roken='$(top_builddir)/lib/roken/libroken.la'
15772 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
15783 $as_echo "#define rk_PATH_DELIM '/'" >>confdefs.h
15792 # Check whether --enable-developer was given.
15793 if test "${enable_developer+set}" = set; then :
15794 enableval=$enable_developer;
15797 if test "X$enable_developer" = Xyes; then
15802 WFLAGS_NOIMPLICITINT=""
15803 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
15804 # -Wno-implicit-int for broken X11 headers
15805 # leave these out for now:
15806 # -Wcast-align doesn't work well on alpha osf/1
15807 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
15808 # -Wmissing-declarations -Wnested-externs
15809 # -Wstrict-overflow=5
15810 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
15811 WFLAGS_NOUNUSED="-Wno-unused"
15812 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
15822 cv=`echo "ssize_t" |
sed 'y%./+- %__p__%'`
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15824 $as_echo_n "checking for ssize_t... " >&6; }
15825 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
15826 $as_echo_n "(cached) " >&6
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15831 #include <sys/types.h>
15833 #include <stdlib.h>
15834 #include <stddef.h>
15836 #include <unistd.h>
15845 if ac_fn_c_try_compile "$LINENO"; then :
15846 eval "ac_cv_type_$cv=yes"
15848 eval "ac_cv_type_$cv=no"
15850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15852 ac_foo=`eval echo \\$ac_cv_type_$cv`
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
15854 $as_echo "$ac_foo" >&6; }
15855 if test "$ac_foo" = yes; then
15856 ac_tr_hdr=HAVE_`echo ssize_t |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
15858 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15859 if test "x$ac_cv_type_ssize_t" = x""yes; then :
15861 cat >>confdefs.h <<_ACEOF
15862 #define HAVE_SSIZE_T 1
15870 cat >>confdefs.h <<_ACEOF
15871 #define $ac_tr_hdr 1
15880 cv=`echo "long long" |
sed 'y%./+- %__p__%'`
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
15882 $as_echo_n "checking for long long... " >&6; }
15883 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
15884 $as_echo_n "(cached) " >&6
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15889 #include <sys/types.h>
15891 #include <stdlib.h>
15892 #include <stddef.h>
15903 if ac_fn_c_try_compile "$LINENO"; then :
15904 eval "ac_cv_type_$cv=yes"
15906 eval "ac_cv_type_$cv=no"
15908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15910 ac_foo=`eval echo \\$ac_cv_type_$cv`
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
15912 $as_echo "$ac_foo" >&6; }
15913 if test "$ac_foo" = yes; then
15914 ac_tr_hdr=HAVE_`echo long long |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
15916 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15917 if test "x$ac_cv_type_long_long" = x""yes; then :
15919 cat >>confdefs.h <<_ACEOF
15920 #define HAVE_LONG_LONG 1
15928 cat >>confdefs.h <<_ACEOF
15929 #define $ac_tr_hdr 1
15953 netinet/in_systm.h \
15985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15986 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15987 eval as_val=\$$as_ac_Header
15988 if test "x$as_val" = x""yes; then :
15989 cat >>confdefs.h <<_ACEOF
15990 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16000 cv=`echo "uintptr_t" |
sed 'y%./+- %__p__%'`
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5
16002 $as_echo_n "checking for uintptr_t... " >&6; }
16003 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
16004 $as_echo_n "(cached) " >&6
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16009 #include <sys/types.h>
16011 #include <stdlib.h>
16012 #include <stddef.h>
16014 #ifdef HAVE_STDINT_H
16015 #include <stdint.h>
16025 if ac_fn_c_try_compile "$LINENO"; then :
16026 eval "ac_cv_type_$cv=yes"
16028 eval "ac_cv_type_$cv=no"
16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032 ac_foo=`eval echo \\$ac_cv_type_$cv`
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
16034 $as_echo "$ac_foo" >&6; }
16035 if test "$ac_foo" = yes; then
16036 ac_tr_hdr=HAVE_`echo uintptr_t |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
16038 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16039 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16041 cat >>confdefs.h <<_ACEOF
16042 #define HAVE_UINTPTR_T 1
16050 cat >>confdefs.h <<_ACEOF
16051 #define $ac_tr_hdr 1
16057 for ac_header in vis.h
16059 ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" "
16065 if test "x$ac_cv_header_vis_h" = x""yes; then :
16066 cat >>confdefs.h <<_ACEOF
16067 #define HAVE_VIS_H 1
16075 for ac_header in netdb.h
16077 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
16078 #ifdef HAVE_SYS_TYPES_H
16079 #include <sys/types.h>
16083 if test "x$ac_cv_header_netdb_h" = x""yes; then :
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_NETDB_H 1
16093 for ac_header in sys/socket.h
16095 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
16096 #ifdef HAVE_SYS_TYPES_H
16097 #include <sys/types.h>
16101 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
16102 cat >>confdefs.h <<_ACEOF
16103 #define HAVE_SYS_SOCKET_H 1
16111 for ac_header in net/if.h
16113 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
16114 #ifdef HAVE_SYS_TYPES_H
16115 #include <sys/types.h>
16117 #if HAVE_SYS_SOCKET_H
16118 #include <sys/socket.h>
16121 if test "x$ac_cv_header_net_if_h" = x""yes; then :
16122 cat >>confdefs.h <<_ACEOF
16123 #define HAVE_NET_IF_H 1
16131 for ac_header in netinet6/in6_var.h
16133 ac_fn_c_check_header_compile "$LINENO" "netinet6/in6_var.h" "ac_cv_header_netinet6_in6_var_h" "$ac_includes_default
16134 #ifdef HAVE_SYS_TYPES_H
16135 #include <sys/types.h>
16137 #if HAVE_SYS_SOCKET_H
16138 #include <sys/socket.h>
16140 #ifdef HAVE_NETINET6_IN6_H
16141 #include <netinet6/in6.h>
16145 if test "x$ac_cv_header_netinet6_in6_var_h" = x""yes; then :
16146 cat >>confdefs.h <<_ACEOF
16147 #define HAVE_NETINET6_IN6_VAR_H 1
16155 for ac_header in sys/sysctl.h
16157 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
16158 #ifdef HAVE_SYS_PARAM_H
16159 #include <sys/param.h>
16163 if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
16164 cat >>confdefs.h <<_ACEOF
16165 #define HAVE_SYS_SYSCTL_H 1
16173 for ac_header in sys/proc.h
16175 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "$ac_includes_default
16176 #ifdef HAVE_SYS_PARAM_H
16177 #include <sys/param.h>
16181 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
16182 cat >>confdefs.h <<_ACEOF
16183 #define HAVE_SYS_PROC_H 1
16193 if test "$ac_cv_header_err_h" = yes; then
16195 have_err_h_FALSE='#'
16197 have_err_h_TRUE='#'
16201 if test "$ac_cv_header_ifaddrs_h" = yes; then
16202 have_ifaddrs_h_TRUE=
16203 have_ifaddrs_h_FALSE='#'
16205 have_ifaddrs_h_TRUE='#'
16206 have_ifaddrs_h_FALSE=
16209 if test "$ac_cv_header_search_h" = yes; then
16210 have_search_h_TRUE=
16211 have_search_h_FALSE='#'
16213 have_search_h_TRUE='#'
16214 have_search_h_FALSE=
16217 if test "$ac_cv_header_vis_h" = yes; then
16219 have_vis_h_FALSE='#'
16221 have_vis_h_TRUE='#'
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket" >&5
16232 $as_echo_n "checking for socket... " >&6; }
16233 if test "${ac_cv_funclib_socket+set}" = set; then :
16234 $as_echo_n "(cached) " >&6
16237 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
16238 ac_save_LIBS="$LIBS"
16239 for ac_lib in "" socket; do
16245 *) ac_lib="-l$ac_lib" ;;
16247 LIBS=" $ac_lib $ac_save_LIBS"
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16259 if ac_fn_c_try_link "$LINENO"; then :
16260 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
16262 rm -f core conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16265 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
16266 LIBS="$ac_save_LIBS"
16272 eval "ac_res=\$ac_cv_funclib_socket"
16275 for ac_func in socket
16277 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16278 if test "x$ac_cv_func_socket" = x""yes; then :
16279 cat >>confdefs.h <<_ACEOF
16280 #define HAVE_SOCKET 1
16288 eval "ac_tr_func=HAVE_`echo socket |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
16289 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
16290 eval "LIB_socket=$ac_res"
16294 eval "ac_cv_func_socket=yes"
16296 cat >>confdefs.h <<_ACEOF
16297 #define $ac_tr_func 1
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16301 $as_echo "yes" >&6; }
16304 eval "ac_cv_func_socket=no"
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307 $as_echo "no" >&6; }
16310 eval "ac_cv_func_socket=yes"
16311 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
16312 cat >>confdefs.h <<_ACEOF
16313 #define $ac_tr_func 1
16316 cat >>confdefs.h <<_ACEOF
16317 #define $ac_tr_lib 1
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16321 $as_echo "yes, in $ac_res" >&6; }
16326 if test -n "$LIB_socket"; then
16327 LIBS="$LIB_socket $LIBS"
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
16335 $as_echo_n "checking for gethostbyname... " >&6; }
16336 if test "${ac_cv_funclib_gethostbyname+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16340 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
16341 ac_save_LIBS="$LIBS"
16342 for ac_lib in "" nsl; do
16348 *) ac_lib="-l$ac_lib" ;;
16350 LIBS=" $ac_lib $ac_save_LIBS"
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16362 if ac_fn_c_try_link "$LINENO"; then :
16363 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
16365 rm -f core conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
16368 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
16369 LIBS="$ac_save_LIBS"
16375 eval "ac_res=\$ac_cv_funclib_gethostbyname"
16378 for ac_func in gethostbyname
16380 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16381 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
16382 cat >>confdefs.h <<_ACEOF
16383 #define HAVE_GETHOSTBYNAME 1
16391 eval "ac_tr_func=HAVE_`echo gethostbyname |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
16392 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
16393 eval "LIB_gethostbyname=$ac_res"
16397 eval "ac_cv_func_gethostbyname=yes"
16398 eval "LIB_gethostbyname="
16399 cat >>confdefs.h <<_ACEOF
16400 #define $ac_tr_func 1
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16404 $as_echo "yes" >&6; }
16407 eval "ac_cv_func_gethostbyname=no"
16408 eval "LIB_gethostbyname="
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410 $as_echo "no" >&6; }
16413 eval "ac_cv_func_gethostbyname=yes"
16414 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
16415 cat >>confdefs.h <<_ACEOF
16416 #define $ac_tr_func 1
16419 cat >>confdefs.h <<_ACEOF
16420 #define $ac_tr_lib 1
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16424 $as_echo "yes, in $ac_res" >&6; }
16429 if test -n "$LIB_gethostbyname"; then
16430 LIBS="$LIB_gethostbyname $LIBS"
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog" >&5
16438 $as_echo_n "checking for syslog... " >&6; }
16439 if test "${ac_cv_funclib_syslog+set}" = set; then :
16440 $as_echo_n "(cached) " >&6
16443 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
16444 ac_save_LIBS="$LIBS"
16445 for ac_lib in "" syslog; do
16451 *) ac_lib="-l$ac_lib" ;;
16453 LIBS=" $ac_lib $ac_save_LIBS"
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16465 if ac_fn_c_try_link "$LINENO"; then :
16466 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
16468 rm -f core conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16471 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
16472 LIBS="$ac_save_LIBS"
16478 eval "ac_res=\$ac_cv_funclib_syslog"
16481 for ac_func in syslog
16483 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
16484 if test "x$ac_cv_func_syslog" = x""yes; then :
16485 cat >>confdefs.h <<_ACEOF
16486 #define HAVE_SYSLOG 1
16494 eval "ac_tr_func=HAVE_`echo syslog |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
16495 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
16496 eval "LIB_syslog=$ac_res"
16500 eval "ac_cv_func_syslog=yes"
16502 cat >>confdefs.h <<_ACEOF
16503 #define $ac_tr_func 1
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16507 $as_echo "yes" >&6; }
16510 eval "ac_cv_func_syslog=no"
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16513 $as_echo "no" >&6; }
16516 eval "ac_cv_func_syslog=yes"
16517 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
16518 cat >>confdefs.h <<_ACEOF
16519 #define $ac_tr_func 1
16522 cat >>confdefs.h <<_ACEOF
16523 #define $ac_tr_lib 1
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16527 $as_echo "yes, in $ac_res" >&6; }
16532 if test -n "$LIB_syslog"; then
16533 LIBS="$LIB_syslog $LIBS"
16539 # Check whether --with-ipv6 was given.
16540 if test "${with_ipv6+set}" = set; then :
16541 withval=$with_ipv6;
16542 ac_cv_lib_ipv6="$withval"
16546 save_CFLAGS="${CFLAGS}"
16548 if test "X$ac_cv_lib_ipv6" != "Xno"; then
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 stack type" >&5
16551 $as_echo_n "checking for IPv6 stack type... " >&6; }
16552 if test "${rk_cv_v6type+set}" = set; then :
16553 $as_echo_n "(cached) " >&6
16558 for i in v6d toshiba kame inria zeta linux; do
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h. */
16564 #include </usr/local/v6/include/sys/types.h>
16569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16570 $EGREP "yes" >/dev/null 2>&1; then :
16571 v6type=$i; v6lib=v6;
16572 v6libdir=/usr/local/v6/lib;
16573 CFLAGS="-I/usr/local/v6/include $CFLAGS"
16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16582 #include <sys/param.h>
16583 #ifdef _TOSHIBA_INET6
16587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16588 $EGREP "yes" >/dev/null 2>&1; then :
16589 v6type=$i; v6lib=inet6;
16590 v6libdir=/usr/local/v6/lib;
16591 CFLAGS="-DINET6 $CFLAGS"
16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598 /* end confdefs.h. */
16600 #include <netinet/in.h>
16605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16606 $EGREP "yes" >/dev/null 2>&1; then :
16607 v6type=$i; v6lib=inet6;
16608 v6libdir=/usr/local/v6/lib;
16609 CFLAGS="-DINET6 $CFLAGS"
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16618 #include <netinet/in.h>
16619 #ifdef IPV6_INRIA_VERSION
16623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16624 $EGREP "yes" >/dev/null 2>&1; then :
16625 v6type=$i; CFLAGS="-DINET6 $CFLAGS"
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16634 #include <sys/param.h>
16635 #ifdef _ZETA_MINAMI_INET6
16639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16640 $EGREP "yes" >/dev/null 2>&1; then :
16641 v6type=$i; v6lib=inet6;
16642 v6libdir=/usr/local/v6/lib;
16643 CFLAGS="-DINET6 $CFLAGS"
16649 if test -d /usr/inet6; then
16652 v6libdir=/usr/inet6
16653 CFLAGS="-DINET6 $CFLAGS"
16657 if test "$v6type" != "unknown"; then
16662 if test "$v6lib" != "none"; then
16663 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
16664 if test -d $dir -a -f $dir/lib$v6lib.a; then
16665 LIBS="-L$dir -l$v6lib $LIBS"
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_v6type" >&5
16672 $as_echo "$rk_cv_v6type" >&6; }
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5
16675 $as_echo_n "checking for IPv6... " >&6; }
16676 if test "${rk_cv_lib_ipv6+set}" = set; then :
16677 $as_echo_n "(cached) " >&6
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16683 #ifdef HAVE_SYS_TYPES_H
16684 #include <sys/types.h>
16686 #ifdef HAVE_SYS_SOCKET_H
16687 #include <sys/socket.h>
16689 #ifdef HAVE_NETINET_IN_H
16690 #include <netinet/in.h>
16692 #ifdef HAVE_NETINET_IN6_H
16693 #include <netinet/in6.h>
16700 struct sockaddr_in6 sin6;
16703 s = socket(AF_INET6, SOCK_DGRAM, 0);
16705 sin6.sin6_family = AF_INET6;
16706 sin6.sin6_port = htons(17);
16707 sin6.sin6_addr = in6addr_any;
16708 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
16714 if ac_fn_c_try_link "$LINENO"; then :
16719 rm -f core conftest.err conftest.$ac_objext \
16720 conftest$ac_exeext conftest.$ac_ext
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_lib_ipv6" >&5
16723 $as_echo "$rk_cv_lib_ipv6" >&6; }
16726 if test "$ac_cv_lib_ipv6" = yes; then
16728 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
16731 CFLAGS="${save_CFLAGS}"
16734 ## test for AIX missing in6addr_loopback
16735 if test "$ac_cv_lib_ipv6" = yes; then
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5
16737 $as_echo_n "checking for in6addr_loopback... " >&6; }
16738 if test "${rk_cv_var_in6addr_loopback+set}" = set; then :
16739 $as_echo_n "(cached) " >&6
16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h. */
16745 #ifdef HAVE_SYS_TYPES_H
16746 #include <sys/types.h>
16748 #ifdef HAVE_SYS_SOCKET_H
16749 #include <sys/socket.h>
16751 #ifdef HAVE_NETINET_IN_H
16752 #include <netinet/in.h>
16754 #ifdef HAVE_NETINET_IN6_H
16755 #include <netinet/in6.h>
16761 struct sockaddr_in6 sin6;
16762 sin6.sin6_addr = in6addr_loopback;
16768 if ac_fn_c_try_link "$LINENO"; then :
16769 ac_cv_var_in6addr_loopback=yes
16771 ac_cv_var_in6addr_loopback=no
16773 rm -f core conftest.err conftest.$ac_objext \
16774 conftest$ac_exeext conftest.$ac_ext
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_var_in6addr_loopback" >&5
16777 $as_echo "$rk_cv_var_in6addr_loopback" >&6; }
16778 if test "$ac_cv_var_in6addr_loopback" = yes; then
16780 $as_echo "#define HAVE_IN6ADDR_LOOPBACK 1" >>confdefs.h
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2" >&5
16791 $as_echo_n "checking for gethostbyname2... " >&6; }
16792 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then :
16793 $as_echo_n "(cached) " >&6
16796 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
16797 ac_save_LIBS="$LIBS"
16798 for ac_lib in "" inet6 ip6; do
16804 *) ac_lib="-l$ac_lib" ;;
16806 LIBS=" $ac_lib $ac_save_LIBS"
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808 /* end confdefs.h. */
16818 if ac_fn_c_try_link "$LINENO"; then :
16819 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
16821 rm -f core conftest.err conftest.$ac_objext \
16822 conftest$ac_exeext conftest.$ac_ext
16824 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
16825 LIBS="$ac_save_LIBS"
16831 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
16834 for ac_func in gethostbyname2
16836 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
16837 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
16838 cat >>confdefs.h <<_ACEOF
16839 #define HAVE_GETHOSTBYNAME2 1
16847 eval "ac_tr_func=HAVE_`echo gethostbyname2 |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
16848 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
16849 eval "LIB_gethostbyname2=$ac_res"
16853 eval "ac_cv_func_gethostbyname2=yes"
16854 eval "LIB_gethostbyname2="
16855 cat >>confdefs.h <<_ACEOF
16856 #define $ac_tr_func 1
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16860 $as_echo "yes" >&6; }
16863 eval "ac_cv_func_gethostbyname2=no"
16864 eval "LIB_gethostbyname2="
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16866 $as_echo "no" >&6; }
16869 eval "ac_cv_func_gethostbyname2=yes"
16870 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
16871 cat >>confdefs.h <<_ACEOF
16872 #define $ac_tr_func 1
16875 cat >>confdefs.h <<_ACEOF
16876 #define $ac_tr_lib 1
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16880 $as_echo "yes, in $ac_res" >&6; }
16885 if test -n "$LIB_gethostbyname2"; then
16886 LIBS="$LIB_gethostbyname2 $LIBS"
16892 for ac_header in arpa/nameser.h dns.h
16894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16895 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16896 eval as_val=\$$as_ac_Header
16897 if test "x$as_val" = x""yes; then :
16898 cat >>confdefs.h <<_ACEOF
16899 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16907 for ac_header in resolv.h
16909 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
16910 #ifdef HAVE_SYS_TYPES_H
16911 #include <sys/types.h>
16913 #ifdef HAVE_NETINET_IN_H
16914 #include <netinet/in.h>
16916 #ifdef HAVE_ARPA_NAMESER_H
16917 #include <arpa/nameser.h>
16921 if test "x$ac_cv_header_resolv_h" = x""yes; then :
16922 cat >>confdefs.h <<_ACEOF
16923 #define HAVE_RESOLV_H 1
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search" >&5
16936 $as_echo_n "checking for res_search... " >&6; }
16937 if test "${ac_cv_funclib_res_search+set}" = set; then :
16938 $as_echo_n "(cached) " >&6
16941 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
16942 ac_save_LIBS="$LIBS"
16943 for ac_lib in "" resolv; do
16949 *) ac_lib="-l$ac_lib" ;;
16951 LIBS=" $ac_lib $ac_save_LIBS"
16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953 /* end confdefs.h. */
16956 #ifdef HAVE_SYS_TYPES_H
16957 #include <sys/types.h>
16959 #ifdef HAVE_NETINET_IN_H
16960 #include <netinet/in.h>
16962 #ifdef HAVE_ARPA_NAMESER_H
16963 #include <arpa/nameser.h>
16965 #ifdef HAVE_RESOLV_H
16966 #include <resolv.h>
16972 res_search(0,0,0,0,0)
16977 if ac_fn_c_try_link "$LINENO"; then :
16978 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
16980 rm -f core conftest.err conftest.$ac_objext \
16981 conftest$ac_exeext conftest.$ac_ext
16983 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
16984 LIBS="$ac_save_LIBS"
16990 eval "ac_res=\$ac_cv_funclib_res_search"
16993 for ac_func in res_search
16995 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
16996 if test "x$ac_cv_func_res_search" = x""yes; then :
16997 cat >>confdefs.h <<_ACEOF
16998 #define HAVE_RES_SEARCH 1
17006 eval "ac_tr_func=HAVE_`echo res_search |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
17007 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
17008 eval "LIB_res_search=$ac_res"
17012 eval "ac_cv_func_res_search=yes"
17013 eval "LIB_res_search="
17014 cat >>confdefs.h <<_ACEOF
17015 #define $ac_tr_func 1
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17019 $as_echo "yes" >&6; }
17022 eval "ac_cv_func_res_search=no"
17023 eval "LIB_res_search="
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17025 $as_echo "no" >&6; }
17028 eval "ac_cv_func_res_search=yes"
17029 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
17030 cat >>confdefs.h <<_ACEOF
17031 #define $ac_tr_func 1
17034 cat >>confdefs.h <<_ACEOF
17035 #define $ac_tr_lib 1
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17039 $as_echo "yes, in $ac_res" >&6; }
17044 if test -n "$LIB_res_search"; then
17045 LIBS="$LIB_res_search $LIBS"
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch" >&5
17054 $as_echo_n "checking for res_nsearch... " >&6; }
17055 if test "${ac_cv_funclib_res_nsearch+set}" = set; then :
17056 $as_echo_n "(cached) " >&6
17059 if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
17060 ac_save_LIBS="$LIBS"
17061 for ac_lib in "" resolv; do
17067 *) ac_lib="-l$ac_lib" ;;
17069 LIBS=" $ac_lib $ac_save_LIBS"
17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071 /* end confdefs.h. */
17074 #ifdef HAVE_SYS_TYPES_H
17075 #include <sys/types.h>
17077 #ifdef HAVE_NETINET_IN_H
17078 #include <netinet/in.h>
17080 #ifdef HAVE_ARPA_NAMESER_H
17081 #include <arpa/nameser.h>
17083 #ifdef HAVE_RESOLV_H
17084 #include <resolv.h>
17090 res_nsearch(0,0,0,0,0,0)
17095 if ac_fn_c_try_link "$LINENO"; then :
17096 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
17098 rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17101 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
17102 LIBS="$ac_save_LIBS"
17108 eval "ac_res=\$ac_cv_funclib_res_nsearch"
17111 for ac_func in res_nsearch
17113 ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch"
17114 if test "x$ac_cv_func_res_nsearch" = x""yes; then :
17115 cat >>confdefs.h <<_ACEOF
17116 #define HAVE_RES_NSEARCH 1
17124 eval "ac_tr_func=HAVE_`echo res_nsearch |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
17125 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
17126 eval "LIB_res_nsearch=$ac_res"
17130 eval "ac_cv_func_res_nsearch=yes"
17131 eval "LIB_res_nsearch="
17132 cat >>confdefs.h <<_ACEOF
17133 #define $ac_tr_func 1
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17137 $as_echo "yes" >&6; }
17140 eval "ac_cv_func_res_nsearch=no"
17141 eval "LIB_res_nsearch="
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17143 $as_echo "no" >&6; }
17146 eval "ac_cv_func_res_nsearch=yes"
17147 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
17148 cat >>confdefs.h <<_ACEOF
17149 #define $ac_tr_func 1
17152 cat >>confdefs.h <<_ACEOF
17153 #define $ac_tr_lib 1
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17157 $as_echo "yes, in $ac_res" >&6; }
17162 if test -n "$LIB_res_nsearch"; then
17163 LIBS="$LIB_res_nsearch $LIBS"
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
17172 $as_echo_n "checking for res_ndestroy... " >&6; }
17173 if test "${ac_cv_funclib_res_ndestroy+set}" = set; then :
17174 $as_echo_n "(cached) " >&6
17177 if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then
17178 ac_save_LIBS="$LIBS"
17179 for ac_lib in "" resolv; do
17185 *) ac_lib="-l$ac_lib" ;;
17187 LIBS=" $ac_lib $ac_save_LIBS"
17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189 /* end confdefs.h. */
17192 #ifdef HAVE_SYS_TYPES_H
17193 #include <sys/types.h>
17195 #ifdef HAVE_NETINET_IN_H
17196 #include <netinet/in.h>
17198 #ifdef HAVE_ARPA_NAMESER_H
17199 #include <arpa/nameser.h>
17201 #ifdef HAVE_RESOLV_H
17202 #include <resolv.h>
17213 if ac_fn_c_try_link "$LINENO"; then :
17214 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break
17216 rm -f core conftest.err conftest.$ac_objext \
17217 conftest$ac_exeext conftest.$ac_ext
17219 eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}"
17220 LIBS="$ac_save_LIBS"
17226 eval "ac_res=\$ac_cv_funclib_res_ndestroy"
17229 for ac_func in res_ndestroy
17231 ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy"
17232 if test "x$ac_cv_func_res_ndestroy" = x""yes; then :
17233 cat >>confdefs.h <<_ACEOF
17234 #define HAVE_RES_NDESTROY 1
17242 eval "ac_tr_func=HAVE_`echo res_ndestroy |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
17243 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
17244 eval "LIB_res_ndestroy=$ac_res"
17248 eval "ac_cv_func_res_ndestroy=yes"
17249 eval "LIB_res_ndestroy="
17250 cat >>confdefs.h <<_ACEOF
17251 #define $ac_tr_func 1
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17255 $as_echo "yes" >&6; }
17258 eval "ac_cv_func_res_ndestroy=no"
17259 eval "LIB_res_ndestroy="
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17261 $as_echo "no" >&6; }
17264 eval "ac_cv_func_res_ndestroy=yes"
17265 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
17266 cat >>confdefs.h <<_ACEOF
17267 #define $ac_tr_func 1
17270 cat >>confdefs.h <<_ACEOF
17271 #define $ac_tr_lib 1
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17275 $as_echo "yes, in $ac_res" >&6; }
17280 if test -n "$LIB_res_ndestroy"; then
17281 LIBS="$LIB_res_ndestroy $LIBS"
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search" >&5
17289 $as_echo_n "checking for dns_search... " >&6; }
17290 if test "${ac_cv_funclib_dns_search+set}" = set; then :
17291 $as_echo_n "(cached) " >&6
17294 if eval "test \"\$ac_cv_func_dns_search\" != yes" ; then
17295 ac_save_LIBS="$LIBS"
17296 for ac_lib in "" ; do
17302 *) ac_lib="-l$ac_lib" ;;
17304 LIBS=" $ac_lib $ac_save_LIBS"
17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306 /* end confdefs.h. */
17315 dns_search(0,0,0,0,0,0,0,0)
17320 if ac_fn_c_try_link "$LINENO"; then :
17321 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dns_search=$ac_lib; else ac_cv_funclib_dns_search=yes; fi";break
17323 rm -f core conftest.err conftest.$ac_objext \
17324 conftest$ac_exeext conftest.$ac_ext
17326 eval "ac_cv_funclib_dns_search=\${ac_cv_funclib_dns_search-no}"
17327 LIBS="$ac_save_LIBS"
17333 eval "ac_res=\$ac_cv_funclib_dns_search"
17336 for ac_func in dns_search
17338 ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search"
17339 if test "x$ac_cv_func_dns_search" = x""yes; then :
17340 cat >>confdefs.h <<_ACEOF
17341 #define HAVE_DNS_SEARCH 1
17349 eval "ac_tr_func=HAVE_`echo dns_search |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
17350 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
17351 eval "LIB_dns_search=$ac_res"
17355 eval "ac_cv_func_dns_search=yes"
17356 eval "LIB_dns_search="
17357 cat >>confdefs.h <<_ACEOF
17358 #define $ac_tr_func 1
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362 $as_echo "yes" >&6; }
17365 eval "ac_cv_func_dns_search=no"
17366 eval "LIB_dns_search="
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368 $as_echo "no" >&6; }
17371 eval "ac_cv_func_dns_search=yes"
17372 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
17373 cat >>confdefs.h <<_ACEOF
17374 #define $ac_tr_func 1
17377 cat >>confdefs.h <<_ACEOF
17378 #define $ac_tr_lib 1
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17382 $as_echo "yes, in $ac_res" >&6; }
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand" >&5
17394 $as_echo_n "checking for dn_expand... " >&6; }
17395 if test "${ac_cv_funclib_dn_expand+set}" = set; then :
17396 $as_echo_n "(cached) " >&6
17399 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
17400 ac_save_LIBS="$LIBS"
17401 for ac_lib in "" resolv; do
17407 *) ac_lib="-l$ac_lib" ;;
17409 LIBS=" $ac_lib $ac_save_LIBS"
17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17414 #ifdef HAVE_SYS_TYPES_H
17415 #include <sys/types.h>
17417 #ifdef HAVE_NETINET_IN_H
17418 #include <netinet/in.h>
17420 #ifdef HAVE_ARPA_NAMESER_H
17421 #include <arpa/nameser.h>
17423 #ifdef HAVE_RESOLV_H
17424 #include <resolv.h>
17430 dn_expand(0,0,0,0,0)
17435 if ac_fn_c_try_link "$LINENO"; then :
17436 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
17438 rm -f core conftest.err conftest.$ac_objext \
17439 conftest$ac_exeext conftest.$ac_ext
17441 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
17442 LIBS="$ac_save_LIBS"
17448 eval "ac_res=\$ac_cv_funclib_dn_expand"
17451 for ac_func in dn_expand
17453 ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand"
17454 if test "x$ac_cv_func_dn_expand" = x""yes; then :
17455 cat >>confdefs.h <<_ACEOF
17456 #define HAVE_DN_EXPAND 1
17464 eval "ac_tr_func=HAVE_`echo dn_expand |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
17465 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
17466 eval "LIB_dn_expand=$ac_res"
17470 eval "ac_cv_func_dn_expand=yes"
17471 eval "LIB_dn_expand="
17472 cat >>confdefs.h <<_ACEOF
17473 #define $ac_tr_func 1
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17477 $as_echo "yes" >&6; }
17480 eval "ac_cv_func_dn_expand=no"
17481 eval "LIB_dn_expand="
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17483 $as_echo "no" >&6; }
17486 eval "ac_cv_func_dn_expand=yes"
17487 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
17488 cat >>confdefs.h <<_ACEOF
17489 #define $ac_tr_func 1
17492 cat >>confdefs.h <<_ACEOF
17493 #define $ac_tr_lib 1
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17497 $as_echo "yes, in $ac_res" >&6; }
17502 if test -n "$LIB_dn_expand"; then
17503 LIBS="$LIB_dn_expand $LIBS"
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _res" >&5
17509 $as_echo_n "checking for _res... " >&6; }
17510 if test "${ac_cv_var__res+set}" = set; then :
17511 $as_echo_n "(cached) " >&6
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h. */
17518 #ifdef HAVE_SYS_TYPES_H
17519 #include <sys/types.h>
17521 #ifdef HAVE_NETINET_IN_H
17522 #include <netinet/in.h>
17524 #ifdef HAVE_ARPA_NAMESER_H
17525 #include <arpa/nameser.h>
17527 #ifdef HAVE_RESOLV_H
17528 #include <resolv.h>
17530 void * foo(void) { return &_res; }
17539 if ac_fn_c_try_link "$LINENO"; then :
17544 rm -f core conftest.err conftest.$ac_objext \
17545 conftest$ac_exeext conftest.$ac_ext
17546 if test "$ac_cv_var__res" != yes ; then
17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17548 /* end confdefs.h. */
17550 #ifdef HAVE_SYS_TYPES_H
17551 #include <sys/types.h>
17553 #ifdef HAVE_NETINET_IN_H
17554 #include <netinet/in.h>
17556 #ifdef HAVE_ARPA_NAMESER_H
17557 #include <arpa/nameser.h>
17559 #ifdef HAVE_RESOLV_H
17560 #include <resolv.h>
17563 int foo(void) { return _res; }
17572 if ac_fn_c_try_link "$LINENO"; then :
17577 rm -f core conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
17583 ac_foo=`eval echo \\$ac_cv_var__res`
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
17585 $as_echo "$ac_foo" >&6; }
17586 if test "$ac_foo" = yes; then
17588 cat >>confdefs.h <<_ACEOF
17589 #define HAVE__RES 1
17593 # ac_fn_c_check_decl LINENO SYMBOL VAR
17594 # ------------------------------------
17595 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
17596 ac_fn_c_check_decl ()
17598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
17600 $as_echo_n "checking whether $2 is declared... " >&6; }
17601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
17602 $as_echo_n "(cached) " >&6
17604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17605 /* end confdefs.h. */
17618 if ac_fn_c_try_compile "$LINENO"; then :
17623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17627 $as_echo "$ac_res" >&6; }
17628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
17630 } # ac_fn_c_check_decl
17631 ac_fn_c_check_decl "$LINENO" "_res" "ac_cv_have_decl__res" "#include <stdio.h>
17632 #ifdef HAVE_SYS_TYPES_H
17633 #include <sys/types.h>
17635 #ifdef HAVE_NETINET_IN_H
17636 #include <netinet/in.h>
17638 #ifdef HAVE_ARPA_NAMESER_H
17639 #include <arpa/nameser.h>
17641 #ifdef HAVE_RESOLV_H
17642 #include <resolv.h>
17645 if test "x$ac_cv_have_decl__res" = x""yes; then :
17651 cat >>confdefs.h <<_ACEOF
17652 #define HAVE_DECL__RES $ac_have_decl
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
17662 $as_echo_n "checking for working snprintf... " >&6; }
17663 if test "${ac_cv_func_snprintf_working+set}" = set; then :
17664 $as_echo_n "(cached) " >&6
17666 ac_cv_func_snprintf_working=yes
17667 if test "$cross_compiling" = yes; then :
17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h. */
17674 #include <string.h>
17675 int main(int argc, char **argv)
17678 snprintf(foo, 2, "12");
17679 return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2;
17682 if ac_fn_c_try_run "$LINENO"; then :
17685 ac_cv_func_snprintf_working=no
17687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17688 conftest.$ac_objext conftest.beam conftest.$ac_ext
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_working" >&5
17693 $as_echo "$ac_cv_func_snprintf_working" >&6; }
17695 if test "$ac_cv_func_snprintf_working" = yes; then
17697 cat >>confdefs.h <<_ACEOF
17698 #define HAVE_SNPRINTF 1
17702 if test "$ac_cv_func_snprintf_working" = yes; then
17704 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if snprintf needs a prototype" >&5
17706 $as_echo_n "checking if snprintf needs a prototype... " >&6; }
17707 if test "${ac_cv_func_snprintf_noproto+set}" = set; then :
17708 $as_echo_n "(cached) " >&6
17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17713 struct foo { int foo; } xx;
17714 extern int snprintf (struct foo*);
17723 if ac_fn_c_try_compile "$LINENO"; then :
17724 eval "ac_cv_func_snprintf_noproto=yes"
17726 eval "ac_cv_func_snprintf_noproto=no"
17728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_noproto" >&5
17731 $as_echo "$ac_cv_func_snprintf_noproto" >&6; }
17732 if test "$ac_cv_func_snprintf_noproto" = yes; then
17734 $as_echo "#define NEED_SNPRINTF_PROTO 1" >>confdefs.h
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5
17743 $as_echo_n "checking for working vsnprintf... " >&6; }
17744 if test "${ac_cv_func_vsnprintf_working+set}" = set; then :
17745 $as_echo_n "(cached) " >&6
17747 ac_cv_func_vsnprintf_working=yes
17748 if test "$cross_compiling" = yes; then :
17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h. */
17755 #include <string.h>
17756 #include <stdarg.h>
17758 int foo(int num, ...)
17762 va_start(arg, num);
17763 vsnprintf(bar, 2, "%s", arg);
17765 return strcmp(bar, "1");
17768 int bar(int num, int len, ...)
17772 va_start(arg, len);
17773 r = vsnprintf(NULL, 0, "%s", arg);
17778 int main(int argc, char **argv)
17780 return foo(0, "12") || bar(0, 2, "12");
17783 if ac_fn_c_try_run "$LINENO"; then :
17786 ac_cv_func_vsnprintf_working=no
17788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17789 conftest.$ac_objext conftest.beam conftest.$ac_ext
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_working" >&5
17794 $as_echo "$ac_cv_func_vsnprintf_working" >&6; }
17796 if test "$ac_cv_func_vsnprintf_working" = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define HAVE_VSNPRINTF 1
17803 if test "$ac_cv_func_vsnprintf_working" = yes; then
17805 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf needs a prototype" >&5
17807 $as_echo_n "checking if vsnprintf needs a prototype... " >&6; }
17808 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then :
17809 $as_echo_n "(cached) " >&6
17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812 /* end confdefs.h. */
17814 struct foo { int foo; } xx;
17815 extern int vsnprintf (struct foo*);
17824 if ac_fn_c_try_compile "$LINENO"; then :
17825 eval "ac_cv_func_vsnprintf_noproto=yes"
17827 eval "ac_cv_func_vsnprintf_noproto=no"
17829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_noproto" >&5
17832 $as_echo "$ac_cv_func_vsnprintf_noproto" >&6; }
17833 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
17835 $as_echo "#define NEED_VSNPRINTF_PROTO 1" >>confdefs.h
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working glob" >&5
17845 $as_echo_n "checking for working glob... " >&6; }
17846 if test "${ac_cv_func_glob_working+set}" = set; then :
17847 $as_echo_n "(cached) " >&6
17849 ac_cv_func_glob_working=yes
17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17859 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
17860 #ifdef GLOB_MAXPATH
17872 if ac_fn_c_try_link "$LINENO"; then :
17875 ac_cv_func_glob_working=no
17877 rm -f core conftest.err conftest.$ac_objext \
17878 conftest$ac_exeext conftest.$ac_ext
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_working" >&5
17881 $as_echo "$ac_cv_func_glob_working" >&6; }
17883 if test "$ac_cv_func_glob_working" = yes; then
17885 $as_echo "#define HAVE_GLOB 1" >>confdefs.h
17888 if test "$ac_cv_func_glob_working" = yes; then
17890 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if glob needs a prototype" >&5
17892 $as_echo_n "checking if glob needs a prototype... " >&6; }
17893 if test "${ac_cv_func_glob_noproto+set}" = set; then :
17894 $as_echo_n "(cached) " >&6
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17900 struct foo { int foo; } xx;
17901 extern int glob (struct foo*);
17910 if ac_fn_c_try_compile "$LINENO"; then :
17911 eval "ac_cv_func_glob_noproto=yes"
17913 eval "ac_cv_func_glob_noproto=no"
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_noproto" >&5
17918 $as_echo "$ac_cv_func_glob_noproto" >&6; }
17919 if test "$ac_cv_func_glob_noproto" = yes; then
17921 $as_echo "#define NEED_GLOB_PROTO 1" >>confdefs.h
17928 if test "$ac_cv_func_glob_working" != yes; then
17929 case " $LIBOBJS " in
17930 *" glob.$ac_objext "* ) ;;
17931 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
17936 if test "$ac_cv_func_glob_working" = yes; then
17938 have_glob_h_FALSE='#'
17940 have_glob_h_TRUE='#'
17978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17980 eval as_val=\$$as_ac_var
17981 if test "x$as_val" = x""yes; then :
17982 cat >>confdefs.h <<_ACEOF
17983 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17990 if test "$ac_cv_func_cgetent" = no; then
17991 case " $LIBOBJS " in
17992 *" getcap.$ac_objext "* ) ;;
17993 *) LIBOBJS="$LIBOBJS getcap.$ac_objext"
17998 if test "$ac_cv_func_cgetent" = yes; then
18000 have_cgetent_FALSE='#'
18002 have_cgetent_TRUE='#'
18003 have_cgetent_FALSE=
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt" >&5
18015 $as_echo_n "checking for getsockopt... " >&6; }
18016 if test "${ac_cv_funclib_getsockopt+set}" = set; then :
18017 $as_echo_n "(cached) " >&6
18020 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
18021 ac_save_LIBS="$LIBS"
18022 for ac_lib in "" ; do
18028 *) ac_lib="-l$ac_lib" ;;
18030 LIBS=" $ac_lib $ac_save_LIBS"
18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h. */
18033 #ifdef HAVE_SYS_TYPES_H
18034 #include <sys/types.h>
18036 #ifdef HAVE_SYS_SOCKET_H
18037 #include <sys/socket.h>
18042 getsockopt(0,0,0,0,0)
18047 if ac_fn_c_try_link "$LINENO"; then :
18048 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
18050 rm -f core conftest.err conftest.$ac_objext \
18051 conftest$ac_exeext conftest.$ac_ext
18053 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
18054 LIBS="$ac_save_LIBS"
18060 eval "ac_res=\$ac_cv_funclib_getsockopt"
18063 for ac_func in getsockopt
18065 ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
18066 if test "x$ac_cv_func_getsockopt" = x""yes; then :
18067 cat >>confdefs.h <<_ACEOF
18068 #define HAVE_GETSOCKOPT 1
18076 eval "ac_tr_func=HAVE_`echo getsockopt |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18077 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18078 eval "LIB_getsockopt=$ac_res"
18082 eval "ac_cv_func_getsockopt=yes"
18083 eval "LIB_getsockopt="
18084 cat >>confdefs.h <<_ACEOF
18085 #define $ac_tr_func 1
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18089 $as_echo "yes" >&6; }
18092 eval "ac_cv_func_getsockopt=no"
18093 eval "LIB_getsockopt="
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18095 $as_echo "no" >&6; }
18098 eval "ac_cv_func_getsockopt=yes"
18099 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
18100 cat >>confdefs.h <<_ACEOF
18101 #define $ac_tr_func 1
18104 cat >>confdefs.h <<_ACEOF
18105 #define $ac_tr_lib 1
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18109 $as_echo "yes, in $ac_res" >&6; }
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5
18118 $as_echo_n "checking for setsockopt... " >&6; }
18119 if test "${ac_cv_funclib_setsockopt+set}" = set; then :
18120 $as_echo_n "(cached) " >&6
18123 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
18124 ac_save_LIBS="$LIBS"
18125 for ac_lib in "" ; do
18131 *) ac_lib="-l$ac_lib" ;;
18133 LIBS=" $ac_lib $ac_save_LIBS"
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136 #ifdef HAVE_SYS_TYPES_H
18137 #include <sys/types.h>
18139 #ifdef HAVE_SYS_SOCKET_H
18140 #include <sys/socket.h>
18145 setsockopt(0,0,0,0,0)
18150 if ac_fn_c_try_link "$LINENO"; then :
18151 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
18153 rm -f core conftest.err conftest.$ac_objext \
18154 conftest$ac_exeext conftest.$ac_ext
18156 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
18157 LIBS="$ac_save_LIBS"
18163 eval "ac_res=\$ac_cv_funclib_setsockopt"
18166 for ac_func in setsockopt
18168 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
18169 if test "x$ac_cv_func_setsockopt" = x""yes; then :
18170 cat >>confdefs.h <<_ACEOF
18171 #define HAVE_SETSOCKOPT 1
18179 eval "ac_tr_func=HAVE_`echo setsockopt |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18180 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18181 eval "LIB_setsockopt=$ac_res"
18185 eval "ac_cv_func_setsockopt=yes"
18186 eval "LIB_setsockopt="
18187 cat >>confdefs.h <<_ACEOF
18188 #define $ac_tr_func 1
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18192 $as_echo "yes" >&6; }
18195 eval "ac_cv_func_setsockopt=no"
18196 eval "LIB_setsockopt="
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18198 $as_echo "no" >&6; }
18201 eval "ac_cv_func_setsockopt=yes"
18202 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
18203 cat >>confdefs.h <<_ACEOF
18204 #define $ac_tr_func 1
18207 cat >>confdefs.h <<_ACEOF
18208 #define $ac_tr_lib 1
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18212 $as_echo "yes, in $ac_res" >&6; }
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
18223 $as_echo_n "checking for hstrerror... " >&6; }
18224 if test "${ac_cv_funclib_hstrerror+set}" = set; then :
18225 $as_echo_n "(cached) " >&6
18228 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
18229 ac_save_LIBS="$LIBS"
18230 for ac_lib in "" resolv; do
18236 *) ac_lib="-l$ac_lib" ;;
18238 LIBS=" $ac_lib $ac_save_LIBS"
18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18241 #ifdef HAVE_NETDB_H
18252 if ac_fn_c_try_link "$LINENO"; then :
18253 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
18255 rm -f core conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18258 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
18259 LIBS="$ac_save_LIBS"
18265 eval "ac_res=\$ac_cv_funclib_hstrerror"
18268 for ac_func in hstrerror
18270 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
18271 if test "x$ac_cv_func_hstrerror" = x""yes; then :
18272 cat >>confdefs.h <<_ACEOF
18273 #define HAVE_HSTRERROR 1
18281 eval "ac_tr_func=HAVE_`echo hstrerror |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18282 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18283 eval "LIB_hstrerror=$ac_res"
18287 eval "ac_cv_func_hstrerror=yes"
18288 eval "LIB_hstrerror="
18289 cat >>confdefs.h <<_ACEOF
18290 #define $ac_tr_func 1
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18294 $as_echo "yes" >&6; }
18297 eval "ac_cv_func_hstrerror=no"
18298 eval "LIB_hstrerror="
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18300 $as_echo "no" >&6; }
18303 eval "ac_cv_func_hstrerror=yes"
18304 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
18305 cat >>confdefs.h <<_ACEOF
18306 #define $ac_tr_func 1
18309 cat >>confdefs.h <<_ACEOF
18310 #define $ac_tr_lib 1
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18314 $as_echo "yes, in $ac_res" >&6; }
18319 if test -n "$LIB_hstrerror"; then
18320 LIBS="$LIB_hstrerror $LIBS"
18323 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
18324 case " $LIBOBJS " in
18325 *" hstrerror.$ac_objext "* ) ;;
18326 *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
18333 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hstrerror needs a prototype" >&5
18335 $as_echo_n "checking if hstrerror needs a prototype... " >&6; }
18336 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then :
18337 $as_echo_n "(cached) " >&6
18339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340 /* end confdefs.h. */
18342 #ifdef HAVE_NETDB_H
18345 struct foo { int foo; } xx;
18346 extern int hstrerror (struct foo*);
18355 if ac_fn_c_try_compile "$LINENO"; then :
18356 eval "ac_cv_func_hstrerror_noproto=yes"
18358 eval "ac_cv_func_hstrerror_noproto=no"
18360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror_noproto" >&5
18363 $as_echo "$ac_cv_func_hstrerror_noproto" >&6; }
18364 if test "$ac_cv_func_hstrerror_noproto" = yes; then
18366 $as_echo "#define NEED_HSTRERROR_PROTO 1" >>confdefs.h
18373 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asprintf needs a prototype" >&5
18375 $as_echo_n "checking if asprintf needs a prototype... " >&6; }
18376 if test "${ac_cv_func_asprintf_noproto+set}" = set; then :
18377 $as_echo_n "(cached) " >&6
18379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380 /* end confdefs.h. */
18383 #include <string.h>
18384 struct foo { int foo; } xx;
18385 extern int asprintf (struct foo*);
18394 if ac_fn_c_try_compile "$LINENO"; then :
18395 eval "ac_cv_func_asprintf_noproto=yes"
18397 eval "ac_cv_func_asprintf_noproto=no"
18399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asprintf_noproto" >&5
18402 $as_echo "$ac_cv_func_asprintf_noproto" >&6; }
18403 if test "$ac_cv_func_asprintf_noproto" = yes; then
18405 $as_echo "#define NEED_ASPRINTF_PROTO 1" >>confdefs.h
18410 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype" >&5
18412 $as_echo_n "checking if vasprintf needs a prototype... " >&6; }
18413 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then :
18414 $as_echo_n "(cached) " >&6
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417 /* end confdefs.h. */
18420 #include <string.h>
18421 struct foo { int foo; } xx;
18422 extern int vasprintf (struct foo*);
18431 if ac_fn_c_try_compile "$LINENO"; then :
18432 eval "ac_cv_func_vasprintf_noproto=yes"
18434 eval "ac_cv_func_vasprintf_noproto=no"
18436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasprintf_noproto" >&5
18439 $as_echo "$ac_cv_func_vasprintf_noproto" >&6; }
18440 if test "$ac_cv_func_vasprintf_noproto" = yes; then
18442 $as_echo "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h
18447 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asnprintf needs a prototype" >&5
18449 $as_echo_n "checking if asnprintf needs a prototype... " >&6; }
18450 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then :
18451 $as_echo_n "(cached) " >&6
18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454 /* end confdefs.h. */
18457 #include <string.h>
18458 struct foo { int foo; } xx;
18459 extern int asnprintf (struct foo*);
18468 if ac_fn_c_try_compile "$LINENO"; then :
18469 eval "ac_cv_func_asnprintf_noproto=yes"
18471 eval "ac_cv_func_asnprintf_noproto=no"
18473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asnprintf_noproto" >&5
18476 $as_echo "$ac_cv_func_asnprintf_noproto" >&6; }
18477 if test "$ac_cv_func_asnprintf_noproto" = yes; then
18479 $as_echo "#define NEED_ASNPRINTF_PROTO 1" >>confdefs.h
18484 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasnprintf needs a prototype" >&5
18486 $as_echo_n "checking if vasnprintf needs a prototype... " >&6; }
18487 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then :
18488 $as_echo_n "(cached) " >&6
18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491 /* end confdefs.h. */
18494 #include <string.h>
18495 struct foo { int foo; } xx;
18496 extern int vasnprintf (struct foo*);
18505 if ac_fn_c_try_compile "$LINENO"; then :
18506 eval "ac_cv_func_vasnprintf_noproto=yes"
18508 eval "ac_cv_func_vasnprintf_noproto=no"
18510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasnprintf_noproto" >&5
18513 $as_echo "$ac_cv_func_vasnprintf_noproto" >&6; }
18514 if test "$ac_cv_func_vasnprintf_noproto" = yes; then
18516 $as_echo "#define NEED_VASNPRINTF_PROTO 1" >>confdefs.h
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16" >&5
18526 $as_echo_n "checking for bswap16... " >&6; }
18527 if test "${ac_cv_funclib_bswap16+set}" = set; then :
18528 $as_echo_n "(cached) " >&6
18531 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
18532 ac_save_LIBS="$LIBS"
18533 for ac_lib in "" ; do
18539 *) ac_lib="-l$ac_lib" ;;
18541 LIBS=" $ac_lib $ac_save_LIBS"
18542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18543 /* end confdefs.h. */
18544 #ifdef HAVE_SYS_TYPES_H
18545 #include <sys/types.h>
18547 #ifdef HAVE_SYS_BSWAP_H
18548 #include <sys/bswap.h>
18558 if ac_fn_c_try_link "$LINENO"; then :
18559 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
18561 rm -f core conftest.err conftest.$ac_objext \
18562 conftest$ac_exeext conftest.$ac_ext
18564 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
18565 LIBS="$ac_save_LIBS"
18571 eval "ac_res=\$ac_cv_funclib_bswap16"
18574 for ac_func in bswap16
18576 ac_fn_c_check_func "$LINENO" "bswap16" "ac_cv_func_bswap16"
18577 if test "x$ac_cv_func_bswap16" = x""yes; then :
18578 cat >>confdefs.h <<_ACEOF
18579 #define HAVE_BSWAP16 1
18587 eval "ac_tr_func=HAVE_`echo bswap16 |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18588 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18589 eval "LIB_bswap16=$ac_res"
18593 eval "ac_cv_func_bswap16=yes"
18594 eval "LIB_bswap16="
18595 cat >>confdefs.h <<_ACEOF
18596 #define $ac_tr_func 1
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18600 $as_echo "yes" >&6; }
18603 eval "ac_cv_func_bswap16=no"
18604 eval "LIB_bswap16="
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18606 $as_echo "no" >&6; }
18609 eval "ac_cv_func_bswap16=yes"
18610 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
18611 cat >>confdefs.h <<_ACEOF
18612 #define $ac_tr_func 1
18615 cat >>confdefs.h <<_ACEOF
18616 #define $ac_tr_lib 1
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18620 $as_echo "yes, in $ac_res" >&6; }
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32" >&5
18630 $as_echo_n "checking for bswap32... " >&6; }
18631 if test "${ac_cv_funclib_bswap32+set}" = set; then :
18632 $as_echo_n "(cached) " >&6
18635 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
18636 ac_save_LIBS="$LIBS"
18637 for ac_lib in "" ; do
18643 *) ac_lib="-l$ac_lib" ;;
18645 LIBS=" $ac_lib $ac_save_LIBS"
18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18647 /* end confdefs.h. */
18648 #ifdef HAVE_SYS_TYPES_H
18649 #include <sys/types.h>
18651 #ifdef HAVE_SYS_BSWAP_H
18652 #include <sys/bswap.h>
18662 if ac_fn_c_try_link "$LINENO"; then :
18663 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
18665 rm -f core conftest.err conftest.$ac_objext \
18666 conftest$ac_exeext conftest.$ac_ext
18668 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
18669 LIBS="$ac_save_LIBS"
18675 eval "ac_res=\$ac_cv_funclib_bswap32"
18678 for ac_func in bswap32
18680 ac_fn_c_check_func "$LINENO" "bswap32" "ac_cv_func_bswap32"
18681 if test "x$ac_cv_func_bswap32" = x""yes; then :
18682 cat >>confdefs.h <<_ACEOF
18683 #define HAVE_BSWAP32 1
18691 eval "ac_tr_func=HAVE_`echo bswap32 |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18692 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18693 eval "LIB_bswap32=$ac_res"
18697 eval "ac_cv_func_bswap32=yes"
18698 eval "LIB_bswap32="
18699 cat >>confdefs.h <<_ACEOF
18700 #define $ac_tr_func 1
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18704 $as_echo "yes" >&6; }
18707 eval "ac_cv_func_bswap32=no"
18708 eval "LIB_bswap32="
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18710 $as_echo "no" >&6; }
18713 eval "ac_cv_func_bswap32=yes"
18714 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
18715 cat >>confdefs.h <<_ACEOF
18716 #define $ac_tr_func 1
18719 cat >>confdefs.h <<_ACEOF
18720 #define $ac_tr_lib 1
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18724 $as_echo "yes, in $ac_res" >&6; }
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pidfile" >&5
18734 $as_echo_n "checking for pidfile... " >&6; }
18735 if test "${ac_cv_funclib_pidfile+set}" = set; then :
18736 $as_echo_n "(cached) " >&6
18739 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
18740 ac_save_LIBS="$LIBS"
18741 for ac_lib in "" util; do
18747 *) ac_lib="-l$ac_lib" ;;
18749 LIBS=" $ac_lib $ac_save_LIBS"
18750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18751 /* end confdefs.h. */
18763 if ac_fn_c_try_link "$LINENO"; then :
18764 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
18766 rm -f core conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18769 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
18770 LIBS="$ac_save_LIBS"
18776 eval "ac_res=\$ac_cv_funclib_pidfile"
18779 for ac_func in pidfile
18781 ac_fn_c_check_func "$LINENO" "pidfile" "ac_cv_func_pidfile"
18782 if test "x$ac_cv_func_pidfile" = x""yes; then :
18783 cat >>confdefs.h <<_ACEOF
18784 #define HAVE_PIDFILE 1
18792 eval "ac_tr_func=HAVE_`echo pidfile |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18793 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18794 eval "LIB_pidfile=$ac_res"
18798 eval "ac_cv_func_pidfile=yes"
18799 eval "LIB_pidfile="
18800 cat >>confdefs.h <<_ACEOF
18801 #define $ac_tr_func 1
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18805 $as_echo "yes" >&6; }
18808 eval "ac_cv_func_pidfile=no"
18809 eval "LIB_pidfile="
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18811 $as_echo "no" >&6; }
18814 eval "ac_cv_func_pidfile=yes"
18815 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
18816 cat >>confdefs.h <<_ACEOF
18817 #define $ac_tr_func 1
18820 cat >>confdefs.h <<_ACEOF
18821 #define $ac_tr_lib 1
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18825 $as_echo "yes, in $ac_res" >&6; }
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
18836 $as_echo_n "checking for getaddrinfo... " >&6; }
18837 if test "${ac_cv_funclib_getaddrinfo+set}" = set; then :
18838 $as_echo_n "(cached) " >&6
18841 if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
18842 ac_save_LIBS="$LIBS"
18843 for ac_lib in "" ; do
18849 *) ac_lib="-l$ac_lib" ;;
18851 LIBS=" $ac_lib $ac_save_LIBS"
18852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853 /* end confdefs.h. */
18854 #ifdef HAVE_NETDB_H
18857 #ifdef HAVE_WS2TCPIP_H
18858 #include <ws2tcpip.h>
18863 getaddrinfo(0,0,0,0)
18868 if ac_fn_c_try_link "$LINENO"; then :
18869 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
18871 rm -f core conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
18874 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
18875 LIBS="$ac_save_LIBS"
18881 eval "ac_res=\$ac_cv_funclib_getaddrinfo"
18884 for ac_func in getaddrinfo
18886 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18887 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
18888 cat >>confdefs.h <<_ACEOF
18889 #define HAVE_GETADDRINFO 1
18897 eval "ac_tr_func=HAVE_`echo getaddrinfo |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18898 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
18899 eval "LIB_getaddrinfo=$ac_res"
18903 eval "ac_cv_func_getaddrinfo=yes"
18904 eval "LIB_getaddrinfo="
18905 cat >>confdefs.h <<_ACEOF
18906 #define $ac_tr_func 1
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18910 $as_echo "yes" >&6; }
18913 eval "ac_cv_func_getaddrinfo=no"
18914 eval "LIB_getaddrinfo="
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916 $as_echo "no" >&6; }
18919 eval "ac_cv_func_getaddrinfo=yes"
18920 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
18921 cat >>confdefs.h <<_ACEOF
18922 #define $ac_tr_func 1
18925 cat >>confdefs.h <<_ACEOF
18926 #define $ac_tr_lib 1
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18930 $as_echo "yes, in $ac_res" >&6; }
18935 if test -n "$LIB_getaddrinfo"; then
18936 LIBS="$LIB_getaddrinfo $LIBS"
18939 if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
18940 case " $LIBOBJS " in
18941 *" getaddrinfo.$ac_objext "* ) ;;
18942 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
18954 $as_echo_n "checking for getnameinfo... " >&6; }
18955 if test "${ac_cv_funclib_getnameinfo+set}" = set; then :
18956 $as_echo_n "(cached) " >&6
18959 if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
18960 ac_save_LIBS="$LIBS"
18961 for ac_lib in "" ; do
18967 *) ac_lib="-l$ac_lib" ;;
18969 LIBS=" $ac_lib $ac_save_LIBS"
18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971 /* end confdefs.h. */
18972 #ifdef HAVE_NETDB_H
18975 #ifdef HAVE_WS2TCPIP_H
18976 #include <ws2tcpip.h>
18981 getnameinfo(0,0,0,0,0,0,0)
18986 if ac_fn_c_try_link "$LINENO"; then :
18987 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
18989 rm -f core conftest.err conftest.$ac_objext \
18990 conftest$ac_exeext conftest.$ac_ext
18992 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
18993 LIBS="$ac_save_LIBS"
18999 eval "ac_res=\$ac_cv_funclib_getnameinfo"
19002 for ac_func in getnameinfo
19004 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
19005 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
19006 cat >>confdefs.h <<_ACEOF
19007 #define HAVE_GETNAMEINFO 1
19015 eval "ac_tr_func=HAVE_`echo getnameinfo |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
19016 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
19017 eval "LIB_getnameinfo=$ac_res"
19021 eval "ac_cv_func_getnameinfo=yes"
19022 eval "LIB_getnameinfo="
19023 cat >>confdefs.h <<_ACEOF
19024 #define $ac_tr_func 1
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028 $as_echo "yes" >&6; }
19031 eval "ac_cv_func_getnameinfo=no"
19032 eval "LIB_getnameinfo="
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19034 $as_echo "no" >&6; }
19037 eval "ac_cv_func_getnameinfo=yes"
19038 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
19039 cat >>confdefs.h <<_ACEOF
19040 #define $ac_tr_func 1
19043 cat >>confdefs.h <<_ACEOF
19044 #define $ac_tr_lib 1
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
19048 $as_echo "yes, in $ac_res" >&6; }
19053 if test -n "$LIB_getnameinfo"; then
19054 LIBS="$LIB_getnameinfo $LIBS"
19057 if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
19058 case " $LIBOBJS " in
19059 *" getnameinfo.$ac_objext "* ) ;;
19060 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freeaddrinfo" >&5
19072 $as_echo_n "checking for freeaddrinfo... " >&6; }
19073 if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then :
19074 $as_echo_n "(cached) " >&6
19077 if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
19078 ac_save_LIBS="$LIBS"
19079 for ac_lib in "" ; do
19085 *) ac_lib="-l$ac_lib" ;;
19087 LIBS=" $ac_lib $ac_save_LIBS"
19088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089 /* end confdefs.h. */
19090 #ifdef HAVE_NETDB_H
19093 #ifdef HAVE_WS2TCPIP_H
19094 #include <ws2tcpip.h>
19104 if ac_fn_c_try_link "$LINENO"; then :
19105 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
19107 rm -f core conftest.err conftest.$ac_objext \
19108 conftest$ac_exeext conftest.$ac_ext
19110 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
19111 LIBS="$ac_save_LIBS"
19117 eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
19120 for ac_func in freeaddrinfo
19122 ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo"
19123 if test "x$ac_cv_func_freeaddrinfo" = x""yes; then :
19124 cat >>confdefs.h <<_ACEOF
19125 #define HAVE_FREEADDRINFO 1
19133 eval "ac_tr_func=HAVE_`echo freeaddrinfo |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
19134 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
19135 eval "LIB_freeaddrinfo=$ac_res"
19139 eval "ac_cv_func_freeaddrinfo=yes"
19140 eval "LIB_freeaddrinfo="
19141 cat >>confdefs.h <<_ACEOF
19142 #define $ac_tr_func 1
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19146 $as_echo "yes" >&6; }
19149 eval "ac_cv_func_freeaddrinfo=no"
19150 eval "LIB_freeaddrinfo="
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152 $as_echo "no" >&6; }
19155 eval "ac_cv_func_freeaddrinfo=yes"
19156 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
19157 cat >>confdefs.h <<_ACEOF
19158 #define $ac_tr_func 1
19161 cat >>confdefs.h <<_ACEOF
19162 #define $ac_tr_lib 1
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
19166 $as_echo "yes, in $ac_res" >&6; }
19171 if test -n "$LIB_freeaddrinfo"; then
19172 LIBS="$LIB_freeaddrinfo $LIBS"
19175 if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
19176 case " $LIBOBJS " in
19177 *" freeaddrinfo.$ac_objext "* ) ;;
19178 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror" >&5
19190 $as_echo_n "checking for gai_strerror... " >&6; }
19191 if test "${ac_cv_funclib_gai_strerror+set}" = set; then :
19192 $as_echo_n "(cached) " >&6
19195 if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
19196 ac_save_LIBS="$LIBS"
19197 for ac_lib in "" ; do
19203 *) ac_lib="-l$ac_lib" ;;
19205 LIBS=" $ac_lib $ac_save_LIBS"
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19208 #ifdef HAVE_NETDB_H
19211 #ifdef HAVE_WS2TCPIP_H
19212 #include <ws2tcpip.h>
19222 if ac_fn_c_try_link "$LINENO"; then :
19223 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
19225 rm -f core conftest.err conftest.$ac_objext \
19226 conftest$ac_exeext conftest.$ac_ext
19228 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
19229 LIBS="$ac_save_LIBS"
19235 eval "ac_res=\$ac_cv_funclib_gai_strerror"
19238 for ac_func in gai_strerror
19240 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
19241 if test "x$ac_cv_func_gai_strerror" = x""yes; then :
19242 cat >>confdefs.h <<_ACEOF
19243 #define HAVE_GAI_STRERROR 1
19251 eval "ac_tr_func=HAVE_`echo gai_strerror |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
19252 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
19253 eval "LIB_gai_strerror=$ac_res"
19257 eval "ac_cv_func_gai_strerror=yes"
19258 eval "LIB_gai_strerror="
19259 cat >>confdefs.h <<_ACEOF
19260 #define $ac_tr_func 1
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19264 $as_echo "yes" >&6; }
19267 eval "ac_cv_func_gai_strerror=no"
19268 eval "LIB_gai_strerror="
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19273 eval "ac_cv_func_gai_strerror=yes"
19274 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
19275 cat >>confdefs.h <<_ACEOF
19276 #define $ac_tr_func 1
19279 cat >>confdefs.h <<_ACEOF
19280 #define $ac_tr_lib 1
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
19284 $as_echo "yes, in $ac_res" >&6; }
19289 if test -n "$LIB_gai_strerror"; then
19290 LIBS="$LIB_gai_strerror $LIBS"
19293 if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
19294 case " $LIBOBJS " in
19295 *" gai_strerror.$ac_objext "* ) ;;
19296 *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
19308 $as_echo "#define SUPPORT_DETACH 1" >>confdefs.h
19310 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19311 if test "x$ac_cv_func_daemon" = x""yes; then :
19313 cat >>confdefs.h <<_ACEOF
19314 #define HAVE_DAEMON 1
19318 case " $LIBOBJS " in
19319 *" daemon.$ac_objext "* ) ;;
19320 *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
19328 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
19329 if test "x$ac_cv_func_chown" = x""yes; then :
19331 cat >>confdefs.h <<_ACEOF
19332 #define HAVE_CHOWN 1
19336 case " $LIBOBJS " in
19337 *" chown.$ac_objext "* ) ;;
19338 *) LIBOBJS="$LIBOBJS chown.$ac_objext"
19343 ac_fn_c_check_func "$LINENO" "copyhostent" "ac_cv_func_copyhostent"
19344 if test "x$ac_cv_func_copyhostent" = x""yes; then :
19346 cat >>confdefs.h <<_ACEOF
19347 #define HAVE_COPYHOSTENT 1
19351 case " $LIBOBJS " in
19352 *" copyhostent.$ac_objext "* ) ;;
19353 *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
19358 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
19359 if test "x$ac_cv_func_closefrom" = x""yes; then :
19361 cat >>confdefs.h <<_ACEOF
19362 #define HAVE_CLOSEFROM 1
19366 case " $LIBOBJS " in
19367 *" closefrom.$ac_objext "* ) ;;
19368 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
19373 ac_fn_c_check_func "$LINENO" "ecalloc" "ac_cv_func_ecalloc"
19374 if test "x$ac_cv_func_ecalloc" = x""yes; then :
19376 cat >>confdefs.h <<_ACEOF
19377 #define HAVE_ECALLOC 1
19381 case " $LIBOBJS " in
19382 *" ecalloc.$ac_objext "* ) ;;
19383 *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
19388 ac_fn_c_check_func "$LINENO" "emalloc" "ac_cv_func_emalloc"
19389 if test "x$ac_cv_func_emalloc" = x""yes; then :
19391 cat >>confdefs.h <<_ACEOF
19392 #define HAVE_EMALLOC 1
19396 case " $LIBOBJS " in
19397 *" emalloc.$ac_objext "* ) ;;
19398 *) LIBOBJS="$LIBOBJS emalloc.$ac_objext"
19403 ac_fn_c_check_func "$LINENO" "erealloc" "ac_cv_func_erealloc"
19404 if test "x$ac_cv_func_erealloc" = x""yes; then :
19406 cat >>confdefs.h <<_ACEOF
19407 #define HAVE_EREALLOC 1
19411 case " $LIBOBJS " in
19412 *" erealloc.$ac_objext "* ) ;;
19413 *) LIBOBJS="$LIBOBJS erealloc.$ac_objext"
19418 ac_fn_c_check_func "$LINENO" "estrdup" "ac_cv_func_estrdup"
19419 if test "x$ac_cv_func_estrdup" = x""yes; then :
19421 cat >>confdefs.h <<_ACEOF
19422 #define HAVE_ESTRDUP 1
19426 case " $LIBOBJS " in
19427 *" estrdup.$ac_objext "* ) ;;
19428 *) LIBOBJS="$LIBOBJS estrdup.$ac_objext"
19433 ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
19434 if test "x$ac_cv_func_err" = x""yes; then :
19436 cat >>confdefs.h <<_ACEOF
19441 case " $LIBOBJS " in
19442 *" err.$ac_objext "* ) ;;
19443 *) LIBOBJS="$LIBOBJS err.$ac_objext"
19448 ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
19449 if test "x$ac_cv_func_errx" = x""yes; then :
19451 cat >>confdefs.h <<_ACEOF
19452 #define HAVE_ERRX 1
19456 case " $LIBOBJS " in
19457 *" errx.$ac_objext "* ) ;;
19458 *) LIBOBJS="$LIBOBJS errx.$ac_objext"
19463 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
19464 if test "x$ac_cv_func_fchown" = x""yes; then :
19466 cat >>confdefs.h <<_ACEOF
19467 #define HAVE_FCHOWN 1
19471 case " $LIBOBJS " in
19472 *" fchown.$ac_objext "* ) ;;
19473 *) LIBOBJS="$LIBOBJS fchown.$ac_objext"
19478 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
19479 if test "x$ac_cv_func_flock" = x""yes; then :
19481 cat >>confdefs.h <<_ACEOF
19482 #define HAVE_FLOCK 1
19486 case " $LIBOBJS " in
19487 *" flock.$ac_objext "* ) ;;
19488 *) LIBOBJS="$LIBOBJS flock.$ac_objext"
19493 ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
19494 if test "x$ac_cv_func_fnmatch" = x""yes; then :
19496 cat >>confdefs.h <<_ACEOF
19497 #define HAVE_FNMATCH 1
19501 case " $LIBOBJS " in
19502 *" fnmatch.$ac_objext "* ) ;;
19503 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
19508 ac_fn_c_check_func "$LINENO" "freehostent" "ac_cv_func_freehostent"
19509 if test "x$ac_cv_func_freehostent" = x""yes; then :
19511 cat >>confdefs.h <<_ACEOF
19512 #define HAVE_FREEHOSTENT 1
19516 case " $LIBOBJS " in
19517 *" freehostent.$ac_objext "* ) ;;
19518 *) LIBOBJS="$LIBOBJS freehostent.$ac_objext"
19523 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
19524 if test "x$ac_cv_func_getcwd" = x""yes; then :
19526 cat >>confdefs.h <<_ACEOF
19527 #define HAVE_GETCWD 1
19531 case " $LIBOBJS " in
19532 *" getcwd.$ac_objext "* ) ;;
19533 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
19538 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
19539 if test "x$ac_cv_func_getdtablesize" = x""yes; then :
19541 cat >>confdefs.h <<_ACEOF
19542 #define HAVE_GETDTABLESIZE 1
19546 case " $LIBOBJS " in
19547 *" getdtablesize.$ac_objext "* ) ;;
19548 *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
19553 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
19554 if test "x$ac_cv_func_getegid" = x""yes; then :
19556 cat >>confdefs.h <<_ACEOF
19557 #define HAVE_GETEGID 1
19561 case " $LIBOBJS " in
19562 *" getegid.$ac_objext "* ) ;;
19563 *) LIBOBJS="$LIBOBJS getegid.$ac_objext"
19568 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
19569 if test "x$ac_cv_func_geteuid" = x""yes; then :
19571 cat >>confdefs.h <<_ACEOF
19572 #define HAVE_GETEUID 1
19576 case " $LIBOBJS " in
19577 *" geteuid.$ac_objext "* ) ;;
19578 *) LIBOBJS="$LIBOBJS geteuid.$ac_objext"
19583 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
19584 if test "x$ac_cv_func_getgid" = x""yes; then :
19586 cat >>confdefs.h <<_ACEOF
19587 #define HAVE_GETGID 1
19591 case " $LIBOBJS " in
19592 *" getgid.$ac_objext "* ) ;;
19593 *) LIBOBJS="$LIBOBJS getgid.$ac_objext"
19598 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
19599 if test "x$ac_cv_func_gethostname" = x""yes; then :
19601 cat >>confdefs.h <<_ACEOF
19602 #define HAVE_GETHOSTNAME 1
19606 case " $LIBOBJS " in
19607 *" gethostname.$ac_objext "* ) ;;
19608 *) LIBOBJS="$LIBOBJS gethostname.$ac_objext"
19613 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
19614 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
19616 cat >>confdefs.h <<_ACEOF
19617 #define HAVE_GETIFADDRS 1
19621 case " $LIBOBJS " in
19622 *" getifaddrs.$ac_objext "* ) ;;
19623 *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
19628 ac_fn_c_check_func "$LINENO" "getipnodebyaddr" "ac_cv_func_getipnodebyaddr"
19629 if test "x$ac_cv_func_getipnodebyaddr" = x""yes; then :
19631 cat >>confdefs.h <<_ACEOF
19632 #define HAVE_GETIPNODEBYADDR 1
19636 case " $LIBOBJS " in
19637 *" getipnodebyaddr.$ac_objext "* ) ;;
19638 *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
19643 ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
19644 if test "x$ac_cv_func_getipnodebyname" = x""yes; then :
19646 cat >>confdefs.h <<_ACEOF
19647 #define HAVE_GETIPNODEBYNAME 1
19651 case " $LIBOBJS " in
19652 *" getipnodebyname.$ac_objext "* ) ;;
19653 *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
19658 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
19659 if test "x$ac_cv_func_getopt" = x""yes; then :
19661 cat >>confdefs.h <<_ACEOF
19662 #define HAVE_GETOPT 1
19666 case " $LIBOBJS " in
19667 *" getopt.$ac_objext "* ) ;;
19668 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19673 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19674 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
19676 cat >>confdefs.h <<_ACEOF
19677 #define HAVE_GETTIMEOFDAY 1
19681 case " $LIBOBJS " in
19682 *" gettimeofday.$ac_objext "* ) ;;
19683 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
19688 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
19689 if test "x$ac_cv_func_getuid" = x""yes; then :
19691 cat >>confdefs.h <<_ACEOF
19692 #define HAVE_GETUID 1
19696 case " $LIBOBJS " in
19697 *" getuid.$ac_objext "* ) ;;
19698 *) LIBOBJS="$LIBOBJS getuid.$ac_objext"
19703 ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell"
19704 if test "x$ac_cv_func_getusershell" = x""yes; then :
19706 cat >>confdefs.h <<_ACEOF
19707 #define HAVE_GETUSERSHELL 1
19711 case " $LIBOBJS " in
19712 *" getusershell.$ac_objext "* ) ;;
19713 *) LIBOBJS="$LIBOBJS getusershell.$ac_objext"
19718 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
19719 if test "x$ac_cv_func_initgroups" = x""yes; then :
19721 cat >>confdefs.h <<_ACEOF
19722 #define HAVE_INITGROUPS 1
19726 case " $LIBOBJS " in
19727 *" initgroups.$ac_objext "* ) ;;
19728 *) LIBOBJS="$LIBOBJS initgroups.$ac_objext"
19733 ac_fn_c_check_func "$LINENO" "innetgr" "ac_cv_func_innetgr"
19734 if test "x$ac_cv_func_innetgr" = x""yes; then :
19736 cat >>confdefs.h <<_ACEOF
19737 #define HAVE_INNETGR 1
19741 case " $LIBOBJS " in
19742 *" innetgr.$ac_objext "* ) ;;
19743 *) LIBOBJS="$LIBOBJS innetgr.$ac_objext"
19748 ac_fn_c_check_func "$LINENO" "iruserok" "ac_cv_func_iruserok"
19749 if test "x$ac_cv_func_iruserok" = x""yes; then :
19751 cat >>confdefs.h <<_ACEOF
19752 #define HAVE_IRUSEROK 1
19756 case " $LIBOBJS " in
19757 *" iruserok.$ac_objext "* ) ;;
19758 *) LIBOBJS="$LIBOBJS iruserok.$ac_objext"
19763 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
19764 if test "x$ac_cv_func_localtime_r" = x""yes; then :
19766 cat >>confdefs.h <<_ACEOF
19767 #define HAVE_LOCALTIME_R 1
19771 case " $LIBOBJS " in
19772 *" localtime_r.$ac_objext "* ) ;;
19773 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
19778 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
19779 if test "x$ac_cv_func_lstat" = x""yes; then :
19781 cat >>confdefs.h <<_ACEOF
19782 #define HAVE_LSTAT 1
19786 case " $LIBOBJS " in
19787 *" lstat.$ac_objext "* ) ;;
19788 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19793 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19794 if test "x$ac_cv_func_memmove" = x""yes; then :
19796 cat >>confdefs.h <<_ACEOF
19797 #define HAVE_MEMMOVE 1
19801 case " $LIBOBJS " in
19802 *" memmove.$ac_objext "* ) ;;
19803 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
19808 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
19809 if test "x$ac_cv_func_mkstemp" = x""yes; then :
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_MKSTEMP 1
19816 case " $LIBOBJS " in
19817 *" mkstemp.$ac_objext "* ) ;;
19818 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
19823 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
19824 if test "x$ac_cv_func_putenv" = x""yes; then :
19826 cat >>confdefs.h <<_ACEOF
19827 #define HAVE_PUTENV 1
19831 case " $LIBOBJS " in
19832 *" putenv.$ac_objext "* ) ;;
19833 *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
19838 ac_fn_c_check_func "$LINENO" "rcmd" "ac_cv_func_rcmd"
19839 if test "x$ac_cv_func_rcmd" = x""yes; then :
19841 cat >>confdefs.h <<_ACEOF
19842 #define HAVE_RCMD 1
19846 case " $LIBOBJS " in
19847 *" rcmd.$ac_objext "* ) ;;
19848 *) LIBOBJS="$LIBOBJS rcmd.$ac_objext"
19853 ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv"
19854 if test "x$ac_cv_func_readv" = x""yes; then :
19856 cat >>confdefs.h <<_ACEOF
19857 #define HAVE_READV 1
19861 case " $LIBOBJS " in
19862 *" readv.$ac_objext "* ) ;;
19863 *) LIBOBJS="$LIBOBJS readv.$ac_objext"
19868 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
19869 if test "x$ac_cv_func_recvmsg" = x""yes; then :
19871 cat >>confdefs.h <<_ACEOF
19872 #define HAVE_RECVMSG 1
19876 case " $LIBOBJS " in
19877 *" recvmsg.$ac_objext "* ) ;;
19878 *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
19883 ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg"
19884 if test "x$ac_cv_func_sendmsg" = x""yes; then :
19886 cat >>confdefs.h <<_ACEOF
19887 #define HAVE_SENDMSG 1
19891 case " $LIBOBJS " in
19892 *" sendmsg.$ac_objext "* ) ;;
19893 *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
19898 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
19899 if test "x$ac_cv_func_setegid" = x""yes; then :
19901 cat >>confdefs.h <<_ACEOF
19902 #define HAVE_SETEGID 1
19906 case " $LIBOBJS " in
19907 *" setegid.$ac_objext "* ) ;;
19908 *) LIBOBJS="$LIBOBJS setegid.$ac_objext"
19913 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
19914 if test "x$ac_cv_func_setenv" = x""yes; then :
19916 cat >>confdefs.h <<_ACEOF
19917 #define HAVE_SETENV 1
19921 case " $LIBOBJS " in
19922 *" setenv.$ac_objext "* ) ;;
19923 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
19928 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
19929 if test "x$ac_cv_func_seteuid" = x""yes; then :
19931 cat >>confdefs.h <<_ACEOF
19932 #define HAVE_SETEUID 1
19936 case " $LIBOBJS " in
19937 *" seteuid.$ac_objext "* ) ;;
19938 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
19943 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19944 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
19946 cat >>confdefs.h <<_ACEOF
19947 #define HAVE_STRCASECMP 1
19951 case " $LIBOBJS " in
19952 *" strcasecmp.$ac_objext "* ) ;;
19953 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
19958 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
19959 if test "x$ac_cv_func_strdup" = x""yes; then :
19961 cat >>confdefs.h <<_ACEOF
19962 #define HAVE_STRDUP 1
19966 case " $LIBOBJS " in
19967 *" strdup.$ac_objext "* ) ;;
19968 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
19973 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
19974 if test "x$ac_cv_func_strerror" = x""yes; then :
19976 cat >>confdefs.h <<_ACEOF
19977 #define HAVE_STRERROR 1
19981 case " $LIBOBJS " in
19982 *" strerror.$ac_objext "* ) ;;
19983 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
19988 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
19989 if test "x$ac_cv_func_strftime" = x""yes; then :
19991 cat >>confdefs.h <<_ACEOF
19992 #define HAVE_STRFTIME 1
19996 case " $LIBOBJS " in
19997 *" strftime.$ac_objext "* ) ;;
19998 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
20003 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20004 if test "x$ac_cv_func_strlcat" = x""yes; then :
20006 cat >>confdefs.h <<_ACEOF
20007 #define HAVE_STRLCAT 1
20011 case " $LIBOBJS " in
20012 *" strlcat.$ac_objext "* ) ;;
20013 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20018 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20019 if test "x$ac_cv_func_strlcpy" = x""yes; then :
20021 cat >>confdefs.h <<_ACEOF
20022 #define HAVE_STRLCPY 1
20026 case " $LIBOBJS " in
20027 *" strlcpy.$ac_objext "* ) ;;
20028 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20033 ac_fn_c_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr"
20034 if test "x$ac_cv_func_strlwr" = x""yes; then :
20036 cat >>confdefs.h <<_ACEOF
20037 #define HAVE_STRLWR 1
20041 case " $LIBOBJS " in
20042 *" strlwr.$ac_objext "* ) ;;
20043 *) LIBOBJS="$LIBOBJS strlwr.$ac_objext"
20048 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
20049 if test "x$ac_cv_func_strncasecmp" = x""yes; then :
20051 cat >>confdefs.h <<_ACEOF
20052 #define HAVE_STRNCASECMP 1
20056 case " $LIBOBJS " in
20057 *" strncasecmp.$ac_objext "* ) ;;
20058 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
20063 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
20064 if test "x$ac_cv_func_strndup" = x""yes; then :
20066 cat >>confdefs.h <<_ACEOF
20067 #define HAVE_STRNDUP 1
20071 case " $LIBOBJS " in
20072 *" strndup.$ac_objext "* ) ;;
20073 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
20078 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
20079 if test "x$ac_cv_func_strnlen" = x""yes; then :
20081 cat >>confdefs.h <<_ACEOF
20082 #define HAVE_STRNLEN 1
20086 case " $LIBOBJS " in
20087 *" strnlen.$ac_objext "* ) ;;
20088 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
20093 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
20094 if test "x$ac_cv_func_strptime" = x""yes; then :
20096 cat >>confdefs.h <<_ACEOF
20097 #define HAVE_STRPTIME 1
20101 case " $LIBOBJS " in
20102 *" strptime.$ac_objext "* ) ;;
20103 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
20108 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20109 if test "x$ac_cv_func_strsep" = x""yes; then :
20111 cat >>confdefs.h <<_ACEOF
20112 #define HAVE_STRSEP 1
20116 case " $LIBOBJS " in
20117 *" strsep.$ac_objext "* ) ;;
20118 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20123 ac_fn_c_check_func "$LINENO" "strsep_copy" "ac_cv_func_strsep_copy"
20124 if test "x$ac_cv_func_strsep_copy" = x""yes; then :
20126 cat >>confdefs.h <<_ACEOF
20127 #define HAVE_STRSEP_COPY 1
20131 case " $LIBOBJS " in
20132 *" strsep_copy.$ac_objext "* ) ;;
20133 *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
20138 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
20139 if test "x$ac_cv_func_strtok_r" = x""yes; then :
20141 cat >>confdefs.h <<_ACEOF
20142 #define HAVE_STRTOK_R 1
20146 case " $LIBOBJS " in
20147 *" strtok_r.$ac_objext "* ) ;;
20148 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
20153 ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr"
20154 if test "x$ac_cv_func_strupr" = x""yes; then :
20156 cat >>confdefs.h <<_ACEOF
20157 #define HAVE_STRUPR 1
20161 case " $LIBOBJS " in
20162 *" strupr.$ac_objext "* ) ;;
20163 *) LIBOBJS="$LIBOBJS strupr.$ac_objext"
20168 ac_fn_c_check_func "$LINENO" "swab" "ac_cv_func_swab"
20169 if test "x$ac_cv_func_swab" = x""yes; then :
20171 cat >>confdefs.h <<_ACEOF
20172 #define HAVE_SWAB 1
20176 case " $LIBOBJS " in
20177 *" swab.$ac_objext "* ) ;;
20178 *) LIBOBJS="$LIBOBJS swab.$ac_objext"
20183 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
20184 if test "x$ac_cv_func_tsearch" = x""yes; then :
20186 cat >>confdefs.h <<_ACEOF
20187 #define HAVE_TSEARCH 1
20191 case " $LIBOBJS " in
20192 *" tsearch.$ac_objext "* ) ;;
20193 *) LIBOBJS="$LIBOBJS tsearch.$ac_objext"
20198 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
20199 if test "x$ac_cv_func_timegm" = x""yes; then :
20201 cat >>confdefs.h <<_ACEOF
20202 #define HAVE_TIMEGM 1
20206 case " $LIBOBJS " in
20207 *" timegm.$ac_objext "* ) ;;
20208 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
20213 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
20214 if test "x$ac_cv_func_unsetenv" = x""yes; then :
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_UNSETENV 1
20221 case " $LIBOBJS " in
20222 *" unsetenv.$ac_objext "* ) ;;
20223 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
20228 ac_fn_c_check_func "$LINENO" "verr" "ac_cv_func_verr"
20229 if test "x$ac_cv_func_verr" = x""yes; then :
20231 cat >>confdefs.h <<_ACEOF
20232 #define HAVE_VERR 1
20236 case " $LIBOBJS " in
20237 *" verr.$ac_objext "* ) ;;
20238 *) LIBOBJS="$LIBOBJS verr.$ac_objext"
20243 ac_fn_c_check_func "$LINENO" "verrx" "ac_cv_func_verrx"
20244 if test "x$ac_cv_func_verrx" = x""yes; then :
20246 cat >>confdefs.h <<_ACEOF
20247 #define HAVE_VERRX 1
20251 case " $LIBOBJS " in
20252 *" verrx.$ac_objext "* ) ;;
20253 *) LIBOBJS="$LIBOBJS verrx.$ac_objext"
20258 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
20259 if test "x$ac_cv_func_vsyslog" = x""yes; then :
20261 cat >>confdefs.h <<_ACEOF
20262 #define HAVE_VSYSLOG 1
20266 case " $LIBOBJS " in
20267 *" vsyslog.$ac_objext "* ) ;;
20268 *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
20273 ac_fn_c_check_func "$LINENO" "vwarn" "ac_cv_func_vwarn"
20274 if test "x$ac_cv_func_vwarn" = x""yes; then :
20276 cat >>confdefs.h <<_ACEOF
20277 #define HAVE_VWARN 1
20281 case " $LIBOBJS " in
20282 *" vwarn.$ac_objext "* ) ;;
20283 *) LIBOBJS="$LIBOBJS vwarn.$ac_objext"
20288 ac_fn_c_check_func "$LINENO" "vwarnx" "ac_cv_func_vwarnx"
20289 if test "x$ac_cv_func_vwarnx" = x""yes; then :
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_VWARNX 1
20296 case " $LIBOBJS " in
20297 *" vwarnx.$ac_objext "* ) ;;
20298 *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
20303 ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
20304 if test "x$ac_cv_func_warn" = x""yes; then :
20306 cat >>confdefs.h <<_ACEOF
20307 #define HAVE_WARN 1
20311 case " $LIBOBJS " in
20312 *" warn.$ac_objext "* ) ;;
20313 *) LIBOBJS="$LIBOBJS warn.$ac_objext"
20318 ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
20319 if test "x$ac_cv_func_warnx" = x""yes; then :
20321 cat >>confdefs.h <<_ACEOF
20322 #define HAVE_WARNX 1
20326 case " $LIBOBJS " in
20327 *" warnx.$ac_objext "* ) ;;
20328 *) LIBOBJS="$LIBOBJS warnx.$ac_objext"
20333 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
20334 if test "x$ac_cv_func_writev" = x""yes; then :
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_WRITEV 1
20341 case " $LIBOBJS " in
20342 *" writev.$ac_objext "* ) ;;
20343 *) LIBOBJS="$LIBOBJS writev.$ac_objext"
20350 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then
20351 have_fnmatch_h_TRUE=
20352 have_fnmatch_h_FALSE='#'
20354 have_fnmatch_h_TRUE='#'
20355 have_fnmatch_h_FALSE=
20360 if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strndup needs a prototype" >&5
20362 $as_echo_n "checking if strndup needs a prototype... " >&6; }
20363 if test "${ac_cv_func_strndup_noproto+set}" = set; then :
20364 $as_echo_n "(cached) " >&6
20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20368 #include <string.h>
20369 struct foo { int foo; } xx;
20370 extern int strndup (struct foo*);
20379 if ac_fn_c_try_compile "$LINENO"; then :
20380 eval "ac_cv_func_strndup_noproto=yes"
20382 eval "ac_cv_func_strndup_noproto=no"
20384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strndup_noproto" >&5
20387 $as_echo "$ac_cv_func_strndup_noproto" >&6; }
20388 if test "$ac_cv_func_strndup_noproto" = yes; then
20390 $as_echo "#define NEED_STRNDUP_PROTO 1" >>confdefs.h
20395 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsep needs a prototype" >&5
20397 $as_echo_n "checking if strsep needs a prototype... " >&6; }
20398 if test "${ac_cv_func_strsep_noproto+set}" = set; then :
20399 $as_echo_n "(cached) " >&6
20401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20402 /* end confdefs.h. */
20403 #include <string.h>
20404 struct foo { int foo; } xx;
20405 extern int strsep (struct foo*);
20414 if ac_fn_c_try_compile "$LINENO"; then :
20415 eval "ac_cv_func_strsep_noproto=yes"
20417 eval "ac_cv_func_strsep_noproto=no"
20419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsep_noproto" >&5
20422 $as_echo "$ac_cv_func_strsep_noproto" >&6; }
20423 if test "$ac_cv_func_strsep_noproto" = yes; then
20425 $as_echo "#define NEED_STRSEP_PROTO 1" >>confdefs.h
20430 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs a prototype" >&5
20432 $as_echo_n "checking if strtok_r needs a prototype... " >&6; }
20433 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then :
20434 $as_echo_n "(cached) " >&6
20436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437 /* end confdefs.h. */
20438 #include <string.h>
20439 struct foo { int foo; } xx;
20440 extern int strtok_r (struct foo*);
20449 if ac_fn_c_try_compile "$LINENO"; then :
20450 eval "ac_cv_func_strtok_r_noproto=yes"
20452 eval "ac_cv_func_strtok_r_noproto=no"
20454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtok_r_noproto" >&5
20457 $as_echo "$ac_cv_func_strtok_r_noproto" >&6; }
20458 if test "$ac_cv_func_strtok_r_noproto" = yes; then
20460 $as_echo "#define NEED_STRTOK_R_PROTO 1" >>confdefs.h
20467 if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvis needs a prototype" >&5
20469 $as_echo_n "checking if strsvis needs a prototype... " >&6; }
20470 if test "${ac_cv_func_strsvis_noproto+set}" = set; then :
20471 $as_echo_n "(cached) " >&6
20473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474 /* end confdefs.h. */
20478 struct foo { int foo; } xx;
20479 extern int strsvis (struct foo*);
20488 if ac_fn_c_try_compile "$LINENO"; then :
20489 eval "ac_cv_func_strsvis_noproto=yes"
20491 eval "ac_cv_func_strsvis_noproto=no"
20493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvis_noproto" >&5
20496 $as_echo "$ac_cv_func_strsvis_noproto" >&6; }
20497 if test "$ac_cv_func_strsvis_noproto" = yes; then
20499 $as_echo "#define NEED_STRSVIS_PROTO 1" >>confdefs.h
20504 if test "$ac_cv_func_strsvisx+set" != set -o "$ac_cv_func_strsvisx" = yes; then
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvisx needs a prototype" >&5
20506 $as_echo_n "checking if strsvisx needs a prototype... " >&6; }
20507 if test "${ac_cv_func_strsvisx_noproto+set}" = set; then :
20508 $as_echo_n "(cached) " >&6
20510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511 /* end confdefs.h. */
20515 struct foo { int foo; } xx;
20516 extern int strsvisx (struct foo*);
20525 if ac_fn_c_try_compile "$LINENO"; then :
20526 eval "ac_cv_func_strsvisx_noproto=yes"
20528 eval "ac_cv_func_strsvisx_noproto=no"
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvisx_noproto" >&5
20533 $as_echo "$ac_cv_func_strsvisx_noproto" >&6; }
20534 if test "$ac_cv_func_strsvisx_noproto" = yes; then
20536 $as_echo "#define NEED_STRSVISX_PROTO 1" >>confdefs.h
20541 if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strunvis needs a prototype" >&5
20543 $as_echo_n "checking if strunvis needs a prototype... " >&6; }
20544 if test "${ac_cv_func_strunvis_noproto+set}" = set; then :
20545 $as_echo_n "(cached) " >&6
20547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548 /* end confdefs.h. */
20552 struct foo { int foo; } xx;
20553 extern int strunvis (struct foo*);
20562 if ac_fn_c_try_compile "$LINENO"; then :
20563 eval "ac_cv_func_strunvis_noproto=yes"
20565 eval "ac_cv_func_strunvis_noproto=no"
20567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strunvis_noproto" >&5
20570 $as_echo "$ac_cv_func_strunvis_noproto" >&6; }
20571 if test "$ac_cv_func_strunvis_noproto" = yes; then
20573 $as_echo "#define NEED_STRUNVIS_PROTO 1" >>confdefs.h
20578 if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvis needs a prototype" >&5
20580 $as_echo_n "checking if strvis needs a prototype... " >&6; }
20581 if test "${ac_cv_func_strvis_noproto+set}" = set; then :
20582 $as_echo_n "(cached) " >&6
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20589 struct foo { int foo; } xx;
20590 extern int strvis (struct foo*);
20599 if ac_fn_c_try_compile "$LINENO"; then :
20600 eval "ac_cv_func_strvis_noproto=yes"
20602 eval "ac_cv_func_strvis_noproto=no"
20604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvis_noproto" >&5
20607 $as_echo "$ac_cv_func_strvis_noproto" >&6; }
20608 if test "$ac_cv_func_strvis_noproto" = yes; then
20610 $as_echo "#define NEED_STRVIS_PROTO 1" >>confdefs.h
20615 if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvisx needs a prototype" >&5
20617 $as_echo_n "checking if strvisx needs a prototype... " >&6; }
20618 if test "${ac_cv_func_strvisx_noproto+set}" = set; then :
20619 $as_echo_n "(cached) " >&6
20621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20622 /* end confdefs.h. */
20626 struct foo { int foo; } xx;
20627 extern int strvisx (struct foo*);
20636 if ac_fn_c_try_compile "$LINENO"; then :
20637 eval "ac_cv_func_strvisx_noproto=yes"
20639 eval "ac_cv_func_strvisx_noproto=no"
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvisx_noproto" >&5
20644 $as_echo "$ac_cv_func_strvisx_noproto" >&6; }
20645 if test "$ac_cv_func_strvisx_noproto" = yes; then
20647 $as_echo "#define NEED_STRVISX_PROTO 1" >>confdefs.h
20652 if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if svis needs a prototype" >&5
20654 $as_echo_n "checking if svis needs a prototype... " >&6; }
20655 if test "${ac_cv_func_svis_noproto+set}" = set; then :
20656 $as_echo_n "(cached) " >&6
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h. */
20663 struct foo { int foo; } xx;
20664 extern int svis (struct foo*);
20673 if ac_fn_c_try_compile "$LINENO"; then :
20674 eval "ac_cv_func_svis_noproto=yes"
20676 eval "ac_cv_func_svis_noproto=no"
20678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_svis_noproto" >&5
20681 $as_echo "$ac_cv_func_svis_noproto" >&6; }
20682 if test "$ac_cv_func_svis_noproto" = yes; then
20684 $as_echo "#define NEED_SVIS_PROTO 1" >>confdefs.h
20689 if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unvis needs a prototype" >&5
20691 $as_echo_n "checking if unvis needs a prototype... " >&6; }
20692 if test "${ac_cv_func_unvis_noproto+set}" = set; then :
20693 $as_echo_n "(cached) " >&6
20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696 /* end confdefs.h. */
20700 struct foo { int foo; } xx;
20701 extern int unvis (struct foo*);
20710 if ac_fn_c_try_compile "$LINENO"; then :
20711 eval "ac_cv_func_unvis_noproto=yes"
20713 eval "ac_cv_func_unvis_noproto=no"
20715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unvis_noproto" >&5
20718 $as_echo "$ac_cv_func_unvis_noproto" >&6; }
20719 if test "$ac_cv_func_unvis_noproto" = yes; then
20721 $as_echo "#define NEED_UNVIS_PROTO 1" >>confdefs.h
20726 if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vis needs a prototype" >&5
20728 $as_echo_n "checking if vis needs a prototype... " >&6; }
20729 if test "${ac_cv_func_vis_noproto+set}" = set; then :
20730 $as_echo_n "(cached) " >&6
20732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20733 /* end confdefs.h. */
20737 struct foo { int foo; } xx;
20738 extern int vis (struct foo*);
20747 if ac_fn_c_try_compile "$LINENO"; then :
20748 eval "ac_cv_func_vis_noproto=yes"
20750 eval "ac_cv_func_vis_noproto=no"
20752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vis_noproto" >&5
20755 $as_echo "$ac_cv_func_vis_noproto" >&6; }
20756 if test "$ac_cv_func_vis_noproto" = yes; then
20758 $as_echo "#define NEED_VIS_PROTO 1" >>confdefs.h
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for dirfd" >&5
20765 $as_echo_n "checking checking for dirfd... " >&6; }
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20768 #include <sys/types.h>
20769 #ifdef HAVE_DIRENT_H
20770 #include <dirent.h>
20776 DIR *d = 0; dirfd(d);
20781 if ac_fn_c_try_link "$LINENO"; then :
20782 ac_rk_have_dirfd=yes
20784 ac_rk_have_dirfd=no
20786 rm -f core conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
20788 if test "$ac_rk_have_dirfd" = "yes" ; then
20790 cat >>confdefs.h <<_ACEOF
20791 #define HAVE_DIRFD 1
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have_dirfd" >&5
20796 $as_echo "$ac_rk_have_dirfd" >&6; }
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dd_fd in DIR" >&5
20801 $as_echo_n "checking for dd_fd in DIR... " >&6; }
20802 if test "${ac_cv_type_dir_dd_fd+set}" = set; then :
20803 $as_echo_n "(cached) " >&6
20806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20807 /* end confdefs.h. */
20808 #include <sys/types.h>
20809 #ifdef HAVE_DIRENT_H
20810 #include <dirent.h>
20815 DIR x; memset(&x, 0, sizeof(x)); x.dd_fd
20820 if ac_fn_c_try_compile "$LINENO"; then :
20821 ac_cv_type_dir_dd_fd=yes
20823 ac_cv_type_dir_dd_fd=no
20825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_dir_dd_fd" >&5
20829 $as_echo "$ac_cv_type_dir_dd_fd" >&6; }
20830 if test "$ac_cv_type_dir_dd_fd" = yes; then
20833 $as_echo "#define HAVE_DIR_DD_FD 1" >>confdefs.h
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
20842 $as_echo_n "checking for inet_aton... " >&6; }
20843 if test "${ac_cv_func_inet_aton+set}" = set; then :
20844 $as_echo_n "(cached) " >&6
20846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20847 /* end confdefs.h. */
20848 #ifdef HAVE_SYS_TYPES_H
20849 #include <sys/types.h>
20851 #ifdef HAVE_SYS_SOCKET_H
20852 #include <sys/socket.h>
20854 #ifdef HAVE_NETINET_IN_H
20855 #include <netinet/in.h>
20857 #ifdef HAVE_ARPA_INET_H
20858 #include <arpa/inet.h>
20864 /* The GNU C library defines this for functions which it implements
20865 to always fail with ENOSYS. Some functions are actually named
20866 something starting with __ and the normal name is an alias. */
20867 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
20877 if ac_fn_c_try_link "$LINENO"; then :
20878 eval "ac_cv_func_inet_aton=yes"
20880 eval "ac_cv_func_inet_aton=no"
20882 rm -f core conftest.err conftest.$ac_objext \
20883 conftest$ac_exeext conftest.$ac_ext
20886 if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
20888 cat >>confdefs.h <<_ACEOF
20889 #define HAVE_INET_ATON 1
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20893 $as_echo "yes" >&6; }
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20896 $as_echo "no" >&6; }
20897 case " $LIBOBJS " in
20898 *" inet_aton.$ac_objext "* ) ;;
20899 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
20906 $as_echo_n "checking for inet_ntop... " >&6; }
20907 if test "${ac_cv_func_inet_ntop+set}" = set; then :
20908 $as_echo_n "(cached) " >&6
20910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20911 /* end confdefs.h. */
20912 #ifdef HAVE_SYS_TYPES_H
20913 #include <sys/types.h>
20915 #ifdef HAVE_SYS_SOCKET_H
20916 #include <sys/socket.h>
20918 #ifdef HAVE_NETINET_IN_H
20919 #include <netinet/in.h>
20921 #ifdef HAVE_ARPA_INET_H
20922 #include <arpa/inet.h>
20928 /* The GNU C library defines this for functions which it implements
20929 to always fail with ENOSYS. Some functions are actually named
20930 something starting with __ and the normal name is an alias. */
20931 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
20934 inet_ntop(0, 0, 0, 0);
20941 if ac_fn_c_try_link "$LINENO"; then :
20942 eval "ac_cv_func_inet_ntop=yes"
20944 eval "ac_cv_func_inet_ntop=no"
20946 rm -f core conftest.err conftest.$ac_objext \
20947 conftest$ac_exeext conftest.$ac_ext
20950 if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
20952 cat >>confdefs.h <<_ACEOF
20953 #define HAVE_INET_NTOP 1
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20957 $as_echo "yes" >&6; }
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960 $as_echo "no" >&6; }
20961 case " $LIBOBJS " in
20962 *" inet_ntop.$ac_objext "* ) ;;
20963 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
20970 $as_echo_n "checking for inet_pton... " >&6; }
20971 if test "${ac_cv_func_inet_pton+set}" = set; then :
20972 $as_echo_n "(cached) " >&6
20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975 /* end confdefs.h. */
20976 #ifdef HAVE_SYS_TYPES_H
20977 #include <sys/types.h>
20979 #ifdef HAVE_SYS_SOCKET_H
20980 #include <sys/socket.h>
20982 #ifdef HAVE_NETINET_IN_H
20983 #include <netinet/in.h>
20985 #ifdef HAVE_ARPA_INET_H
20986 #include <arpa/inet.h>
20992 /* The GNU C library defines this for functions which it implements
20993 to always fail with ENOSYS. Some functions are actually named
20994 something starting with __ and the normal name is an alias. */
20995 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
21005 if ac_fn_c_try_link "$LINENO"; then :
21006 eval "ac_cv_func_inet_pton=yes"
21008 eval "ac_cv_func_inet_pton=no"
21010 rm -f core conftest.err conftest.$ac_objext \
21011 conftest$ac_exeext conftest.$ac_ext
21014 if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
21016 cat >>confdefs.h <<_ACEOF
21017 #define HAVE_INET_PTON 1
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21021 $as_echo "yes" >&6; }
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21024 $as_echo "no" >&6; }
21025 case " $LIBOBJS " in
21026 *" inet_pton.$ac_objext "* ) ;;
21027 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
21036 $as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
21037 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then :
21038 $as_echo_n "(cached) " >&6
21041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21042 /* end confdefs.h. */
21043 #include <sys/types.h>
21044 #include <sys/socket.h>
21048 struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len
21053 if ac_fn_c_try_compile "$LINENO"; then :
21054 ac_cv_type_struct_sockaddr_sa_len=yes
21056 ac_cv_type_struct_sockaddr_sa_len=no
21058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
21062 $as_echo "$ac_cv_type_struct_sockaddr_sa_len" >&6; }
21063 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
21066 $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
21073 if test "$ac_cv_func_getaddrinfo" = "yes"; then
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo handles numeric services" >&5
21076 $as_echo_n "checking if getaddrinfo handles numeric services... " >&6; }
21077 if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then :
21078 $as_echo_n "(cached) " >&6
21080 if test "$cross_compiling" = yes; then :
21081 ac_cv_func_getaddrinfo_numserv=yes
21083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21084 /* end confdefs.h. */
21086 #include <sys/types.h>
21087 #include <sys/socket.h>
21091 main(int argc, char **argv)
21093 struct addrinfo hints, *ai;
21094 memset(&hints, 0, sizeof(hints));
21095 hints.ai_flags = AI_PASSIVE;
21096 hints.ai_socktype = SOCK_STREAM;
21097 hints.ai_family = PF_UNSPEC;
21098 if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
21100 if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
21106 if ac_fn_c_try_run "$LINENO"; then :
21107 ac_cv_func_getaddrinfo_numserv=yes
21109 ac_cv_func_getaddrinfo_numserv=no
21111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21112 conftest.$ac_objext conftest.beam conftest.$ac_ext
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo_numserv" >&5
21117 $as_echo "$ac_cv_func_getaddrinfo_numserv" >&6; }
21118 if test "$ac_cv_func_getaddrinfo_numserv" = no; then
21119 case " $LIBOBJS " in
21120 *" getaddrinfo.$ac_objext "* ) ;;
21121 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21125 case " $LIBOBJS " in
21126 *" freeaddrinfo.$ac_objext "* ) ;;
21127 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
21135 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setenv needs a prototype" >&5
21137 $as_echo_n "checking if setenv needs a prototype... " >&6; }
21138 if test "${ac_cv_func_setenv_noproto+set}" = set; then :
21139 $as_echo_n "(cached) " >&6
21141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21142 /* end confdefs.h. */
21143 #include <stdlib.h>
21144 struct foo { int foo; } xx;
21145 extern int setenv (struct foo*);
21154 if ac_fn_c_try_compile "$LINENO"; then :
21155 eval "ac_cv_func_setenv_noproto=yes"
21157 eval "ac_cv_func_setenv_noproto=no"
21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setenv_noproto" >&5
21162 $as_echo "$ac_cv_func_setenv_noproto" >&6; }
21163 if test "$ac_cv_func_setenv_noproto" = yes; then
21165 $as_echo "#define NEED_SETENV_PROTO 1" >>confdefs.h
21171 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unsetenv needs a prototype" >&5
21173 $as_echo_n "checking if unsetenv needs a prototype... " >&6; }
21174 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then :
21175 $as_echo_n "(cached) " >&6
21177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178 /* end confdefs.h. */
21179 #include <stdlib.h>
21180 struct foo { int foo; } xx;
21181 extern int unsetenv (struct foo*);
21190 if ac_fn_c_try_compile "$LINENO"; then :
21191 eval "ac_cv_func_unsetenv_noproto=yes"
21193 eval "ac_cv_func_unsetenv_noproto=no"
21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unsetenv_noproto" >&5
21198 $as_echo "$ac_cv_func_unsetenv_noproto" >&6; }
21199 if test "$ac_cv_func_unsetenv_noproto" = yes; then
21201 $as_echo "#define NEED_UNSETENV_PROTO 1" >>confdefs.h
21207 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname needs a prototype" >&5
21209 $as_echo_n "checking if gethostname needs a prototype... " >&6; }
21210 if test "${ac_cv_func_gethostname_noproto+set}" = set; then :
21211 $as_echo_n "(cached) " >&6
21213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h. */
21215 #include <unistd.h>
21216 struct foo { int foo; } xx;
21217 extern int gethostname (struct foo*);
21226 if ac_fn_c_try_compile "$LINENO"; then :
21227 eval "ac_cv_func_gethostname_noproto=yes"
21229 eval "ac_cv_func_gethostname_noproto=no"
21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostname_noproto" >&5
21234 $as_echo "$ac_cv_func_gethostname_noproto" >&6; }
21235 if test "$ac_cv_func_gethostname_noproto" = yes; then
21237 $as_echo "#define NEED_GETHOSTNAME_PROTO 1" >>confdefs.h
21243 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkstemp needs a prototype" >&5
21245 $as_echo_n "checking if mkstemp needs a prototype... " >&6; }
21246 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then :
21247 $as_echo_n "(cached) " >&6
21249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21250 /* end confdefs.h. */
21251 #include <unistd.h>
21252 struct foo { int foo; } xx;
21253 extern int mkstemp (struct foo*);
21262 if ac_fn_c_try_compile "$LINENO"; then :
21263 eval "ac_cv_func_mkstemp_noproto=yes"
21265 eval "ac_cv_func_mkstemp_noproto=no"
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mkstemp_noproto" >&5
21270 $as_echo "$ac_cv_func_mkstemp_noproto" >&6; }
21271 if test "$ac_cv_func_mkstemp_noproto" = yes; then
21273 $as_echo "#define NEED_MKSTEMP_PROTO 1" >>confdefs.h
21279 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getusershell needs a prototype" >&5
21281 $as_echo_n "checking if getusershell needs a prototype... " >&6; }
21282 if test "${ac_cv_func_getusershell_noproto+set}" = set; then :
21283 $as_echo_n "(cached) " >&6
21285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286 /* end confdefs.h. */
21287 #include <unistd.h>
21288 struct foo { int foo; } xx;
21289 extern int getusershell (struct foo*);
21298 if ac_fn_c_try_compile "$LINENO"; then :
21299 eval "ac_cv_func_getusershell_noproto=yes"
21301 eval "ac_cv_func_getusershell_noproto=no"
21303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getusershell_noproto" >&5
21306 $as_echo "$ac_cv_func_getusershell_noproto" >&6; }
21307 if test "$ac_cv_func_getusershell_noproto" = yes; then
21309 $as_echo "#define NEED_GETUSERSHELL_PROTO 1" >>confdefs.h
21315 if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype" >&5
21317 $as_echo_n "checking if daemon needs a prototype... " >&6; }
21318 if test "${ac_cv_func_daemon_noproto+set}" = set; then :
21319 $as_echo_n "(cached) " >&6
21321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21322 /* end confdefs.h. */
21323 #include <unistd.h>
21324 struct foo { int foo; } xx;
21325 extern int daemon (struct foo*);
21334 if ac_fn_c_try_compile "$LINENO"; then :
21335 eval "ac_cv_func_daemon_noproto=yes"
21337 eval "ac_cv_func_daemon_noproto=no"
21339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_daemon_noproto" >&5
21342 $as_echo "$ac_cv_func_daemon_noproto" >&6; }
21343 if test "$ac_cv_func_daemon_noproto" = yes; then
21345 $as_echo "#define NEED_DAEMON_PROTO 1" >>confdefs.h
21351 if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iruserok needs a prototype" >&5
21353 $as_echo_n "checking if iruserok needs a prototype... " >&6; }
21354 if test "${ac_cv_func_iruserok_noproto+set}" = set; then :
21355 $as_echo_n "(cached) " >&6
21357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21358 /* end confdefs.h. */
21360 #ifdef HAVE_SYS_TYPES_H
21361 #include <sys/types.h>
21363 #ifdef HAVE_SYS_SOCKET_H
21364 #include <sys/socket.h>
21366 #ifdef HAVE_NETINET_IN_H
21367 #include <netinet/in.h>
21369 #ifdef HAVE_ARPA_INET_H
21370 #include <arpa/inet.h>
21372 #ifdef HAVE_NETDB_H
21375 #ifdef HAVE_UNISTD_H
21376 #include <unistd.h>
21378 struct foo { int foo; } xx;
21379 extern int iruserok (struct foo*);
21388 if ac_fn_c_try_compile "$LINENO"; then :
21389 eval "ac_cv_func_iruserok_noproto=yes"
21391 eval "ac_cv_func_iruserok_noproto=no"
21393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iruserok_noproto" >&5
21396 $as_echo "$ac_cv_func_iruserok_noproto" >&6; }
21397 if test "$ac_cv_func_iruserok_noproto" = yes; then
21399 $as_echo "#define NEED_IRUSEROK_PROTO 1" >>confdefs.h
21406 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton needs a prototype" >&5
21408 $as_echo_n "checking if inet_aton needs a prototype... " >&6; }
21409 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then :
21410 $as_echo_n "(cached) " >&6
21412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21413 /* end confdefs.h. */
21415 #ifdef HAVE_SYS_TYPES_H
21416 #include <sys/types.h>
21418 #ifdef HAVE_SYS_SOCKET_H
21419 #include <sys/socket.h>
21421 #ifdef HAVE_NETINET_IN_H
21422 #include <netinet/in.h>
21424 #ifdef HAVE_ARPA_INET_H
21425 #include <arpa/inet.h>
21427 struct foo { int foo; } xx;
21428 extern int inet_aton (struct foo*);
21437 if ac_fn_c_try_compile "$LINENO"; then :
21438 eval "ac_cv_func_inet_aton_noproto=yes"
21440 eval "ac_cv_func_inet_aton_noproto=no"
21442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton_noproto" >&5
21445 $as_echo "$ac_cv_func_inet_aton_noproto" >&6; }
21446 if test "$ac_cv_func_inet_aton_noproto" = yes; then
21448 $as_echo "#define NEED_INET_ATON_PROTO 1" >>confdefs.h
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt" >&5
21458 $as_echo_n "checking for crypt... " >&6; }
21459 if test "${ac_cv_funclib_crypt+set}" = set; then :
21460 $as_echo_n "(cached) " >&6
21463 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
21464 ac_save_LIBS="$LIBS"
21465 for ac_lib in "" crypt; do
21471 *) ac_lib="-l$ac_lib" ;;
21473 LIBS=" $ac_lib $ac_save_LIBS"
21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21475 /* end confdefs.h. */
21485 if ac_fn_c_try_link "$LINENO"; then :
21486 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
21488 rm -f core conftest.err conftest.$ac_objext \
21489 conftest$ac_exeext conftest.$ac_ext
21491 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
21492 LIBS="$ac_save_LIBS"
21498 eval "ac_res=\$ac_cv_funclib_crypt"
21501 for ac_func in crypt
21503 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
21504 if test "x$ac_cv_func_crypt" = x""yes; then :
21505 cat >>confdefs.h <<_ACEOF
21506 #define HAVE_CRYPT 1
21514 eval "ac_tr_func=HAVE_`echo crypt |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
21515 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
21516 eval "LIB_crypt=$ac_res"
21520 eval "ac_cv_func_crypt=yes"
21522 cat >>confdefs.h <<_ACEOF
21523 #define $ac_tr_func 1
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21527 $as_echo "yes" >&6; }
21530 eval "ac_cv_func_crypt=no"
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21533 $as_echo "no" >&6; }
21536 eval "ac_cv_func_crypt=yes"
21537 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
21538 cat >>confdefs.h <<_ACEOF
21539 #define $ac_tr_func 1
21542 cat >>confdefs.h <<_ACEOF
21543 #define $ac_tr_lib 1
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
21547 $as_echo "yes, in $ac_res" >&6; }
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compatible with system prototype" >&5
21557 $as_echo_n "checking if strerror_r is compatible with system prototype... " >&6; }
21558 if test "${ac_cv_func_strerror_r_proto_compat+set}" = set; then :
21559 $as_echo_n "(cached) " >&6
21561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562 /* end confdefs.h. */
21565 #include <string.h>
21570 int strerror_r(int, char *, size_t)
21575 if ac_fn_c_try_compile "$LINENO"; then :
21576 eval "ac_cv_func_strerror_r_proto_compat=yes"
21578 eval "ac_cv_func_strerror_r_proto_compat=no"
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_proto_compat" >&5
21583 $as_echo "$ac_cv_func_strerror_r_proto_compat" >&6; }
21585 if test "$ac_cv_func_strerror_r_proto_compat" = yes; then
21587 $as_echo "#define STRERROR_R_PROTO_COMPATIBLE 1" >>confdefs.h
21593 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21594 if test "x$ac_cv_func_strerror_r" = x""yes; then :
21596 cat >>confdefs.h <<_ACEOF
21597 #define HAVE_STRERROR_R 1
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compatible with system prototype" >&5
21606 $as_echo_n "checking if gethostbyname is compatible with system prototype... " >&6; }
21607 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then :
21608 $as_echo_n "(cached) " >&6
21610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611 /* end confdefs.h. */
21613 #ifdef HAVE_SYS_TYPES_H
21614 #include <sys/types.h>
21616 #ifdef HAVE_SYS_SOCKET_H
21617 #include <sys/socket.h>
21619 #ifdef HAVE_NETINET_IN_H
21620 #include <netinet/in.h>
21622 #ifdef HAVE_ARPA_INET_H
21623 #include <arpa/inet.h>
21625 #ifdef HAVE_NETDB_H
21632 struct hostent *gethostbyname(const char *)
21637 if ac_fn_c_try_compile "$LINENO"; then :
21638 eval "ac_cv_func_gethostbyname_proto_compat=yes"
21640 eval "ac_cv_func_gethostbyname_proto_compat=no"
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname_proto_compat" >&5
21645 $as_echo "$ac_cv_func_gethostbyname_proto_compat" >&6; }
21647 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
21649 $as_echo "#define GETHOSTBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compatible with system prototype" >&5
21657 $as_echo_n "checking if gethostbyaddr is compatible with system prototype... " >&6; }
21658 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then :
21659 $as_echo_n "(cached) " >&6
21661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21662 /* end confdefs.h. */
21664 #ifdef HAVE_SYS_TYPES_H
21665 #include <sys/types.h>
21667 #ifdef HAVE_SYS_SOCKET_H
21668 #include <sys/socket.h>
21670 #ifdef HAVE_NETINET_IN_H
21671 #include <netinet/in.h>
21673 #ifdef HAVE_ARPA_INET_H
21674 #include <arpa/inet.h>
21676 #ifdef HAVE_NETDB_H
21683 struct hostent *gethostbyaddr(const void *, size_t, int)
21688 if ac_fn_c_try_compile "$LINENO"; then :
21689 eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
21691 eval "ac_cv_func_gethostbyaddr_proto_compat=no"
21693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
21696 $as_echo "$ac_cv_func_gethostbyaddr_proto_compat" >&6; }
21698 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
21700 $as_echo "#define GETHOSTBYADDR_PROTO_COMPATIBLE 1" >>confdefs.h
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyname is compatible with system prototype" >&5
21708 $as_echo_n "checking if getservbyname is compatible with system prototype... " >&6; }
21709 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then :
21710 $as_echo_n "(cached) " >&6
21712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713 /* end confdefs.h. */
21715 #ifdef HAVE_SYS_TYPES_H
21716 #include <sys/types.h>
21718 #ifdef HAVE_SYS_SOCKET_H
21719 #include <sys/socket.h>
21721 #ifdef HAVE_NETINET_IN_H
21722 #include <netinet/in.h>
21724 #ifdef HAVE_ARPA_INET_H
21725 #include <arpa/inet.h>
21727 #ifdef HAVE_NETDB_H
21734 struct servent *getservbyname(const char *, const char *)
21739 if ac_fn_c_try_compile "$LINENO"; then :
21740 eval "ac_cv_func_getservbyname_proto_compat=yes"
21742 eval "ac_cv_func_getservbyname_proto_compat=no"
21744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname_proto_compat" >&5
21747 $as_echo "$ac_cv_func_getservbyname_proto_compat" >&6; }
21749 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
21751 $as_echo "#define GETSERVBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compatible with system prototype" >&5
21759 $as_echo_n "checking if getsockname is compatible with system prototype... " >&6; }
21760 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then :
21761 $as_echo_n "(cached) " >&6
21763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21764 /* end confdefs.h. */
21766 #ifdef HAVE_SYS_TYPES_H
21767 #include <sys/types.h>
21769 #ifdef HAVE_SYS_SOCKET_H
21770 #include <sys/socket.h>
21776 int getsockname(int, struct sockaddr*, socklen_t*)
21781 if ac_fn_c_try_compile "$LINENO"; then :
21782 eval "ac_cv_func_getsockname_proto_compat=yes"
21784 eval "ac_cv_func_getsockname_proto_compat=no"
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_proto_compat" >&5
21789 $as_echo "$ac_cv_func_getsockname_proto_compat" >&6; }
21791 if test "$ac_cv_func_getsockname_proto_compat" = yes; then
21793 $as_echo "#define GETSOCKNAME_PROTO_COMPATIBLE 1" >>confdefs.h
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openlog is compatible with system prototype" >&5
21801 $as_echo_n "checking if openlog is compatible with system prototype... " >&6; }
21802 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then :
21803 $as_echo_n "(cached) " >&6
21805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21806 /* end confdefs.h. */
21808 #ifdef HAVE_SYSLOG_H
21809 #include <syslog.h>
21815 void openlog(const char *, int, int)
21820 if ac_fn_c_try_compile "$LINENO"; then :
21821 eval "ac_cv_func_openlog_proto_compat=yes"
21823 eval "ac_cv_func_openlog_proto_compat=no"
21825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_openlog_proto_compat" >&5
21828 $as_echo "$ac_cv_func_openlog_proto_compat" >&6; }
21830 if test "$ac_cv_func_openlog_proto_compat" = yes; then
21832 $as_echo "#define OPENLOG_PROTO_COMPATIBLE 1" >>confdefs.h
21839 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if crypt needs a prototype" >&5
21841 $as_echo_n "checking if crypt needs a prototype... " >&6; }
21842 if test "${ac_cv_func_crypt_noproto+set}" = set; then :
21843 $as_echo_n "(cached) " >&6
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h. */
21848 #ifdef HAVE_CRYPT_H
21851 #ifdef HAVE_UNISTD_H
21852 #include <unistd.h>
21855 struct foo { int foo; } xx;
21856 extern int crypt (struct foo*);
21865 if ac_fn_c_try_compile "$LINENO"; then :
21866 eval "ac_cv_func_crypt_noproto=yes"
21868 eval "ac_cv_func_crypt_noproto=no"
21870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_crypt_noproto" >&5
21873 $as_echo "$ac_cv_func_crypt_noproto" >&6; }
21874 if test "$ac_cv_func_crypt_noproto" = yes; then
21876 $as_echo "#define NEED_CRYPT_PROTO 1" >>confdefs.h
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5
21885 $as_echo_n "checking for h_errno... " >&6; }
21886 if test "${ac_cv_var_h_errno+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21892 /* end confdefs.h. */
21893 #ifdef HAVE_SYS_TYPES_H
21894 #include <sys/types.h>
21896 #ifdef HAVE_NETDB_H
21899 #ifdef HAVE_WS2TCPIP_H
21900 #include <ws2tcpip.h>
21903 void * foo(void) { return &h_errno; }
21912 if ac_fn_c_try_link "$LINENO"; then :
21913 ac_cv_var_h_errno=yes
21915 ac_cv_var_h_errno=no
21917 rm -f core conftest.err conftest.$ac_objext \
21918 conftest$ac_exeext conftest.$ac_ext
21919 if test "$ac_cv_var_h_errno" != yes ; then
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h. */
21922 #ifdef HAVE_SYS_TYPES_H
21923 #include <sys/types.h>
21925 #ifdef HAVE_NETDB_H
21928 #ifdef HAVE_WS2TCPIP_H
21929 #include <ws2tcpip.h>
21932 extern int h_errno;
21933 int foo(void) { return h_errno; }
21942 if ac_fn_c_try_link "$LINENO"; then :
21943 ac_cv_var_h_errno=yes
21945 ac_cv_var_h_errno=no
21947 rm -f core conftest.err conftest.$ac_objext \
21948 conftest$ac_exeext conftest.$ac_ext
21953 ac_foo=`eval echo \\$ac_cv_var_h_errno`
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21955 $as_echo "$ac_foo" >&6; }
21956 if test "$ac_foo" = yes; then
21958 cat >>confdefs.h <<_ACEOF
21959 #define HAVE_H_ERRNO 1
21962 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#ifdef HAVE_SYS_TYPES_H
21963 #include <sys/types.h>
21965 #ifdef HAVE_NETDB_H
21968 #ifdef HAVE_WS2TCPIP_H
21969 #include <ws2tcpip.h>
21973 if test "x$ac_cv_have_decl_h_errno" = x""yes; then :
21979 cat >>confdefs.h <<_ACEOF
21980 #define HAVE_DECL_H_ERRNO $ac_have_decl
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errlist" >&5
21988 $as_echo_n "checking for h_errlist... " >&6; }
21989 if test "${ac_cv_var_h_errlist+set}" = set; then :
21990 $as_echo_n "(cached) " >&6
21994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995 /* end confdefs.h. */
21996 #ifdef HAVE_NETDB_H
21999 #ifdef HAVE_WS2TCPIP_H
22000 #include <ws2tcpip.h>
22002 void * foo(void) { return &h_errlist; }
22011 if ac_fn_c_try_link "$LINENO"; then :
22012 ac_cv_var_h_errlist=yes
22014 ac_cv_var_h_errlist=no
22016 rm -f core conftest.err conftest.$ac_objext \
22017 conftest$ac_exeext conftest.$ac_ext
22018 if test "$ac_cv_var_h_errlist" != yes ; then
22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22021 #ifdef HAVE_NETDB_H
22024 #ifdef HAVE_WS2TCPIP_H
22025 #include <ws2tcpip.h>
22027 extern int h_errlist;
22028 int foo(void) { return h_errlist; }
22037 if ac_fn_c_try_link "$LINENO"; then :
22038 ac_cv_var_h_errlist=yes
22040 ac_cv_var_h_errlist=no
22042 rm -f core conftest.err conftest.$ac_objext \
22043 conftest$ac_exeext conftest.$ac_ext
22048 ac_foo=`eval echo \\$ac_cv_var_h_errlist`
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22050 $as_echo "$ac_foo" >&6; }
22051 if test "$ac_foo" = yes; then
22053 cat >>confdefs.h <<_ACEOF
22054 #define HAVE_H_ERRLIST 1
22057 ac_fn_c_check_decl "$LINENO" "h_errlist" "ac_cv_have_decl_h_errlist" "#ifdef HAVE_NETDB_H
22060 #ifdef HAVE_WS2TCPIP_H
22061 #include <ws2tcpip.h>
22064 if test "x$ac_cv_have_decl_h_errlist" = x""yes; then :
22070 cat >>confdefs.h <<_ACEOF
22071 #define HAVE_DECL_H_ERRLIST $ac_have_decl
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_nerr" >&5
22079 $as_echo_n "checking for h_nerr... " >&6; }
22080 if test "${ac_cv_var_h_nerr+set}" = set; then :
22081 $as_echo_n "(cached) " >&6
22085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22086 /* end confdefs.h. */
22087 #ifdef HAVE_NETDB_H
22090 #ifdef HAVE_WS2TCPIP_H
22091 #include <ws2tcpip.h>
22093 void * foo(void) { return &h_nerr; }
22102 if ac_fn_c_try_link "$LINENO"; then :
22103 ac_cv_var_h_nerr=yes
22105 ac_cv_var_h_nerr=no
22107 rm -f core conftest.err conftest.$ac_objext \
22108 conftest$ac_exeext conftest.$ac_ext
22109 if test "$ac_cv_var_h_nerr" != yes ; then
22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22112 #ifdef HAVE_NETDB_H
22115 #ifdef HAVE_WS2TCPIP_H
22116 #include <ws2tcpip.h>
22119 int foo(void) { return h_nerr; }
22128 if ac_fn_c_try_link "$LINENO"; then :
22129 ac_cv_var_h_nerr=yes
22131 ac_cv_var_h_nerr=no
22133 rm -f core conftest.err conftest.$ac_objext \
22134 conftest$ac_exeext conftest.$ac_ext
22139 ac_foo=`eval echo \\$ac_cv_var_h_nerr`
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22141 $as_echo "$ac_foo" >&6; }
22142 if test "$ac_foo" = yes; then
22144 cat >>confdefs.h <<_ACEOF
22145 #define HAVE_H_NERR 1
22148 ac_fn_c_check_decl "$LINENO" "h_nerr" "ac_cv_have_decl_h_nerr" "#ifdef HAVE_NETDB_H
22151 #ifdef HAVE_WS2TCPIP_H
22152 #include <ws2tcpip.h>
22155 if test "x$ac_cv_have_decl_h_nerr" = x""yes; then :
22161 cat >>confdefs.h <<_ACEOF
22162 #define HAVE_DECL_H_NERR $ac_have_decl
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
22170 $as_echo_n "checking for __progname... " >&6; }
22171 if test "${ac_cv_var___progname+set}" = set; then :
22172 $as_echo_n "(cached) " >&6
22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177 /* end confdefs.h. */
22181 void * foo(void) { return &__progname; }
22190 if ac_fn_c_try_link "$LINENO"; then :
22191 ac_cv_var___progname=yes
22193 ac_cv_var___progname=no
22195 rm -f core conftest.err conftest.$ac_objext \
22196 conftest$ac_exeext conftest.$ac_ext
22197 if test "$ac_cv_var___progname" != yes ; then
22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h. */
22203 extern int __progname;
22204 int foo(void) { return __progname; }
22213 if ac_fn_c_try_link "$LINENO"; then :
22214 ac_cv_var___progname=yes
22216 ac_cv_var___progname=no
22218 rm -f core conftest.err conftest.$ac_objext \
22219 conftest$ac_exeext conftest.$ac_ext
22224 ac_foo=`eval echo \\$ac_cv_var___progname`
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22226 $as_echo "$ac_foo" >&6; }
22227 if test "$ac_foo" = yes; then
22229 cat >>confdefs.h <<_ACEOF
22230 #define HAVE___PROGNAME 1
22233 ac_fn_c_check_decl "$LINENO" "__progname" "ac_cv_have_decl___progname" "#ifdef HAVE_ERR_H
22237 if test "x$ac_cv_have_decl___progname" = x""yes; then :
22243 cat >>confdefs.h <<_ACEOF
22244 #define HAVE_DECL___PROGNAME $ac_have_decl
22250 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "
22251 #include <stdlib.h>
22252 #ifdef HAVE_UNISTD_H
22253 #include <unistd.h>
22256 if test "x$ac_cv_have_decl_optarg" = x""yes; then :
22262 cat >>confdefs.h <<_ACEOF
22263 #define HAVE_DECL_OPTARG $ac_have_decl
22265 ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
22266 #include <stdlib.h>
22267 #ifdef HAVE_UNISTD_H
22268 #include <unistd.h>
22271 if test "x$ac_cv_have_decl_optind" = x""yes; then :
22277 cat >>confdefs.h <<_ACEOF
22278 #define HAVE_DECL_OPTIND $ac_have_decl
22280 ac_fn_c_check_decl "$LINENO" "opterr" "ac_cv_have_decl_opterr" "
22281 #include <stdlib.h>
22282 #ifdef HAVE_UNISTD_H
22283 #include <unistd.h>
22286 if test "x$ac_cv_have_decl_opterr" = x""yes; then :
22292 cat >>confdefs.h <<_ACEOF
22293 #define HAVE_DECL_OPTERR $ac_have_decl
22295 ac_fn_c_check_decl "$LINENO" "optopt" "ac_cv_have_decl_optopt" "
22296 #include <stdlib.h>
22297 #ifdef HAVE_UNISTD_H
22298 #include <unistd.h>
22301 if test "x$ac_cv_have_decl_optopt" = x""yes; then :
22307 cat >>confdefs.h <<_ACEOF
22308 #define HAVE_DECL_OPTOPT $ac_have_decl
22310 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "
22311 #include <stdlib.h>
22312 #ifdef HAVE_UNISTD_H
22313 #include <unistd.h>
22316 if test "x$ac_cv_have_decl_environ" = x""yes; then :
22322 cat >>confdefs.h <<_ACEOF
22323 #define HAVE_DECL_ENVIRON $ac_have_decl
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
22331 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
22332 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then :
22333 $as_echo_n "(cached) " >&6
22336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22337 /* end confdefs.h. */
22342 struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff
22347 if ac_fn_c_try_compile "$LINENO"; then :
22348 ac_cv_type_struct_tm_tm_gmtoff=yes
22350 ac_cv_type_struct_tm_tm_gmtoff=no
22352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
22356 $as_echo "$ac_cv_type_struct_tm_tm_gmtoff" >&6; }
22357 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
22360 $as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
22369 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
22370 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then :
22371 $as_echo_n "(cached) " >&6
22374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22375 /* end confdefs.h. */
22380 struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone
22385 if ac_fn_c_try_compile "$LINENO"; then :
22386 ac_cv_type_struct_tm_tm_zone=yes
22388 ac_cv_type_struct_tm_tm_zone=no
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_zone" >&5
22394 $as_echo "$ac_cv_type_struct_tm_tm_zone" >&6; }
22395 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
22398 $as_echo "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
22408 $as_echo_n "checking for timezone... " >&6; }
22409 if test "${ac_cv_var_timezone+set}" = set; then :
22410 $as_echo_n "(cached) " >&6
22414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22415 /* end confdefs.h. */
22417 void * foo(void) { return &timezone; }
22426 if ac_fn_c_try_link "$LINENO"; then :
22427 ac_cv_var_timezone=yes
22429 ac_cv_var_timezone=no
22431 rm -f core conftest.err conftest.$ac_objext \
22432 conftest$ac_exeext conftest.$ac_ext
22433 if test "$ac_cv_var_timezone" != yes ; then
22434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22435 /* end confdefs.h. */
22437 extern int timezone;
22438 int foo(void) { return timezone; }
22447 if ac_fn_c_try_link "$LINENO"; then :
22448 ac_cv_var_timezone=yes
22450 ac_cv_var_timezone=no
22452 rm -f core conftest.err conftest.$ac_objext \
22453 conftest$ac_exeext conftest.$ac_ext
22458 ac_foo=`eval echo \\$ac_cv_var_timezone`
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22460 $as_echo "$ac_foo" >&6; }
22461 if test "$ac_foo" = yes; then
22463 cat >>confdefs.h <<_ACEOF
22464 #define HAVE_TIMEZONE 1
22467 ac_fn_c_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" "#include <time.h>
22469 if test "x$ac_cv_have_decl_timezone" = x""yes; then :
22475 cat >>confdefs.h <<_ACEOF
22476 #define HAVE_DECL_TIMEZONE $ac_have_decl
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone" >&5
22483 $as_echo_n "checking for altzone... " >&6; }
22484 if test "${ac_cv_var_altzone+set}" = set; then :
22485 $as_echo_n "(cached) " >&6
22489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22490 /* end confdefs.h. */
22492 void * foo(void) { return &altzone; }
22501 if ac_fn_c_try_link "$LINENO"; then :
22502 ac_cv_var_altzone=yes
22504 ac_cv_var_altzone=no
22506 rm -f core conftest.err conftest.$ac_objext \
22507 conftest$ac_exeext conftest.$ac_ext
22508 if test "$ac_cv_var_altzone" != yes ; then
22509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22510 /* end confdefs.h. */
22512 extern int altzone;
22513 int foo(void) { return altzone; }
22522 if ac_fn_c_try_link "$LINENO"; then :
22523 ac_cv_var_altzone=yes
22525 ac_cv_var_altzone=no
22527 rm -f core conftest.err conftest.$ac_objext \
22528 conftest$ac_exeext conftest.$ac_ext
22533 ac_foo=`eval echo \\$ac_cv_var_altzone`
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22535 $as_echo "$ac_foo" >&6; }
22536 if test "$ac_foo" = yes; then
22538 cat >>confdefs.h <<_ACEOF
22539 #define HAVE_ALTZONE 1
22542 ac_fn_c_check_decl "$LINENO" "altzone" "ac_cv_have_decl_altzone" "#include <time.h>
22544 if test "x$ac_cv_have_decl_altzone" = x""yes; then :
22550 cat >>confdefs.h <<_ACEOF
22551 #define HAVE_DECL_ALTZONE $ac_have_decl
22559 cv=`echo "sa_family_t" |
sed 'y%./+- %__p__%'`
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
22561 $as_echo_n "checking for sa_family_t... " >&6; }
22562 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22563 $as_echo_n "(cached) " >&6
22565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22566 /* end confdefs.h. */
22568 #include <sys/types.h>
22570 #include <stdlib.h>
22571 #include <stddef.h>
22574 #include <sys/types.h>
22575 #ifdef HAVE_SYS_SOCKET_H
22576 #include <sys/socket.h>
22578 #ifdef HAVE_WS2TCPIP_H
22579 #include <ws2tcpip.h>
22589 if ac_fn_c_try_compile "$LINENO"; then :
22590 eval "ac_cv_type_$cv=yes"
22592 eval "ac_cv_type_$cv=no"
22594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22596 ac_foo=`eval echo \\$ac_cv_type_$cv`
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22598 $as_echo "$ac_foo" >&6; }
22599 if test "$ac_foo" = yes; then
22600 ac_tr_hdr=HAVE_`echo sa_family_t |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22602 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "$ac_includes_default"
22603 if test "x$ac_cv_type_sa_family_t" = x""yes; then :
22605 cat >>confdefs.h <<_ACEOF
22606 #define HAVE_SA_FAMILY_T 1
22614 cat >>confdefs.h <<_ACEOF
22615 #define $ac_tr_hdr 1
22622 cv=`echo "socklen_t" |
sed 'y%./+- %__p__%'`
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
22624 $as_echo_n "checking for socklen_t... " >&6; }
22625 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22626 $as_echo_n "(cached) " >&6
22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629 /* end confdefs.h. */
22631 #include <sys/types.h>
22633 #include <stdlib.h>
22634 #include <stddef.h>
22637 #include <sys/types.h>
22638 #ifdef HAVE_SYS_SOCKET_H
22639 #include <sys/socket.h>
22641 #ifdef HAVE_WS2TCPIP_H
22642 #include <ws2tcpip.h>
22652 if ac_fn_c_try_compile "$LINENO"; then :
22653 eval "ac_cv_type_$cv=yes"
22655 eval "ac_cv_type_$cv=no"
22657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22659 ac_foo=`eval echo \\$ac_cv_type_$cv`
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22661 $as_echo "$ac_foo" >&6; }
22662 if test "$ac_foo" = yes; then
22663 ac_tr_hdr=HAVE_`echo socklen_t |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22665 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default"
22666 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22668 cat >>confdefs.h <<_ACEOF
22669 #define HAVE_SOCKLEN_T 1
22677 cat >>confdefs.h <<_ACEOF
22678 #define $ac_tr_hdr 1
22685 cv=`echo "struct sockaddr" |
sed 'y%./+- %__p__%'`
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr" >&5
22687 $as_echo_n "checking for struct sockaddr... " >&6; }
22688 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22689 $as_echo_n "(cached) " >&6
22691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22692 /* end confdefs.h. */
22694 #include <sys/types.h>
22696 #include <stdlib.h>
22697 #include <stddef.h>
22700 #include <sys/types.h>
22701 #ifdef HAVE_SYS_SOCKET_H
22702 #include <sys/socket.h>
22704 #ifdef HAVE_WS2TCPIP_H
22705 #include <ws2tcpip.h>
22710 struct sockaddr foo;
22715 if ac_fn_c_try_compile "$LINENO"; then :
22716 eval "ac_cv_type_$cv=yes"
22718 eval "ac_cv_type_$cv=no"
22720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22722 ac_foo=`eval echo \\$ac_cv_type_$cv`
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22724 $as_echo "$ac_foo" >&6; }
22725 if test "$ac_foo" = yes; then
22726 ac_tr_hdr=HAVE_`echo struct sockaddr |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22728 ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "$ac_includes_default"
22729 if test "x$ac_cv_type_struct_sockaddr" = x""yes; then :
22731 cat >>confdefs.h <<_ACEOF
22732 #define HAVE_STRUCT_SOCKADDR 1
22740 cat >>confdefs.h <<_ACEOF
22741 #define $ac_tr_hdr 1
22748 cv=`echo "struct sockaddr_storage" |
sed 'y%./+- %__p__%'`
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
22750 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
22751 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22752 $as_echo_n "(cached) " >&6
22754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22755 /* end confdefs.h. */
22757 #include <sys/types.h>
22759 #include <stdlib.h>
22760 #include <stddef.h>
22763 #include <sys/types.h>
22764 #ifdef HAVE_SYS_SOCKET_H
22765 #include <sys/socket.h>
22767 #ifdef HAVE_WS2TCPIP_H
22768 #include <ws2tcpip.h>
22773 struct sockaddr_storage foo;
22778 if ac_fn_c_try_compile "$LINENO"; then :
22779 eval "ac_cv_type_$cv=yes"
22781 eval "ac_cv_type_$cv=no"
22783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 ac_foo=`eval echo \\$ac_cv_type_$cv`
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22787 $as_echo "$ac_foo" >&6; }
22788 if test "$ac_foo" = yes; then
22789 ac_tr_hdr=HAVE_`echo struct sockaddr_storage |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22791 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
22792 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
22794 cat >>confdefs.h <<_ACEOF
22795 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22803 cat >>confdefs.h <<_ACEOF
22804 #define $ac_tr_hdr 1
22811 cv=`echo "struct addrinfo" |
sed 'y%./+- %__p__%'`
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
22813 $as_echo_n "checking for struct addrinfo... " >&6; }
22814 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22815 $as_echo_n "(cached) " >&6
22817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22818 /* end confdefs.h. */
22820 #include <sys/types.h>
22822 #include <stdlib.h>
22823 #include <stddef.h>
22826 #include <sys/types.h>
22827 #ifdef HAVE_NETDB_H
22830 #ifdef HAVE_WS2TCPIP_H
22831 #include <ws2tcpip.h>
22836 struct addrinfo foo;
22841 if ac_fn_c_try_compile "$LINENO"; then :
22842 eval "ac_cv_type_$cv=yes"
22844 eval "ac_cv_type_$cv=no"
22846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22848 ac_foo=`eval echo \\$ac_cv_type_$cv`
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22850 $as_echo "$ac_foo" >&6; }
22851 if test "$ac_foo" = yes; then
22852 ac_tr_hdr=HAVE_`echo struct addrinfo |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22854 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default"
22855 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
22857 cat >>confdefs.h <<_ACEOF
22858 #define HAVE_STRUCT_ADDRINFO 1
22866 cat >>confdefs.h <<_ACEOF
22867 #define $ac_tr_hdr 1
22874 cv=`echo "struct ifaddrs" |
sed 'y%./+- %__p__%'`
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ifaddrs" >&5
22876 $as_echo_n "checking for struct ifaddrs... " >&6; }
22877 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22878 $as_echo_n "(cached) " >&6
22880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881 /* end confdefs.h. */
22883 #include <sys/types.h>
22885 #include <stdlib.h>
22886 #include <stddef.h>
22888 #include <ifaddrs.h>
22892 struct ifaddrs foo;
22897 if ac_fn_c_try_compile "$LINENO"; then :
22898 eval "ac_cv_type_$cv=yes"
22900 eval "ac_cv_type_$cv=no"
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 ac_foo=`eval echo \\$ac_cv_type_$cv`
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22906 $as_echo "$ac_foo" >&6; }
22907 if test "$ac_foo" = yes; then
22908 ac_tr_hdr=HAVE_`echo struct ifaddrs |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22910 ac_fn_c_check_type "$LINENO" "struct ifaddrs" "ac_cv_type_struct_ifaddrs" "$ac_includes_default"
22911 if test "x$ac_cv_type_struct_ifaddrs" = x""yes; then :
22913 cat >>confdefs.h <<_ACEOF
22914 #define HAVE_STRUCT_IFADDRS 1
22922 cat >>confdefs.h <<_ACEOF
22923 #define $ac_tr_hdr 1
22930 cv=`echo "struct iovec" |
sed 'y%./+- %__p__%'`
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct iovec" >&5
22932 $as_echo_n "checking for struct iovec... " >&6; }
22933 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22934 $as_echo_n "(cached) " >&6
22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22939 #include <sys/types.h>
22941 #include <stdlib.h>
22942 #include <stddef.h>
22945 #include <sys/types.h>
22946 #include <sys/uio.h>
22956 if ac_fn_c_try_compile "$LINENO"; then :
22957 eval "ac_cv_type_$cv=yes"
22959 eval "ac_cv_type_$cv=no"
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963 ac_foo=`eval echo \\$ac_cv_type_$cv`
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22965 $as_echo "$ac_foo" >&6; }
22966 if test "$ac_foo" = yes; then
22967 ac_tr_hdr=HAVE_`echo struct iovec |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22969 ac_fn_c_check_type "$LINENO" "struct iovec" "ac_cv_type_struct_iovec" "$ac_includes_default"
22970 if test "x$ac_cv_type_struct_iovec" = x""yes; then :
22972 cat >>confdefs.h <<_ACEOF
22973 #define HAVE_STRUCT_IOVEC 1
22981 cat >>confdefs.h <<_ACEOF
22982 #define $ac_tr_hdr 1
22989 cv=`echo "struct msghdr" |
sed 'y%./+- %__p__%'`
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr" >&5
22991 $as_echo_n "checking for struct msghdr... " >&6; }
22992 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22993 $as_echo_n "(cached) " >&6
22995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996 /* end confdefs.h. */
22998 #include <sys/types.h>
23000 #include <stdlib.h>
23001 #include <stddef.h>
23004 #include <sys/types.h>
23005 #ifdef HAVE_SYS_SOCKET_H
23006 #include <sys/socket.h>
23008 #ifdef HAVE_WS2TCPIP_H
23009 #include <ws2tcpip.h>
23019 if ac_fn_c_try_compile "$LINENO"; then :
23020 eval "ac_cv_type_$cv=yes"
23022 eval "ac_cv_type_$cv=no"
23024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 ac_foo=`eval echo \\$ac_cv_type_$cv`
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
23028 $as_echo "$ac_foo" >&6; }
23029 if test "$ac_foo" = yes; then
23030 ac_tr_hdr=HAVE_`echo struct msghdr |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23032 ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "$ac_includes_default"
23033 if test "x$ac_cv_type_struct_msghdr" = x""yes; then :
23035 cat >>confdefs.h <<_ACEOF
23036 #define HAVE_STRUCT_MSGHDR 1
23044 cat >>confdefs.h <<_ACEOF
23045 #define $ac_tr_hdr 1
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize" >&5
23054 $as_echo_n "checking for struct winsize... " >&6; }
23055 if test "${ac_cv_struct_winsize+set}" = set; then :
23056 $as_echo_n "(cached) " >&6
23059 ac_cv_struct_winsize=no
23060 for i in sys/termios.h sys/ioctl.h; do
23061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23062 /* end confdefs.h. */
23066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23067 $EGREP "struct[ ]*winsize" >/dev/null 2>&1; then :
23068 ac_cv_struct_winsize=yes; break
23075 if test "$ac_cv_struct_winsize" = "yes"; then
23077 $as_echo "#define HAVE_STRUCT_WINSIZE 1" >>confdefs.h
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_winsize" >&5
23081 $as_echo "$ac_cv_struct_winsize" >&6; }
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23084 #include <termios.h>
23087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23088 $EGREP "ws_xpixel" >/dev/null 2>&1; then :
23090 $as_echo "#define HAVE_WS_XPIXEL 1" >>confdefs.h
23095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23096 /* end confdefs.h. */
23097 #include <termios.h>
23100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23101 $EGREP "ws_ypixel" >/dev/null 2>&1; then :
23103 $as_echo "#define HAVE_WS_YPIXEL 1" >>confdefs.h
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct spwd" >&5
23113 $as_echo_n "checking for struct spwd... " >&6; }
23114 if test "${ac_cv_struct_spwd+set}" = set; then :
23115 $as_echo_n "(cached) " >&6
23118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23119 /* end confdefs.h. */
23122 #ifdef HAVE_SHADOW_H
23123 #include <shadow.h>
23133 if ac_fn_c_try_compile "$LINENO"; then :
23134 ac_cv_struct_spwd=yes
23136 ac_cv_struct_spwd=no
23138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_spwd" >&5
23143 $as_echo "$ac_cv_struct_spwd" >&6; }
23145 if test "$ac_cv_struct_spwd" = "yes"; then
23147 $as_echo "#define HAVE_STRUCT_SPWD 1" >>confdefs.h
23153 # Check if we want samba's socket wrapper
23158 # Check whether --enable-socket-wrapper was given.
23159 if test "${enable_socket_wrapper+set}" = set; then :
23160 enableval=$enable_socket_wrapper;
23164 if test "x$enable_socket_wrapper" = xyes; then
23165 have_socket_wrapper_TRUE=
23166 have_socket_wrapper_FALSE='#'
23168 have_socket_wrapper_TRUE='#'
23169 have_socket_wrapper_FALSE=
23172 if test "x$enable_socket_wrapper" = xyes ; then
23174 $as_echo "#define SOCKET_WRAPPER_REPLACE 1" >>confdefs.h
23181 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
23184 LIBADD_roken="$LIB_roken"
23185 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
23188 # Check whether --enable-otp was given.
23189 if test "${enable_otp+set}" = set; then :
23190 enableval=$enable_otp;
23193 if test "$enable_otp" = yes -a "$db_type" = unknown; then
23194 as_fn_error "OTP requires a NDBM/DB compatible library" "$LINENO" 5
23196 if test "$enable_otp" != no; then
23197 if test "$db_type" != unknown; then
23203 if test "$enable_otp" = yes; then
23205 $as_echo "#define OTP 1" >>confdefs.h
23207 LIB_otp='$(top_builddir)/lib/otp/libotp.la'
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OTP library" >&5
23211 $as_echo_n "checking whether to enable OTP library... " >&6; }
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_otp" >&5
23213 $as_echo "$enable_otp" >&6; }
23214 if test "$enable_otp" = yes; then
23225 for ac_header in dispatch/dispatch.h
23227 ac_fn_c_check_header_mongrel "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default"
23228 if test "x$ac_cv_header_dispatch_dispatch_h" = x""yes; then :
23229 cat >>confdefs.h <<_ACEOF
23230 #define HAVE_DISPATCH_DISPATCH_H 1
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dispatch_async_f" >&5
23242 $as_echo_n "checking for dispatch_async_f... " >&6; }
23243 if test "${ac_cv_funclib_dispatch_async_f+set}" = set; then :
23244 $as_echo_n "(cached) " >&6
23247 if eval "test \"\$ac_cv_func_dispatch_async_f\" != yes" ; then
23248 ac_save_LIBS="$LIBS"
23249 for ac_lib in "" dispatch; do
23255 *) ac_lib="-l$ac_lib" ;;
23257 LIBS=" $ac_lib $ac_save_LIBS"
23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259 /* end confdefs.h. */
23260 #ifdef HAVE_DISPATCH_DISPATCH_H
23261 #include <dispatch/dispatch.h>
23266 dispatch_async_f(0,0,0)
23271 if ac_fn_c_try_link "$LINENO"; then :
23272 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dispatch_async_f=$ac_lib; else ac_cv_funclib_dispatch_async_f=yes; fi";break
23274 rm -f core conftest.err conftest.$ac_objext \
23275 conftest$ac_exeext conftest.$ac_ext
23277 eval "ac_cv_funclib_dispatch_async_f=\${ac_cv_funclib_dispatch_async_f-no}"
23278 LIBS="$ac_save_LIBS"
23284 eval "ac_res=\$ac_cv_funclib_dispatch_async_f"
23287 for ac_func in dispatch_async_f
23289 ac_fn_c_check_func "$LINENO" "dispatch_async_f" "ac_cv_func_dispatch_async_f"
23290 if test "x$ac_cv_func_dispatch_async_f" = x""yes; then :
23291 cat >>confdefs.h <<_ACEOF
23292 #define HAVE_DISPATCH_ASYNC_F 1
23300 eval "ac_tr_func=HAVE_`echo dispatch_async_f |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
23301 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
23302 eval "LIB_dispatch_async_f=$ac_res"
23306 eval "ac_cv_func_dispatch_async_f=yes"
23307 eval "LIB_dispatch_async_f="
23308 cat >>confdefs.h <<_ACEOF
23309 #define $ac_tr_func 1
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23313 $as_echo "yes" >&6; }
23316 eval "ac_cv_func_dispatch_async_f=no"
23317 eval "LIB_dispatch_async_f="
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23319 $as_echo "no" >&6; }
23322 eval "ac_cv_func_dispatch_async_f=yes"
23323 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
23324 cat >>confdefs.h <<_ACEOF
23325 #define $ac_tr_func 1
23328 cat >>confdefs.h <<_ACEOF
23329 #define $ac_tr_lib 1
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
23333 $as_echo "yes, in $ac_res" >&6; }
23339 if test "$ac_cv_func_dispatch_async_f" = yes ; then
23341 $as_echo "#define HAVE_GCD 1" >>confdefs.h
23348 if test "$libdispatch" = yes; then
23360 # Check whether --enable-osfc2 was given.
23361 if test "${enable_osfc2+set}" = set; then :
23362 enableval=$enable_osfc2;
23366 if test "$enable_osfc2" = yes; then
23368 $as_echo "#define HAVE_OSFC2 1" >>confdefs.h
23370 LIB_security=-lsecurity
23375 # Check whether --enable-mmap was given.
23376 if test "${enable_mmap+set}" = set; then :
23377 enableval=$enable_mmap;
23380 if test "$enable_mmap" = "no"; then
23382 $as_echo "#define NO_MMAP 1" >>confdefs.h
23386 # Check whether --enable-afs-string-to-key was given.
23387 if test "${enable_afs_string_to_key+set}" = set; then :
23388 enableval=$enable_afs_string_to_key;
23390 enable_afs_string_to_key=yes
23394 if test "$enable_afs_string_to_key" = "yes"; then
23396 $as_echo "#define ENABLE_AFS_STRING_TO_KEY 1" >>confdefs.h
23401 # Extract the first word of "nroff", so it can be a program name with args.
23402 set dummy nroff; ac_word=$2
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23404 $as_echo_n "checking for $ac_word... " >&6; }
23405 if test "${ac_cv_path_NROFF+set}" = set; then :
23406 $as_echo_n "(cached) " >&6
23410 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
23413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23414 for as_dir in $PATH
23417 test -z "$as_dir" && as_dir=.
23418 for ac_exec_ext in '' $ac_executable_extensions; do
23419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23420 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
23421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23431 NROFF=$ac_cv_path_NROFF
23432 if test -n "$NROFF"; then
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
23434 $as_echo "$NROFF" >&6; }
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23437 $as_echo "no" >&6; }
23441 # Extract the first word of "groff", so it can be a program name with args.
23442 set dummy groff; ac_word=$2
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23444 $as_echo_n "checking for $ac_word... " >&6; }
23445 if test "${ac_cv_path_GROFF+set}" = set; then :
23446 $as_echo_n "(cached) " >&6
23450 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
23453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23454 for as_dir in $PATH
23457 test -z "$as_dir" && as_dir=.
23458 for ac_exec_ext in '' $ac_executable_extensions; do
23459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23460 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
23461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23471 GROFF=$ac_cv_path_GROFF
23472 if test -n "$GROFF"; then
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
23474 $as_echo "$GROFF" >&6; }
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23477 $as_echo "no" >&6; }
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to format man pages" >&5
23482 $as_echo_n "checking how to format man pages... " >&6; }
23483 if test "${ac_cv_sys_man_format+set}" = set; then :
23484 $as_echo_n "(cached) " >&6
23486 cat > conftest.1 << END
23487 .Dd January 1, 1970
23494 if test "$NROFF" ; then
23495 for i in "-mdoc" "-mandoc"; do
23496 if "$NROFF" $i conftest.1 2> /dev/null | \
23497 grep Jan > /dev/null 2>&1 ; then
23498 ac_cv_sys_man_format="$NROFF $i"
23503 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
23504 for i in "-mdoc" "-mandoc"; do
23505 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
23506 grep Jan > /dev/null 2>&1 ; then
23507 ac_cv_sys_man_format="$GROFF -Tascii $i"
23512 if test "$ac_cv_sys_man_format"; then
23513 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_man_format" >&5
23518 $as_echo "$ac_cv_sys_man_format" >&6; }
23519 if test "$ac_cv_sys_man_format"; then
23520 CATMAN="$ac_cv_sys_man_format"
23523 if test "$CATMAN"; then
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking extension of pre-formatted manual pages" >&5
23532 $as_echo_n "checking extension of pre-formatted manual pages... " >&6; }
23533 if test "${ac_cv_sys_catman_ext+set}" = set; then :
23534 $as_echo_n "(cached) " >&6
23536 if grep _suffix /etc/man.conf > /dev/null 2>&1; then
23537 ac_cv_sys_catman_ext=0
23539 ac_cv_sys_catman_ext=number
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_catman_ext" >&5
23544 $as_echo "$ac_cv_sys_catman_ext" >&6; }
23545 if test "$ac_cv_sys_catman_ext" = number; then
23546 CATMANEXT='$$section'
23555 # Check whether --with-readline was given.
23556 if test "${with_readline+set}" = set; then :
23557 withval=$with_readline;
23561 # Check whether --with-readline-lib was given.
23562 if test "${with_readline_lib+set}" = set; then :
23563 withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
23564 as_fn_error "No argument for --with-readline-lib" "$LINENO" 5
23565 elif test "X$with_readline" = "X"; then
23571 # Check whether --with-readline-include was given.
23572 if test "${with_readline_include+set}" = set; then :
23573 withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then
23574 as_fn_error "No argument for --with-readline-include" "$LINENO" 5
23575 elif test "X$with_readline" = "X"; then
23581 # Check whether --with-readline-config was given.
23582 if test "${with_readline_config+set}" = set; then :
23583 withval=$with_readline_config;
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
23590 $as_echo_n "checking for readline... " >&6; }
23592 case "$with_readline" in
23595 *) d="$with_readline" ;;
23601 if test "$with_readline_include" = ""; then
23602 if test -d "$i/include/readline"; then
23603 header_dirs="$header_dirs $i/include/readline"
23605 if test -d "$i/include"; then
23606 header_dirs="$header_dirs $i/include"
23609 if test "$with_readline_lib" = ""; then
23610 if test -d "$i/lib$abilibdirext"; then
23611 lib_dirs="$lib_dirs $i/lib$abilibdirext"
23616 if test "$with_readline_include"; then
23617 header_dirs="$with_readline_include $header_dirs"
23619 if test "$with_readline_lib"; then
23620 lib_dirs="$with_readline_lib $lib_dirs"
23623 if test "$with_readline_config" = ""; then
23624 with_readline_config=''
23630 case "$with_readline_config" in
23632 if test -f $with_readline/bin/ ; then
23633 with_readline_config=$with_readline/bin/
23638 case "$with_readline_config" in
23642 readline_cflags="`$with_readline_config --cflags 2>&1`"
23643 readline_libs="`$with_readline_config --libs 2>&1`"
23648 if test "$with_readline" != no; then
23649 save_CFLAGS="$CFLAGS"
23651 if test "$readline_cflags" -a "$readline_libs"; then
23652 CFLAGS="$readline_cflags $save_CFLAGS"
23653 LIBS="$readline_libs $save_LIBS"
23654 for ac_header in readline.h readline/readline.h
23656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23657 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23658 eval as_val=\$$as_ac_Header
23659 if test "x$as_val" = x""yes; then :
23660 cat >>confdefs.h <<_ACEOF
23661 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23669 /* end confdefs.h. */
23671 #if defined(HAVE_READLINE_READLINE_H)
23672 #include <readline/readline.h>
23673 #elif defined(HAVE_READLINE_H)
23674 #include <readline.h>
23685 if ac_fn_c_try_link "$LINENO"; then :
23687 INCLUDE_readline="$readline_cflags"
23688 LIB_readline="$readline_libs"
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_readline_config" >&5
23690 $as_echo "from $with_readline_config" >&6; }
23693 rm -f core conftest.err conftest.$ac_objext \
23694 conftest$ac_exeext conftest.$ac_ext
23696 if test "$found" = no; then
23698 for i in $header_dirs; do
23699 CFLAGS="-I$i $save_CFLAGS"
23700 for ac_header in readline.h readline/readline.h
23702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23703 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23704 eval as_val=\$$as_ac_Header
23705 if test "x$as_val" = x""yes; then :
23706 cat >>confdefs.h <<_ACEOF
23707 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23715 /* end confdefs.h. */
23717 #if defined(HAVE_READLINE_READLINE_H)
23718 #include <readline/readline.h>
23719 #elif defined(HAVE_READLINE_H)
23720 #include <readline.h>
23731 if ac_fn_c_try_compile "$LINENO"; then :
23734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23736 for i in $lib_dirs; do
23737 LIBS="-L$i -lreadline $save_LIBS"
23738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23739 /* end confdefs.h. */
23741 #if defined(HAVE_READLINE_READLINE_H)
23742 #include <readline/readline.h>
23743 #elif defined(HAVE_READLINE_H)
23744 #include <readline.h>
23755 if ac_fn_c_try_link "$LINENO"; then :
23758 rm -f core conftest.err conftest.$ac_objext \
23759 conftest$ac_exeext conftest.$ac_ext
23761 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
23762 INCLUDE_readline="-I$ires"
23763 LIB_readline="-L$lres -lreadline "
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
23766 $as_echo "headers $ires, libraries $lres" >&6; }
23769 CFLAGS="$save_CFLAGS"
23773 if test "$found" = yes; then
23775 cat >>confdefs.h <<_ACEOF
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23785 $as_echo "no" >&6; }
23794 # Check whether --with-libedit was given.
23795 if test "${with_libedit+set}" = set; then :
23796 withval=$with_libedit;
23800 # Check whether --with-libedit-lib was given.
23801 if test "${with_libedit_lib+set}" = set; then :
23802 withval=$with_libedit_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
23803 as_fn_error "No argument for --with-libedit-lib" "$LINENO" 5
23804 elif test "X$with_libedit" = "X"; then
23810 # Check whether --with-libedit-include was given.
23811 if test "${with_libedit_include+set}" = set; then :
23812 withval=$with_libedit_include; if test "$withval" = "yes" -o "$withval" = "no"; then
23813 as_fn_error "No argument for --with-libedit-include" "$LINENO" 5
23814 elif test "X$with_libedit" = "X"; then
23820 # Check whether --with-libedit-config was given.
23821 if test "${with_libedit_config+set}" = set; then :
23822 withval=$with_libedit_config;
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
23829 $as_echo_n "checking for libedit... " >&6; }
23831 case "$with_libedit" in
23834 *) d="$with_libedit" ;;
23840 if test "$with_libedit_include" = ""; then
23841 if test -d "$i/include/libedit"; then
23842 header_dirs="$header_dirs $i/include/libedit"
23844 if test -d "$i/include"; then
23845 header_dirs="$header_dirs $i/include"
23848 if test "$with_libedit_lib" = ""; then
23849 if test -d "$i/lib$abilibdirext"; then
23850 lib_dirs="$lib_dirs $i/lib$abilibdirext"
23855 if test "$with_libedit_include"; then
23856 header_dirs="$with_libedit_include $header_dirs"
23858 if test "$with_libedit_lib"; then
23859 lib_dirs="$with_libedit_lib $lib_dirs"
23862 if test "$with_libedit_config" = ""; then
23863 with_libedit_config=''
23869 case "$with_libedit_config" in
23871 if test -f $with_libedit/bin/ ; then
23872 with_libedit_config=$with_libedit/bin/
23877 case "$with_libedit_config" in
23881 libedit_cflags="`$with_libedit_config --cflags 2>&1`"
23882 libedit_libs="`$with_libedit_config --libs 2>&1`"
23887 if test "$with_libedit" != no; then
23888 save_CFLAGS="$CFLAGS"
23890 if test "$libedit_cflags" -a "$libedit_libs"; then
23891 CFLAGS="$libedit_cflags $save_CFLAGS"
23892 LIBS="$libedit_libs $save_LIBS"
23893 for ac_header in readline.h readline/readline.h
23895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23897 eval as_val=\$$as_ac_Header
23898 if test "x$as_val" = x""yes; then :
23899 cat >>confdefs.h <<_ACEOF
23900 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908 /* end confdefs.h. */
23910 #if defined(HAVE_READLINE_READLINE_H)
23911 #include <readline/readline.h>
23912 #elif defined(HAVE_READLINE_H)
23913 #include <readline.h>
23924 if ac_fn_c_try_link "$LINENO"; then :
23926 INCLUDE_libedit="$libedit_cflags"
23927 LIB_libedit="$libedit_libs"
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libedit_config" >&5
23929 $as_echo "from $with_libedit_config" >&6; }
23932 rm -f core conftest.err conftest.$ac_objext \
23933 conftest$ac_exeext conftest.$ac_ext
23935 if test "$found" = no; then
23937 for i in $header_dirs; do
23938 CFLAGS="-I$i $save_CFLAGS"
23939 for ac_header in readline.h readline/readline.h
23941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23942 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23943 eval as_val=\$$as_ac_Header
23944 if test "x$as_val" = x""yes; then :
23945 cat >>confdefs.h <<_ACEOF
23946 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23954 /* end confdefs.h. */
23956 #if defined(HAVE_READLINE_READLINE_H)
23957 #include <readline/readline.h>
23958 #elif defined(HAVE_READLINE_H)
23959 #include <readline.h>
23970 if ac_fn_c_try_compile "$LINENO"; then :
23973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23975 for i in $lib_dirs; do
23976 LIBS="-L$i -ledit $save_LIBS"
23977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23978 /* end confdefs.h. */
23980 #if defined(HAVE_READLINE_READLINE_H)
23981 #include <readline/readline.h>
23982 #elif defined(HAVE_READLINE_H)
23983 #include <readline.h>
23994 if ac_fn_c_try_link "$LINENO"; then :
23997 rm -f core conftest.err conftest.$ac_objext \
23998 conftest$ac_exeext conftest.$ac_ext
24000 if test "$ires" -a "$lres" -a "$with_libedit" != "no"; then
24001 INCLUDE_libedit="-I$ires"
24002 LIB_libedit="-L$lres -ledit "
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
24005 $as_echo "headers $ires, libraries $lres" >&6; }
24008 CFLAGS="$save_CFLAGS"
24012 if test "$found" = yes; then
24014 cat >>confdefs.h <<_ACEOF
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24024 $as_echo "no" >&6; }
24033 subdirs="$subdirs lib/libedit"
24038 # Check whether --with-hesiod was given.
24039 if test "${with_hesiod+set}" = set; then :
24040 withval=$with_hesiod;
24044 # Check whether --with-hesiod-lib was given.
24045 if test "${with_hesiod_lib+set}" = set; then :
24046 withval=$with_hesiod_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
24047 as_fn_error "No argument for --with-hesiod-lib" "$LINENO" 5
24048 elif test "X$with_hesiod" = "X"; then
24054 # Check whether --with-hesiod-include was given.
24055 if test "${with_hesiod_include+set}" = set; then :
24056 withval=$with_hesiod_include; if test "$withval" = "yes" -o "$withval" = "no"; then
24057 as_fn_error "No argument for --with-hesiod-include" "$LINENO" 5
24058 elif test "X$with_hesiod" = "X"; then
24064 # Check whether --with-hesiod-config was given.
24065 if test "${with_hesiod_config+set}" = set; then :
24066 withval=$with_hesiod_config;
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hesiod" >&5
24073 $as_echo_n "checking for hesiod... " >&6; }
24075 case "$with_hesiod" in
24078 *) d="$with_hesiod" ;;
24084 if test "$with_hesiod_include" = ""; then
24085 if test -d "$i/include/hesiod"; then
24086 header_dirs="$header_dirs $i/include/hesiod"
24088 if test -d "$i/include"; then
24089 header_dirs="$header_dirs $i/include"
24092 if test "$with_hesiod_lib" = ""; then
24093 if test -d "$i/lib$abilibdirext"; then
24094 lib_dirs="$lib_dirs $i/lib$abilibdirext"
24099 if test "$with_hesiod_include"; then
24100 header_dirs="$with_hesiod_include $header_dirs"
24102 if test "$with_hesiod_lib"; then
24103 lib_dirs="$with_hesiod_lib $lib_dirs"
24106 if test "$with_hesiod_config" = ""; then
24107 with_hesiod_config=''
24113 case "$with_hesiod_config" in
24115 if test -f $with_hesiod/bin/ ; then
24116 with_hesiod_config=$with_hesiod/bin/
24121 case "$with_hesiod_config" in
24125 hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
24126 hesiod_libs="`$with_hesiod_config --libs 2>&1`"
24131 if test "$with_hesiod" != no; then
24132 save_CFLAGS="$CFLAGS"
24134 if test "$hesiod_cflags" -a "$hesiod_libs"; then
24135 CFLAGS="$hesiod_cflags $save_CFLAGS"
24136 LIBS="$hesiod_libs $save_LIBS"
24138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24139 /* end confdefs.h. */
24140 #include <hesiod.h>
24149 if ac_fn_c_try_link "$LINENO"; then :
24151 INCLUDE_hesiod="$hesiod_cflags"
24152 LIB_hesiod="$hesiod_libs"
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_hesiod_config" >&5
24154 $as_echo "from $with_hesiod_config" >&6; }
24157 rm -f core conftest.err conftest.$ac_objext \
24158 conftest$ac_exeext conftest.$ac_ext
24160 if test "$found" = no; then
24162 for i in $header_dirs; do
24163 CFLAGS="-I$i $save_CFLAGS"
24165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24166 /* end confdefs.h. */
24167 #include <hesiod.h>
24176 if ac_fn_c_try_compile "$LINENO"; then :
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24181 for i in $lib_dirs; do
24182 LIBS="-L$i -lhesiod $save_LIBS"
24183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24184 /* end confdefs.h. */
24185 #include <hesiod.h>
24194 if ac_fn_c_try_link "$LINENO"; then :
24197 rm -f core conftest.err conftest.$ac_objext \
24198 conftest$ac_exeext conftest.$ac_ext
24200 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
24201 INCLUDE_hesiod="-I$ires"
24202 LIB_hesiod="-L$lres -lhesiod "
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
24205 $as_echo "headers $ires, libraries $lres" >&6; }
24208 CFLAGS="$save_CFLAGS"
24212 if test "$found" = yes; then
24214 cat >>confdefs.h <<_ACEOF
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24224 $as_echo "no" >&6; }
24232 # Check whether --enable-bigendian was given.
24233 if test "${enable_bigendian+set}" = set; then :
24234 enableval=$enable_bigendian; krb_cv_c_bigendian=yes
24237 # Check whether --enable-littleendian was given.
24238 if test "${enable_littleendian+set}" = set; then :
24239 enableval=$enable_littleendian; krb_cv_c_bigendian=no
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte order is known at compile time" >&5
24243 $as_echo_n "checking whether byte order is known at compile time... " >&6; }
24244 if test "${krb_cv_c_bigendian_compile+set}" = set; then :
24245 $as_echo_n "(cached) " >&6
24247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24248 /* end confdefs.h. */
24250 #include <sys/types.h>
24251 #include <sys/param.h>
24252 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24253 bogus endian macros
24256 if ac_fn_c_try_compile "$LINENO"; then :
24257 krb_cv_c_bigendian_compile=yes
24259 krb_cv_c_bigendian_compile=no
24261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian_compile" >&5
24264 $as_echo "$krb_cv_c_bigendian_compile" >&6; }
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24266 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24267 if test "${krb_cv_c_bigendian+set}" = set; then :
24268 $as_echo_n "(cached) " >&6
24271 if test "$krb_cv_c_bigendian_compile" = "yes"; then
24272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24273 /* end confdefs.h. */
24275 #include <sys/types.h>
24276 #include <sys/param.h>
24277 #if BYTE_ORDER != BIG_ENDIAN
24281 if ac_fn_c_try_compile "$LINENO"; then :
24282 krb_cv_c_bigendian=yes
24284 krb_cv_c_bigendian=no
24286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24288 if test "$cross_compiling" = yes; then :
24289 as_fn_error "specify either --enable-bigendian or --enable-littleendian" "$LINENO" 5
24291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24292 /* end confdefs.h. */
24293 main (int argc, char **argv) {
24294 /* Are we little or big endian? From Harbison&Steele. */
24298 char c[sizeof (long)];
24301 exit (u.c[sizeof (long) - 1] == 1);
24304 if ac_fn_c_try_run "$LINENO"; then :
24305 krb_cv_c_bigendian=no
24307 krb_cv_c_bigendian=yes
24309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24310 conftest.$ac_objext conftest.beam conftest.$ac_ext
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian" >&5
24317 $as_echo "$krb_cv_c_bigendian" >&6; }
24318 if test "$krb_cv_c_bigendian" = "yes"; then
24320 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24322 if test "$krb_cv_c_bigendian_compile" = "yes"; then
24324 $as_echo "#define ENDIANESS_IN_SYS_PARAM_H 1" >>confdefs.h
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24329 $as_echo_n "checking for inline... " >&6; }
24330 if test "${ac_cv_c_inline+set}" = set; then :
24331 $as_echo_n "(cached) " >&6
24334 for ac_kw in inline __inline__ __inline; do
24335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24336 /* end confdefs.h. */
24337 #ifndef __cplusplus
24339 static $ac_kw foo_t static_foo () {return 0; }
24340 $ac_kw foo_t foo () {return 0; }
24344 if ac_fn_c_try_compile "$LINENO"; then :
24345 ac_cv_c_inline=$ac_kw
24347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24348 test "$ac_cv_c_inline" != no && break
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24353 $as_echo "$ac_cv_c_inline" >&6; }
24355 case $ac_cv_c_inline in
24358 case $ac_cv_c_inline in
24360 *) ac_val=$ac_cv_c_inline;;
24362 cat >>confdefs.h <<_ACEOF
24363 #ifndef __cplusplus
24364 #define inline $ac_val
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24372 $as_echo_n "checking for X... " >&6; }
24375 # Check whether --with-x was given.
24376 if test "${with_x+set}" = set; then :
24380 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24381 if test "x$with_x" = xno; then
24382 # The user explicitly disabled X.
24385 case $x_includes,$x_libraries in #(
24386 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24387 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24388 $as_echo_n "(cached) " >&6
24390 # One or both of the vars are not set, and there is no cached value.
24391 ac_x_includes=no ac_x_libraries=no
24392 rm -f -r conftest.dir
24393 if mkdir conftest.dir; then
24395 cat >Imakefile <<'_ACEOF'
24397 @echo incroot='${INCROOT}'
24399 @echo usrlibdir='${USRLIBDIR}'
24401 @echo libdir='${LIBDIR}'
24403 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24404 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24405 for ac_var in incroot usrlibdir libdir; do
24406 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
24408 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24409 for ac_extension in a so sl dylib la dll; do
24410 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24411 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24412 ac_im_usrlibdir=$ac_im_libdir; break
24415 # Screen out bogus values from the imake configuration. They are
24416 # bogus both because they are the default anyway, and because
24417 # using them would break gcc on systems where it needs fixed includes.
24418 case $ac_im_incroot in
24419 /usr/include) ac_x_includes= ;;
24420 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24422 case $ac_im_usrlibdir in
24423 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24424 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24428 rm -f -r conftest.dir
24431 # Standard set of common directories for X headers.
24432 # Check X11 before X11Rn because it is often a symlink to the current release.
24446 /usr/local/X11/include
24447 /usr/local/X11R7/include
24448 /usr/local/X11R6/include
24449 /usr/local/X11R5/include
24450 /usr/local/X11R4/include
24452 /usr/local/include/X11
24453 /usr/local/include/X11R7
24454 /usr/local/include/X11R6
24455 /usr/local/include/X11R5
24456 /usr/local/include/X11R4
24460 /usr/XFree86/include/X11
24464 /usr/unsupported/include
24465 /usr/athena/include
24466 /usr/local/x11r5/include
24467 /usr/lpp/Xamples/include
24469 /usr/openwin/include
24470 /usr/openwin/share/include'
24472 if test "$ac_x_includes" = no; then
24473 # Guess where to find include files, by looking for Xlib.h.
24474 # First, try using that file with no special directory specified.
24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476 /* end confdefs.h. */
24477 #include <X11/Xlib.h>
24479 if ac_fn_c_try_cpp "$LINENO"; then :
24480 # We can compile using X headers with no special include directory.
24483 for ac_dir in $ac_x_header_dirs; do
24484 if test -r "$ac_dir/X11/Xlib.h"; then
24485 ac_x_includes=$ac_dir
24490 rm -f conftest.err conftest.$ac_ext
24491 fi # $ac_x_includes = no
24493 if test "$ac_x_libraries" = no; then
24494 # Check for the libraries.
24495 # See if we find them without any special options.
24496 # Don't add to $LIBS permanently.
24499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24500 /* end confdefs.h. */
24501 #include <X11/Xlib.h>
24510 if ac_fn_c_try_link "$LINENO"; then :
24512 # We can link X programs with no special library path.
24516 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
24518 # Don't even attempt the hair of trying to link an X program!
24519 for ac_extension in a so sl dylib la dll; do
24520 if test -r "$ac_dir/libX11.$ac_extension"; then
24521 ac_x_libraries=$ac_dir
24527 rm -f core conftest.err conftest.$ac_objext \
24528 conftest$ac_exeext conftest.$ac_ext
24529 fi # $ac_x_libraries = no
24531 case $ac_x_includes,$ac_x_libraries in #(
24532 no,* | *,no | *\'*)
24533 # Didn't find X, or a directory has "'" in its name.
24534 ac_cv_have_x="have_x=no";; #(
24536 # Record where we found X for the cache.
24537 ac_cv_have_x="have_x=yes\
24538 ac_x_includes='$ac_x_includes'\
24539 ac_x_libraries='$ac_x_libraries'"
24545 eval "$ac_cv_have_x"
24548 if test "$have_x" != yes; then
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24550 $as_echo "$have_x" >&6; }
24553 # If each of the values was on the command line, it overrides each guess.
24554 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24555 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24556 # Update the cache value to reflect the command line values.
24557 ac_cv_have_x="have_x=yes\
24558 ac_x_includes='$x_includes'\
24559 ac_x_libraries='$x_libraries'"
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24561 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24565 if test "$no_x" = yes; then
24566 # Not all programs may use this symbol, but it does not hurt to define it.
24568 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24570 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24572 if test -n "$x_includes"; then
24573 X_CFLAGS="$X_CFLAGS -I$x_includes"
24576 # It would also be nice to do this for all -L options, not just this one.
24577 if test -n "$x_libraries"; then
24578 X_LIBS="$X_LIBS -L$x_libraries"
24579 # For Solaris; some versions of Sun CC require a space after -R and
24580 # others require no space. Words are not sufficient . . . .
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24582 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24583 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24584 ac_xsave_c_werror_flag=$ac_c_werror_flag
24585 ac_c_werror_flag=yes
24586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24587 /* end confdefs.h. */
24597 if ac_fn_c_try_link "$LINENO"; then :
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24599 $as_echo "no" >&6; }
24600 X_LIBS="$X_LIBS -R$x_libraries"
24602 LIBS="$ac_xsave_LIBS -R $x_libraries"
24603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24604 /* end confdefs.h. */
24614 if ac_fn_c_try_link "$LINENO"; then :
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24616 $as_echo "yes" >&6; }
24617 X_LIBS="$X_LIBS -R $x_libraries"
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24620 $as_echo "neither works" >&6; }
24622 rm -f core conftest.err conftest.$ac_objext \
24623 conftest$ac_exeext conftest.$ac_ext
24625 rm -f core conftest.err conftest.$ac_objext \
24626 conftest$ac_exeext conftest.$ac_ext
24627 ac_c_werror_flag=$ac_xsave_c_werror_flag
24628 LIBS=$ac_xsave_LIBS
24631 # Check for system-dependent libraries X programs must link with.
24632 # Do this before checking for the system-independent R6 libraries
24633 # (-lICE), since we may need -lsocket or whatever for X linking.
24635 if test "$ISC" = yes; then
24636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24638 # Martyn Johnson says this is needed for Ultrix, if the X
24639 # libraries were built with DECnet support. And Karl Berry says
24640 # the Alpha needs dnet_stub (dnet does not exist).
24641 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643 /* end confdefs.h. */
24645 /* Override any GCC internal prototype to avoid an error.
24646 Use char because int might match the return type of a GCC
24647 builtin and then its argument prototype would still apply. */
24651 char XOpenDisplay ();
24655 return XOpenDisplay ();
24660 if ac_fn_c_try_link "$LINENO"; then :
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24664 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24665 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24666 $as_echo_n "(cached) " >&6
24668 ac_check_lib_save_LIBS=$LIBS
24669 LIBS="-ldnet $LIBS"
24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h. */
24673 /* Override any GCC internal prototype to avoid an error.
24674 Use char because int might match the return type of a GCC
24675 builtin and then its argument prototype would still apply. */
24683 return dnet_ntoa ();
24688 if ac_fn_c_try_link "$LINENO"; then :
24689 ac_cv_lib_dnet_dnet_ntoa=yes
24691 ac_cv_lib_dnet_dnet_ntoa=no
24693 rm -f core conftest.err conftest.$ac_objext \
24694 conftest$ac_exeext conftest.$ac_ext
24695 LIBS=$ac_check_lib_save_LIBS
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24698 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24699 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24700 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24703 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24705 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24706 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24707 $as_echo_n "(cached) " >&6
24709 ac_check_lib_save_LIBS=$LIBS
24710 LIBS="-ldnet_stub $LIBS"
24711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712 /* end confdefs.h. */
24714 /* Override any GCC internal prototype to avoid an error.
24715 Use char because int might match the return type of a GCC
24716 builtin and then its argument prototype would still apply. */
24724 return dnet_ntoa ();
24729 if ac_fn_c_try_link "$LINENO"; then :
24730 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24732 ac_cv_lib_dnet_stub_dnet_ntoa=no
24734 rm -f core conftest.err conftest.$ac_objext \
24735 conftest$ac_exeext conftest.$ac_ext
24736 LIBS=$ac_check_lib_save_LIBS
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24739 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24740 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24741 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24746 rm -f core conftest.err conftest.$ac_objext \
24747 conftest$ac_exeext conftest.$ac_ext
24748 LIBS="$ac_xsave_LIBS"
24750 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24751 # to get the SysV transport functions.
24752 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24754 # The nsl library prevents programs from opening the X display
24755 # on Irix 5.2, according to T.E. Dickey.
24756 # The functions gethostbyname, getservbyname, and inet_addr are
24757 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24758 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24759 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24763 if test $ac_cv_func_gethostbyname = no; then
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24765 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24766 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24767 $as_echo_n "(cached) " >&6
24769 ac_check_lib_save_LIBS=$LIBS
24771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24772 /* end confdefs.h. */
24774 /* Override any GCC internal prototype to avoid an error.
24775 Use char because int might match the return type of a GCC
24776 builtin and then its argument prototype would still apply. */
24780 char gethostbyname ();
24784 return gethostbyname ();
24789 if ac_fn_c_try_link "$LINENO"; then :
24790 ac_cv_lib_nsl_gethostbyname=yes
24792 ac_cv_lib_nsl_gethostbyname=no
24794 rm -f core conftest.err conftest.$ac_objext \
24795 conftest$ac_exeext conftest.$ac_ext
24796 LIBS=$ac_check_lib_save_LIBS
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24799 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24800 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24804 if test $ac_cv_lib_nsl_gethostbyname = no; then
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24806 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24807 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24808 $as_echo_n "(cached) " >&6
24810 ac_check_lib_save_LIBS=$LIBS
24812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24813 /* end confdefs.h. */
24815 /* Override any GCC internal prototype to avoid an error.
24816 Use char because int might match the return type of a GCC
24817 builtin and then its argument prototype would still apply. */
24821 char gethostbyname ();
24825 return gethostbyname ();
24830 if ac_fn_c_try_link "$LINENO"; then :
24831 ac_cv_lib_bsd_gethostbyname=yes
24833 ac_cv_lib_bsd_gethostbyname=no
24835 rm -f core conftest.err conftest.$ac_objext \
24836 conftest$ac_exeext conftest.$ac_ext
24837 LIBS=$ac_check_lib_save_LIBS
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24840 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24841 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24842 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24848 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24849 # socket/setsockopt and other routines are undefined under SCO ODT
24850 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24851 # on later versions), says Simon Leinen: it contains gethostby*
24852 # variants that don't use the name server (or something). -lsocket
24853 # must be given before -lnsl if both are needed. We assume that
24854 # if connect needs -lnsl, so does gethostbyname.
24855 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24856 if test "x$ac_cv_func_connect" = x""yes; then :
24860 if test $ac_cv_func_connect = no; then
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24862 $as_echo_n "checking for connect in -lsocket... " >&6; }
24863 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24864 $as_echo_n "(cached) " >&6
24866 ac_check_lib_save_LIBS=$LIBS
24867 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869 /* end confdefs.h. */
24871 /* Override any GCC internal prototype to avoid an error.
24872 Use char because int might match the return type of a GCC
24873 builtin and then its argument prototype would still apply. */
24886 if ac_fn_c_try_link "$LINENO"; then :
24887 ac_cv_lib_socket_connect=yes
24889 ac_cv_lib_socket_connect=no
24891 rm -f core conftest.err conftest.$ac_objext \
24892 conftest$ac_exeext conftest.$ac_ext
24893 LIBS=$ac_check_lib_save_LIBS
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24896 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24897 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24898 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24903 # Guillermo Gomez says -lposix is necessary on A/UX.
24904 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24905 if test "x$ac_cv_func_remove" = x""yes; then :
24909 if test $ac_cv_func_remove = no; then
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24911 $as_echo_n "checking for remove in -lposix... " >&6; }
24912 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24913 $as_echo_n "(cached) " >&6
24915 ac_check_lib_save_LIBS=$LIBS
24916 LIBS="-lposix $LIBS"
24917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24918 /* end confdefs.h. */
24920 /* Override any GCC internal prototype to avoid an error.
24921 Use char because int might match the return type of a GCC
24922 builtin and then its argument prototype would still apply. */
24935 if ac_fn_c_try_link "$LINENO"; then :
24936 ac_cv_lib_posix_remove=yes
24938 ac_cv_lib_posix_remove=no
24940 rm -f core conftest.err conftest.$ac_objext \
24941 conftest$ac_exeext conftest.$ac_ext
24942 LIBS=$ac_check_lib_save_LIBS
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24945 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24946 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24952 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24953 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24954 if test "x$ac_cv_func_shmat" = x""yes; then :
24958 if test $ac_cv_func_shmat = no; then
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24960 $as_echo_n "checking for shmat in -lipc... " >&6; }
24961 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24964 ac_check_lib_save_LIBS=$LIBS
24966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24967 /* end confdefs.h. */
24969 /* Override any GCC internal prototype to avoid an error.
24970 Use char because int might match the return type of a GCC
24971 builtin and then its argument prototype would still apply. */
24984 if ac_fn_c_try_link "$LINENO"; then :
24985 ac_cv_lib_ipc_shmat=yes
24987 ac_cv_lib_ipc_shmat=no
24989 rm -f core conftest.err conftest.$ac_objext \
24990 conftest$ac_exeext conftest.$ac_ext
24991 LIBS=$ac_check_lib_save_LIBS
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24994 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24995 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24996 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25002 # Check for libraries that X11R6 Xt/Xaw programs need.
25003 ac_save_LDFLAGS=$LDFLAGS
25004 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25005 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25006 # check for ICE first), but we must link in the order -lSM -lICE or
25007 # we get undefined symbols. So assume we have SM if we have ICE.
25008 # These have to be linked with before -lX11, unlike the other
25009 # libraries we check for below, so use a different variable.
25010 # John Interrante, Karl Berry
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25012 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25013 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25014 $as_echo_n "(cached) " >&6
25016 ac_check_lib_save_LIBS=$LIBS
25017 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25019 /* end confdefs.h. */
25021 /* Override any GCC internal prototype to avoid an error.
25022 Use char because int might match the return type of a GCC
25023 builtin and then its argument prototype would still apply. */
25027 char IceConnectionNumber ();
25031 return IceConnectionNumber ();
25036 if ac_fn_c_try_link "$LINENO"; then :
25037 ac_cv_lib_ICE_IceConnectionNumber=yes
25039 ac_cv_lib_ICE_IceConnectionNumber=no
25041 rm -f core conftest.err conftest.$ac_objext \
25042 conftest$ac_exeext conftest.$ac_ext
25043 LIBS=$ac_check_lib_save_LIBS
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25046 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25047 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25048 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25051 LDFLAGS=$ac_save_LDFLAGS
25056 # try to figure out if we need any additional ld flags, like -R
25057 # and yes, the autoconf X test is utterly broken
25058 if test "$no_x" != yes; then
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special X linker flags" >&5
25060 $as_echo_n "checking for special X linker flags... " >&6; }
25061 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then :
25062 $as_echo_n "(cached) " >&6
25065 ac_save_libs="$LIBS"
25066 ac_save_cflags="$CFLAGS"
25067 CFLAGS="$CFLAGS $X_CFLAGS"
25068 krb_cv_sys_x_libs_rpath=""
25069 krb_cv_sys_x_libs=""
25070 for rflag in "" "-R" "-R " "-rpath "; do
25071 if test "$rflag" = ""; then
25075 for flag in $X_LIBS; do
25078 foo="$foo $flag `echo $flag |
sed \"s
/-L/$rflag/\"`"
25086 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25087 if test "$cross_compiling" = yes; then :
25088 krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break
25090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25091 /* end confdefs.h. */
25093 #include <X11/Xlib.h>
25096 XOpenDisplay(NULL);
25098 main(int argc, char **argv)
25104 if ac_fn_c_try_run "$LINENO"; then :
25105 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
25109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25110 conftest.$ac_objext conftest.beam conftest.$ac_ext
25114 LIBS="$ac_save_libs"
25115 CFLAGS="$ac_save_cflags"
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_sys_x_libs_rpath" >&5
25119 $as_echo "$krb_cv_sys_x_libs_rpath" >&6; }
25120 X_LIBS="$krb_cv_sys_x_libs"
25124 if test "$no_x" != yes; then
25134 save_CFLAGS="$CFLAGS"
25135 CFLAGS="$X_CFLAGS $CFLAGS"
25137 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
25138 save_LDFLAGS="$LDFLAGS"
25139 LDFLAGS="$LDFLAGS $X_LIBS"
25141 ## check for XauWriteAuth first, so we detect the case where
25142 ## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
25143 ## could be done by checking for XauReadAuth in -lXau first, but this
25144 ## breaks in IRIX 6.5
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauWriteAuth" >&5
25150 $as_echo_n "checking for XauWriteAuth... " >&6; }
25151 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then :
25152 $as_echo_n "(cached) " >&6
25155 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
25156 ac_save_LIBS="$LIBS"
25157 for ac_lib in "" X11 Xau; do
25163 *) ac_lib="-l$ac_lib" ;;
25165 LIBS=" $ac_lib $ac_save_LIBS"
25166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25167 /* end confdefs.h. */
25168 #include <X11/Xauth.h>
25177 if ac_fn_c_try_link "$LINENO"; then :
25178 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
25180 rm -f core conftest.err conftest.$ac_objext \
25181 conftest$ac_exeext conftest.$ac_ext
25183 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
25184 LIBS="$ac_save_LIBS"
25190 eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
25193 for ac_func in XauWriteAuth
25195 ac_fn_c_check_func "$LINENO" "XauWriteAuth" "ac_cv_func_XauWriteAuth"
25196 if test "x$ac_cv_func_XauWriteAuth" = x""yes; then :
25197 cat >>confdefs.h <<_ACEOF
25198 #define HAVE_XAUWRITEAUTH 1
25206 eval "ac_tr_func=HAVE_`echo XauWriteAuth |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
25207 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
25208 eval "LIB_XauWriteAuth=$ac_res"
25212 eval "ac_cv_func_XauWriteAuth=yes"
25213 eval "LIB_XauWriteAuth="
25214 cat >>confdefs.h <<_ACEOF
25215 #define $ac_tr_func 1
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25219 $as_echo "yes" >&6; }
25222 eval "ac_cv_func_XauWriteAuth=no"
25223 eval "LIB_XauWriteAuth="
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25225 $as_echo "no" >&6; }
25228 eval "ac_cv_func_XauWriteAuth=yes"
25229 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
25230 cat >>confdefs.h <<_ACEOF
25231 #define $ac_tr_func 1
25234 cat >>confdefs.h <<_ACEOF
25235 #define $ac_tr_lib 1
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
25239 $as_echo "yes, in $ac_res" >&6; }
25245 LIBS="$LIB_XauWriteAuth $LIBS"
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauReadAuth" >&5
25250 $as_echo_n "checking for XauReadAuth... " >&6; }
25251 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then :
25252 $as_echo_n "(cached) " >&6
25255 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
25256 ac_save_LIBS="$LIBS"
25257 for ac_lib in "" X11 Xau; do
25263 *) ac_lib="-l$ac_lib" ;;
25265 LIBS=" $ac_lib $ac_save_LIBS"
25266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25267 /* end confdefs.h. */
25268 #include <X11/Xauth.h>
25277 if ac_fn_c_try_link "$LINENO"; then :
25278 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
25280 rm -f core conftest.err conftest.$ac_objext \
25281 conftest$ac_exeext conftest.$ac_ext
25283 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
25284 LIBS="$ac_save_LIBS"
25290 eval "ac_res=\$ac_cv_funclib_XauReadAuth"
25293 for ac_func in XauReadAuth
25295 ac_fn_c_check_func "$LINENO" "XauReadAuth" "ac_cv_func_XauReadAuth"
25296 if test "x$ac_cv_func_XauReadAuth" = x""yes; then :
25297 cat >>confdefs.h <<_ACEOF
25298 #define HAVE_XAUREADAUTH 1
25306 eval "ac_tr_func=HAVE_`echo XauReadAuth |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
25307 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
25308 eval "LIB_XauReadAuth=$ac_res"
25312 eval "ac_cv_func_XauReadAuth=yes"
25313 eval "LIB_XauReadAuth="
25314 cat >>confdefs.h <<_ACEOF
25315 #define $ac_tr_func 1
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25319 $as_echo "yes" >&6; }
25322 eval "ac_cv_func_XauReadAuth=no"
25323 eval "LIB_XauReadAuth="
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25325 $as_echo "no" >&6; }
25328 eval "ac_cv_func_XauReadAuth=yes"
25329 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
25330 cat >>confdefs.h <<_ACEOF
25331 #define $ac_tr_func 1
25334 cat >>confdefs.h <<_ACEOF
25335 #define $ac_tr_lib 1
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
25339 $as_echo "yes, in $ac_res" >&6; }
25344 LIBS="$LIB_XauReadAauth $LIBS"
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauFileName" >&5
25349 $as_echo_n "checking for XauFileName... " >&6; }
25350 if test "${ac_cv_funclib_XauFileName+set}" = set; then :
25351 $as_echo_n "(cached) " >&6
25354 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
25355 ac_save_LIBS="$LIBS"
25356 for ac_lib in "" X11 Xau; do
25362 *) ac_lib="-l$ac_lib" ;;
25364 LIBS=" $ac_lib $ac_save_LIBS"
25365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25366 /* end confdefs.h. */
25367 #include <X11/Xauth.h>
25376 if ac_fn_c_try_link "$LINENO"; then :
25377 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
25379 rm -f core conftest.err conftest.$ac_objext \
25380 conftest$ac_exeext conftest.$ac_ext
25382 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
25383 LIBS="$ac_save_LIBS"
25389 eval "ac_res=\$ac_cv_funclib_XauFileName"
25392 for ac_func in XauFileName
25394 ac_fn_c_check_func "$LINENO" "XauFileName" "ac_cv_func_XauFileName"
25395 if test "x$ac_cv_func_XauFileName" = x""yes; then :
25396 cat >>confdefs.h <<_ACEOF
25397 #define HAVE_XAUFILENAME 1
25405 eval "ac_tr_func=HAVE_`echo XauFileName |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
25406 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
25407 eval "LIB_XauFileName=$ac_res"
25411 eval "ac_cv_func_XauFileName=yes"
25412 eval "LIB_XauFileName="
25413 cat >>confdefs.h <<_ACEOF
25414 #define $ac_tr_func 1
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25418 $as_echo "yes" >&6; }
25421 eval "ac_cv_func_XauFileName=no"
25422 eval "LIB_XauFileName="
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25424 $as_echo "no" >&6; }
25427 eval "ac_cv_func_XauFileName=yes"
25428 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
25429 cat >>confdefs.h <<_ACEOF
25430 #define $ac_tr_func 1
25433 cat >>confdefs.h <<_ACEOF
25434 #define $ac_tr_lib 1
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
25438 $as_echo "yes, in $ac_res" >&6; }
25445 ## set LIB_XauReadAuth to union of these tests, since this is what the
25446 ## Makefiles are using
25447 case "$ac_cv_funclib_XauWriteAuth" in
25450 *) if test "$ac_cv_funclib_XauReadAuth" = yes; then
25451 if test "$ac_cv_funclib_XauFileName" = yes; then
25452 LIB_XauReadAuth="$LIB_XauWriteAuth"
25454 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
25457 if test "$ac_cv_funclib_XauFileName" = yes; then
25458 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
25460 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
25466 if test "$AUTOMAKE" != ""; then
25467 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
25468 NEED_WRITEAUTH_TRUE=
25469 NEED_WRITEAUTH_FALSE='#'
25471 NEED_WRITEAUTH_TRUE='#'
25472 NEED_WRITEAUTH_FALSE=
25478 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
25479 NEED_WRITEAUTH_TRUE=
25480 NEED_WRITEAUTH_FALSE='#'
25482 NEED_WRITEAUTH_TRUE='#'
25483 NEED_WRITEAUTH_FALSE=
25486 CFLAGS=$save_CFLAGS
25488 LDFLAGS=$save_LDFLAGS
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25493 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25494 if test "${ac_cv_c_const+set}" = set; then :
25495 $as_echo_n "(cached) " >&6
25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h. */
25503 /* FIXME: Include the comments suggested by Paul. */
25504 #ifndef __cplusplus
25505 /* Ultrix mips cc rejects this. */
25506 typedef int charset[2];
25508 /* SunOS 4.1.1 cc rejects this. */
25509 char const *const *pcpcc;
25511 /* NEC SVR4.0.2 mips cc rejects this. */
25512 struct point {int x, y;};
25513 static struct point const zero = {0,0};
25514 /* AIX XL C 1.02.0.0 rejects this.
25515 It does not let you subtract one const X* pointer from another in
25516 an arm of an if-expression whose if-part is not a constant
25518 const char *g = "string";
25519 pcpcc = &g + (g ? g-g : 0);
25520 /* HPUX 7.0 cc rejects these. */
25522 ppc = (char**) pcpcc;
25523 pcpcc = (char const *const *) ppc;
25524 { /* SCO 3.2v4 cc rejects this. */
25526 char const *s = 0 ? (char *) 0 : (char const *) 0;
25531 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25532 int x[] = {25, 17};
25533 const int *foo = &x[0];
25536 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25537 typedef const int *iptr;
25541 { /* AIX XL C 1.02.0.0 rejects this saying
25542 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25543 struct s { int j; const int *ap[3]; };
25544 struct s *b; b->j = 5;
25546 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25547 const int foo = 10;
25548 if (!foo) return 0;
25550 return !cs[0] && !zero.x;
25557 if ac_fn_c_try_compile "$LINENO"; then :
25562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25565 $as_echo "$ac_cv_c_const" >&6; }
25566 if test $ac_cv_c_const = no; then
25568 $as_echo "#define const /**/" >>confdefs.h
25572 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
25573 if test "x$ac_cv_type_off_t" = x""yes; then :
25577 cat >>confdefs.h <<_ACEOF
25578 #define off_t long int
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
25584 $as_echo_n "checking for mode_t... " >&6; }
25585 if test "${ac_cv_type_mode_t+set}" = set; then :
25586 $as_echo_n "(cached) " >&6
25588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25589 /* end confdefs.h. */
25590 #include <sys/types.h>
25592 #include <stdlib.h>
25593 #include <stddef.h>
25597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25598 $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
25599 ac_cv_type_mode_t=yes
25601 ac_cv_type_mode_t=no
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mode_t" >&5
25607 $as_echo "$ac_cv_type_mode_t" >&6; }
25608 if test $ac_cv_type_mode_t = no; then
25610 $as_echo "#define mode_t unsigned short" >>confdefs.h
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
25615 $as_echo_n "checking for sig_atomic_t... " >&6; }
25616 if test "${ac_cv_type_sig_atomic_t+set}" = set; then :
25617 $as_echo_n "(cached) " >&6
25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620 /* end confdefs.h. */
25621 #include <sys/types.h>
25623 #include <stdlib.h>
25624 #include <stddef.h>
25626 #include <signal.h>
25628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25629 $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
25630 ac_cv_type_sig_atomic_t=yes
25632 ac_cv_type_sig_atomic_t=no
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
25638 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
25639 if test $ac_cv_type_sig_atomic_t = no; then
25641 $as_echo "#define sig_atomic_t int" >>confdefs.h
25647 cv=`echo "long long" |
sed 'y%./+- %__p__%'`
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
25649 $as_echo_n "checking for long long... " >&6; }
25650 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
25651 $as_echo_n "(cached) " >&6
25653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25654 /* end confdefs.h. */
25656 #include <sys/types.h>
25658 #include <stdlib.h>
25659 #include <stddef.h>
25670 if ac_fn_c_try_compile "$LINENO"; then :
25671 eval "ac_cv_type_$cv=yes"
25673 eval "ac_cv_type_$cv=no"
25675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25677 ac_foo=`eval echo \\$ac_cv_type_$cv`
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
25679 $as_echo "$ac_foo" >&6; }
25680 if test "$ac_foo" = yes; then
25681 ac_tr_hdr=HAVE_`echo long long |
sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
25683 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
25684 if test "x$ac_cv_type_long_long" = x""yes; then :
25686 cat >>confdefs.h <<_ACEOF
25687 #define HAVE_LONG_LONG 1
25695 cat >>confdefs.h <<_ACEOF
25696 #define $ac_tr_hdr 1
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25702 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25703 if test "${ac_cv_header_time+set}" = set; then :
25704 $as_echo_n "(cached) " >&6
25706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25707 /* end confdefs.h. */
25708 #include <sys/types.h>
25709 #include <sys/time.h>
25715 if ((struct tm *) 0)
25721 if ac_fn_c_try_compile "$LINENO"; then :
25722 ac_cv_header_time=yes
25724 ac_cv_header_time=no
25726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25729 $as_echo "$ac_cv_header_time" >&6; }
25730 if test $ac_cv_header_time = yes; then
25732 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25737 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25738 if test "${ac_cv_struct_tm+set}" = set; then :
25739 $as_echo_n "(cached) " >&6
25741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25742 /* end confdefs.h. */
25743 #include <sys/types.h>
25750 int *p = &tm.tm_sec;
25756 if ac_fn_c_try_compile "$LINENO"; then :
25757 ac_cv_struct_tm=time.h
25759 ac_cv_struct_tm=sys/time.h
25761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25764 $as_echo "$ac_cv_struct_tm" >&6; }
25765 if test $ac_cv_struct_tm = sys/time.h; then
25767 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25773 $as_echo_n "checking for ANSI C header files... " >&6; }
25774 if test "${ac_cv_header_stdc+set}" = set; then :
25775 $as_echo_n "(cached) " >&6
25777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25778 /* end confdefs.h. */
25779 #include <stdlib.h>
25780 #include <stdarg.h>
25781 #include <string.h>
25792 if ac_fn_c_try_compile "$LINENO"; then :
25793 ac_cv_header_stdc=yes
25795 ac_cv_header_stdc=no
25797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25799 if test $ac_cv_header_stdc = yes; then
25800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25802 /* end confdefs.h. */
25803 #include <string.h>
25806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25807 $EGREP "memchr" >/dev/null 2>&1; then :
25810 ac_cv_header_stdc=no
25816 if test $ac_cv_header_stdc = yes; then
25817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25819 /* end confdefs.h. */
25820 #include <stdlib.h>
25823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25824 $EGREP "free" >/dev/null 2>&1; then :
25827 ac_cv_header_stdc=no
25833 if test $ac_cv_header_stdc = yes; then
25834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25835 if test "$cross_compiling" = yes; then :
25838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25839 /* end confdefs.h. */
25841 #include <stdlib.h>
25842 #if ((' ' & 0x0FF) == 0x020)
25843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25846 # define ISLOWER(c) \
25847 (('a' <= (c) && (c) <= 'i') \
25848 || ('j' <= (c) && (c) <= 'r') \
25849 || ('s' <= (c) && (c) <= 'z'))
25850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25858 for (i = 0; i < 256; i++)
25859 if (XOR (islower (i), ISLOWER (i))
25860 || toupper (i) != TOUPPER (i))
25865 if ac_fn_c_try_run "$LINENO"; then :
25868 ac_cv_header_stdc=no
25870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25871 conftest.$ac_objext conftest.beam conftest.$ac_ext
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25877 $as_echo "$ac_cv_header_stdc" >&6; }
25878 if test $ac_cv_header_stdc = yes; then
25880 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25886 CommonCrypto/CommonDigest.h \
25887 CommonCrypto/CommonCryptor.h \
25902 netinet/in6_machtypes.h \
25943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
25944 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25945 eval as_val=\$$as_ac_Header
25946 if test "x$as_val" = x""yes; then :
25947 cat >>confdefs.h <<_ACEOF
25948 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
25956 for ac_header in term.h
25958 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
25959 if test "x$ac_cv_header_term_h" = x""yes; then :
25960 cat >>confdefs.h <<_ACEOF
25961 #define HAVE_TERM_H 1
25969 for ac_header in asl.h
25971 ac_fn_c_check_header_compile "$LINENO" "asl.h" "ac_cv_header_asl_h" "
25973 #ifndef ASL_STRING_EMERG
25974 #error ASL_STRING_EMERG missing
25977 if test "x$ac_cv_header_asl_h" = x""yes; then :
25978 cat >>confdefs.h <<_ACEOF
25979 #define HAVE_ASL_H 1
25987 for ac_header in net/if.h
25989 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
25990 #if HAVE_SYS_SOCKET_H
25991 #include <sys/socket.h>
25994 if test "x$ac_cv_header_net_if_h" = x""yes; then :
25995 cat >>confdefs.h <<_ACEOF
25996 #define HAVE_NET_IF_H 1
26004 for ac_header in sys/ptyvar.h
26006 ac_fn_c_check_header_compile "$LINENO" "sys/ptyvar.h" "ac_cv_header_sys_ptyvar_h" "$ac_includes_default
26008 #include <sys/tty.h>
26011 if test "x$ac_cv_header_sys_ptyvar_h" = x""yes; then :
26012 cat >>confdefs.h <<_ACEOF
26013 #define HAVE_SYS_PTYVAR_H 1
26021 for ac_header in sys/strtty.h
26023 ac_fn_c_check_header_compile "$LINENO" "sys/strtty.h" "ac_cv_header_sys_strtty_h" "$ac_includes_default
26025 #include <termios.h>
26027 #if HAVE_SYS_STREAM_H
26028 #include <sys/stream.h>
26031 if test "x$ac_cv_header_sys_strtty_h" = x""yes; then :
26032 cat >>confdefs.h <<_ACEOF
26033 #define HAVE_SYS_STRTTY_H 1
26041 for ac_header in sys/ucred.h
26043 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
26044 #if HAVE_SYS_TYPES_H
26045 #include <sys/types.h>
26047 #if HAVE_SYS_PARAM_H
26048 #include <sys/param.h>
26051 if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
26052 cat >>confdefs.h <<_ACEOF
26053 #define HAVE_SYS_UCRED_H 1
26061 for ac_header in security/pam_modules.h
26063 ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default
26064 #include <security/pam_appl.h>
26067 if test "x$ac_cv_header_security_pam_modules_h" = x""yes; then :
26068 cat >>confdefs.h <<_ACEOF
26069 #define HAVE_SECURITY_PAM_MODULES_H 1
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logwtmp" >&5
26086 $as_echo_n "checking for logwtmp... " >&6; }
26087 if test "${ac_cv_funclib_logwtmp+set}" = set; then :
26088 $as_echo_n "(cached) " >&6
26091 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
26092 ac_save_LIBS="$LIBS"
26093 for ac_lib in "" util; do
26099 *) ac_lib="-l$ac_lib" ;;
26101 LIBS=" $ac_lib $ac_save_LIBS"
26102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26103 /* end confdefs.h. */
26117 if ac_fn_c_try_link "$LINENO"; then :
26118 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
26120 rm -f core conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
26123 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
26124 LIBS="$ac_save_LIBS"
26130 eval "ac_res=\$ac_cv_funclib_logwtmp"
26133 for ac_func in logwtmp
26135 ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp"
26136 if test "x$ac_cv_func_logwtmp" = x""yes; then :
26137 cat >>confdefs.h <<_ACEOF
26138 #define HAVE_LOGWTMP 1
26146 eval "ac_tr_func=HAVE_`echo logwtmp |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
26147 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
26148 eval "LIB_logwtmp=$ac_res"
26152 eval "ac_cv_func_logwtmp=yes"
26153 eval "LIB_logwtmp="
26154 cat >>confdefs.h <<_ACEOF
26155 #define $ac_tr_func 1
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26159 $as_echo "yes" >&6; }
26162 eval "ac_cv_func_logwtmp=no"
26163 eval "LIB_logwtmp="
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26165 $as_echo "no" >&6; }
26168 eval "ac_cv_func_logwtmp=yes"
26169 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
26170 cat >>confdefs.h <<_ACEOF
26171 #define $ac_tr_func 1
26174 cat >>confdefs.h <<_ACEOF
26175 #define $ac_tr_lib 1
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26179 $as_echo "yes, in $ac_res" >&6; }
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logout" >&5
26188 $as_echo_n "checking for logout... " >&6; }
26189 if test "${ac_cv_funclib_logout+set}" = set; then :
26190 $as_echo_n "(cached) " >&6
26193 if eval "test \"\$ac_cv_func_logout\" != yes" ; then
26194 ac_save_LIBS="$LIBS"
26195 for ac_lib in "" util; do
26201 *) ac_lib="-l$ac_lib" ;;
26203 LIBS=" $ac_lib $ac_save_LIBS"
26204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26205 /* end confdefs.h. */
26219 if ac_fn_c_try_link "$LINENO"; then :
26220 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
26222 rm -f core conftest.err conftest.$ac_objext \
26223 conftest$ac_exeext conftest.$ac_ext
26225 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
26226 LIBS="$ac_save_LIBS"
26232 eval "ac_res=\$ac_cv_funclib_logout"
26235 for ac_func in logout
26237 ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout"
26238 if test "x$ac_cv_func_logout" = x""yes; then :
26239 cat >>confdefs.h <<_ACEOF
26240 #define HAVE_LOGOUT 1
26248 eval "ac_tr_func=HAVE_`echo logout |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
26249 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
26250 eval "LIB_logout=$ac_res"
26254 eval "ac_cv_func_logout=yes"
26256 cat >>confdefs.h <<_ACEOF
26257 #define $ac_tr_func 1
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26261 $as_echo "yes" >&6; }
26264 eval "ac_cv_func_logout=no"
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26267 $as_echo "no" >&6; }
26270 eval "ac_cv_func_logout=yes"
26271 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
26272 cat >>confdefs.h <<_ACEOF
26273 #define $ac_tr_func 1
26276 cat >>confdefs.h <<_ACEOF
26277 #define $ac_tr_lib 1
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26281 $as_echo "yes, in $ac_res" >&6; }
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty" >&5
26290 $as_echo_n "checking for openpty... " >&6; }
26291 if test "${ac_cv_funclib_openpty+set}" = set; then :
26292 $as_echo_n "(cached) " >&6
26295 if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
26296 ac_save_LIBS="$LIBS"
26297 for ac_lib in "" util; do
26303 *) ac_lib="-l$ac_lib" ;;
26305 LIBS=" $ac_lib $ac_save_LIBS"
26306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h. */
26321 if ac_fn_c_try_link "$LINENO"; then :
26322 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
26324 rm -f core conftest.err conftest.$ac_objext \
26325 conftest$ac_exeext conftest.$ac_ext
26327 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
26328 LIBS="$ac_save_LIBS"
26334 eval "ac_res=\$ac_cv_funclib_openpty"
26337 for ac_func in openpty
26339 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
26340 if test "x$ac_cv_func_openpty" = x""yes; then :
26341 cat >>confdefs.h <<_ACEOF
26342 #define HAVE_OPENPTY 1
26350 eval "ac_tr_func=HAVE_`echo openpty |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
26351 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
26352 eval "LIB_openpty=$ac_res"
26356 eval "ac_cv_func_openpty=yes"
26357 eval "LIB_openpty="
26358 cat >>confdefs.h <<_ACEOF
26359 #define $ac_tr_func 1
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26363 $as_echo "yes" >&6; }
26366 eval "ac_cv_func_openpty=no"
26367 eval "LIB_openpty="
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26369 $as_echo "no" >&6; }
26372 eval "ac_cv_func_openpty=yes"
26373 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
26374 cat >>confdefs.h <<_ACEOF
26375 #define $ac_tr_func 1
26378 cat >>confdefs.h <<_ACEOF
26379 #define $ac_tr_lib 1
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26383 $as_echo "yes, in $ac_res" >&6; }
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent" >&5
26393 $as_echo_n "checking for tgetent... " >&6; }
26394 if test "${ac_cv_funclib_tgetent+set}" = set; then :
26395 $as_echo_n "(cached) " >&6
26398 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
26399 ac_save_LIBS="$LIBS"
26400 for ac_lib in "" termcap ncurses curses; do
26406 *) ac_lib="-l$ac_lib" ;;
26408 LIBS=" $ac_lib $ac_save_LIBS"
26409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410 /* end confdefs.h. */
26412 #ifdef HAVE_TERMCAP_H
26413 #include <termcap.h>
26415 #ifdef HAVE_CURSES_H
26416 #include <curses.h>
26427 if ac_fn_c_try_link "$LINENO"; then :
26428 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
26430 rm -f core conftest.err conftest.$ac_objext \
26431 conftest$ac_exeext conftest.$ac_ext
26433 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
26434 LIBS="$ac_save_LIBS"
26440 eval "ac_res=\$ac_cv_funclib_tgetent"
26443 for ac_func in tgetent
26445 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
26446 if test "x$ac_cv_func_tgetent" = x""yes; then :
26447 cat >>confdefs.h <<_ACEOF
26448 #define HAVE_TGETENT 1
26456 eval "ac_tr_func=HAVE_`echo tgetent |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
26457 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
26458 eval "LIB_tgetent=$ac_res"
26462 eval "ac_cv_func_tgetent=yes"
26463 eval "LIB_tgetent="
26464 cat >>confdefs.h <<_ACEOF
26465 #define $ac_tr_func 1
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26469 $as_echo "yes" >&6; }
26472 eval "ac_cv_func_tgetent=no"
26473 eval "LIB_tgetent="
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26475 $as_echo "no" >&6; }
26478 eval "ac_cv_func_tgetent=yes"
26479 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
26480 cat >>confdefs.h <<_ACEOF
26481 #define $ac_tr_func 1
26484 cat >>confdefs.h <<_ACEOF
26485 #define $ac_tr_lib 1
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26489 $as_echo "yes, in $ac_res" >&6; }
26527 yp_get_default_domain \
26530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
26531 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26532 eval as_val=\$$as_ac_var
26533 if test "x$as_val" = x""yes; then :
26534 cat >>confdefs.h <<_ACEOF
26535 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for __sync_add_and_fetch" >&5
26543 $as_echo_n "checking checking for __sync_add_and_fetch... " >&6; }
26544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26545 /* end confdefs.h. */
26546 #include <sys/types.h>
26550 unsigned int foo; __sync_add_and_fetch(&foo, 1);
26555 if ac_fn_c_try_link "$LINENO"; then :
26556 ac_rk_have___sync_add_and_fetch=yes
26558 ac_rk_have___sync_add_and_fetch=no
26560 rm -f core conftest.err conftest.$ac_objext \
26561 conftest$ac_exeext conftest.$ac_ext
26562 if test "$ac_rk_have___sync_add_and_fetch" = "yes" ; then
26564 cat >>confdefs.h <<_ACEOF
26565 #define HAVE___SYNC_ADD_AND_FETCH 1
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have___sync_add_and_fetch" >&5
26570 $as_echo "$ac_rk_have___sync_add_and_fetch" >&6; }
26573 for ac_func in getpagesize
26575 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
26576 if test "x$ac_cv_func_getpagesize" = x""yes; then :
26577 cat >>confdefs.h <<_ACEOF
26578 #define HAVE_GETPAGESIZE 1
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
26585 $as_echo_n "checking for working mmap... " >&6; }
26586 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
26587 $as_echo_n "(cached) " >&6
26589 if test "$cross_compiling" = yes; then :
26590 ac_cv_func_mmap_fixed_mapped=no
26592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593 /* end confdefs.h. */
26594 $ac_includes_default
26595 /* malloc might have been renamed as rpl_malloc. */
26598 /* Thanks to Mike Haertel and Jim Avera for this test.
26599 Here is a matrix of mmap possibilities:
26600 mmap private not fixed
26601 mmap private fixed at somewhere currently unmapped
26602 mmap private fixed at somewhere already mapped
26603 mmap shared not fixed
26604 mmap shared fixed at somewhere currently unmapped
26605 mmap shared fixed at somewhere already mapped
26606 For private mappings, we should verify that changes cannot be read()
26607 back from the file, nor mmap's back from the file at a different
26608 address. (There have been systems where private was not correctly
26609 implemented like the infamous i386 svr4.0, and systems where the
26610 VM page cache was not coherent with the file system buffer cache
26611 like early versions of FreeBSD and possibly contemporary NetBSD.)
26612 For shared mappings, we should conversely verify that changes get
26613 propagated back to all the places they're supposed to be.
26615 Grep wants private fixed already mapped.
26616 The main things grep needs to know about mmap are:
26617 * does it exist and is it safe to write into the mmap'd area
26618 * how to use it (BSD variants) */
26621 #include <sys/mman.h>
26623 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
26627 /* This mess was copied from the GNU getpagesize.h. */
26628 #ifndef HAVE_GETPAGESIZE
26629 # ifdef _SC_PAGESIZE
26630 # define getpagesize() sysconf(_SC_PAGESIZE)
26631 # else /* no _SC_PAGESIZE */
26632 # ifdef HAVE_SYS_PARAM_H
26633 # include <sys/param.h>
26634 # ifdef EXEC_PAGESIZE
26635 # define getpagesize() EXEC_PAGESIZE
26636 # else /* no EXEC_PAGESIZE */
26638 # define getpagesize() NBPG * CLSIZE
26641 # endif /* no CLSIZE */
26642 # else /* no NBPG */
26644 # define getpagesize() NBPC
26645 # else /* no NBPC */
26647 # define getpagesize() PAGESIZE
26648 # endif /* PAGESIZE */
26649 # endif /* no NBPC */
26650 # endif /* no NBPG */
26651 # endif /* no EXEC_PAGESIZE */
26652 # else /* no HAVE_SYS_PARAM_H */
26653 # define getpagesize() 8192 /* punt totally */
26654 # endif /* no HAVE_SYS_PARAM_H */
26655 # endif /* no _SC_PAGESIZE */
26657 #endif /* no HAVE_GETPAGESIZE */
26662 char *data, *data2, *data3;
26666 pagesize = getpagesize ();
26668 /* First, make a file with some known garbage in it. */
26669 data = (char *) malloc (pagesize);
26672 for (i = 0; i < pagesize; ++i)
26673 *(data + i) = rand ();
26675 fd = creat ("conftest.mmap", 0600);
26678 if (write (fd, data, pagesize) != pagesize)
26682 /* Next, check that the tail of a page is zero-filled. File must have
26683 non-zero length, otherwise we risk SIGBUS for entire page. */
26684 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
26688 if (write (fd2, data2, 1) != 1)
26690 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
26691 if (data2 == MAP_FAILED)
26693 for (i = 0; i < pagesize; ++i)
26697 if (munmap (data2, pagesize))
26700 /* Next, try to mmap the file at a fixed address which already has
26701 something else allocated at it. If we can, also make sure that
26702 we see the same garbage. */
26703 fd = open ("conftest.mmap", O_RDWR);
26706 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
26707 MAP_PRIVATE | MAP_FIXED, fd, 0L))
26709 for (i = 0; i < pagesize; ++i)
26710 if (*(data + i) != *(data2 + i))
26713 /* Finally, make sure that changes to the mapped area do not
26714 percolate back to the file as seen by read(). (This is a bug on
26715 some variants of i386 svr4.0.) */
26716 for (i = 0; i < pagesize; ++i)
26717 *(data2 + i) = *(data2 + i) + 1;
26718 data3 = (char *) malloc (pagesize);
26721 if (read (fd, data3, pagesize) != pagesize)
26723 for (i = 0; i < pagesize; ++i)
26724 if (*(data + i) != *(data3 + i))
26730 if ac_fn_c_try_run "$LINENO"; then :
26731 ac_cv_func_mmap_fixed_mapped=yes
26733 ac_cv_func_mmap_fixed_mapped=no
26735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26736 conftest.$ac_objext conftest.beam conftest.$ac_ext
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
26741 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
26742 if test $ac_cv_func_mmap_fixed_mapped = yes; then
26744 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
26747 rm -f conftest.mmap conftest.txt
26752 for ac_header in capability.h sys/capability.h
26754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
26755 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26756 eval as_val=\$$as_ac_Header
26757 if test "x$as_val" = x""yes; then :
26758 cat >>confdefs.h <<_ACEOF
26759 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
26767 for ac_func in sgi_getcapabilitybyname cap_set_proc
26769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
26770 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26771 eval as_val=\$$as_ac_var
26772 if test "x$as_val" = x""yes; then :
26773 cat >>confdefs.h <<_ACEOF
26774 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r" >&5
26787 $as_echo_n "checking for getpwnam_r... " >&6; }
26788 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then :
26789 $as_echo_n "(cached) " >&6
26792 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
26793 ac_save_LIBS="$LIBS"
26794 for ac_lib in "" c_r; do
26800 *) ac_lib="-l$ac_lib" ;;
26802 LIBS=" $ac_lib $ac_save_LIBS"
26803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26804 /* end confdefs.h. */
26814 if ac_fn_c_try_link "$LINENO"; then :
26815 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
26817 rm -f core conftest.err conftest.$ac_objext \
26818 conftest$ac_exeext conftest.$ac_ext
26820 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
26821 LIBS="$ac_save_LIBS"
26827 eval "ac_res=\$ac_cv_funclib_getpwnam_r"
26830 for ac_func in getpwnam_r
26832 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
26833 if test "x$ac_cv_func_getpwnam_r" = x""yes; then :
26834 cat >>confdefs.h <<_ACEOF
26835 #define HAVE_GETPWNAM_R 1
26843 eval "ac_tr_func=HAVE_`echo getpwnam_r |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
26844 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
26845 eval "LIB_getpwnam_r=$ac_res"
26849 eval "ac_cv_func_getpwnam_r=yes"
26850 eval "LIB_getpwnam_r="
26851 cat >>confdefs.h <<_ACEOF
26852 #define $ac_tr_func 1
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26856 $as_echo "yes" >&6; }
26859 eval "ac_cv_func_getpwnam_r=no"
26860 eval "LIB_getpwnam_r="
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26862 $as_echo "no" >&6; }
26865 eval "ac_cv_func_getpwnam_r=yes"
26866 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
26867 cat >>confdefs.h <<_ACEOF
26868 #define $ac_tr_func 1
26871 cat >>confdefs.h <<_ACEOF
26872 #define $ac_tr_lib 1
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26876 $as_echo "yes, in $ac_res" >&6; }
26881 if test "$ac_cv_func_getpwnam_r" = yes; then
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r is posix" >&5
26883 $as_echo_n "checking if getpwnam_r is posix... " >&6; }
26884 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then :
26885 $as_echo_n "(cached) " >&6
26888 LIBS="$LIBS $LIB_getpwnam_r"
26889 if test "$cross_compiling" = yes; then :
26892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26893 /* end confdefs.h. */
26895 #define _POSIX_PTHREAD_SEMANTICS
26897 int main(int argc, char **argv)
26899 struct passwd pw, *pwd;
26900 return getpwnam_r("", &pw, 0, 0, &pwd) < 0;
26904 if ac_fn_c_try_run "$LINENO"; then :
26905 ac_cv_func_getpwnam_r_posix=yes
26907 ac_cv_func_getpwnam_r_posix=no
26909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26910 conftest.$ac_objext conftest.beam conftest.$ac_ext
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix" >&5
26916 $as_echo "$ac_cv_func_getpwnam_r_posix" >&6; }
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _POSIX_PTHREAD_SEMANTICS is needed" >&5
26918 $as_echo_n "checking if _POSIX_PTHREAD_SEMANTICS is needed... " >&6; }
26919 if test "${ac_cv_func_getpwnam_r_posix_def+set}" = set; then :
26920 $as_echo_n "(cached) " >&6
26923 LIBS="$LIBS $LIB_getpwnam_r"
26924 if test "$cross_compiling" = yes; then :
26927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26928 /* end confdefs.h. */
26931 int main(int argc, char **argv)
26933 struct passwd pw, *pwd;
26934 return getpwnam_r("", &pw, 0, 0, &pwd) < 0;
26938 if ac_fn_c_try_run "$LINENO"; then :
26939 ac_cv_func_getpwnam_r_posix_def=no
26941 ac_cv_func_getpwnam_r_posix_def=yes
26943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26944 conftest.$ac_objext conftest.beam conftest.$ac_ext
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix_def" >&5
26950 $as_echo "$ac_cv_func_getpwnam_r_posix_def" >&6; }
26951 if test "$ac_cv_func_getpwnam_r_posix" = yes; then
26953 $as_echo "#define POSIX_GETPWNAM_R 1" >>confdefs.h
26956 if test "$ac_cv_func_getpwnam_r_posix" = yes -a "$ac_cv_func_getpwnam_r_posix_def" = yes; then
26958 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
26964 if test "$enable_pthread_support" != no; then
26966 LIBS="$LIBS $PTHREADS_LIBS"
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for door_create" >&5
26971 $as_echo_n "checking for door_create... " >&6; }
26972 if test "${ac_cv_funclib_door_create+set}" = set; then :
26973 $as_echo_n "(cached) " >&6
26976 if eval "test \"\$ac_cv_func_door_create\" != yes" ; then
26977 ac_save_LIBS="$LIBS"
26978 for ac_lib in "" door; do
26984 *) ac_lib="-l$ac_lib" ;;
26986 LIBS=" $ac_lib $ac_save_LIBS"
26987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26988 /* end confdefs.h. */
26998 if ac_fn_c_try_link "$LINENO"; then :
26999 eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break
27001 rm -f core conftest.err conftest.$ac_objext \
27002 conftest$ac_exeext conftest.$ac_ext
27004 eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}"
27005 LIBS="$ac_save_LIBS"
27011 eval "ac_res=\$ac_cv_funclib_door_create"
27014 for ac_func in door_create
27016 ac_fn_c_check_func "$LINENO" "door_create" "ac_cv_func_door_create"
27017 if test "x$ac_cv_func_door_create" = x""yes; then :
27018 cat >>confdefs.h <<_ACEOF
27019 #define HAVE_DOOR_CREATE 1
27027 eval "ac_tr_func=HAVE_`echo door_create |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
27028 eval "ac_tr_lib=HAVE_LIB`echo $ac_res |
sed -e 's/-l//' |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
`"
27029 eval "LIB_door_create=$ac_res"
27033 eval "ac_cv_func_door_create=yes"
27034 eval "LIB_door_create="
27035 cat >>confdefs.h <<_ACEOF
27036 #define $ac_tr_func 1
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27040 $as_echo "yes" >&6; }
27043 eval "ac_cv_func_door_create=no"
27044 eval "LIB_door_create="
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27046 $as_echo "no" >&6; }
27049 eval "ac_cv_func_door_create=yes"
27050 eval "ac_cv_lib_`echo "$ac_res" |
sed 's/-l//'`=yes"
27051 cat >>confdefs.h <<_ACEOF
27052 #define $ac_tr_func 1
27055 cat >>confdefs.h <<_ACEOF
27056 #define $ac_tr_lib 1
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
27060 $as_echo "yes, in $ac_res" >&6; }
27068 # Check whether --enable-kcm was given.
27069 if test "${enable_kcm+set}" = set; then :
27070 enableval=$enable_kcm;
27076 if test "$enable_kcm" = yes ; then
27077 if test "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then
27081 if test "$enable_kcm" = yes; then
27083 $as_echo "#define HAVE_KCM 1" >>confdefs.h
27086 if test "$enable_kcm" = yes; then
27097 for ac_func in getudbnam setlim
27099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
27100 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27101 eval as_val=\$$as_ac_var
27102 if test "x$as_val" = x""yes; then :
27103 cat >>confdefs.h <<_ACEOF
27104 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr in struct utmp" >&5
27116 $as_echo_n "checking for ut_addr in struct utmp... " >&6; }
27117 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then :
27118 $as_echo_n "(cached) " >&6
27121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27122 /* end confdefs.h. */
27127 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_addr
27132 if ac_fn_c_try_compile "$LINENO"; then :
27133 ac_cv_type_struct_utmp_ut_addr=yes
27135 ac_cv_type_struct_utmp_ut_addr=no
27137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_addr" >&5
27141 $as_echo "$ac_cv_type_struct_utmp_ut_addr" >&6; }
27142 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
27145 $as_echo "#define HAVE_STRUCT_UTMP_UT_ADDR 1" >>confdefs.h
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmp" >&5
27154 $as_echo_n "checking for ut_host in struct utmp... " >&6; }
27155 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then :
27156 $as_echo_n "(cached) " >&6
27159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27160 /* end confdefs.h. */
27165 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_host
27170 if ac_fn_c_try_compile "$LINENO"; then :
27171 ac_cv_type_struct_utmp_ut_host=yes
27173 ac_cv_type_struct_utmp_ut_host=no
27175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_host" >&5
27179 $as_echo "$ac_cv_type_struct_utmp_ut_host" >&6; }
27180 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
27183 $as_echo "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id in struct utmp" >&5
27192 $as_echo_n "checking for ut_id in struct utmp... " >&6; }
27193 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then :
27194 $as_echo_n "(cached) " >&6
27197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27198 /* end confdefs.h. */
27203 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_id
27208 if ac_fn_c_try_compile "$LINENO"; then :
27209 ac_cv_type_struct_utmp_ut_id=yes
27211 ac_cv_type_struct_utmp_ut_id=no
27213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_id" >&5
27217 $as_echo "$ac_cv_type_struct_utmp_ut_id" >&6; }
27218 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
27221 $as_echo "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in struct utmp" >&5
27230 $as_echo_n "checking for ut_pid in struct utmp... " >&6; }
27231 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then :
27232 $as_echo_n "(cached) " >&6
27235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27236 /* end confdefs.h. */
27241 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_pid
27246 if ac_fn_c_try_compile "$LINENO"; then :
27247 ac_cv_type_struct_utmp_ut_pid=yes
27249 ac_cv_type_struct_utmp_ut_pid=no
27251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_pid" >&5
27255 $as_echo "$ac_cv_type_struct_utmp_ut_pid" >&6; }
27256 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
27259 $as_echo "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type in struct utmp" >&5
27268 $as_echo_n "checking for ut_type in struct utmp... " >&6; }
27269 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then :
27270 $as_echo_n "(cached) " >&6
27273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27274 /* end confdefs.h. */
27279 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_type
27284 if ac_fn_c_try_compile "$LINENO"; then :
27285 ac_cv_type_struct_utmp_ut_type=yes
27287 ac_cv_type_struct_utmp_ut_type=no
27289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_type" >&5
27293 $as_echo "$ac_cv_type_struct_utmp_ut_type" >&6; }
27294 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
27297 $as_echo "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_user in struct utmp" >&5
27306 $as_echo_n "checking for ut_user in struct utmp... " >&6; }
27307 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then :
27308 $as_echo_n "(cached) " >&6
27311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27312 /* end confdefs.h. */
27317 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_user
27322 if ac_fn_c_try_compile "$LINENO"; then :
27323 ac_cv_type_struct_utmp_ut_user=yes
27325 ac_cv_type_struct_utmp_ut_user=no
27327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_user" >&5
27331 $as_echo "$ac_cv_type_struct_utmp_ut_user" >&6; }
27332 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
27335 $as_echo "#define HAVE_STRUCT_UTMP_UT_USER 1" >>confdefs.h
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmpx" >&5
27344 $as_echo_n "checking for ut_host in struct utmpx... " >&6; }
27345 if test "${ac_cv_type_struct_utmpx_ut_host+set}" = set; then :
27346 $as_echo_n "(cached) " >&6
27349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27350 /* end confdefs.h. */
27355 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_host
27360 if ac_fn_c_try_compile "$LINENO"; then :
27361 ac_cv_type_struct_utmpx_ut_host=yes
27363 ac_cv_type_struct_utmpx_ut_host=no
27365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_host" >&5
27369 $as_echo "$ac_cv_type_struct_utmpx_ut_host" >&6; }
27370 if test "$ac_cv_type_struct_utmpx_ut_host" = yes; then
27373 $as_echo "#define HAVE_STRUCT_UTMPX_UT_HOST 1" >>confdefs.h
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id in struct utmpx" >&5
27382 $as_echo_n "checking for ut_id in struct utmpx... " >&6; }
27383 if test "${ac_cv_type_struct_utmpx_ut_id+set}" = set; then :
27384 $as_echo_n "(cached) " >&6
27387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388 /* end confdefs.h. */
27393 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_id
27398 if ac_fn_c_try_compile "$LINENO"; then :
27399 ac_cv_type_struct_utmpx_ut_id=yes
27401 ac_cv_type_struct_utmpx_ut_id=no
27403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_id" >&5
27407 $as_echo "$ac_cv_type_struct_utmpx_ut_id" >&6; }
27408 if test "$ac_cv_type_struct_utmpx_ut_id" = yes; then
27411 $as_echo "#define HAVE_STRUCT_UTMPX_UT_ID 1" >>confdefs.h
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_line in struct utmpx" >&5
27420 $as_echo_n "checking for ut_line in struct utmpx... " >&6; }
27421 if test "${ac_cv_type_struct_utmpx_ut_line+set}" = set; then :
27422 $as_echo_n "(cached) " >&6
27425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27426 /* end confdefs.h. */
27431 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_line
27436 if ac_fn_c_try_compile "$LINENO"; then :
27437 ac_cv_type_struct_utmpx_ut_line=yes
27439 ac_cv_type_struct_utmpx_ut_line=no
27441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_line" >&5
27445 $as_echo "$ac_cv_type_struct_utmpx_ut_line" >&6; }
27446 if test "$ac_cv_type_struct_utmpx_ut_line" = yes; then
27449 $as_echo "#define HAVE_STRUCT_UTMPX_UT_LINE 1" >>confdefs.h
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in struct utmpx" >&5
27458 $as_echo_n "checking for ut_pid in struct utmpx... " >&6; }
27459 if test "${ac_cv_type_struct_utmpx_ut_pid+set}" = set; then :
27460 $as_echo_n "(cached) " >&6
27463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27464 /* end confdefs.h. */
27469 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_pid
27474 if ac_fn_c_try_compile "$LINENO"; then :
27475 ac_cv_type_struct_utmpx_ut_pid=yes
27477 ac_cv_type_struct_utmpx_ut_pid=no
27479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_pid" >&5
27483 $as_echo "$ac_cv_type_struct_utmpx_ut_pid" >&6; }
27484 if test "$ac_cv_type_struct_utmpx_ut_pid" = yes; then
27487 $as_echo "#define HAVE_STRUCT_UTMPX_UT_PID 1" >>confdefs.h
27495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv in struct utmpx" >&5
27496 $as_echo_n "checking for ut_tv in struct utmpx... " >&6; }
27497 if test "${ac_cv_type_struct_utmpx_ut_tv+set}" = set; then :
27498 $as_echo_n "(cached) " >&6
27501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27502 /* end confdefs.h. */
27507 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_tv
27512 if ac_fn_c_try_compile "$LINENO"; then :
27513 ac_cv_type_struct_utmpx_ut_tv=yes
27515 ac_cv_type_struct_utmpx_ut_tv=no
27517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_tv" >&5
27521 $as_echo "$ac_cv_type_struct_utmpx_ut_tv" >&6; }
27522 if test "$ac_cv_type_struct_utmpx_ut_tv" = yes; then
27525 $as_echo "#define HAVE_STRUCT_UTMPX_UT_TV 1" >>confdefs.h
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type in struct utmpx" >&5
27534 $as_echo_n "checking for ut_type in struct utmpx... " >&6; }
27535 if test "${ac_cv_type_struct_utmpx_ut_type+set}" = set; then :
27536 $as_echo_n "(cached) " >&6
27539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27540 /* end confdefs.h. */
27545 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_type
27550 if ac_fn_c_try_compile "$LINENO"; then :
27551 ac_cv_type_struct_utmpx_ut_type=yes
27553 ac_cv_type_struct_utmpx_ut_type=no
27555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_type" >&5
27559 $as_echo "$ac_cv_type_struct_utmpx_ut_type" >&6; }
27560 if test "$ac_cv_type_struct_utmpx_ut_type" = yes; then
27563 $as_echo "#define HAVE_STRUCT_UTMPX_UT_TYPE 1" >>confdefs.h
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_user in struct utmpx" >&5
27572 $as_echo_n "checking for ut_user in struct utmpx... " >&6; }
27573 if test "${ac_cv_type_struct_utmpx_ut_user+set}" = set; then :
27574 $as_echo_n "(cached) " >&6
27577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27578 /* end confdefs.h. */
27583 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_user
27588 if ac_fn_c_try_compile "$LINENO"; then :
27589 ac_cv_type_struct_utmpx_ut_user=yes
27591 ac_cv_type_struct_utmpx_ut_user=no
27593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_user" >&5
27597 $as_echo "$ac_cv_type_struct_utmpx_ut_user" >&6; }
27598 if test "$ac_cv_type_struct_utmpx_ut_user" = yes; then
27601 $as_echo "#define HAVE_STRUCT_UTMPX_UT_USER 1" >>confdefs.h
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit in struct utmpx" >&5
27610 $as_echo_n "checking for ut_exit in struct utmpx... " >&6; }
27611 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then :
27612 $as_echo_n "(cached) " >&6
27615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27616 /* end confdefs.h. */
27621 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_exit
27626 if ac_fn_c_try_compile "$LINENO"; then :
27627 ac_cv_type_struct_utmpx_ut_exit=yes
27629 ac_cv_type_struct_utmpx_ut_exit=no
27631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
27635 $as_echo "$ac_cv_type_struct_utmpx_ut_exit" >&6; }
27636 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
27639 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_syslen in struct utmpx" >&5
27648 $as_echo_n "checking for ut_syslen in struct utmpx... " >&6; }
27649 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then :
27650 $as_echo_n "(cached) " >&6
27653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27654 /* end confdefs.h. */
27659 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_syslen
27664 if ac_fn_c_try_compile "$LINENO"; then :
27665 ac_cv_type_struct_utmpx_ut_syslen=yes
27667 ac_cv_type_struct_utmpx_ut_syslen=no
27669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
27673 $as_echo "$ac_cv_type_struct_utmpx_ut_syslen" >&6; }
27674 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
27677 $as_echo "#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1" >>confdefs.h
27684 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "
27685 #ifdef HAVE_INTTYPES_H
27686 #include <inttypes.h>
27688 #ifdef HAVE_SYS_TYPES_H
27689 #include <sys/types.h>
27691 #ifdef HAVE_SYS_BITYPES_H
27692 #include <sys/bitypes.h>
27694 #ifdef HAVE_BIND_BITYPES_H
27695 #include <bind/bitypes.h>
27697 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27698 #include <netinet/in6_machtypes.h>
27702 if test "x$ac_cv_type_int8_t" = x""yes; then :
27704 cat >>confdefs.h <<_ACEOF
27705 #define HAVE_INT8_T 1
27710 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "
27711 #ifdef HAVE_INTTYPES_H
27712 #include <inttypes.h>
27714 #ifdef HAVE_SYS_TYPES_H
27715 #include <sys/types.h>
27717 #ifdef HAVE_SYS_BITYPES_H
27718 #include <sys/bitypes.h>
27720 #ifdef HAVE_BIND_BITYPES_H
27721 #include <bind/bitypes.h>
27723 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27724 #include <netinet/in6_machtypes.h>
27728 if test "x$ac_cv_type_int16_t" = x""yes; then :
27730 cat >>confdefs.h <<_ACEOF
27731 #define HAVE_INT16_T 1
27736 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "
27737 #ifdef HAVE_INTTYPES_H
27738 #include <inttypes.h>
27740 #ifdef HAVE_SYS_TYPES_H
27741 #include <sys/types.h>
27743 #ifdef HAVE_SYS_BITYPES_H
27744 #include <sys/bitypes.h>
27746 #ifdef HAVE_BIND_BITYPES_H
27747 #include <bind/bitypes.h>
27749 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27750 #include <netinet/in6_machtypes.h>
27754 if test "x$ac_cv_type_int32_t" = x""yes; then :
27756 cat >>confdefs.h <<_ACEOF
27757 #define HAVE_INT32_T 1
27762 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "
27763 #ifdef HAVE_INTTYPES_H
27764 #include <inttypes.h>
27766 #ifdef HAVE_SYS_TYPES_H
27767 #include <sys/types.h>
27769 #ifdef HAVE_SYS_BITYPES_H
27770 #include <sys/bitypes.h>
27772 #ifdef HAVE_BIND_BITYPES_H
27773 #include <bind/bitypes.h>
27775 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27776 #include <netinet/in6_machtypes.h>
27780 if test "x$ac_cv_type_int64_t" = x""yes; then :
27782 cat >>confdefs.h <<_ACEOF
27783 #define HAVE_INT64_T 1
27788 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "
27789 #ifdef HAVE_INTTYPES_H
27790 #include <inttypes.h>
27792 #ifdef HAVE_SYS_TYPES_H
27793 #include <sys/types.h>
27795 #ifdef HAVE_SYS_BITYPES_H
27796 #include <sys/bitypes.h>
27798 #ifdef HAVE_BIND_BITYPES_H
27799 #include <bind/bitypes.h>
27801 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27802 #include <netinet/in6_machtypes.h>
27806 if test "x$ac_cv_type_u_int8_t" = x""yes; then :
27808 cat >>confdefs.h <<_ACEOF
27809 #define HAVE_U_INT8_T 1
27814 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "
27815 #ifdef HAVE_INTTYPES_H
27816 #include <inttypes.h>
27818 #ifdef HAVE_SYS_TYPES_H
27819 #include <sys/types.h>
27821 #ifdef HAVE_SYS_BITYPES_H
27822 #include <sys/bitypes.h>
27824 #ifdef HAVE_BIND_BITYPES_H
27825 #include <bind/bitypes.h>
27827 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27828 #include <netinet/in6_machtypes.h>
27832 if test "x$ac_cv_type_u_int16_t" = x""yes; then :
27834 cat >>confdefs.h <<_ACEOF
27835 #define HAVE_U_INT16_T 1
27840 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "
27841 #ifdef HAVE_INTTYPES_H
27842 #include <inttypes.h>
27844 #ifdef HAVE_SYS_TYPES_H
27845 #include <sys/types.h>
27847 #ifdef HAVE_SYS_BITYPES_H
27848 #include <sys/bitypes.h>
27850 #ifdef HAVE_BIND_BITYPES_H
27851 #include <bind/bitypes.h>
27853 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27854 #include <netinet/in6_machtypes.h>
27858 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
27860 cat >>confdefs.h <<_ACEOF
27861 #define HAVE_U_INT32_T 1
27866 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "
27867 #ifdef HAVE_INTTYPES_H
27868 #include <inttypes.h>
27870 #ifdef HAVE_SYS_TYPES_H
27871 #include <sys/types.h>
27873 #ifdef HAVE_SYS_BITYPES_H
27874 #include <sys/bitypes.h>
27876 #ifdef HAVE_BIND_BITYPES_H
27877 #include <bind/bitypes.h>
27879 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27880 #include <netinet/in6_machtypes.h>
27884 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
27886 cat >>confdefs.h <<_ACEOF
27887 #define HAVE_U_INT64_T 1
27892 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "
27893 #ifdef HAVE_INTTYPES_H
27894 #include <inttypes.h>
27896 #ifdef HAVE_SYS_TYPES_H
27897 #include <sys/types.h>
27899 #ifdef HAVE_SYS_BITYPES_H
27900 #include <sys/bitypes.h>
27902 #ifdef HAVE_BIND_BITYPES_H
27903 #include <bind/bitypes.h>
27905 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27906 #include <netinet/in6_machtypes.h>
27910 if test "x$ac_cv_type_uint8_t" = x""yes; then :
27912 cat >>confdefs.h <<_ACEOF
27913 #define HAVE_UINT8_T 1
27918 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "
27919 #ifdef HAVE_INTTYPES_H
27920 #include <inttypes.h>
27922 #ifdef HAVE_SYS_TYPES_H
27923 #include <sys/types.h>
27925 #ifdef HAVE_SYS_BITYPES_H
27926 #include <sys/bitypes.h>
27928 #ifdef HAVE_BIND_BITYPES_H
27929 #include <bind/bitypes.h>
27931 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27932 #include <netinet/in6_machtypes.h>
27936 if test "x$ac_cv_type_uint16_t" = x""yes; then :
27938 cat >>confdefs.h <<_ACEOF
27939 #define HAVE_UINT16_T 1
27944 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "
27945 #ifdef HAVE_INTTYPES_H
27946 #include <inttypes.h>
27948 #ifdef HAVE_SYS_TYPES_H
27949 #include <sys/types.h>
27951 #ifdef HAVE_SYS_BITYPES_H
27952 #include <sys/bitypes.h>
27954 #ifdef HAVE_BIND_BITYPES_H
27955 #include <bind/bitypes.h>
27957 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27958 #include <netinet/in6_machtypes.h>
27962 if test "x$ac_cv_type_uint32_t" = x""yes; then :
27964 cat >>confdefs.h <<_ACEOF
27965 #define HAVE_UINT32_T 1
27970 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "
27971 #ifdef HAVE_INTTYPES_H
27972 #include <inttypes.h>
27974 #ifdef HAVE_SYS_TYPES_H
27975 #include <sys/types.h>
27977 #ifdef HAVE_SYS_BITYPES_H
27978 #include <sys/bitypes.h>
27980 #ifdef HAVE_BIND_BITYPES_H
27981 #include <bind/bitypes.h>
27983 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
27984 #include <netinet/in6_machtypes.h>
27988 if test "x$ac_cv_type_uint64_t" = x""yes; then :
27990 cat >>confdefs.h <<_ACEOF
27991 #define HAVE_UINT64_T 1
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework security" >&5
28001 $as_echo_n "checking for framework security... " >&6; }
28002 if test "${rk_cv_framework_security+set}" = set; then :
28003 $as_echo_n "(cached) " >&6
28006 if test "$rk_cv_framework_security" != yes; then
28007 ac_save_LIBS="$LIBS"
28008 LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation"
28009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h. */
28011 #include <Security/Security.h>
28016 SecKeychainSearchRef searchRef;
28017 SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef);
28018 CFRelease(&searchRef);
28024 if ac_fn_c_try_link "$LINENO"; then :
28025 rk_cv_framework_security=yes
28027 rm -f core conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
28029 LIBS="$ac_save_LIBS"
28035 if test "$rk_cv_framework_security" = yes; then
28037 $as_echo "#define HAVE_FRAMEWORK_SECURITY 1" >>confdefs.h
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28040 $as_echo "yes" >&6; }
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28043 $as_echo "no" >&6; }
28045 if test "$rk_cv_framework_security" = yes; then
28046 FRAMEWORK_SECURITY_TRUE=
28047 FRAMEWORK_SECURITY_FALSE='#'
28049 FRAMEWORK_SECURITY_TRUE='#'
28050 FRAMEWORK_SECURITY_FALSE=
28054 if test "$rk_cv_framework_security" = yes; then
28056 if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SecKeyGetCSPHandle needs a prototype" >&5
28058 $as_echo_n "checking if SecKeyGetCSPHandle needs a prototype... " >&6; }
28059 if test "${ac_cv_func_SecKeyGetCSPHandle_noproto+set}" = set; then :
28060 $as_echo_n "(cached) " >&6
28062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28063 /* end confdefs.h. */
28064 #include <Security/Security.h>
28065 struct foo { int foo; } xx;
28066 extern int SecKeyGetCSPHandle (struct foo*);
28070 SecKeyGetCSPHandle(&xx)
28075 if ac_fn_c_try_compile "$LINENO"; then :
28076 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes"
28078 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no"
28080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5
28083 $as_echo "$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; }
28084 if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then
28086 $as_echo "#define NEED_SECKEYGETCSPHANDLE_PROTO 1" >>confdefs.h
28100 if test "$with_readline" = yes; then
28102 elif test "$with_libedit" = yes; then
28103 LIB_readline="${LIB_libedit}"
28104 elif test "$ac_cv_func_readline" = yes; then
28108 LIB_readline="\$(top_builddir)/lib/libedit/src/libheimedit.la \$(LIB_tgetent)"
28110 if test "$build_libedit" = yes; then
28119 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
28125 $as_echo "#define AUTHENTICATION 1" >>confdefs.h
28127 $as_echo "#define ENCRYPTION 1" >>confdefs.h
28129 $as_echo "#define DES_ENCRYPTION 1" >>confdefs.h
28131 $as_echo "#define DIAGNOSTICS 1" >>confdefs.h
28133 $as_echo "#define OLD_ENVIRON 1" >>confdefs.h
28136 $as_echo "#define ENV_HACK 1" >>confdefs.h
28140 # Simple test for streamspty, based on the existance of getmsg(), alas
28141 # this breaks on SunOS4 which have streams but BSD-like ptys
28143 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
28146 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
28149 ac_fn_c_check_func "$LINENO" "getmsg" "ac_cv_func_getmsg"
28150 if test "x$ac_cv_func_getmsg" = x""yes; then :
28154 if test "$ac_cv_func_getmsg" = "yes"; then
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getmsg works" >&5
28156 $as_echo_n "checking if getmsg works... " >&6; }
28157 if test "${ac_cv_func_getmsg_works+set}" = set; then :
28158 $as_echo_n "(cached) " >&6
28160 if test "$cross_compiling" = yes; then :
28161 ac_cv_func_getmsg_works=no
28163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28164 /* end confdefs.h. */
28169 int main(int argc, char **argv)
28172 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
28173 if(ret < 0 && errno == ENOSYS)
28179 if ac_fn_c_try_run "$LINENO"; then :
28180 ac_cv_func_getmsg_works=yes
28182 ac_cv_func_getmsg_works=no
28184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28185 conftest.$ac_objext conftest.beam conftest.$ac_ext
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getmsg_works" >&5
28190 $as_echo "$ac_cv_func_getmsg_works" >&6; }
28191 if test "$ac_cv_func_getmsg_works" = "yes"; then
28193 $as_echo "#define HAVE_GETMSG 1" >>confdefs.h
28196 $as_echo "#define STREAMSPTY 1" >>confdefs.h
28208 # Extract the first word of "compile_et", so it can be a program name with args.
28209 set dummy compile_et; ac_word=$2
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28211 $as_echo_n "checking for $ac_word... " >&6; }
28212 if test "${ac_cv_prog_COMPILE_ET+set}" = set; then :
28213 $as_echo_n "(cached) " >&6
28215 if test -n "$COMPILE_ET"; then
28216 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
28218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28219 for as_dir in $PATH
28222 test -z "$as_dir" && as_dir=.
28223 for ac_exec_ext in '' $ac_executable_extensions; do
28224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28225 ac_cv_prog_COMPILE_ET="compile_et"
28226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28235 COMPILE_ET=$ac_cv_prog_COMPILE_ET
28236 if test -n "$COMPILE_ET"; then
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
28238 $as_echo "$COMPILE_ET" >&6; }
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28241 $as_echo "no" >&6; }
28246 krb_cv_compile_et="no"
28247 krb_cv_com_err_need_r=""
28248 krb_cv_compile_et_cross=no
28249 if test "${COMPILE_ET}" = "compile_et"; then
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compile_et has the features we need" >&5
28252 $as_echo_n "checking whether compile_et has the features we need... " >&6; }
28253 cat > conftest_et.et <<'EOF'
28254 error_table test conf
28257 error_code CODE1, "CODE1"
28259 error_code CODE2, "CODE2"
28262 if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
28263 save_CPPFLAGS="${CPPFLAGS}"
28264 if test -d "/usr/include/et"; then
28265 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
28267 if test "$cross_compiling" = yes; then :
28268 krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes
28270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28271 /* end confdefs.h. */
28273 #include <com_err.h>
28274 #include <string.h>
28275 #include "conftest_et.h"
28276 int main(int argc, char **argv){
28277 #ifndef ERROR_TABLE_BASE_conf
28278 #error compile_et does not handle error_table N M
28280 return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
28283 if ac_fn_c_try_run "$LINENO"; then :
28284 krb_cv_compile_et="yes"
28286 CPPFLAGS="${save_CPPFLAGS}"
28288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28289 conftest.$ac_objext conftest.beam conftest.$ac_ext
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_compile_et}" >&5
28294 $as_echo "${krb_cv_compile_et}" >&6; }
28295 if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if com_err generates a initialize_conf_error_table_r" >&5
28297 $as_echo_n "checking for if com_err generates a initialize_conf_error_table_r... " >&6; }
28298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28299 /* end confdefs.h. */
28300 #include "conftest_et.h"
28302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28303 $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then :
28304 krb_cv_com_err_need_r="ok"
28308 if test X"$krb_cv_com_err_need_r" = X ; then
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28310 $as_echo "no" >&6; }
28311 krb_cv_compile_et=no
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28314 $as_echo "yes" >&6; }
28320 if test "${krb_cv_compile_et_cross}" = yes ; then
28321 krb_cv_com_err="cross"
28322 elif test "${krb_cv_compile_et}" = "yes"; then
28323 krb_cv_save_LIBS="${LIBS}"
28324 LIBS="${LIBS} -lcom_err"
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5
28326 $as_echo_n "checking for com_err... " >&6; }
28327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328 /* end confdefs.h. */
28329 #include <com_err.h>
28335 p = error_message(0);
28336 initialize_error_table_r(0,0,0,0);
28337 com_right_r(0, 0, 0, 0);
28343 if ac_fn_c_try_link "$LINENO"; then :
28344 krb_cv_com_err="yes"
28346 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
28348 rm -f core conftest.err conftest.$ac_objext \
28349 conftest$ac_exeext conftest.$ac_ext
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_com_err}" >&5
28351 $as_echo "${krb_cv_com_err}" >&6; }
28352 LIBS="${krb_cv_save_LIBS}"
28354 krb_cv_com_err="no"
28357 if test "${krb_cv_com_err}" = "yes"; then
28359 LIB_com_err="-lcom_err"
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the already-installed com_err" >&5
28363 $as_echo "$as_me: Using the already-installed com_err" >&6;}
28364 COMPILE_ET="${ac_cv_prog_COMPILE_ET}"
28366 elif test "${krb_cv_com_err}" = "cross"; then
28367 DIR_com_err="com_err"
28368 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
28369 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
28370 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err with toolchain compile_et" >&5
28372 $as_echo "$as_me: Using our own com_err with toolchain compile_et" >&6;}
28373 COMPILE_ET="${ac_cv_prog_COMPILE_ET}"
28376 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
28377 DIR_com_err="com_err"
28378 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
28379 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
28380 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err" >&5
28382 $as_echo "$as_me: Using our own com_err" >&6;}
28385 if test "$localcomerr" = yes; then
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which authentication modules should be built" >&5
28402 $as_echo_n "checking which authentication modules should be built... " >&6; }
28404 z='sia afskauthlib'
28409 if test "$ac_cv_header_siad_h" = yes; then
28410 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
28415 *-*-freebsd*) ac_cv_want_pam_krb4=no ;;
28416 *) ac_cv_want_pam_krb4=yes ;;
28419 if test "$ac_cv_want_pam_krb4" = yes -a \
28420 "$ac_cv_header_security_pam_modules_h" = yes -a \
28421 "$enable_shared" = yes; then
28422 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
28427 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
28432 if test "$LIB_AUTH_SUBDIRS"; then
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIB_AUTH_SUBDIRS" >&5
28434 $as_echo "$LIB_AUTH_SUBDIRS" >&6; }
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
28437 $as_echo "none" >&6; }
28443 # This is done by AC_OUTPUT but we need the result here.
28444 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28450 while test "x$y" != "x$x"; do
28455 cat >>confdefs.h <<_ACEOF
28456 #define BINDIR "$x"
28461 while test "x$y" != "x$x"; do
28466 cat >>confdefs.h <<_ACEOF
28467 #define LIBDIR "$x"
28472 while test "x$y" != "x$x"; do
28477 cat >>confdefs.h <<_ACEOF
28478 #define LIBEXECDIR "$x"
28481 x="${localstatedir}"
28483 while test "x$y" != "x$x"; do
28488 cat >>confdefs.h <<_ACEOF
28489 #define LOCALSTATEDIR "$x"
28494 while test "x$y" != "x$x"; do
28499 cat >>confdefs.h <<_ACEOF
28500 #define SBINDIR "$x"
28505 while test "x$y" != "x$x"; do
28510 cat >>confdefs.h <<_ACEOF
28511 #define SYSCONFDIR "$x"
28518 # Check whether --enable-developer was given.
28519 if test "${enable_developer+set}" = set; then :
28520 enableval=$enable_developer;
28523 if test "X$enable_developer" = Xyes; then
28528 WFLAGS_NOIMPLICITINT=""
28529 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
28530 # -Wno-implicit-int for broken X11 headers
28531 # leave these out for now:
28532 # -Wcast-align doesn't work well on alpha osf/1
28533 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
28534 # -Wmissing-declarations -Wnested-externs
28535 # -Wstrict-overflow=5
28536 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
28537 WFLAGS_NOUNUSED="-Wno-unused"
28538 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
28547 # Check whether --enable-heimdal-documentation was given.
28548 if test "${enable_heimdal_documentation+set}" = set; then :
28549 enableval=$enable_heimdal_documentation;
28552 if test "$enable_heimdal_documentation" != no; then
28553 HEIMDAL_DOCUMENTATION_TRUE=
28554 HEIMDAL_DOCUMENTATION_FALSE='#'
28556 HEIMDAL_DOCUMENTATION_TRUE='#'
28557 HEIMDAL_DOCUMENTATION_FALSE=
28561 ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile base/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/hx509/Makefile lib/gssapi/Makefile lib/ntlm/Makefile lib/hdb/Makefile lib/ipc/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/sqlite/Makefile lib/vers/Makefile lib/wind/Makefile po/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kcm/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/gssmask/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 tests/Makefile tests/bin/Makefile tests/can/Makefile tests/db/Makefile tests/kdc/Makefile tests/ldap/Makefile tests/gss/Makefile tests/java/Makefile tests/plugin/Makefile packages/Makefile packages/mac/Makefile doc/Makefile tools/Makefile"
28564 cat >confcache <<\_ACEOF
28565 # This file is a shell script that caches the results of configure
28566 # tests run on this system so they can be shared between configure
28567 # scripts and configure runs, see configure's option --config-cache.
28568 # It is not useful on other systems. If it contains results you don't
28569 # want to keep, you may remove or edit it.
28571 # config.status only pays attention to the cache file if you give it
28572 # the --recheck option to rerun configure.
28574 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
28575 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28576 # following values.
28580 # The following way of writing the cache mishandles newlines in values,
28581 # but we know of no workaround that is simple, portable, and efficient.
28582 # So, we kill variables containing newlines.
28583 # Ultrix sh set writes to stderr and can't be redirected directly,
28584 # and sets the high bit in the cache file unless we assign to the vars.
28586 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28587 eval ac_val
=\$
$ac_var
28591 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28592 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28595 _ | IFS | as_nl
) ;; #(
28596 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28597 *) { eval $ac_var=; unset $ac_var;} ;;
28603 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28604 *${as_nl}ac_space
=\
*)
28605 # `set' does not quote correctly, so add quotes: double-quote
28606 # substitution turns \\\\ into \\, and sed turns \\ into \.
28609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28612 # `set' quotes correctly as required by POSIX, so do not add quotes.
28613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28624 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28626 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28627 if test -w "$cache_file"; then
28628 test "x$cache_file" != "x/dev/null" &&
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28630 $as_echo "$as_me: updating cache $cache_file" >&6;}
28631 cat confcache
>$cache_file
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28634 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28639 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28640 # Let make expand exec_prefix.
28641 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28643 DEFS
=-DHAVE_CONFIG_H
28647 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28648 # 1. Remove the extension, and $U if already installed.
28649 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28650 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28652 # will be set to the directory where LIBOBJS objects are built.
28653 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28654 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28656 LIBOBJS
=$ac_libobjs
28658 LTLIBOBJS
=$ac_ltlibobjs
28661 if test -n "$EXEEXT"; then
28663 am__EXEEXT_FALSE
='#'
28665 am__EXEEXT_TRUE
='#'
28669 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28670 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
28671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28673 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28674 as_fn_error
"conditional \"AMDEP\" was never defined.
28675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28677 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28678 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
28679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28681 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
28682 as_fn_error
"conditional \"AIX\" was never defined.
28683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28685 if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
28686 as_fn_error
"conditional \"AIX4\" was never defined.
28687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28689 if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
28690 as_fn_error
"conditional \"HAVE_DLOPEN\" was never defined.
28691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28693 if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
28694 as_fn_error
"conditional \"AIX_DYNAMIC_AFS\" was never defined.
28695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28697 if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
28698 as_fn_error
"conditional \"IRIX\" was never defined.
28699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28701 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28702 as_fn_error
"conditional \"ENABLE_SHARED\" was never defined.
28703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28705 if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then
28706 as_fn_error
"conditional \"versionscript\" was never defined.
28707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28709 if test -z "${CROSS_COMPILE_TRUE}" && test -z "${CROSS_COMPILE_FALSE}"; then
28710 as_fn_error
"conditional \"CROSS_COMPILE\" was never defined.
28711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28713 if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then
28714 as_fn_error
"conditional \"OPENLDAP_MODULE\" was never defined.
28715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28717 if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then
28718 as_fn_error
"conditional \"PKINIT\" was never defined.
28719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28721 if test -z "${HAVE_CAPNG_TRUE}" && test -z "${HAVE_CAPNG_FALSE}"; then
28722 as_fn_error
"conditional \"HAVE_CAPNG\" was never defined.
28723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28725 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
28726 as_fn_error
"conditional \"SQLITE3\" was never defined.
28727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28729 if test -z "${have_scc_TRUE}" && test -z "${have_scc_FALSE}"; then
28730 as_fn_error
"conditional \"have_scc\" was never defined.
28731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28733 if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
28734 as_fn_error
"conditional \"KRB4\" was never defined.
28735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28737 if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
28738 as_fn_error
"conditional \"KRB5\" was never defined.
28739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28741 if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
28742 as_fn_error
"conditional \"do_roken_rename\" was never defined.
28743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28745 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
28746 as_fn_error
"conditional \"HAVE_OPENSSL\" was never defined.
28747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28749 if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
28750 as_fn_error
"conditional \"DCE\" was never defined.
28751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28753 if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
28754 as_fn_error
"conditional \"HAVE_DB1\" was never defined.
28755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28757 if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
28758 as_fn_error
"conditional \"HAVE_DB3\" was never defined.
28759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28761 if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
28762 as_fn_error
"conditional \"HAVE_NDBM\" was never defined.
28763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28765 if test -z "${HAVE_DBHEADER_TRUE}" && test -z "${HAVE_DBHEADER_FALSE}"; then
28766 as_fn_error
"conditional \"HAVE_DBHEADER\" was never defined.
28767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28769 if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
28770 as_fn_error
"conditional \"have_err_h\" was never defined.
28771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28773 if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
28774 as_fn_error
"conditional \"have_ifaddrs_h\" was never defined.
28775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28777 if test -z "${have_search_h_TRUE}" && test -z "${have_search_h_FALSE}"; then
28778 as_fn_error
"conditional \"have_search_h\" was never defined.
28779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28781 if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
28782 as_fn_error
"conditional \"have_vis_h\" was never defined.
28783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28785 if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
28786 as_fn_error
"conditional \"have_glob_h\" was never defined.
28787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28789 if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then
28790 as_fn_error
"conditional \"have_cgetent\" was never defined.
28791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28793 if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
28794 as_fn_error
"conditional \"have_fnmatch_h\" was never defined.
28795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28797 if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then
28798 as_fn_error
"conditional \"have_socket_wrapper\" was never defined.
28799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28801 if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
28802 as_fn_error
"conditional \"OTP\" was never defined.
28803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28805 if test -z "${have_gcd_TRUE}" && test -z "${have_gcd_FALSE}"; then
28806 as_fn_error
"conditional \"have_gcd\" was never defined.
28807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28809 if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
28810 as_fn_error
"conditional \"CATMAN\" was never defined.
28811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28813 if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
28814 as_fn_error
"conditional \"HAVE_X\" was never defined.
28815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28817 if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
28818 as_fn_error
"conditional \"NEED_WRITEAUTH\" was never defined.
28819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28821 if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then
28822 as_fn_error
"conditional \"KCM\" was never defined.
28823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28825 if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then
28826 as_fn_error
"conditional \"FRAMEWORK_SECURITY\" was never defined.
28827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28829 if test -z "${LIBEDIT_TRUE}" && test -z "${LIBEDIT_FALSE}"; then
28830 as_fn_error
"conditional \"LIBEDIT\" was never defined.
28831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28833 if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then
28834 as_fn_error
"conditional \"COM_ERR\" was never defined.
28835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28837 if test -z "${HEIMDAL_DOCUMENTATION_TRUE}" && test -z "${HEIMDAL_DOCUMENTATION_FALSE}"; then
28838 as_fn_error
"conditional \"HEIMDAL_DOCUMENTATION\" was never defined.
28839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28842 : ${CONFIG_STATUS=./config.status}
28844 ac_clean_files_save
=$ac_clean_files
28845 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28847 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28849 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28851 # Generated by $as_me.
28852 # Run this file to recreate the current configuration.
28853 # Compiler output produced by configure, useful for debugging
28854 # configure, is in config.log if it exists.
28857 ac_cs_recheck=false
28860 SHELL=\${CONFIG_SHELL-$SHELL}
28863 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28864 ## -------------------- ##
28865 ## M4sh Initialization. ##
28866 ## -------------------- ##
28868 # Be more Bourne compatible
28869 DUALCASE
=1; export DUALCASE
# for MKS sh
28870 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28873 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28874 # is contrary to our usage. Disable this feature.
28875 alias -g '${1+"$@"}'='"$@"'
28876 setopt NO_GLOB_SUBST
28878 case `(set -o) 2>/dev/null` in #(
28890 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28891 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28893 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28894 # Prefer a ksh shell builtin over an external printf program on Solaris,
28895 # but without wasting forks for bash or zsh.
28896 if test -z "$BASH_VERSION$ZSH_VERSION" \
28897 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28898 as_echo='print
-r --'
28899 as_echo_n='print
-rn --'
28900 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28901 as_echo='printf %s
\n'
28902 as_echo_n='printf %s
'
28904 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28905 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28906 as_echo_n='/usr
/ucb
/echo -n'
28908 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28909 as_echo_n_body='eval
28913 expr "X$arg" : "X\\(.*\\)$as_nl";
28914 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28916 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28918 export as_echo_n_body
28919 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28921 export as_echo_body
28922 as_echo='sh
-c $as_echo_body as_echo
'
28925 # The user is always right.
28926 if test "${PATH_SEPARATOR+set}" != set; then
28928 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28929 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28936 # We need space, tab and new line, in precisely that order. Quoting is
28937 # there to prevent editors from complaining about space-tab.
28938 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28939 # splitting by setting IFS to empty value.)
28942 # Find who we are. Look in the path if we contain no directory separator.
28944 *[\\/]* ) as_myself=$0 ;;
28945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28946 for as_dir in $PATH
28949 test -z "$as_dir" && as_dir=.
28950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28956 # We did not find ourselves, most probably we were run as `sh COMMAND'
28957 # in which case we are not to be found in the path.
28958 if test "x$as_myself" = x
; then
28961 if test ! -f "$as_myself"; then
28962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28966 # Unset variables that we do not need and which cause bugs (e.g. in
28967 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28968 # suppresses any "Segmentation fault" message there. '((' could
28969 # trigger a bug in pdksh 5.2.14.
28970 for as_var
in BASH_ENV ENV MAIL MAILPATH
28971 do eval test x\
${$as_var+set} = xset \
28972 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28985 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28988 # as_fn_error ERROR [LINENO LOG_FD]
28989 # ---------------------------------
28990 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28991 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28992 # script with status $?, using 1 if that was 0.
28995 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28997 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28998 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29000 $as_echo "$as_me: error: $1" >&2
29001 as_fn_exit
$as_status
29005 # as_fn_set_status STATUS
29006 # -----------------------
29007 # Set $? to STATUS, without forking.
29008 as_fn_set_status
()
29011 } # as_fn_set_status
29013 # as_fn_exit STATUS
29014 # -----------------
29015 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29019 as_fn_set_status
$1
29025 # Portably unset VAR.
29028 { eval $1=; unset $1;}
29030 as_unset
=as_fn_unset
29031 # as_fn_append VAR VALUE
29032 # ----------------------
29033 # Append the text in VALUE to the end of the definition contained in VAR. Take
29034 # advantage of any shell optimizations that allow amortized linear growth over
29035 # repeated appends, instead of the typical quadratic growth present in naive
29037 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29038 eval 'as_fn_append ()
29049 # as_fn_arith ARG...
29050 # ------------------
29051 # Perform arithmetic evaluation on the ARGs, and store the result in the
29052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29053 # must be portable across $(()) and expr.
29054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29055 eval 'as_fn_arith ()
29062 as_val
=`expr "$@" || test $? -eq 1`
29067 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29068 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29074 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29075 as_basename
=basename
29080 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29086 as_me
=`$as_basename -- "$0" ||
29087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29088 X"$0" : 'X\(//\)$' \| \
29089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29091 sed '/^.*\/\([^/][^/]*\)\/*$/{
29105 # Avoid depending upon Character Ranges.
29106 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29107 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29108 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29109 as_cr_digits
='0123456789'
29110 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29112 ECHO_C
= ECHO_N
= ECHO_T
=
29113 case `echo -n x` in #(((((
29115 case `echo 'xy\c'` in
29116 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29118 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29125 rm -f conf$$ conf$$.exe conf$$.
file
29126 if test -d conf$$.dir
; then
29127 rm -f conf$$.dir
/conf$$.
file
29130 mkdir conf$$.dir
2>/dev
/null
29132 if (echo >conf$$.
file) 2>/dev
/null
; then
29133 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29135 # ... but there are two gotchas:
29136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29138 # In both cases, we have to default to `cp -p'.
29139 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29141 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29149 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29150 rmdir conf$$.dir
2>/dev
/null
29155 # Create "$as_dir" as a directory, including parents if necessary.
29160 -*) as_dir
=.
/$as_dir;;
29162 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29166 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29167 *) as_qdir
=$as_dir;;
29169 as_dirs
="'$as_qdir' $as_dirs"
29170 as_dir
=`$as_dirname -- "$as_dir" ||
29171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29172 X"$as_dir" : 'X\(//\)[^/]' \| \
29173 X"$as_dir" : 'X\(//\)$' \| \
29174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29175 $as_echo X"$as_dir" |
29176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29180 /^X\(\/\/\)[^/].*/{
29193 test -d "$as_dir" && break
29195 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29196 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29200 if mkdir
-p .
2>/dev
/null
; then
29201 as_mkdir_p
='mkdir -p "$as_dir"'
29203 test -d .
/-p && rmdir .
/-p
29207 if test -x / >/dev
/null
2>&1; then
29208 as_test_x
='test -x'
29210 if ls -dL / >/dev
/null
2>&1; then
29217 if test -d "$1"; then
29223 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29224 ???[sx]*):;;*)false;;esac;fi
29228 as_executable_p
=$as_test_x
29230 # Sed expression to map a string onto a valid CPP name.
29231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29233 # Sed expression to map a string onto a valid variable name.
29234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29238 ## ----------------------------------- ##
29239 ## Main body of $CONFIG_STATUS script. ##
29240 ## ----------------------------------- ##
29242 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29245 # Save the log message, to keep $0 and so on meaningful, and to
29246 # report actual input values of CONFIG_FILES etc. instead of their
29247 # values after options handling.
29249 This file was extended by Heimdal $as_me 1.5.2, which was
29250 generated by GNU Autoconf 2.65. Invocation command line was
29252 CONFIG_FILES = $CONFIG_FILES
29253 CONFIG_HEADERS = $CONFIG_HEADERS
29254 CONFIG_LINKS = $CONFIG_LINKS
29255 CONFIG_COMMANDS = $CONFIG_COMMANDS
29258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29263 case $ac_config_files in *"
29264 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29267 case $ac_config_headers in *"
29268 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29273 # Files that config.status was made for.
29274 config_files="$ac_config_files"
29275 config_headers="$ac_config_headers"
29276 config_commands="$ac_config_commands"
29280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29282 \`$as_me' instantiates files and other configuration actions
29283 from templates according to the current configuration. Unless the files
29284 and actions are specified as TAGs, all are instantiated by default.
29286 Usage: $0 [OPTION]... [TAG]...
29288 -h, --help print this help, then exit
29289 -V, --version print version number and configuration settings, then exit
29290 --config print configuration, then exit
29291 -q, --quiet, --silent
29292 do not print progress messages
29293 -d, --debug don't remove temporary files
29294 --recheck update $as_me by reconfiguring in the same conditions
29295 --file=FILE[:TEMPLATE]
29296 instantiate the configuration file FILE
29297 --header=FILE[:TEMPLATE]
29298 instantiate the configuration header FILE
29300 Configuration files:
29303 Configuration headers:
29306 Configuration commands:
29309 Report bugs to <heimdal-bugs@h5l.org>."
29312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29313 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29315 Heimdal config.status 1.5.2
29316 configured by $0, generated by GNU Autoconf 2.65,
29317 with options \\"\$ac_cs_config\\"
29319 Copyright (C) 2009 Free Software Foundation, Inc.
29320 This config.status script is free software; the Free Software Foundation
29321 gives unlimited permission to copy, distribute and modify it."
29328 test -n "\$AWK" || AWK=awk
29331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29332 # The default lists apply if the user does not specify any file.
29338 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29339 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29350 # Handling of the options.
29351 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29353 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29354 $as_echo "$ac_cs_version"; exit ;;
29355 --config |
--confi |
--conf |
--con |
--co |
--c )
29356 $as_echo "$ac_cs_config"; exit ;;
29357 --debug |
--debu |
--deb |
--de |
--d |
-d )
29359 --file |
--fil |
--fi |
--f )
29362 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29364 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29365 ac_need_defaults
=false
;;
29366 --header |
--heade |
--head |
--hea )
29369 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29371 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29372 ac_need_defaults
=false
;;
29374 # Conflict between --help and --header
29375 as_fn_error
"ambiguous option: \`$1'
29376 Try \`$0 --help' for more information.";;
29377 --help |
--hel |
-h )
29378 $as_echo "$ac_cs_usage"; exit ;;
29379 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29380 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29383 # This is an error.
29384 -*) as_fn_error
"unrecognized option: \`$1'
29385 Try \`$0 --help' for more information." ;;
29387 *) as_fn_append ac_config_targets
" $1"
29388 ac_need_defaults
=false
;;
29394 ac_configure_extra_args
=
29396 if $ac_cs_silent; then
29398 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29403 if \$ac_cs_recheck; then
29404 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29406 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29407 CONFIG_SHELL='$SHELL'
29408 export CONFIG_SHELL
29413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29418 ## Running $as_me. ##
29424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29428 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29431 # The HP-UX ksh and POSIX shell print the target directory to stdout
29432 # if CDPATH is set.
29433 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29435 sed_quote_subst='$sed_quote_subst'
29436 double_quote_subst='$double_quote_subst'
29437 delay_variable_subst='$delay_variable_subst'
29438 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29439 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29440 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29441 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29442 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29443 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29444 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29445 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29446 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29447 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29448 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29449 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29450 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29451 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29452 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29453 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29454 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29455 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29456 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29457 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29458 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29459 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29460 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29461 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29462 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29463 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29464 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29465 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29466 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29467 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29468 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29469 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29470 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29471 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29472 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29473 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29474 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29475 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29476 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29477 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29478 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29479 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29480 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29481 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29482 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29483 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29484 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29485 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29486 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29487 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29488 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29489 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29490 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29491 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29492 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29493 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
29494 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29495 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29496 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29497 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29498 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29499 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29500 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29501 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29502 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29503 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29504 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29505 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29506 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29507 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29508 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29509 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29510 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29511 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29512 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29513 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29514 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29515 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29516 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29517 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29518 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29519 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29520 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29521 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29522 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29523 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29524 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29525 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29526 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29527 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29528 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
29529 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29530 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29531 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29532 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29533 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29534 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29535 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29536 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29537 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29538 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29539 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29540 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29541 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29542 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29543 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29544 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29545 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29546 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29547 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29548 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29549 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29550 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29551 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29552 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29553 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29554 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29555 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29556 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29557 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29558 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29559 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29560 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29561 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29562 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29563 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29564 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29565 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29566 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29567 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29570 LTCFLAGS='$LTCFLAGS'
29571 compiler='$compiler_DEFAULT'
29573 # A function that is used when there is no print builtin or printf.
29574 func_fallback_echo ()
29576 eval 'cat <<_LTECHO_EOF
29581 # Quote evaled strings.
29595 deplibs_check_method \
29600 sharedlib_from_linklib_cmd \
29603 archiver_list_spec \
29609 lt_cv_sys_global_symbol_pipe \
29610 lt_cv_sys_global_symbol_to_cdecl \
29611 lt_cv_sys_global_symbol_to_c_name_address \
29612 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29613 nm_file_list_spec \
29614 lt_prog_compiler_no_builtin_flag \
29615 lt_prog_compiler_pic \
29616 lt_prog_compiler_wl \
29617 lt_prog_compiler_static \
29618 lt_cv_prog_compiler_c_o \
29627 export_dynamic_flag_spec \
29628 whole_archive_flag_spec \
29629 compiler_needs_object \
29631 allow_undefined_flag \
29632 no_undefined_flag \
29633 hardcode_libdir_flag_spec \
29634 hardcode_libdir_flag_spec_ld \
29635 hardcode_libdir_separator \
29639 variables_saved_for_relink \
29641 library_names_spec \
29643 install_override_mode \
29647 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29648 *[\\\\\\\`\\"\\\$]*)
29649 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29652 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29657 # Double-quote double-evaled strings.
29658 for var in reload_cmds \
29659 old_postinstall_cmds \
29660 old_postuninstall_cmds \
29662 extract_expsyms_cmds \
29663 old_archive_from_new_cmds \
29664 old_archive_from_expsyms_cmds \
29666 archive_expsym_cmds \
29668 module_expsym_cmds \
29669 export_symbols_cmds \
29673 postuninstall_cmds \
29675 sys_lib_search_path_spec \
29676 sys_lib_dlsearch_path_spec; do
29677 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29678 *[\\\\\\\`\\"\\\$]*)
29679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29687 ac_aux_dir='$ac_aux_dir'
29688 xsi_shell='$xsi_shell'
29689 lt_shell_append='$lt_shell_append'
29691 # See if we are running on zsh, and set the options which allow our
29692 # commands through without removal of \ escapes INIT.
29693 if test -n "\${ZSH_VERSION+set}" ; then
29694 setopt NO_GLOB_SUBST
29700 TIMESTAMP='$TIMESTAMP'
29709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29711 # Handling of arguments.
29712 for ac_config_target
in $ac_config_targets
29714 case $ac_config_target in
29715 "include/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/config.h" ;;
29716 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29717 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
29718 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29719 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
29720 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
29721 "include/gssapi/Makefile") CONFIG_FILES
="$CONFIG_FILES include/gssapi/Makefile" ;;
29722 "include/hcrypto/Makefile") CONFIG_FILES
="$CONFIG_FILES include/hcrypto/Makefile" ;;
29723 "include/kadm5/Makefile") CONFIG_FILES
="$CONFIG_FILES include/kadm5/Makefile" ;;
29724 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
29725 "base/Makefile") CONFIG_FILES
="$CONFIG_FILES base/Makefile" ;;
29726 "lib/asn1/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/asn1/Makefile" ;;
29727 "lib/com_err/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/com_err/Makefile" ;;
29728 "lib/hcrypto/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/hcrypto/Makefile" ;;
29729 "lib/hx509/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/hx509/Makefile" ;;
29730 "lib/gssapi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/gssapi/Makefile" ;;
29731 "lib/ntlm/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/ntlm/Makefile" ;;
29732 "lib/hdb/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/hdb/Makefile" ;;
29733 "lib/ipc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/ipc/Makefile" ;;
29734 "lib/kadm5/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/kadm5/Makefile" ;;
29735 "lib/kafs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/kafs/Makefile" ;;
29736 "lib/kdfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/kdfs/Makefile" ;;
29737 "lib/krb5/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/krb5/Makefile" ;;
29738 "lib/otp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/otp/Makefile" ;;
29739 "lib/roken/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/roken/Makefile" ;;
29740 "lib/sl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sl/Makefile" ;;
29741 "lib/sqlite/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sqlite/Makefile" ;;
29742 "lib/vers/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/vers/Makefile" ;;
29743 "lib/wind/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/wind/Makefile" ;;
29744 "po/Makefile") CONFIG_FILES
="$CONFIG_FILES po/Makefile" ;;
29745 "kuser/Makefile") CONFIG_FILES
="$CONFIG_FILES kuser/Makefile" ;;
29746 "kpasswd/Makefile") CONFIG_FILES
="$CONFIG_FILES kpasswd/Makefile" ;;
29747 "kadmin/Makefile") CONFIG_FILES
="$CONFIG_FILES kadmin/Makefile" ;;
29748 "admin/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/Makefile" ;;
29749 "kcm/Makefile") CONFIG_FILES
="$CONFIG_FILES kcm/Makefile" ;;
29750 "kdc/Makefile") CONFIG_FILES
="$CONFIG_FILES kdc/Makefile" ;;
29751 "appl/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/Makefile" ;;
29752 "appl/afsutil/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/afsutil/Makefile" ;;
29753 "appl/ftp/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/ftp/Makefile" ;;
29754 "appl/ftp/common/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/ftp/common/Makefile" ;;
29755 "appl/ftp/ftp/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
29756 "appl/ftp/ftpd/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
29757 "appl/gssmask/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/gssmask/Makefile" ;;
29758 "appl/kx/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/kx/Makefile" ;;
29759 "appl/login/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/login/Makefile" ;;
29760 "appl/otp/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/otp/Makefile" ;;
29761 "appl/popper/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/popper/Makefile" ;;
29762 "appl/push/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/push/Makefile" ;;
29763 "appl/rsh/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/rsh/Makefile" ;;
29764 "appl/rcp/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/rcp/Makefile" ;;
29765 "appl/su/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/su/Makefile" ;;
29766 "appl/xnlock/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/xnlock/Makefile" ;;
29767 "appl/telnet/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/telnet/Makefile" ;;
29768 "appl/telnet/libtelnet/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
29769 "appl/telnet/telnet/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
29770 "appl/telnet/telnetd/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
29771 "appl/test/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/test/Makefile" ;;
29772 "appl/kf/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/kf/Makefile" ;;
29773 "appl/dceutils/Makefile") CONFIG_FILES
="$CONFIG_FILES appl/dceutils/Makefile" ;;
29774 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
29775 "tests/bin/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/bin/Makefile" ;;
29776 "tests/can/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/can/Makefile" ;;
29777 "tests/db/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/db/Makefile" ;;
29778 "tests/kdc/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/kdc/Makefile" ;;
29779 "tests/ldap/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/ldap/Makefile" ;;
29780 "tests/gss/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/gss/Makefile" ;;
29781 "tests/java/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/java/Makefile" ;;
29782 "tests/plugin/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/plugin/Makefile" ;;
29783 "packages/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/Makefile" ;;
29784 "packages/mac/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/mac/Makefile" ;;
29785 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
29786 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
29788 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29793 # If the user did not use the arguments to specify the items to instantiate,
29794 # then the envvar interface is used. Set only those that are not.
29795 # We use the long form for the default assignment because of an extremely
29796 # bizarre bug on SunOS 4.1.3.
29797 if $ac_need_defaults; then
29798 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29799 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29800 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29803 # Have a temporary directory for convenience. Make it in the build tree
29804 # simply because there is no reason against having it here, and in addition,
29805 # creating and moving files from /tmp can sometimes cause problems.
29806 # Hook for its removal unless debugging.
29807 # Note that there is a small window in which the directory will not be cleaned:
29808 # after its creation but before its name has been assigned to `$tmp'.
29812 trap 'exit_status=$?
29813 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29815 trap 'as_fn_exit 1' 1 2 13 15
29817 # Create a (secure) tmp directory for tmp files.
29820 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29821 test -n "$tmp" && test -d "$tmp"
29824 tmp
=.
/conf$$
-$RANDOM
29825 (umask 077 && mkdir
"$tmp")
29826 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29828 # Set up the scripts for CONFIG_FILES section.
29829 # No need to generate them if there are no CONFIG_FILES.
29830 # This happens for instance with `./config.status config.h'.
29831 if test -n "$CONFIG_FILES"; then
29834 ac_cr
=`echo X | tr X '\015'`
29835 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29836 # But we know of no other shell where ac_cr would be empty at this
29837 # point, so we can use a bashism as a fallback.
29838 if test "x$ac_cr" = x
; then
29839 eval ac_cr
=\$
\'\\r
\'
29841 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29842 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29845 ac_cs_awk_cr
=$ac_cr
29848 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29853 echo "cat >conf$$subs.awk <<_ACEOF" &&
29854 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29856 } >conf$$subs.sh ||
29857 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29858 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29860 for ac_last_try in false false false false false :; do
29861 . ./conf$$subs.sh ||
29862 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29864 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29865 if test $ac_delim_n = $ac_delim_num; then
29867 elif $ac_last_try; then
29868 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29870 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29873 rm -f conf$$subs.sh
29875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29876 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29880 s/^/S["/; s
/!.
*/"]=/
29890 s/\(.\{148\}\)..*/\1/
29892 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29897 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29904 s/\(.\{148\}\)..*/\1/
29906 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29910 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29915 ' <conf$$subs.awk | sed '
29920 ' >>$CONFIG_STATUS || ac_write_fail=1
29921 rm -f conf$$subs.awk
29922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29924 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29925 for (key in S) S_is_set[key] = 1
29931 nfields = split(line, field, "@
")
29933 len = length(field[1])
29934 for (i = 2; i < nfields; i++) {
29936 keylen = length(key)
29937 if (S_is_set[key]) {
29939 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29940 len += length(value) + length(field[++i])
29951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29952 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29953 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29956 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29957 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29960 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29961 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29962 # trailing colons and then remove the whole line if VPATH becomes empty
29963 # (actually we leave an empty line to preserve line numbers).
29964 if test "x
$srcdir" = x.; then
29965 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29966 s/:*\$(srcdir):*/:/
29967 s/:*\${srcdir}:*/:/
29969 s/^\([^=]*=[ ]*\):*/\1/
29975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29976 fi # test -n "$CONFIG_FILES"
29978 # Set up the scripts for CONFIG_HEADERS section.
29979 # No need to generate them if there are no CONFIG_HEADERS.
29980 # This happens for instance with `./config.status Makefile'.
29981 if test -n "$CONFIG_HEADERS"; then
29982 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29986 # Transform confdefs.h into an awk script `defines.awk', embedded as
29987 # here-document in config.status, that substitutes the proper values into
29988 # config.h.in to produce config.h.
29990 # Create a delimiter string that does not exist in confdefs.h, to ease
29991 # handling of long lines.
29993 for ac_last_try in false false :; do
29994 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29995 if test -z "$ac_t"; then
29997 elif $ac_last_try; then
29998 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30000 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30004 # For the awk script, D is an array of macro values keyed by name,
30005 # likewise P contains macro parameters if any. Preserve backslash
30006 # newline sequences.
30008 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30010 s/.\{148\}/&'"$ac_delim"'/g
30013 s/^[ ]*#[ ]*define[ ][ ]*/ /
30020 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30022 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30026 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30027 D["\
1"]=" \
3\\\\\\n
"\\/p
30029 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30034 s/.\{148\}/&'"$ac_delim"'/g
30039 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30042 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30044 ' <confdefs.h | sed '
30045 s/'"$ac_delim"'/"\\\
30046 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30049 for (key in D) D_is_set[key] = 1
30052 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30054 split(line, arg, " ")
30055 if (arg[1] == "#") {
30059 defundef
= substr
(arg
[1], 2)
30062 split(mac1
, mac2
, "(") #)
30064 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30065 if (D_is_set
[macro
]) {
30066 # Preserve the white space surrounding the "#".
30067 print prefix
"define", macro P
[macro
] D
[macro
]
30070 # Replace #undef with comments. This is necessary, for example,
30071 # in the case of _POSIX_SOURCE, which is predefined and required
30072 # on some systems where configure will not decide to define it.
30073 if (defundef
== "undef") {
30074 print
"/*", prefix defundef
, macro
, "*/"
30082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30083 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30084 fi # test -n "$CONFIG_HEADERS"
30087 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30092 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30094 case $ac_mode$ac_tag in
30096 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30097 :[FH
]-) ac_tag
=-:-;;
30098 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30115 -) ac_f
="$tmp/stdin";;
30116 *) # Look for the file first in the build tree, then in the source tree
30117 # (if the path is not absolute). The absolute path cannot be DOS-style,
30118 # because $ac_f cannot contain `:'.
30122 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30124 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30126 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30127 as_fn_append ac_file_inputs
" '$ac_f'"
30130 # Let's still pretend it is `configure' which instantiates (i.e., don't
30131 # use $as_me), people would be surprised to read:
30132 # /* config.h. Generated by config.status. */
30133 configure_input
='Generated from '`
30134 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30136 if test x
"$ac_file" != x-
; then
30137 configure_input
="$ac_file. $configure_input"
30138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30139 $as_echo "$as_me: creating $ac_file" >&6;}
30141 # Neutralize special characters interpreted by sed in replacement strings.
30142 case $configure_input in #(
30143 *\
&* |
*\|
* |
*\\* )
30144 ac_sed_conf_input
=`$as_echo "$configure_input" |
30145 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30146 *) ac_sed_conf_input
=$configure_input;;
30150 *:-:* |
*:-) cat >"$tmp/stdin" \
30151 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30156 ac_dir
=`$as_dirname -- "$ac_file" ||
30157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30158 X"$ac_file" : 'X\(//\)[^/]' \| \
30159 X"$ac_file" : 'X\(//\)$' \| \
30160 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30161 $as_echo X"$ac_file" |
30162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30166 /^X\(\/\/\)[^/].*/{
30179 as_dir
="$ac_dir"; as_fn_mkdir_p
30183 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30185 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30186 # A ".." for each directory in $ac_dir_suffix.
30187 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30188 case $ac_top_builddir_sub in
30189 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30190 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30193 ac_abs_top_builddir
=$ac_pwd
30194 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30195 # for backward compatibility:
30196 ac_top_builddir
=$ac_top_build_prefix
30199 .
) # We are building in place.
30201 ac_top_srcdir
=$ac_top_builddir_sub
30202 ac_abs_top_srcdir
=$ac_pwd ;;
30203 [\\/]* | ?
:[\\/]* ) # Absolute name.
30204 ac_srcdir
=$srcdir$ac_dir_suffix;
30205 ac_top_srcdir
=$srcdir
30206 ac_abs_top_srcdir
=$srcdir ;;
30207 *) # Relative name.
30208 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30209 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30210 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30212 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30222 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30223 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30225 ac_MKDIR_P
=$MKDIR_P
30227 [\\/$
]* | ?
:[\\/]* ) ;;
30228 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30233 # If the template does not know about datarootdir, expand it.
30234 # FIXME: This hack should be removed a few years after 2.60.
30235 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30246 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30247 *datarootdir
*) ac_datarootdir_seen
=yes;;
30248 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30250 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30253 ac_datarootdir_hack='
30254 s&@datadir@&$datadir&g
30255 s&@docdir@&$docdir&g
30256 s&@infodir@&$infodir&g
30257 s&@localedir@&$localedir&g
30258 s&@mandir@&$mandir&g
30259 s&\\\${datarootdir}&$datarootdir&g' ;;
30263 # Neutralize VPATH when `$srcdir' = `.'.
30264 # Shell code in configure.ac might set extrasub.
30265 # FIXME: do we really want to maintain this feature?
30266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30267 ac_sed_extra="$ac_vpsub
30270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30272 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30273 s|@configure_input@|
$ac_sed_conf_input|
;t t
30274 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30275 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30276 s
&@srcdir@
&$ac_srcdir&;t t
30277 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30278 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30279 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30280 s
&@builddir@
&$ac_builddir&;t t
30281 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30282 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30283 s
&@INSTALL@
&$ac_INSTALL&;t t
30284 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30285 $ac_datarootdir_hack
30287 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
30288 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30290 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30291 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30292 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30294 which seems to be undefined. Please make sure it is defined." >&5
30295 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30296 which seems to be undefined. Please make sure it is defined." >&2;}
30300 -) cat "$tmp/out" && rm -f "$tmp/out";;
30301 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30303 || as_fn_error "could not create $ac_file" "$LINENO" 5
30309 if test x"$ac_file" != x-; then
30311 $as_echo "/* $configure_input */" \
30312 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30313 } >"$tmp/config.h" \
30314 || as_fn_error "could not create $ac_file" "$LINENO" 5
30315 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30316 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30317 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30320 mv "$tmp/config.h" "$ac_file" \
30321 || as_fn_error "could not create $ac_file" "$LINENO" 5
30324 $as_echo "/* $configure_input */" \
30325 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30326 || as_fn_error "could not create -" "$LINENO" 5
30328 # Compute "$ac_file"'s index
in $config_headers.
30331 for _am_header
in $config_headers :; do
30332 case $_am_header in
30333 $_am_arg |
$_am_arg:* )
30336 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30339 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30340 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30341 X"$_am_arg" : 'X\(//\)[^/]' \| \
30342 X"$_am_arg" : 'X\(//\)$' \| \
30343 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30344 $as_echo X"$_am_arg" |
30345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30349 /^X\(\/\/\)[^/].*/{
30361 s/.*/./; q'`/stamp-h
$_am_stamp_count
30364 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30365 $as_echo "$as_me: executing $ac_file commands" >&6;}
30370 case $ac_file$ac_mode in
30371 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30372 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30373 # are listed without --file. Let's play safe and only enable the eval
30374 # if we detect the quoting.
30375 case $CONFIG_FILES in
30376 *\'*) eval set x
"$CONFIG_FILES" ;;
30377 *) set x
$CONFIG_FILES ;;
30382 # Strip MF so we end up with the name of the file.
30383 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30384 # Check whether this is an Automake generated Makefile or not.
30385 # We used to match only the files named `Makefile.in', but
30386 # some people rename them; so instead we look at the file content.
30387 # Grep'ing the first line is not enough: some people post-process
30388 # each Makefile.in and add a new line on top of each file to say so.
30389 # Grep'ing the whole file is not good either: AIX grep has a line
30390 # limit of 2048, but all sed's we know have understand at least 4000.
30391 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30392 dirpart
=`$as_dirname -- "$mf" ||
30393 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30394 X"$mf" : 'X\(//\)[^/]' \| \
30395 X"$mf" : 'X\(//\)$' \| \
30396 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30402 /^X\(\/\/\)[^/].*/{
30418 # Extract the definition of DEPDIR, am__include, and am__quote
30419 # from the Makefile without running `make'.
30420 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30421 test -z "$DEPDIR" && continue
30422 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30423 test -z "am__include" && continue
30424 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30425 # When using ansi2knr, U may be empty or an underscore; expand it
30426 U
=`sed -n 's/^U = //p' < "$mf"`
30427 # Find all dependency output files, they are included files with
30428 # $(DEPDIR) in their names. We invoke sed twice because it is the
30429 # simplest approach to changing $(DEPDIR) to its actual value in the
30431 for file in `sed -n "
30432 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30433 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30434 # Make sure the directory exists.
30435 test -f "$dirpart/$file" && continue
30436 fdir
=`$as_dirname -- "$file" ||
30437 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30438 X"$file" : 'X\(//\)[^/]' \| \
30439 X"$file" : 'X\(//\)$' \| \
30440 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30441 $as_echo X"$file" |
30442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30446 /^X\(\/\/\)[^/].*/{
30459 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30460 # echo "creating $dirpart/$file"
30461 echo '# dummy' > "$dirpart/$file"
30468 # See if we are running on zsh, and set the options which allow our
30469 # commands through without removal of \ escapes.
30470 if test -n "${ZSH_VERSION+set}" ; then
30471 setopt NO_GLOB_SUBST
30474 cfgfile
="${ofile}T"
30475 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30478 cat <<_LT_EOF >> "$cfgfile"
30481 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30482 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30483 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30484 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30486 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30487 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
30489 # Written by Gordon Matzigkeit, 1996
30491 # This file is part of GNU Libtool.
30493 # GNU Libtool is free software; you can redistribute it and/or
30494 # modify it under the terms of the GNU General Public License as
30495 # published by the Free Software Foundation; either version 2 of
30496 # the License, or (at your option) any later version.
30498 # As a special exception to the GNU General Public License,
30499 # if you distribute this file as part of a program or library that
30500 # is built using GNU Libtool, you may include this file under the
30501 # same distribution terms that you use for the rest of that program.
30503 # GNU Libtool is distributed in the hope that it will be useful,
30504 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30505 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30506 # GNU General Public License for more details.
30508 # You should have received a copy of the GNU General Public License
30509 # along with GNU Libtool; see the file COPYING. If not, a copy
30510 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30511 # obtained by writing to the Free Software Foundation, Inc.,
30512 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30515 # The names of the tagged configurations supported by this script.
30518 # ### BEGIN LIBTOOL CONFIG
30520 # Which release of libtool.m4 was used?
30521 macro_version=$macro_version
30522 macro_revision=$macro_revision
30524 # Whether or not to build shared libraries.
30525 build_libtool_libs=$enable_shared
30527 # Whether or not to build static libraries.
30528 build_old_libs=$enable_static
30530 # What type of objects to build.
30533 # Whether or not to optimize for fast installation.
30534 fast_install=$enable_fast_install
30536 # Shell to use when invoking shell scripts.
30539 # An echo program that protects backslashes.
30543 host_alias=$host_alias
30547 # The build system.
30548 build_alias=$build_alias
30552 # A sed program that does not truncate output.
30555 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30556 Xsed="\$SED -e 1s/^X//"
30558 # A grep program that handles long lines.
30564 # A literal string matcher.
30567 # A BSD- or MS-compatible name lister.
30570 # Whether we need soft or hard links.
30573 # What is the maximum length of a command?
30574 max_cmd_len=$max_cmd_len
30576 # Object file suffix (normally "o").
30579 # Executable file suffix (normally "").
30582 # whether the shell understands "unset".
30585 # turn spaces into newlines.
30588 # turn newlines into spaces.
30591 # convert \$build file names to \$host format.
30592 to_host_file_cmd=$lt_cv_to_host_file_cmd
30594 # convert \$build files to toolchain format.
30595 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30597 # An object symbol dumper.
30598 OBJDUMP=$lt_OBJDUMP
30600 # Method to check whether dependent libraries are shared objects.
30601 deplibs_check_method=$lt_deplibs_check_method
30603 # Command to use when deplibs_check_method = "file_magic".
30604 file_magic_cmd=$lt_file_magic_cmd
30606 # How to find potential files when deplibs_check_method = "file_magic".
30607 file_magic_glob=$lt_file_magic_glob
30609 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30610 want_nocaseglob=$lt_want_nocaseglob
30612 # DLL creation program.
30613 DLLTOOL=$lt_DLLTOOL
30615 # Command to associate shared and link libraries.
30616 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30621 # Flags to create an archive.
30622 AR_FLAGS=$lt_AR_FLAGS
30624 # How to feed a file listing to the archiver.
30625 archiver_list_spec=$lt_archiver_list_spec
30627 # A symbol stripping program.
30630 # Commands used to install an old-style archive.
30632 old_postinstall_cmds=$lt_old_postinstall_cmds
30633 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30635 # Whether to use a lock for old archive extraction.
30636 lock_old_archive_extraction=$lock_old_archive_extraction
30641 # LTCC compiler flags.
30642 LTCFLAGS=$lt_CFLAGS
30644 # Take the output of nm and produce a listing of raw symbols and C names.
30645 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30647 # Transform the output of nm in a proper C declaration.
30648 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30650 # Transform the output of nm in a C name address pair.
30651 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30653 # Transform the output of nm in a C name address pair when lib prefix is needed.
30654 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30656 # Specify filename containing input files for \$NM.
30657 nm_file_list_spec=$lt_nm_file_list_spec
30659 # The root where to search for dependent libraries,and in which our libraries should be installed.
30660 lt_sysroot=$lt_sysroot
30662 # The name of the directory that contains temporary libtool files.
30665 # Used to examine libraries when file_magic_cmd begins with "file".
30666 MAGIC_CMD=$MAGIC_CMD
30668 # Must we lock files when doing compilation?
30669 need_locks=$lt_need_locks
30672 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30674 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30675 DSYMUTIL=$lt_DSYMUTIL
30677 # Tool to change global to local symbols on Mac OS X.
30680 # Tool to manipulate fat objects and archives on Mac OS X.
30683 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30686 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30687 OTOOL64=$lt_OTOOL64
30689 # Old archive suffix (normally "a").
30692 # Shared library suffix (normally ".so").
30693 shrext_cmds=$lt_shrext_cmds
30695 # The commands to extract the exported symbol list from a shared archive.
30696 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30698 # Variables whose values should be saved in libtool wrapper scripts and
30699 # restored at link time.
30700 variables_saved_for_relink=$lt_variables_saved_for_relink
30702 # Do we need the "lib" prefix for modules?
30703 need_lib_prefix=$need_lib_prefix
30705 # Do we need a version for libraries?
30706 need_version=$need_version
30708 # Library versioning type.
30709 version_type=$version_type
30711 # Shared library runtime path variable.
30712 runpath_var=$runpath_var
30714 # Shared library path variable.
30715 shlibpath_var=$shlibpath_var
30717 # Is shlibpath searched before the hard-coded library search path?
30718 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30720 # Format of library name prefix.
30721 libname_spec=$lt_libname_spec
30723 # List of archive names. First name is the real one, the rest are links.
30724 # The last name is the one that the linker finds with -lNAME
30725 library_names_spec=$lt_library_names_spec
30727 # The coded name of the library, if different from the real name.
30728 soname_spec=$lt_soname_spec
30730 # Permission mode override for installation of shared libraries.
30731 install_override_mode=$lt_install_override_mode
30733 # Command to use after installation of a shared archive.
30734 postinstall_cmds=$lt_postinstall_cmds
30736 # Command to use after uninstallation of a shared archive.
30737 postuninstall_cmds=$lt_postuninstall_cmds
30739 # Commands used to finish a libtool library installation in a directory.
30740 finish_cmds=$lt_finish_cmds
30742 # As "finish_cmds", except a single script fragment to be evaled but
30744 finish_eval=$lt_finish_eval
30746 # Whether we should hardcode library paths into libraries.
30747 hardcode_into_libs=$hardcode_into_libs
30749 # Compile-time system search path for libraries.
30750 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30752 # Run-time system search path for libraries.
30753 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30755 # Whether dlopen is supported.
30756 dlopen_support=$enable_dlopen
30758 # Whether dlopen of programs is supported.
30759 dlopen_self=$enable_dlopen_self
30761 # Whether dlopen of statically linked programs is supported.
30762 dlopen_self_static=$enable_dlopen_self_static
30764 # Commands to strip libraries.
30765 old_striplib=$lt_old_striplib
30766 striplib=$lt_striplib
30769 # The linker used to build libraries.
30772 # How to create reloadable object files.
30773 reload_flag=$lt_reload_flag
30774 reload_cmds=$lt_reload_cmds
30776 # Commands used to build an old-style archive.
30777 old_archive_cmds=$lt_old_archive_cmds
30779 # A language specific compiler.
30782 # Is the compiler the GNU compiler?
30785 # Compiler flag to turn off builtin functions.
30786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30788 # Additional compiler flags for building library objects.
30789 pic_flag=$lt_lt_prog_compiler_pic
30791 # How to pass a linker flag through the compiler.
30792 wl=$lt_lt_prog_compiler_wl
30794 # Compiler flag to prevent dynamic linking.
30795 link_static_flag=$lt_lt_prog_compiler_static
30797 # Does compiler simultaneously support -c and -o options?
30798 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30800 # Whether or not to add -lc for building shared libraries.
30801 build_libtool_need_lc=$archive_cmds_need_lc
30803 # Whether or not to disallow shared libs when runtime libs are static.
30804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30806 # Compiler flag to allow reflexive dlopens.
30807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30809 # Compiler flag to generate shared objects directly from archives.
30810 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30812 # Whether the compiler copes with passing no objects directly.
30813 compiler_needs_object=$lt_compiler_needs_object
30815 # Create an old-style archive from a shared archive.
30816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30818 # Create a temporary old-style archive to link instead of a shared archive.
30819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30821 # Commands used to build a shared archive.
30822 archive_cmds=$lt_archive_cmds
30823 archive_expsym_cmds=$lt_archive_expsym_cmds
30825 # Commands used to build a loadable module if different from building
30826 # a shared archive.
30827 module_cmds=$lt_module_cmds
30828 module_expsym_cmds=$lt_module_expsym_cmds
30830 # Whether we are building with GNU ld or not.
30831 with_gnu_ld=$lt_with_gnu_ld
30833 # Flag that allows shared libraries with undefined symbols to be built.
30834 allow_undefined_flag=$lt_allow_undefined_flag
30836 # Flag that enforces no undefined symbols.
30837 no_undefined_flag=$lt_no_undefined_flag
30839 # Flag to hardcode \$libdir into a binary during linking.
30840 # This must work even if \$libdir does not exist
30841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30843 # If ld is used when linking, flag to hardcode \$libdir into a binary
30844 # during linking. This must work even if \$libdir does not exist.
30845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30847 # Whether we need a single "-rpath" flag with a separated argument.
30848 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30850 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30851 # DIR into the resulting binary.
30852 hardcode_direct=$hardcode_direct
30854 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30855 # DIR into the resulting binary and the resulting library dependency is
30856 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30857 # library is relocated.
30858 hardcode_direct_absolute=$hardcode_direct_absolute
30860 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30861 # into the resulting binary.
30862 hardcode_minus_L=$hardcode_minus_L
30864 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30865 # into the resulting binary.
30866 hardcode_shlibpath_var=$hardcode_shlibpath_var
30868 # Set to "yes" if building a shared library automatically hardcodes DIR
30869 # into the library and all subsequent libraries and executables linked
30871 hardcode_automatic=$hardcode_automatic
30873 # Set to yes if linker adds runtime paths of dependent libraries
30874 # to runtime path list.
30875 inherit_rpath=$inherit_rpath
30877 # Whether libtool must link a program against all its dependency libraries.
30878 link_all_deplibs=$link_all_deplibs
30880 # Set to "yes" if exported symbols are required.
30881 always_export_symbols=$always_export_symbols
30883 # The commands to list exported symbols.
30884 export_symbols_cmds=$lt_export_symbols_cmds
30886 # Symbols that should not be listed in the preloaded symbols.
30887 exclude_expsyms=$lt_exclude_expsyms
30889 # Symbols that must always be exported.
30890 include_expsyms=$lt_include_expsyms
30892 # Commands necessary for linking programs (against libraries) with templates.
30893 prelink_cmds=$lt_prelink_cmds
30895 # Commands necessary for finishing linking programs.
30896 postlink_cmds=$lt_postlink_cmds
30898 # Specify filename containing input files.
30899 file_list_spec=$lt_file_list_spec
30901 # How to hardcode a shared library path into an executable.
30902 hardcode_action=$hardcode_action
30904 # ### END LIBTOOL CONFIG
30910 cat <<\_LT_EOF
>> "$cfgfile"
30911 # AIX sometimes has problems with the GCC collect2 program. For some
30912 # reason, if we set the COLLECT_NAMES environment variable, the problems
30913 # vanish in a puff of smoke.
30914 if test "X${COLLECT_NAMES+set}" != Xset
; then
30916 export COLLECT_NAMES
30923 ltmain
="$ac_aux_dir/ltmain.sh"
30926 # We use sed instead of cat because bash on DJGPP gets confused if
30927 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30928 # text mode, it properly converts lines to CR/LF. This bash problem
30929 # is reportedly fixed, but why not run on old versions too?
30930 sed '$q' "$ltmain" >> "$cfgfile" \
30931 ||
(rm -f "$cfgfile"; exit 1)
30933 if test x
"$xsi_shell" = xyes
; then
30934 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30938 \ */*) func_dirname_result="${1%/*}${2}" ;;\
30939 \ * ) func_dirname_result="${3}" ;;\
30941 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30942 && mv -f "$cfgfile.tmp" "$cfgfile" \
30943 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30944 test 0 -eq $? || _lt_function_replace_fail
=:
30947 sed -e '/^func_basename ()$/,/^} # func_basename /c\
30950 \ func_basename_result="${1##*/}"\
30951 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30952 && mv -f "$cfgfile.tmp" "$cfgfile" \
30953 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30954 test 0 -eq $? || _lt_function_replace_fail
=:
30957 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30958 func_dirname_and_basename ()\
30961 \ */*) func_dirname_result="${1%/*}${2}" ;;\
30962 \ * ) func_dirname_result="${3}" ;;\
30964 \ func_basename_result="${1##*/}"\
30965 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30966 && mv -f "$cfgfile.tmp" "$cfgfile" \
30967 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30968 test 0 -eq $? || _lt_function_replace_fail
=:
30971 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30974 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30975 \ # positional parameters, so assign one to ordinary parameter first.\
30976 \ func_stripname_result=${3}\
30977 \ func_stripname_result=${func_stripname_result#"${1}"}\
30978 \ func_stripname_result=${func_stripname_result%"${2}"}\
30979 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30980 && mv -f "$cfgfile.tmp" "$cfgfile" \
30981 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30982 test 0 -eq $? || _lt_function_replace_fail
=:
30985 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30986 func_split_long_opt ()\
30988 \ func_split_long_opt_name=${1%%=*}\
30989 \ func_split_long_opt_arg=${1#*=}\
30990 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30991 && mv -f "$cfgfile.tmp" "$cfgfile" \
30992 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30993 test 0 -eq $? || _lt_function_replace_fail
=:
30996 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30997 func_split_short_opt ()\
30999 \ func_split_short_opt_arg=${1#??}\
31000 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
31001 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
31002 && mv -f "$cfgfile.tmp" "$cfgfile" \
31003 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31004 test 0 -eq $? || _lt_function_replace_fail
=:
31007 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
31011 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
31012 \ *) func_lo2o_result=${1} ;;\
31014 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
31015 && mv -f "$cfgfile.tmp" "$cfgfile" \
31016 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31017 test 0 -eq $? || _lt_function_replace_fail
=:
31020 sed -e '/^func_xform ()$/,/^} # func_xform /c\
31023 func_xform_result=${1%.*}.lo\
31024 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
31025 && mv -f "$cfgfile.tmp" "$cfgfile" \
31026 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31027 test 0 -eq $? || _lt_function_replace_fail
=:
31030 sed -e '/^func_arith ()$/,/^} # func_arith /c\
31033 func_arith_result=$(( $* ))\
31034 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
31035 && mv -f "$cfgfile.tmp" "$cfgfile" \
31036 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31037 test 0 -eq $? || _lt_function_replace_fail
=:
31040 sed -e '/^func_len ()$/,/^} # func_len /c\
31043 func_len_result=${#1}\
31044 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
31045 && mv -f "$cfgfile.tmp" "$cfgfile" \
31046 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31047 test 0 -eq $? || _lt_function_replace_fail
=:
31051 if test x
"$lt_shell_append" = xyes
; then
31052 sed -e '/^func_append ()$/,/^} # func_append /c\
31055 eval "${1}+=\\${2}"\
31056 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
31057 && mv -f "$cfgfile.tmp" "$cfgfile" \
31058 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31059 test 0 -eq $? || _lt_function_replace_fail
=:
31062 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
31063 func_append_quoted ()\
31065 \ func_quote_for_eval "${2}"\
31066 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
31067 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
31068 && mv -f "$cfgfile.tmp" "$cfgfile" \
31069 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31070 test 0 -eq $? || _lt_function_replace_fail
=:
31073 # Save a `func_append' function call where possible by direct use of '+='
31074 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
31075 && mv -f "$cfgfile.tmp" "$cfgfile" \
31076 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31077 test 0 -eq $? || _lt_function_replace_fail
=:
31079 # Save a `func_append' function call even when '+=' is not available
31080 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
31081 && mv -f "$cfgfile.tmp" "$cfgfile" \
31082 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31083 test 0 -eq $? || _lt_function_replace_fail
=:
31086 if test x
"$_lt_function_replace_fail" = x
":"; then
31087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
31088 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
31092 mv -f "$cfgfile" "$ofile" ||
31093 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31104 ac_clean_files
=$ac_clean_files_save
31106 test $ac_write_fail = 0 ||
31107 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
31110 # configure is writing to config.log, and then calls config.status.
31111 # config.status does its own redirection, appending to config.log.
31112 # Unfortunately, on DOS this fails, as config.log is still kept open
31113 # by configure, so config.status won't be able to write to it; its
31114 # output is simply discarded. So we exec the FD to /dev/null,
31115 # effectively closing config.log, so it can be properly (re)opened and
31116 # appended to by config.status. When coming back to configure, we
31117 # need to make the FD available again.
31118 if test "$no_create" != yes; then
31120 ac_config_status_args
=
31121 test "$silent" = yes &&
31122 ac_config_status_args
="$ac_config_status_args --quiet"
31124 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31126 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31127 # would make configure fail if this is the last instruction.
31128 $ac_cs_success || as_fn_exit $?
31132 # CONFIG_SUBDIRS section.
31134 if test "$no_recursion" != yes; then
31136 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
31137 # so they do not pile up.
31138 ac_sub_configure_args
=
31140 eval "set x $ac_configure_args"
31144 if test -n "$ac_prev"; then
31149 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
31150 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
31151 ac_prev
=cache_file
;;
31152 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
31153 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
31156 --config-cache |
-C)
31158 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
31160 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
31162 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
31164 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
31166 --disable-option-checking)
31170 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31172 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
31176 # Always prepend --prefix to ensure using the same prefix
31177 # in subdir configurations.
31178 ac_arg
="--prefix=$prefix"
31180 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31182 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
31185 if test "$silent" = yes; then
31186 ac_sub_configure_args
="--silent $ac_sub_configure_args"
31189 # Always prepend --disable-option-checking to silence warnings, since
31190 # different subdirs can have different --enable and --with options.
31191 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
31194 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
31196 # Do not complain, so a configure script can configure whichever
31197 # parts of a large source tree are present.
31198 test -d "$srcdir/$ac_dir" ||
continue
31200 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
31201 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
31202 $as_echo "$ac_msg" >&6
31203 as_dir
="$ac_dir"; as_fn_mkdir_p
31207 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31209 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31210 # A ".." for each directory in $ac_dir_suffix.
31211 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31212 case $ac_top_builddir_sub in
31213 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31214 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31217 ac_abs_top_builddir
=$ac_pwd
31218 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31219 # for backward compatibility:
31220 ac_top_builddir
=$ac_top_build_prefix
31223 .
) # We are building in place.
31225 ac_top_srcdir
=$ac_top_builddir_sub
31226 ac_abs_top_srcdir
=$ac_pwd ;;
31227 [\\/]* | ?
:[\\/]* ) # Absolute name.
31228 ac_srcdir
=$srcdir$ac_dir_suffix;
31229 ac_top_srcdir
=$srcdir
31230 ac_abs_top_srcdir
=$srcdir ;;
31231 *) # Relative name.
31232 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31233 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31234 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31236 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31241 # Check for guested configure; otherwise get Cygnus style configure.
31242 if test -f "$ac_srcdir/configure.gnu"; then
31243 ac_sub_configure
=$ac_srcdir/configure.gnu
31244 elif test -f "$ac_srcdir/configure"; then
31245 ac_sub_configure
=$ac_srcdir/configure
31246 elif test -f "$ac_srcdir/configure.in"; then
31247 # This should be Cygnus configure.
31248 ac_sub_configure
=$ac_aux_dir/configure
31250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
31251 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31255 # The recursion is here.
31256 if test -n "$ac_sub_configure"; then
31257 # Make the cache file name correct relative to the subdirectory.
31258 case $cache_file in
31259 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
31260 *) # Relative name.
31261 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31265 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31266 # The eval makes quoting arguments work.
31267 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31268 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31269 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
31275 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31277 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31282 cat > include
/newversion.h.
in <<EOF
31283 #ifndef VERSION_HIDDEN
31284 #define VERSION_HIDDEN
31286 VERSION_HIDDEN const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
31287 VERSION_HIDDEN const char *heimdal_version = "Heimdal 1.5.2";
31290 if test -f include
/version.h
&& cmp -s include
/newversion.h.
in include
/version.h.
in; then
31291 echo "include/version.h is unchanged"
31292 rm -f include
/newversion.h.
in
31294 echo "creating include/version.h"
31295 User
=${USER-${LOGNAME}}
31296 Host
=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
31298 mv -f include
/newversion.h.
in include
/version.h.
in
31299 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include
/version.h.
in > include
/version.h