2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.7.2p7.
5 # Report bugs to <http://www.sudo.ws/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 exec 7<&0 </dev/null 6>&1
707 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
708 # so uname gets run too.
709 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 ac_default_prefix=/usr/local
716 ac_config_libobj_dir=.
722 SHELL=${CONFIG_SHELL-/bin/sh}
724 # Identity of this package.
726 PACKAGE_TARNAME='sudo'
727 PACKAGE_VERSION='1.7.2p7'
728 PACKAGE_STRING='sudo 1.7.2p7'
729 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
731 # Factoring default headers for most tests.
732 ac_includes_default="\
734 #ifdef HAVE_SYS_TYPES_H
735 # include <sys/types.h>
737 #ifdef HAVE_SYS_STAT_H
738 # include <sys/stat.h>
744 # ifdef HAVE_STDLIB_H
749 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #ifdef HAVE_STRINGS_H
755 # include <strings.h>
757 #ifdef HAVE_INTTYPES_H
758 # include <inttypes.h>
776 program_transform_name
907 ac_precious_vars='build_alias
920 # Initialize some variables set by options.
922 ac_init_version=false
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
932 program_transform_name=s,x,x,
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
957 infodir='${datarootdir}/info'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\$ac_option
978 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 # Accept the important Cygnus configure options, so we can diagnose typos.
984 case $ac_dashdash$ac_option in
988 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 -build | --build | --buil | --bui | --bu)
994 ac_prev=build_alias ;;
995 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996 build_alias=$ac_optarg ;;
998 -cache-file | --cache-file | --cache-fil | --cache-fi \
999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000 ac_prev=cache_file ;;
1001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003 cache_file=$ac_optarg ;;
1005 --config-cache | -C)
1006 cache_file=config.cache ;;
1008 -datadir | --datadir | --datadi | --datad)
1010 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011 datadir=$ac_optarg ;;
1013 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014 | --dataroo | --dataro | --datar)
1015 ac_prev=datarootdir ;;
1016 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018 datarootdir=$ac_optarg ;;
1020 -disable-* | --disable-*)
1021 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025 { (exit 1); exit 1; }; }
1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027 eval enable_$ac_feature=no ;;
1029 -docdir | --docdir | --docdi | --doc | --do)
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
1039 -enable-* | --enable-*)
1040 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1046 eval enable_$ac_feature=\$ac_optarg ;;
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 htmldir=$ac_optarg ;;
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1091 -libdir | --libdir | --libdi | --libd)
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1175 program_transform_name=$ac_optarg ;;
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1182 -psdir | --psdir | --psdi | --psd | --ps)
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 sbindir=$ac_optarg ;;
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 sharedstatedir=$ac_optarg ;;
1208 -site | --site | --sit)
1210 -site=* | --site=* | --sit=*)
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1237 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid package name: $ac_package" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243 eval with_$ac_package=\$ac_optarg ;;
1245 -without-* | --without-*)
1246 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 { echo "$as_me: error: invalid package name: $ac_package" >&2
1250 { (exit 1); exit 1; }; }
1251 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1252 eval with_$ac_package=no ;;
1255 # Obsolete; use --with-x.
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1272 -*) { echo "$as_me: error: unrecognized option: $ac_option
1273 Try \`$0 --help' for more information." >&2
1274 { (exit 1); exit 1; }; }
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1282 { (exit 1); exit 1; }; }
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 { echo "$as_me: error: missing argument to $ac_option" >&2
1300 { (exit 1); exit 1; }; }
1303 # Be sure to have absolute directory names.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1309 eval ac_val=\$$ac_var
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1315 { (exit 1); exit 1; }; }
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1330 If a cross compiler is detected then cross compile mode will be used." >&2
1331 elif test "x$build_alias" != "x$host_alias"; then
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339 test "$silent" = yes && exec 6>/dev/null
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 { echo "$as_me: error: Working directory cannot be determined" >&2
1346 { (exit 1); exit 1; }; }
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 { echo "$as_me: error: pwd does not report name of working directory" >&2
1349 { (exit 1); exit 1; }; }
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$0" ||
1357 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$0" : 'X\(//\)[^/]' \| \
1359 X"$0" : 'X\(//\)$' \| \
1360 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1384 ac_srcdir_defaulted=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1389 { (exit 1); exit 1; }; }
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1394 { (exit 1); exit 1; }; }
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 for ac_var in $ac_precious_vars; do
1407 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_${ac_var}_value=\$${ac_var}
1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 # Report the --help message.
1416 if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1420 \`configure' configures sudo 1.7.2p7 to adapt to many kinds of systems.
1422 Usage: $0 [OPTION]... [VAR=VALUE]...
1424 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425 VAR=VALUE. See below for descriptions of some of the useful variables.
1427 Defaults for the options are specified in brackets.
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
1434 -q, --quiet, --silent do not print \`checking...' messages
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for \`--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1440 Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
1442 [$ac_default_prefix]
1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 By default, \`make install' will install all the files in
1447 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1448 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449 for instance \`--prefix=\$HOME'.
1451 For better control, use the options below.
1453 Fine tuning of the installation directories:
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of sudo 1.7.2p7:";;
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --disable-authentication
1493 Do not require authentication by default
1494 --disable-root-mailer Don't run the mailer as root, run as the user
1495 --disable-setreuid Don't try to use the setreuid() function
1496 --disable-setresuid Don't try to use the setresuid() function
1497 --disable-shadow Never use shadow passwords
1498 --disable-root-sudo Don't allow root to run sudo
1499 --enable-log-host Log the hostname in the log file
1500 --enable-noargs-shell If sudo is given no arguments run a shell
1501 --enable-shell-sets-home
1502 Set $HOME to target user in shell mode
1503 --disable-path-info Print 'command not allowed' not 'command not found'
1504 --enable-env-debug Whether to enable environment debugging.
1505 --enable-gss-krb5-ccache-name
1506 Use GSS-API to set the Kerberos V cred cache name
1507 --enable-static[=PKGS] build static libraries [default=no]
1508 --enable-shared[=PKGS] build shared libraries [default=yes]
1509 --enable-fast-install[=PKGS]
1510 optimize for fast installation [default=yes]
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1512 --disable-sia Disable SIA on Digital UNIX
1513 --disable-pam-session Disable PAM session support
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-otp-only deprecated
1519 --with-alertmail deprecated
1520 --with-CC C compiler to use
1521 --with-rpath pass -R flag in addition to -L for lib paths
1522 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1523 --with-bsm-audit enable BSM audit support
1524 --with-incpath additional places to look for include files
1525 --with-libpath additional places to look for libraries
1526 --with-libraries additional libraries to link with
1527 --with-devel add development options
1528 --with-efence link with -lefence for malloc() debugging
1529 --with-csops add CSOps standard options
1530 --without-passwd don't use passwd/shadow file for authentication
1531 --with-skey=DIR enable S/Key support
1532 --with-opie=DIR enable OPIE support
1533 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1534 --with-SecurID=DIR enable SecurID support
1535 --with-fwtk=DIR enable FWTK AuthSRV support
1536 --with-kerb4=DIR enable Kerberos IV support
1537 --with-kerb5=DIR enable Kerberos V support
1538 --with-aixauth enable AIX general authentication support
1539 --with-pam enable PAM support
1540 --with-AFS enable AFS support
1541 --with-DCE enable DCE support
1542 --with-logincap enable BSD login class support
1543 --with-bsdauth enable BSD authentication support
1544 --with-project enable Solaris project support
1545 --without-lecture don't print lecture for first-time sudoer
1546 --with-logging log via syslog, file, or both
1547 --with-logfac syslog facility to log with (default is "local2")
1548 --with-goodpri syslog priority for commands (def is "notice")
1549 --with-badpri syslog priority for failures (def is "alert")
1550 --with-logpath path to the sudo log file
1551 --with-loglen maximum length of a log file line (default is 80)
1552 --with-ignore-dot ignore '.' in the PATH
1553 --without-mail-if-no-user
1554 do not send mail if user not in sudoers
1555 --with-mail-if-no-host send mail if user in sudoers but not for this host
1556 --with-mail-if-noperms send mail if user not allowed to run command
1557 --with-mailto who should get sudo mail (default is "root")
1558 --with-mailsubject subject of sudo mail
1559 --with-passprompt default password prompt
1560 --with-badpass-message message the user sees when the password is wrong
1561 --with-fqdn expect fully qualified hosts in sudoers
1562 --with-timedir path to the sudo timestamp dir
1563 --with-sendmail set path to sendmail
1564 --without-sendmail do not send mail at all
1565 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1566 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1567 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1568 --with-umask umask with which the prog should run (default is
1570 --without-umask Preserves the umask of the user invoking sudo.
1571 --with-runas-default User to run commands as (default is "root")
1572 --with-exempt=group no passwd needed for users in this group
1573 --with-editor=path Default editor for visudo (defaults to vi)
1574 --with-env-editor Use the environment variable EDITOR for visudo
1575 --with-passwd-tries number of tries to enter password (default is 3)
1576 --with-timeout minutes before sudo asks for passwd again (def is 5
1578 --with-password-timeout passwd prompt timeout in minutes (default is 5
1580 --with-tty-tickets use a different ticket file for each tty
1581 --with-insults insult the user for entering an incorrect password
1582 --with-all-insults include all the sudo insult sets
1583 --with-classic-insults include the insults from the "classic" sudo
1584 --with-csops-insults include CSOps insults
1585 --with-hal-insults include 2001-like insults
1586 --with-goons-insults include the insults from the "Goon Show"
1587 --with-nsswitch=PATH path to nsswitch.conf
1588 --with-ldap=DIR enable LDAP support
1589 --with-ldap-conf-file path to LDAP configuration file
1590 --with-ldap-secret-file path to LDAP secret password file
1591 --with-pc-insults replace politically incorrect insults with less
1593 --with-secure-path override the user's path with a built-in one
1594 --without-interfaces don't try to read the ip addr of ether interfaces
1595 --with-stow properly handle GNU stow packaging
1596 --with-askpass=PATH Fully qualified pathname of askpass helper
1597 --with-libvas=NAME Name of the libvas shared library
1599 --with-libvas-rpath=PATH
1600 Path to look for libvas in [default=/opt/quest/lib]
1601 --with-selinux enable SELinux support
1602 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1603 --with-pic try to use only PIC/non-PIC objects [default=use
1605 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1606 --with-netsvc=PATH path to netsvc.conf
1608 Some influential environment variables:
1609 CC C compiler command
1610 CFLAGS C compiler flags
1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1612 nonstandard directory <lib dir>
1613 LIBS libraries to pass to the linker, e.g. -l<library>
1614 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1615 you have headers in a nonstandard directory <include dir>
1617 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1618 the first program found out of: `bison -y', `byacc', `yacc'.
1619 YFLAGS The list of arguments that will be passed by default to $YACC.
1620 This script will default YFLAGS to the empty string to avoid a
1621 default value of `-d' given by some make applications.
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1626 Report bugs to <http://www.sudo.ws/bugs/>.
1631 if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634 test -d "$ac_dir" || continue
1638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1641 # A ".." for each directory in $ac_dir_suffix.
1642 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1643 case $ac_top_builddir_sub in
1644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 ac_abs_top_builddir=$ac_pwd
1649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650 # for backward compatibility:
1651 ac_top_builddir=$ac_top_build_prefix
1654 .) # We are building in place.
1656 ac_top_srcdir=$ac_top_builddir_sub
1657 ac_abs_top_srcdir=$ac_pwd ;;
1658 [\\/]* | ?:[\\/]* ) # Absolute name.
1659 ac_srcdir=$srcdir$ac_dir_suffix;
1660 ac_top_srcdir=$srcdir
1661 ac_abs_top_srcdir=$srcdir ;;
1663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664 ac_top_srcdir=$ac_top_build_prefix$srcdir
1665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669 cd "$ac_dir" || { ac_status=$?; continue; }
1670 # Check for guested configure.
1671 if test -f "$ac_srcdir/configure.gnu"; then
1673 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674 elif test -f "$ac_srcdir/configure"; then
1676 $SHELL "$ac_srcdir/configure" --help=recursive
1678 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 cd "$ac_pwd" || { ac_status=$?; break; }
1684 test -n "$ac_init_help" && exit $ac_status
1685 if $ac_init_version; then
1687 sudo configure 1.7.2p7
1688 generated by GNU Autoconf 2.61
1690 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1691 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1697 cat >config.log <<_ACEOF
1698 This file contains any messages produced by compilers while
1699 running configure, to aid debugging if configure makes a mistake.
1701 It was created by sudo $as_me 1.7.2p7, which was
1702 generated by GNU Autoconf 2.61. Invocation command line was
1714 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1715 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1716 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1717 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1718 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1720 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1721 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1723 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1724 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1725 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1726 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1727 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1728 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1729 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 test -z "$as_dir" && as_dir=.
1738 echo "PATH: $as_dir"
1754 # Keep a trace of the command line.
1755 # Strip out --no-create and --no-recursion so they do not pile up.
1756 # Strip out --silent because we don't want to record it for future runs.
1757 # Also quote any args containing shell meta-characters.
1758 # Make two passes to allow for proper duplicate-argument suppression.
1762 ac_must_keep_next=false
1768 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1770 | -silent | --silent | --silen | --sile | --sil)
1773 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1778 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1779 if test $ac_must_keep_next = true; then
1780 ac_must_keep_next=false # Got value, back to normal.
1783 *=* | --config-cache | -C | -disable-* | --disable-* \
1784 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1785 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1786 | -with-* | --with-* | -without-* | --without-* | --x)
1787 case "$ac_configure_args0 " in
1788 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1791 -* ) ac_must_keep_next=true ;;
1794 ac_configure_args="$ac_configure_args '$ac_arg'"
1799 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1800 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1802 # When interrupted or exit'd, cleanup temporary files, and complete
1803 # config.log. We remove comments because anyway the quotes in there
1804 # would cause problems or look ugly.
1805 # WARNING: Use '\'' to represent an apostrophe within the trap.
1806 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1807 trap 'exit_status=$?
1808 # Save into config.log some information that might help in debugging.
1813 ## ---------------- ##
1814 ## Cache variables. ##
1815 ## ---------------- ##
1818 # The following way of writing the cache mishandles newlines in values,
1820 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1821 eval ac_val=\$$ac_var
1825 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1826 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1829 _ | IFS | as_nl) ;; #(
1830 *) $as_unset $ac_var ;;
1835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1836 *${as_nl}ac_space=\ *)
1838 "s/'\''/'\''\\\\'\'''\''/g;
1839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1850 ## ----------------- ##
1851 ## Output variables. ##
1852 ## ----------------- ##
1855 for ac_var in $ac_subst_vars
1857 eval ac_val=\$$ac_var
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861 echo "$ac_var='\''$ac_val'\''"
1865 if test -n "$ac_subst_files"; then
1867 ## ------------------- ##
1868 ## File substitutions. ##
1869 ## ------------------- ##
1872 for ac_var in $ac_subst_files
1874 eval ac_val=\$$ac_var
1876 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878 echo "$ac_var='\''$ac_val'\''"
1883 if test -s confdefs.h; then
1893 test "$ac_signal" != 0 &&
1894 echo "$as_me: caught signal $ac_signal"
1895 echo "$as_me: exit $exit_status"
1897 rm -f core *.core core.conftest.* &&
1898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901 for ac_signal in 1 2 13 15; do
1902 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1907 rm -f -r conftest* confdefs.h
1909 # Predefined preprocessor variables.
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_NAME "$PACKAGE_NAME"
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_STRING "$PACKAGE_STRING"
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1936 # Let the site file select an alternate cache file if it wants to.
1937 # Prefer explicitly selected file to automatically selected ones.
1938 if test -n "$CONFIG_SITE"; then
1939 set x "$CONFIG_SITE"
1940 elif test "x$prefix" != xNONE; then
1941 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1943 set x "$ac_default_prefix/share/config.site" \
1944 "$ac_default_prefix/etc/config.site"
1949 if test -r "$ac_site_file"; then
1950 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1951 echo "$as_me: loading site script $ac_site_file" >&6;}
1952 sed 's/^/| /' "$ac_site_file" >&5
1957 if test -r "$cache_file"; then
1958 # Some versions of bash will fail to source /dev/null (special
1959 # files actually), so we avoid doing that.
1960 if test -f "$cache_file"; then
1961 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1962 echo "$as_me: loading cache $cache_file" >&6;}
1964 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1965 *) . "./$cache_file";;
1969 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1970 echo "$as_me: creating cache $cache_file" >&6;}
1974 # Check that the precious variables saved in the cache have kept the same
1976 ac_cache_corrupted=false
1977 for ac_var in $ac_precious_vars; do
1978 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1979 eval ac_new_set=\$ac_env_${ac_var}_set
1980 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1981 eval ac_new_val=\$ac_env_${ac_var}_value
1982 case $ac_old_set,$ac_new_set in
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1985 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1988 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1989 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1990 ac_cache_corrupted=: ;;
1993 if test "x$ac_old_val" != "x$ac_new_val"; then
1994 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1995 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1996 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1997 echo "$as_me: former value: $ac_old_val" >&2;}
1998 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1999 echo "$as_me: current value: $ac_new_val" >&2;}
2000 ac_cache_corrupted=:
2003 # Pass precious variables to config.status.
2004 if test "$ac_new_set" = set; then
2006 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2007 *) ac_arg=$ac_var=$ac_new_val ;;
2009 case " $ac_configure_args " in
2010 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2011 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2015 if $ac_cache_corrupted; then
2016 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2017 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2019 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2020 { (exit 1); exit 1; }; }
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054 ac_config_headers="$ac_config_headers config.h pathnames.h"
2056 { echo "$as_me:$LINENO: Configuring Sudo version $PACKAGE_VERSION" >&5
2057 echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2131 passprompt="Password:"
2143 mailsub='*** SECURITY information for %h ***'
2144 badpass_message='Sorry, try again.'
2153 secure_path="not set"
2159 : ${SUDOERS_MODE='0440'}
2160 : ${SUDOERS_UID='0'}
2161 : ${SUDOERS_GID='0'}
2178 shadow_libs_optional=
2180 if test X"$prefix" = X"NONE"; then
2181 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2183 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2185 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2186 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2187 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2191 # Check whether --with-otp-only was given.
2192 if test "${with_otp_only+set}" = set; then
2193 withval=$with_otp_only; case $with_otp_only in
2194 yes) with_passwd="no"
2195 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2196 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2203 # Check whether --with-alertmail was given.
2204 if test "${with_alertmail+set}" = set; then
2205 withval=$with_alertmail; case $with_alertmail in
2206 *) with_mailto="$with_alertmail"
2207 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2208 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2216 # Check whether --with-CC was given.
2217 if test "${with_CC+set}" = set; then
2218 withval=$with_CC; case $with_CC in
2219 yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2220 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2221 { (exit 1); exit 1; }; }
2223 no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2224 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2225 { (exit 1); exit 1; }; }
2234 # Check whether --with-rpath was given.
2235 if test "${with_rpath+set}" = set; then
2236 withval=$with_rpath; case $with_rpath in
2238 *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2239 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2240 { (exit 1); exit 1; }; }
2247 # Check whether --with-blibpath was given.
2248 if test "${with_blibpath+set}" = set; then
2249 withval=$with_blibpath; case $with_blibpath in
2251 *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2252 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2259 # Check whether --with-bsm-audit was given.
2260 if test "${with_bsm_audit+set}" = set; then
2261 withval=$with_bsm_audit; case $with_bsm_audit in
2262 yes) cat >>confdefs.h <<\_ACEOF
2263 #define HAVE_BSM_AUDIT 1
2266 SUDO_LIBS="${SUDO_LIBS} -lbsm"
2267 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
2270 *) { { echo "$as_me:$LINENO: error: \"--with-bsm-audit does not take an argument.\"" >&5
2271 echo "$as_me: error: \"--with-bsm-audit does not take an argument.\"" >&2;}
2272 { (exit 1); exit 1; }; }
2279 # Check whether --with-incpath was given.
2280 if test "${with_incpath+set}" = set; then
2281 withval=$with_incpath; case $with_incpath in
2282 yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2283 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2284 { (exit 1); exit 1; }; }
2286 no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2287 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2288 { (exit 1); exit 1; }; }
2290 *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2291 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2292 for i in ${with_incpath}; do
2293 CPPFLAGS="${CPPFLAGS} -I${i}"
2301 # Check whether --with-libpath was given.
2302 if test "${with_libpath+set}" = set; then
2303 withval=$with_libpath; case $with_libpath in
2304 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2305 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2306 { (exit 1); exit 1; }; }
2308 no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2309 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2310 { (exit 1); exit 1; }; }
2312 *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2313 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2320 # Check whether --with-libraries was given.
2321 if test "${with_libraries+set}" = set; then
2322 withval=$with_libraries; case $with_libraries in
2323 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2324 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2325 { (exit 1); exit 1; }; }
2327 no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2328 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2329 { (exit 1); exit 1; }; }
2331 *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2332 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2339 # Check whether --with-devel was given.
2340 if test "${with_devel+set}" = set; then
2341 withval=$with_devel; case $with_devel in
2342 yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2343 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2344 PROGS="${PROGS} testsudoers"
2345 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2350 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2351 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2358 # Check whether --with-efence was given.
2359 if test "${with_efence+set}" = set; then
2360 withval=$with_efence; case $with_efence in
2361 yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2362 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2363 LIBS="${LIBS} -lefence"
2364 if test -f /usr/local/lib/libefence.a; then
2365 with_libpath="${with_libpath} /usr/local/lib"
2369 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2370 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2377 # Check whether --with-csops was given.
2378 if test "${with_csops+set}" = set; then
2379 withval=$with_csops; case $with_csops in
2380 yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2381 echo "$as_me: Adding CSOps standard options" >&6;}
2385 with_classic_insults=yes
2386 with_csops_insults=yes
2389 : ${mansectform='5'}
2392 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2393 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2400 # Check whether --with-passwd was given.
2401 if test "${with_passwd+set}" = set; then
2402 withval=$with_passwd; case $with_passwd in
2403 yes|no) { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2404 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2405 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2406 echo "${ECHO_T}$with_passwd" >&6; }
2408 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2410 *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2411 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2412 { (exit 1); exit 1; }; }
2419 # Check whether --with-skey was given.
2420 if test "${with_skey+set}" = set; then
2421 withval=$with_skey; case $with_skey in
2424 *) cat >>confdefs.h <<\_ACEOF
2428 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2429 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2430 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2432 AUTH_REG="$AUTH_REG S/Key"
2439 # Check whether --with-opie was given.
2440 if test "${with_opie+set}" = set; then
2441 withval=$with_opie; case $with_opie in
2444 *) cat >>confdefs.h <<\_ACEOF
2448 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2449 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2450 { echo "$as_me:$LINENO: result: yes" >&5
2451 echo "${ECHO_T}yes" >&6; }
2452 AUTH_REG="$AUTH_REG NRL_OPIE"
2459 # Check whether --with-long-otp-prompt was given.
2460 if test "${with_long_otp_prompt+set}" = set; then
2461 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2462 yes) cat >>confdefs.h <<\_ACEOF
2463 #define LONG_OTP_PROMPT 1
2466 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2467 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2468 { echo "$as_me:$LINENO: result: yes" >&5
2469 echo "${ECHO_T}yes" >&6; }
2472 no) long_otp_prompt=off
2474 *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2475 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2476 { (exit 1); exit 1; }; }
2483 # Check whether --with-SecurID was given.
2484 if test "${with_SecurID+set}" = set; then
2485 withval=$with_SecurID; case $with_SecurID in
2486 no) with_SecurID="";;
2487 *) cat >>confdefs.h <<\_ACEOF
2488 #define HAVE_SECURID 1
2491 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2492 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2493 { echo "$as_me:$LINENO: result: yes" >&5
2494 echo "${ECHO_T}yes" >&6; }
2495 AUTH_EXCL="$AUTH_EXCL SecurID"
2502 # Check whether --with-fwtk was given.
2503 if test "${with_fwtk+set}" = set; then
2504 withval=$with_fwtk; case $with_fwtk in
2506 *) cat >>confdefs.h <<\_ACEOF
2510 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2511 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2512 { echo "$as_me:$LINENO: result: yes" >&5
2513 echo "${ECHO_T}yes" >&6; }
2514 AUTH_EXCL="$AUTH_EXCL FWTK"
2521 # Check whether --with-kerb4 was given.
2522 if test "${with_kerb4+set}" = set; then
2523 withval=$with_kerb4; case $with_kerb4 in
2525 *) { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2526 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2527 { echo "$as_me:$LINENO: result: yes" >&5
2528 echo "${ECHO_T}yes" >&6; }
2529 AUTH_REG="$AUTH_REG kerb4"
2536 # Check whether --with-kerb5 was given.
2537 if test "${with_kerb5+set}" = set; then
2538 withval=$with_kerb5; case $with_kerb5 in
2540 *) { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2541 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2542 { echo "$as_me:$LINENO: result: yes" >&5
2543 echo "${ECHO_T}yes" >&6; }
2544 AUTH_REG="$AUTH_REG kerb5"
2551 # Check whether --with-aixauth was given.
2552 if test "${with_aixauth+set}" = set; then
2553 withval=$with_aixauth; case $with_aixauth in
2554 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2556 *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2557 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2558 { (exit 1); exit 1; }; }
2565 # Check whether --with-pam was given.
2566 if test "${with_pam+set}" = set; then
2567 withval=$with_pam; case $with_pam in
2568 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
2570 *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2571 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2572 { (exit 1); exit 1; }; }
2579 # Check whether --with-AFS was given.
2580 if test "${with_AFS+set}" = set; then
2581 withval=$with_AFS; case $with_AFS in
2582 yes) cat >>confdefs.h <<\_ACEOF
2586 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2587 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2588 { echo "$as_me:$LINENO: result: yes" >&5
2589 echo "${ECHO_T}yes" >&6; }
2590 AUTH_REG="$AUTH_REG AFS"
2593 *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2594 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2595 { (exit 1); exit 1; }; }
2602 # Check whether --with-DCE was given.
2603 if test "${with_DCE+set}" = set; then
2604 withval=$with_DCE; case $with_DCE in
2605 yes) cat >>confdefs.h <<\_ACEOF
2609 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2610 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2611 { echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6; }
2613 AUTH_REG="$AUTH_REG DCE"
2616 *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2617 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2618 { (exit 1); exit 1; }; }
2625 # Check whether --with-logincap was given.
2626 if test "${with_logincap+set}" = set; then
2627 withval=$with_logincap; case $with_logincap in
2629 *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2630 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2631 { (exit 1); exit 1; }; }
2638 # Check whether --with-bsdauth was given.
2639 if test "${with_bsdauth+set}" = set; then
2640 withval=$with_bsdauth; case $with_bsdauth in
2641 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2643 *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2644 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2645 { (exit 1); exit 1; }; }
2652 # Check whether --with-project was given.
2653 if test "${with_project+set}" = set; then
2654 withval=$with_project; case $with_project in
2657 *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2658 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2659 { (exit 1); exit 1; }; }
2665 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2666 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2668 # Check whether --with-lecture was given.
2669 if test "${with_lecture+set}" = set; then
2670 withval=$with_lecture; case $with_lecture in
2671 yes|short|always) lecture=once
2673 no|none|never) lecture=never
2675 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2676 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2677 { (exit 1); exit 1; }; }
2682 if test "$lecture" = "once"; then
2683 { echo "$as_me:$LINENO: result: yes" >&5
2684 echo "${ECHO_T}yes" >&6; }
2686 cat >>confdefs.h <<\_ACEOF
2687 #define NO_LECTURE 1
2690 { echo "$as_me:$LINENO: result: no" >&5
2691 echo "${ECHO_T}no" >&6; }
2694 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2695 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2697 # Check whether --with-logging was given.
2698 if test "${with_logging+set}" = set; then
2699 withval=$with_logging; case $with_logging in
2700 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2701 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2702 { (exit 1); exit 1; }; }
2704 no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2705 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2706 { (exit 1); exit 1; }; }
2708 syslog) cat >>confdefs.h <<\_ACEOF
2709 #define LOGGING SLOG_SYSLOG
2712 { echo "$as_me:$LINENO: result: syslog" >&5
2713 echo "${ECHO_T}syslog" >&6; }
2715 file) cat >>confdefs.h <<\_ACEOF
2716 #define LOGGING SLOG_FILE
2719 { echo "$as_me:$LINENO: result: file" >&5
2720 echo "${ECHO_T}file" >&6; }
2722 both) cat >>confdefs.h <<\_ACEOF
2723 #define LOGGING SLOG_BOTH
2726 { echo "$as_me:$LINENO: result: both" >&5
2727 echo "${ECHO_T}both" >&6; }
2729 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2730 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2731 { (exit 1); exit 1; }; }
2735 cat >>confdefs.h <<\_ACEOF
2736 #define LOGGING SLOG_SYSLOG
2738 { echo "$as_me:$LINENO: result: syslog" >&5
2739 echo "${ECHO_T}syslog" >&6; }
2743 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2744 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2746 # Check whether --with-logfac was given.
2747 if test "${with_logfac+set}" = set; then
2748 withval=$with_logfac; case $with_logfac in
2749 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2750 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2751 { (exit 1); exit 1; }; }
2753 no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2754 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2755 { (exit 1); exit 1; }; }
2757 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
2759 *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2760 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2761 { (exit 1); exit 1; }; }
2767 cat >>confdefs.h <<_ACEOF
2768 #define LOGFAC "$logfac"
2771 { echo "$as_me:$LINENO: result: $logfac" >&5
2772 echo "${ECHO_T}$logfac" >&6; }
2774 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2775 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2777 # Check whether --with-goodpri was given.
2778 if test "${with_goodpri+set}" = set; then
2779 withval=$with_goodpri; case $with_goodpri in
2780 yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2781 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2782 { (exit 1); exit 1; }; }
2784 no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2785 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2786 { (exit 1); exit 1; }; }
2788 alert|crit|debug|emerg|err|info|notice|warning)
2789 goodpri=$with_goodpri
2791 *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2792 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2793 { (exit 1); exit 1; }; }
2799 cat >>confdefs.h <<_ACEOF
2800 #define PRI_SUCCESS "$goodpri"
2803 { echo "$as_me:$LINENO: result: $goodpri" >&5
2804 echo "${ECHO_T}$goodpri" >&6; }
2806 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2807 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2809 # Check whether --with-badpri was given.
2810 if test "${with_badpri+set}" = set; then
2811 withval=$with_badpri; case $with_badpri in
2812 yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2813 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2814 { (exit 1); exit 1; }; }
2816 no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2817 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2818 { (exit 1); exit 1; }; }
2820 alert|crit|debug|emerg|err|info|notice|warning)
2823 *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2824 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2825 { (exit 1); exit 1; }; }
2831 cat >>confdefs.h <<_ACEOF
2832 #define PRI_FAILURE "$badpri"
2835 { echo "$as_me:$LINENO: result: $badpri" >&5
2836 echo "${ECHO_T}$badpri" >&6; }
2839 # Check whether --with-logpath was given.
2840 if test "${with_logpath+set}" = set; then
2841 withval=$with_logpath; case $with_logpath in
2842 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2843 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2844 { (exit 1); exit 1; }; }
2846 no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2847 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2848 { (exit 1); exit 1; }; }
2854 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2855 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2857 # Check whether --with-loglen was given.
2858 if test "${with_loglen+set}" = set; then
2859 withval=$with_loglen; case $with_loglen in
2860 yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2861 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2862 { (exit 1); exit 1; }; }
2864 no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2865 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2866 { (exit 1); exit 1; }; }
2868 [0-9]*) loglen=$with_loglen
2870 *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2871 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2872 { (exit 1); exit 1; }; }
2878 cat >>confdefs.h <<_ACEOF
2879 #define MAXLOGFILELEN $loglen
2882 { echo "$as_me:$LINENO: result: $loglen" >&5
2883 echo "${ECHO_T}$loglen" >&6; }
2885 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2886 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2888 # Check whether --with-ignore-dot was given.
2889 if test "${with_ignore_dot+set}" = set; then
2890 withval=$with_ignore_dot; case $with_ignore_dot in
2895 *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2896 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2897 { (exit 1); exit 1; }; }
2902 if test "$ignore_dot" = "on"; then
2903 cat >>confdefs.h <<\_ACEOF
2904 #define IGNORE_DOT_PATH 1
2907 { echo "$as_me:$LINENO: result: yes" >&5
2908 echo "${ECHO_T}yes" >&6; }
2910 { echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6; }
2914 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2915 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2917 # Check whether --with-mail-if-no-user was given.
2918 if test "${with_mail_if_no_user+set}" = set; then
2919 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2920 yes) mail_no_user=on
2922 no) mail_no_user=off
2924 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2925 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2926 { (exit 1); exit 1; }; }
2931 if test "$mail_no_user" = "on"; then
2932 cat >>confdefs.h <<\_ACEOF
2933 #define SEND_MAIL_WHEN_NO_USER 1
2936 { echo "$as_me:$LINENO: result: yes" >&5
2937 echo "${ECHO_T}yes" >&6; }
2939 { echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6; }
2943 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2944 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2946 # Check whether --with-mail-if-no-host was given.
2947 if test "${with_mail_if_no_host+set}" = set; then
2948 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2949 yes) mail_no_host=on
2951 no) mail_no_host=off
2953 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2954 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2955 { (exit 1); exit 1; }; }
2960 if test "$mail_no_host" = "on"; then
2961 cat >>confdefs.h <<\_ACEOF
2962 #define SEND_MAIL_WHEN_NO_HOST 1
2965 { echo "$as_me:$LINENO: result: yes" >&5
2966 echo "${ECHO_T}yes" >&6; }
2968 { echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6; }
2972 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2973 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2975 # Check whether --with-mail-if-noperms was given.
2976 if test "${with_mail_if_noperms+set}" = set; then
2977 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2978 yes) mail_noperms=on
2980 no) mail_noperms=off
2982 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2983 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2984 { (exit 1); exit 1; }; }
2989 if test "$mail_noperms" = "on"; then
2990 cat >>confdefs.h <<\_ACEOF
2991 #define SEND_MAIL_WHEN_NOT_OK 1
2994 { echo "$as_me:$LINENO: result: yes" >&5
2995 echo "${ECHO_T}yes" >&6; }
2997 { echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6; }
3001 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
3002 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
3004 # Check whether --with-mailto was given.
3005 if test "${with_mailto+set}" = set; then
3006 withval=$with_mailto; case $with_mailto in
3007 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
3008 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
3009 { (exit 1); exit 1; }; }
3011 no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
3012 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
3013 { (exit 1); exit 1; }; }
3015 *) mailto=$with_mailto
3021 cat >>confdefs.h <<_ACEOF
3022 #define MAILTO "$mailto"
3025 { echo "$as_me:$LINENO: result: $mailto" >&5
3026 echo "${ECHO_T}$mailto" >&6; }
3029 # Check whether --with-mailsubject was given.
3030 if test "${with_mailsubject+set}" = set; then
3031 withval=$with_mailsubject; case $with_mailsubject in
3032 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
3033 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
3034 { (exit 1); exit 1; }; }
3036 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
3037 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
3039 *) mailsub="$with_mailsubject"
3040 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
3041 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
3042 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
3043 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
3049 cat >>confdefs.h <<_ACEOF
3050 #define MAILSUBJECT "$mailsub"
3054 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
3055 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
3057 # Check whether --with-passprompt was given.
3058 if test "${with_passprompt+set}" = set; then
3059 withval=$with_passprompt; case $with_passprompt in
3060 yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
3061 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
3062 { (exit 1); exit 1; }; }
3064 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
3065 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
3067 *) passprompt="$with_passprompt"
3071 { echo "$as_me:$LINENO: result: $passprompt" >&5
3072 echo "${ECHO_T}$passprompt" >&6; }
3074 cat >>confdefs.h <<_ACEOF
3075 #define PASSPROMPT "$passprompt"
3079 { echo "$as_me:$LINENO: checking for bad password message" >&5
3080 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3082 # Check whether --with-badpass-message was given.
3083 if test "${with_badpass_message+set}" = set; then
3084 withval=$with_badpass_message; case $with_badpass_message in
3085 yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3086 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3087 { (exit 1); exit 1; }; }
3089 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3090 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3092 *) badpass_message="$with_badpass_message"
3098 cat >>confdefs.h <<_ACEOF
3099 #define INCORRECT_PASSWORD "$badpass_message"
3102 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3103 echo "${ECHO_T}$badpass_message" >&6; }
3105 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3106 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3108 # Check whether --with-fqdn was given.
3109 if test "${with_fqdn+set}" = set; then
3110 withval=$with_fqdn; case $with_fqdn in
3115 *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3116 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3117 { (exit 1); exit 1; }; }
3122 if test "$fqdn" = "on"; then
3123 cat >>confdefs.h <<\_ACEOF
3127 { echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6; }
3130 { echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6; }
3135 # Check whether --with-timedir was given.
3136 if test "${with_timedir+set}" = set; then
3137 withval=$with_timedir; case $with_timedir in
3138 yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3139 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3140 { (exit 1); exit 1; }; }
3142 no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3143 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3144 { (exit 1); exit 1; }; }
3151 # Check whether --with-sendmail was given.
3152 if test "${with_sendmail+set}" = set; then
3153 withval=$with_sendmail; case $with_sendmail in
3154 yes) with_sendmail=""
3157 *) cat >>confdefs.h <<EOF
3158 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3167 # Check whether --with-sudoers-mode was given.
3168 if test "${with_sudoers_mode+set}" = set; then
3169 withval=$with_sudoers_mode; case $with_sudoers_mode in
3170 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3171 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3172 { (exit 1); exit 1; }; }
3174 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3175 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3176 { (exit 1); exit 1; }; }
3178 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
3180 0*) SUDOERS_MODE=$with_sudoers_mode
3182 *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3183 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3184 { (exit 1); exit 1; }; }
3191 # Check whether --with-sudoers-uid was given.
3192 if test "${with_sudoers_uid+set}" = set; then
3193 withval=$with_sudoers_uid; case $with_sudoers_uid in
3194 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3195 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3196 { (exit 1); exit 1; }; }
3198 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3199 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3200 { (exit 1); exit 1; }; }
3202 [0-9]*) SUDOERS_UID=$with_sudoers_uid
3204 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3205 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3206 { (exit 1); exit 1; }; }
3213 # Check whether --with-sudoers-gid was given.
3214 if test "${with_sudoers_gid+set}" = set; then
3215 withval=$with_sudoers_gid; case $with_sudoers_gid in
3216 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3217 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3218 { (exit 1); exit 1; }; }
3220 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3221 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3222 { (exit 1); exit 1; }; }
3224 [0-9]*) SUDOERS_GID=$with_sudoers_gid
3226 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3227 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3228 { (exit 1); exit 1; }; }
3234 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3235 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3237 # Check whether --with-umask was given.
3238 if test "${with_umask+set}" = set; then
3239 withval=$with_umask; case $with_umask in
3240 yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3241 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3242 { (exit 1); exit 1; }; }
3246 [0-9]*) sudo_umask=$with_umask
3248 *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3249 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3250 { (exit 1); exit 1; }; }
3256 cat >>confdefs.h <<_ACEOF
3257 #define SUDO_UMASK $sudo_umask
3260 if test "$sudo_umask" = "0777"; then
3261 { echo "$as_me:$LINENO: result: user" >&5
3262 echo "${ECHO_T}user" >&6; }
3264 { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3265 echo "${ECHO_T}$sudo_umask" >&6; }
3268 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3269 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3271 # Check whether --with-runas-default was given.
3272 if test "${with_runas_default+set}" = set; then
3273 withval=$with_runas_default; case $with_runas_default in
3274 yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3275 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3276 { (exit 1); exit 1; }; }
3278 no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3279 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3280 { (exit 1); exit 1; }; }
3282 *) runas_default="$with_runas_default"
3288 cat >>confdefs.h <<_ACEOF
3289 #define RUNAS_DEFAULT "$runas_default"
3292 { echo "$as_me:$LINENO: result: $runas_default" >&5
3293 echo "${ECHO_T}$runas_default" >&6; }
3296 # Check whether --with-exempt was given.
3297 if test "${with_exempt+set}" = set; then
3298 withval=$with_exempt; case $with_exempt in
3299 yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3300 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3301 { (exit 1); exit 1; }; }
3303 no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3304 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3305 { (exit 1); exit 1; }; }
3308 cat >>confdefs.h <<_ACEOF
3309 #define EXEMPTGROUP "$with_exempt"
3312 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3313 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3314 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3315 echo "${ECHO_T}$with_exempt" >&6; }
3321 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3322 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3324 # Check whether --with-editor was given.
3325 if test "${with_editor+set}" = set; then
3326 withval=$with_editor; case $with_editor in
3327 yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3328 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3329 { (exit 1); exit 1; }; }
3331 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3332 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3333 { (exit 1); exit 1; }; }
3336 cat >>confdefs.h <<_ACEOF
3337 #define EDITOR "$with_editor"
3340 { echo "$as_me:$LINENO: result: $with_editor" >&5
3341 echo "${ECHO_T}$with_editor" >&6; }
3345 cat >>confdefs.h <<\_ACEOF
3346 #define EDITOR _PATH_VI
3348 { echo "$as_me:$LINENO: result: vi" >&5
3349 echo "${ECHO_T}vi" >&6; }
3353 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3354 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3356 # Check whether --with-env-editor was given.
3357 if test "${with_env_editor+set}" = set; then
3358 withval=$with_env_editor; case $with_env_editor in
3363 *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3364 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3365 { (exit 1); exit 1; }; }
3370 if test "$env_editor" = "on"; then
3371 cat >>confdefs.h <<\_ACEOF
3372 #define ENV_EDITOR 1
3375 { echo "$as_me:$LINENO: result: yes" >&5
3376 echo "${ECHO_T}yes" >&6; }
3378 { echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6; }
3382 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3383 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3385 # Check whether --with-passwd-tries was given.
3386 if test "${with_passwd_tries+set}" = set; then
3387 withval=$with_passwd_tries; case $with_passwd_tries in
3389 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3390 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3391 { (exit 1); exit 1; }; }
3393 [1-9]*) passwd_tries=$with_passwd_tries
3395 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3396 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3397 { (exit 1); exit 1; }; }
3403 cat >>confdefs.h <<_ACEOF
3404 #define TRIES_FOR_PASSWORD $passwd_tries
3407 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3408 echo "${ECHO_T}$passwd_tries" >&6; }
3410 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3411 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3413 # Check whether --with-timeout was given.
3414 if test "${with_timeout+set}" = set; then
3415 withval=$with_timeout; case $with_timeout in
3419 [0-9]*) timeout=$with_timeout
3421 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3422 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3423 { (exit 1); exit 1; }; }
3429 cat >>confdefs.h <<_ACEOF
3430 #define TIMEOUT $timeout
3433 { echo "$as_me:$LINENO: result: $timeout" >&5
3434 echo "${ECHO_T}$timeout" >&6; }
3436 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3437 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3439 # Check whether --with-password-timeout was given.
3440 if test "${with_password_timeout+set}" = set; then
3441 withval=$with_password_timeout; case $with_password_timeout in
3443 no) password_timeout=0
3445 [0-9]*) password_timeout=$with_password_timeout
3447 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3448 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3449 { (exit 1); exit 1; }; }
3455 cat >>confdefs.h <<_ACEOF
3456 #define PASSWORD_TIMEOUT $password_timeout
3459 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3460 echo "${ECHO_T}$password_timeout" >&6; }
3462 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3463 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3465 # Check whether --with-tty-tickets was given.
3466 if test "${with_tty_tickets+set}" = set; then
3467 withval=$with_tty_tickets; case $with_tty_tickets in
3472 *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3473 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3474 { (exit 1); exit 1; }; }
3479 if test "$tty_tickets" = "on"; then
3480 cat >>confdefs.h <<\_ACEOF
3481 #define USE_TTY_TICKETS 1
3484 { echo "$as_me:$LINENO: result: yes" >&5
3485 echo "${ECHO_T}yes" >&6; }
3487 { echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6; }
3491 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3492 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3494 # Check whether --with-insults was given.
3495 if test "${with_insults+set}" = set; then
3496 withval=$with_insults; case $with_insults in
3498 with_classic_insults=yes
3499 with_csops_insults=yes
3503 *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3504 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3505 { (exit 1); exit 1; }; }
3510 if test "$insults" = "on"; then
3511 cat >>confdefs.h <<\_ACEOF
3512 #define USE_INSULTS 1
3515 { echo "$as_me:$LINENO: result: yes" >&5
3516 echo "${ECHO_T}yes" >&6; }
3518 { echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6; }
3523 # Check whether --with-all-insults was given.
3524 if test "${with_all_insults+set}" = set; then
3525 withval=$with_all_insults; case $with_all_insults in
3526 yes) with_classic_insults=yes
3527 with_csops_insults=yes
3528 with_hal_insults=yes
3529 with_goons_insults=yes
3532 *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3533 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3534 { (exit 1); exit 1; }; }
3541 # Check whether --with-classic-insults was given.
3542 if test "${with_classic_insults+set}" = set; then
3543 withval=$with_classic_insults; case $with_classic_insults in
3544 yes) cat >>confdefs.h <<\_ACEOF
3545 #define CLASSIC_INSULTS 1
3550 *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3551 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3552 { (exit 1); exit 1; }; }
3559 # Check whether --with-csops-insults was given.
3560 if test "${with_csops_insults+set}" = set; then
3561 withval=$with_csops_insults; case $with_csops_insults in
3562 yes) cat >>confdefs.h <<\_ACEOF
3563 #define CSOPS_INSULTS 1
3568 *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3569 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3570 { (exit 1); exit 1; }; }
3577 # Check whether --with-hal-insults was given.
3578 if test "${with_hal_insults+set}" = set; then
3579 withval=$with_hal_insults; case $with_hal_insults in
3580 yes) cat >>confdefs.h <<\_ACEOF
3581 #define HAL_INSULTS 1
3586 *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3587 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3588 { (exit 1); exit 1; }; }
3595 # Check whether --with-goons-insults was given.
3596 if test "${with_goons_insults+set}" = set; then
3597 withval=$with_goons_insults; case $with_goons_insults in
3598 yes) cat >>confdefs.h <<\_ACEOF
3599 #define GOONS_INSULTS 1
3604 *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3605 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3606 { (exit 1); exit 1; }; }
3613 # Check whether --with-nsswitch was given.
3614 if test "${with_nsswitch+set}" = set; then
3615 withval=$with_nsswitch; case $with_nsswitch in
3617 yes) with_nsswitch="/etc/nsswitch.conf"
3625 # Check whether --with-ldap was given.
3626 if test "${with_ldap+set}" = set; then
3627 withval=$with_ldap; case $with_ldap in
3629 *) cat >>confdefs.h <<\_ACEOF
3633 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3634 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3635 { echo "$as_me:$LINENO: result: yes" >&5
3636 echo "${ECHO_T}yes" >&6; }
3643 # Check whether --with-ldap-conf-file was given.
3644 if test "${with_ldap_conf_file+set}" = set; then
3645 withval=$with_ldap_conf_file;
3648 cat >>confdefs.h <<EOF
3649 #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
3652 ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
3655 # Check whether --with-ldap-secret-file was given.
3656 if test "${with_ldap_secret_file+set}" = set; then
3657 withval=$with_ldap_secret_file;
3660 cat >>confdefs.h <<EOF
3661 #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
3664 ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
3667 # Check whether --with-pc-insults was given.
3668 if test "${with_pc_insults+set}" = set; then
3669 withval=$with_pc_insults; case $with_pc_insults in
3670 yes) cat >>confdefs.h <<\_ACEOF
3671 #define PC_INSULTS 1
3676 *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3677 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3678 { (exit 1); exit 1; }; }
3684 if test "$insults" = "on"; then
3685 { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3686 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3688 test "$with_goons_insults" = "yes" && i="goons ${i}"
3689 test "$with_hal_insults" = "yes" && i="hal ${i}"
3690 test "$with_csops_insults" = "yes" && i="csops ${i}"
3691 test "$with_classic_insults" = "yes" && i="classic ${i}"
3692 { echo "$as_me:$LINENO: result: $i" >&5
3693 echo "${ECHO_T}$i" >&6; }
3696 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3697 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3699 # Check whether --with-secure-path was given.
3700 if test "${with_secure_path+set}" = set; then
3701 withval=$with_secure_path; case $with_secure_path in
3702 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3703 cat >>confdefs.h <<_ACEOF
3704 #define SECURE_PATH "$with_secure_path"
3707 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3708 echo "${ECHO_T}$with_secure_path" >&6; }
3709 secure_path="set to $with_secure_path"
3711 no) { echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6; }
3714 *) cat >>confdefs.h <<_ACEOF
3715 #define SECURE_PATH "$with_secure_path"
3718 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3719 echo "${ECHO_T}$with_secure_path" >&6; }
3720 secure_path="set to F<$with_secure_path>"
3724 { echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6; }
3729 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3730 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3732 # Check whether --with-interfaces was given.
3733 if test "${with_interfaces+set}" = set; then
3734 withval=$with_interfaces; case $with_interfaces in
3735 yes) { echo "$as_me:$LINENO: result: yes" >&5
3736 echo "${ECHO_T}yes" >&6; }
3738 no) cat >>confdefs.h <<\_ACEOF
3739 #define STUB_LOAD_INTERFACES 1
3742 { echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6; }
3745 *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3746 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3747 { (exit 1); exit 1; }; }
3751 { echo "$as_me:$LINENO: result: yes" >&5
3752 echo "${ECHO_T}yes" >&6; }
3756 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3757 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3759 # Check whether --with-stow was given.
3760 if test "${with_stow+set}" = set; then
3761 withval=$with_stow; case $with_stow in
3762 yes) { echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6; }
3764 cat >>confdefs.h <<\_ACEOF
3769 no) { echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6; }
3772 *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3773 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3774 { (exit 1); exit 1; }; }
3778 { echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6; }
3783 { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
3784 echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
3786 # Check whether --with-askpass was given.
3787 if test "${with_askpass+set}" = set; then
3788 withval=$with_askpass; case $with_askpass in
3789 yes) { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
3790 echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
3791 { (exit 1); exit 1; }; }
3795 cat >>confdefs.h <<_ACEOF
3796 #define _PATH_SUDO_ASKPASS "$with_askpass"
3802 { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812 if test -n "$ac_tool_prefix"; then
3813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3817 if test "${ac_cv_prog_CC+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 if test -n "$CC"; then
3821 ac_cv_prog_CC="$CC" # Let the user override the test.
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 if test -n "$CC"; then
3842 { echo "$as_me:$LINENO: result: $CC" >&5
3843 echo "${ECHO_T}$CC" >&6; }
3845 { echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6; }
3851 if test -z "$ac_cv_prog_CC"; then
3853 # Extract the first word of "gcc", so it can be a program name with args.
3854 set dummy gcc; ac_word=$2
3855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 if test -n "$ac_ct_CC"; then
3861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_ac_ct_CC="gcc"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881 if test -n "$ac_ct_CC"; then
3882 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3883 echo "${ECHO_T}$ac_ct_CC" >&6; }
3885 { echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6; }
3889 if test "x$ac_ct_CC" = x; then
3892 case $cross_compiling:$ac_tool_warned in
3894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3895 whose name does not start with the host triplet. If you think this
3896 configuration is useful to you, please write to autoconf@gnu.org." >&5
3897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3898 whose name does not start with the host triplet. If you think this
3899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3900 ac_tool_warned=yes ;;
3908 if test -z "$CC"; then
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}cc; ac_word=$2
3912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3914 if test "${ac_cv_prog_CC+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 if test -n "$CC"; then
3918 ac_cv_prog_CC="$CC" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3927 ac_cv_prog_CC="${ac_tool_prefix}cc"
3928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 if test -n "$CC"; then
3939 { echo "$as_me:$LINENO: result: $CC" >&5
3940 echo "${ECHO_T}$CC" >&6; }
3942 { echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6; }
3949 if test -z "$CC"; then
3950 # Extract the first word of "cc", so it can be a program name with args.
3951 set dummy cc; ac_word=$2
3952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3954 if test "${ac_cv_prog_CC+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 if test -n "$CC"; then
3958 ac_cv_prog_CC="$CC" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3969 ac_prog_rejected=yes
3973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 if test $ac_prog_rejected = yes; then
3981 # We found a bogon in the path, so make sure we never use it.
3982 set dummy $ac_cv_prog_CC
3984 if test $# != 0; then
3985 # We chose a different compiler from the bogus one.
3986 # However, it has the same basename, so the bogon will be chosen
3987 # first if we set CC to just the basename; use the full file name.
3989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3995 if test -n "$CC"; then
3996 { echo "$as_me:$LINENO: result: $CC" >&5
3997 echo "${ECHO_T}$CC" >&6; }
3999 { echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6; }
4005 if test -z "$CC"; then
4006 if test -n "$ac_tool_prefix"; then
4007 for ac_prog in cl.exe
4009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4013 if test "${ac_cv_prog_CC+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 if test -n "$CC"; then
4017 ac_cv_prog_CC="$CC" # Let the user override the test.
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 if test -n "$CC"; then
4038 { echo "$as_me:$LINENO: result: $CC" >&5
4039 echo "${ECHO_T}$CC" >&6; }
4041 { echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6; }
4046 test -n "$CC" && break
4049 if test -z "$CC"; then
4051 for ac_prog in cl.exe
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054 set dummy $ac_prog; ac_word=$2
4055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4057 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 if test -n "$ac_ct_CC"; then
4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070 ac_cv_prog_ac_ct_CC="$ac_prog"
4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4081 if test -n "$ac_ct_CC"; then
4082 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4083 echo "${ECHO_T}$ac_ct_CC" >&6; }
4085 { echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6; }
4090 test -n "$ac_ct_CC" && break
4093 if test "x$ac_ct_CC" = x; then
4096 case $cross_compiling:$ac_tool_warned in
4098 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4099 whose name does not start with the host triplet. If you think this
4100 configuration is useful to you, please write to autoconf@gnu.org." >&5
4101 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4102 whose name does not start with the host triplet. If you think this
4103 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4104 ac_tool_warned=yes ;;
4113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4114 See \`config.log' for more details." >&5
4115 echo "$as_me: error: no acceptable C compiler found in \$PATH
4116 See \`config.log' for more details." >&2;}
4117 { (exit 1); exit 1; }; }
4119 # Provide some information about the compiler.
4120 echo "$as_me:$LINENO: checking for C compiler version" >&5
4121 ac_compiler=`set X $ac_compile; echo $2`
4122 { (ac_try="$ac_compiler --version >&5"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compiler --version >&5") 2>&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }
4132 { (ac_try="$ac_compiler -v >&5"
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compiler -v >&5") 2>&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }
4142 { (ac_try="$ac_compiler -V >&5"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_compiler -V >&5") 2>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }
4153 cat >conftest.$ac_ext <<_ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4168 ac_clean_files_save=$ac_clean_files
4169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4170 # Try to create an executable without -o first, disregard a.out.
4171 # It will help us diagnose broken compilers, and finding out an intuition
4173 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4177 # List of possible output files, starting from the most likely.
4178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4179 # only as a last resort. b.out is created by i960 compilers.
4180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4182 # The IRIX 6 linker writes into existing files which may not be
4183 # executable, retaining their permissions. Remove them first so a
4184 # subsequent execution test works.
4186 for ac_file in $ac_files
4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4195 if { (ac_try="$ac_link_default"
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_link_default") 2>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; then
4205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4208 # so that the user can short-circuit this test for compilers unknown to
4210 for ac_file in $ac_files ''
4212 test -f "$ac_file" || continue
4214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4217 # We found the default executable, but exeext='' is most
4221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4225 # We set ac_cv_exeext here because the later test for it is not
4226 # safe: cross compilers may not add the suffix if given an `-o'
4227 # argument, so we may need to know it at that point already.
4228 # Even if this section looks crufty: it has the advantage of
4235 test "$ac_cv_exeext" = no && ac_cv_exeext=
4241 { echo "$as_me:$LINENO: result: $ac_file" >&5
4242 echo "${ECHO_T}$ac_file" >&6; }
4243 if test -z "$ac_file"; then
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4248 See \`config.log' for more details." >&5
4249 echo "$as_me: error: C compiler cannot create executables
4250 See \`config.log' for more details." >&2;}
4251 { (exit 77); exit 77; }; }
4254 ac_exeext=$ac_cv_exeext
4256 # Check that the compiler produces executables we can run. If not, either
4257 # the compiler is broken, or we cross compile.
4258 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4259 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4260 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4261 # If not cross compiling, check that we can run a simple program.
4262 if test "$cross_compiling" != yes; then
4263 if { ac_try='./$ac_file'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4275 if test "$cross_compiling" = maybe; then
4278 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4279 If you meant to cross compile, use \`--host'.
4280 See \`config.log' for more details." >&5
4281 echo "$as_me: error: cannot run C compiled programs.
4282 If you meant to cross compile, use \`--host'.
4283 See \`config.log' for more details." >&2;}
4284 { (exit 1); exit 1; }; }
4288 { echo "$as_me:$LINENO: result: yes" >&5
4289 echo "${ECHO_T}yes" >&6; }
4291 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4292 ac_clean_files=$ac_clean_files_save
4293 # Check that the compiler produces executables we can run. If not, either
4294 # the compiler is broken, or we cross compile.
4295 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4296 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4297 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4298 echo "${ECHO_T}$cross_compiling" >&6; }
4300 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4301 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4302 if { (ac_try="$ac_link"
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_link") 2>&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; then
4312 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4313 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4314 # work properly (i.e., refer to `conftest.exe'), while it won't with
4316 for ac_file in conftest.exe conftest conftest.*; do
4317 test -f "$ac_file" || continue
4319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4326 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4327 See \`config.log' for more details." >&5
4328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4329 See \`config.log' for more details." >&2;}
4330 { (exit 1); exit 1; }; }
4333 rm -f conftest$ac_cv_exeext
4334 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4335 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4337 rm -f conftest.$ac_ext
4338 EXEEXT=$ac_cv_exeext
4340 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4342 if test "${ac_cv_objext+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4360 rm -f conftest.o conftest.obj
4361 if { (ac_try="$ac_compile"
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_compile") 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; then
4371 for ac_file in conftest.o conftest.obj conftest.*; do
4372 test -f "$ac_file" || continue;
4374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4375 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4384 See \`config.log' for more details." >&5
4385 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4386 See \`config.log' for more details." >&2;}
4387 { (exit 1); exit 1; }; }
4390 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4392 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4393 echo "${ECHO_T}$ac_cv_objext" >&6; }
4394 OBJEXT=$ac_cv_objext
4396 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4397 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4398 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 cat >conftest.$ac_ext <<_ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4419 rm -f conftest.$ac_objext
4420 if { (ac_try="$ac_compile"
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_compile") 2>conftest.er1
4428 grep -v '^ *+' conftest.er1 >conftest.err
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && {
4433 test -z "$ac_c_werror_flag" ||
4434 test ! -s conftest.err
4435 } && test -s conftest.$ac_objext; then
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4448 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4450 GCC=`test $ac_compiler_gnu = yes && echo yes`
4451 ac_test_CFLAGS=${CFLAGS+set}
4452 ac_save_CFLAGS=$CFLAGS
4453 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4455 if test "${ac_cv_prog_cc_g+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 ac_save_c_werror_flag=$ac_c_werror_flag
4459 ac_c_werror_flag=yes
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4477 rm -f conftest.$ac_objext
4478 if { (ac_try="$ac_compile"
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_compile") 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && {
4491 test -z "$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 } && test -s conftest.$ac_objext; then
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4515 rm -f conftest.$ac_objext
4516 if { (ac_try="$ac_compile"
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4522 (eval "$ac_compile") 2>conftest.er1
4524 grep -v '^ *+' conftest.er1 >conftest.err
4526 cat conftest.err >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } && {
4529 test -z "$ac_c_werror_flag" ||
4530 test ! -s conftest.err
4531 } && test -s conftest.$ac_objext; then
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4537 ac_c_werror_flag=$ac_save_c_werror_flag
4539 cat >conftest.$ac_ext <<_ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4554 rm -f conftest.$ac_objext
4555 if { (ac_try="$ac_compile"
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_compile") 2>conftest.er1
4563 grep -v '^ *+' conftest.er1 >conftest.err
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.$ac_objext; then
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 ac_c_werror_flag=$ac_save_c_werror_flag
4588 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4589 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4590 if test "$ac_test_CFLAGS" = set; then
4591 CFLAGS=$ac_save_CFLAGS
4592 elif test $ac_cv_prog_cc_g = yes; then
4593 if test "$GCC" = yes; then
4599 if test "$GCC" = yes; then
4605 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4606 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4607 if test "${ac_cv_prog_cc_c89+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 ac_cv_prog_cc_c89=no
4612 cat >conftest.$ac_ext <<_ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4620 #include <sys/types.h>
4621 #include <sys/stat.h>
4622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4623 struct buf { int x; };
4624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4625 static char *e (p, i)
4631 static char *f (char * (*g) (char **, int), char **p, ...)
4636 s = g (p, va_arg (v,int));
4641 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4642 function prototypes and stuff, but not '\xHH' hex character constants.
4643 These don't provoke an error unfortunately, instead are silently treated
4644 as 'x'. The following induces an error, until -std is added to get
4645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4646 array size at least. It's necessary to write '\x00'==0 to get something
4647 that's true only with -std. */
4648 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4650 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4651 inside strings and character constants. */
4653 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4655 int test (int i, double x);
4656 struct s1 {int (*f) (int a);};
4657 struct s2 {int (*f) (double a);};
4658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4664 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4669 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4672 CC="$ac_save_CC $ac_arg"
4673 rm -f conftest.$ac_objext
4674 if { (ac_try="$ac_compile"
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 (eval "$ac_compile") 2>conftest.er1
4682 grep -v '^ *+' conftest.er1 >conftest.err
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } && {
4687 test -z "$ac_c_werror_flag" ||
4688 test ! -s conftest.err
4689 } && test -s conftest.$ac_objext; then
4690 ac_cv_prog_cc_c89=$ac_arg
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4698 rm -f core conftest.err conftest.$ac_objext
4699 test "x$ac_cv_prog_cc_c89" != "xno" && break
4701 rm -f conftest.$ac_ext
4706 case "x$ac_cv_prog_cc_c89" in
4708 { echo "$as_me:$LINENO: result: none needed" >&5
4709 echo "${ECHO_T}none needed" >&6; } ;;
4711 { echo "$as_me:$LINENO: result: unsupported" >&5
4712 echo "${ECHO_T}unsupported" >&6; } ;;
4714 CC="$CC $ac_cv_prog_cc_c89"
4715 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4716 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4721 ac_cpp='$CPP $CPPFLAGS'
4722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728 # Check whether --with-libvas was given.
4729 if test "${with_libvas+set}" = set; then
4730 withval=$with_libvas; case $with_libvas in
4731 yes) with_libvas=libvas.so
4735 cat >>confdefs.h <<_ACEOF
4736 #define LIBVAS_SO "$with_libvas"
4741 if test X"$with_libvas" != X"no"; then
4743 cat >>confdefs.h <<_ACEOF
4744 #define LIBVAS_SO "$with_libvas"
4747 cat >>confdefs.h <<\_ACEOF
4748 #define USING_NONUNIX_GROUPS 1
4751 NONUNIX_GROUPS_IMPL="vasgroups.o"
4753 # Check whether --with-libvas-rpath was given.
4754 if test "${with_libvas_rpath+set}" = set; then
4755 withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
4757 LIBVAS_RPATH=/opt/quest/lib
4761 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
4762 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
4763 if test "${ac_cv_lib_dl_main+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 ac_check_lib_save_LIBS=$LIBS
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4784 rm -f conftest.$ac_objext conftest$ac_exeext
4785 if { (ac_try="$ac_link"
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4791 (eval "$ac_link") 2>conftest.er1
4793 grep -v '^ *+' conftest.er1 >conftest.err
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } && {
4798 test -z "$ac_c_werror_flag" ||
4799 test ! -s conftest.err
4800 } && test -s conftest$ac_exeext &&
4801 $as_test_x conftest$ac_exeext; then
4802 ac_cv_lib_dl_main=yes
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 ac_cv_lib_dl_main=no
4810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4811 conftest$ac_exeext conftest.$ac_ext
4812 LIBS=$ac_check_lib_save_LIBS
4814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4815 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
4816 if test $ac_cv_lib_dl_main = yes; then
4817 cat >>confdefs.h <<_ACEOF
4818 #define HAVE_LIBDL 1
4831 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
4832 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
4833 # Check whether --enable-authentication was given.
4834 if test "${enable_authentication+set}" = set; then
4835 enableval=$enable_authentication; case "$enableval" in
4836 yes) { echo "$as_me:$LINENO: result: yes" >&5
4837 echo "${ECHO_T}yes" >&6; }
4839 no) { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4841 cat >>confdefs.h <<\_ACEOF
4842 #define NO_AUTHENTICATION 1
4846 *) { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4848 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
4849 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
4854 { echo "$as_me:$LINENO: result: yes" >&5
4855 echo "${ECHO_T}yes" >&6; }
4859 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
4860 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
4861 # Check whether --enable-root-mailer was given.
4862 if test "${enable_root_mailer+set}" = set; then
4863 enableval=$enable_root_mailer; case "$enableval" in
4864 yes) { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4867 no) { echo "$as_me:$LINENO: result: yes" >&5
4868 echo "${ECHO_T}yes" >&6; }
4869 cat >>confdefs.h <<\_ACEOF
4870 #define NO_ROOT_MAILER 1
4874 *) { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4876 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
4877 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
4882 { echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6; }
4887 # Check whether --enable-setreuid was given.
4888 if test "${enable_setreuid+set}" = set; then
4889 enableval=$enable_setreuid; case "$enableval" in
4890 no) SKIP_SETREUID=yes
4898 # Check whether --enable-setresuid was given.
4899 if test "${enable_setresuid+set}" = set; then
4900 enableval=$enable_setresuid; case "$enableval" in
4901 no) SKIP_SETRESUID=yes
4909 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
4910 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
4911 # Check whether --enable-shadow was given.
4912 if test "${enable_shadow+set}" = set; then
4913 enableval=$enable_shadow; case "$enableval" in
4914 yes) { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4917 no) { echo "$as_me:$LINENO: result: yes" >&5
4918 echo "${ECHO_T}yes" >&6; }
4921 *) { echo "$as_me:$LINENO: result: no" >&5
4922 echo "${ECHO_T}no" >&6; }
4923 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
4924 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
4929 { echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6; }
4934 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
4935 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
4936 # Check whether --enable-root-sudo was given.
4937 if test "${enable_root_sudo+set}" = set; then
4938 enableval=$enable_root_sudo; case "$enableval" in
4939 yes) { echo "$as_me:$LINENO: result: yes" >&5
4940 echo "${ECHO_T}yes" >&6; }
4942 no) cat >>confdefs.h <<\_ACEOF
4943 #define NO_ROOT_SUDO 1
4946 { echo "$as_me:$LINENO: result: no" >&5
4947 echo "${ECHO_T}no" >&6; }
4950 *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
4951 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
4952 { (exit 1); exit 1; }; }
4957 { echo "$as_me:$LINENO: result: yes" >&5
4958 echo "${ECHO_T}yes" >&6; }
4962 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
4963 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
4964 # Check whether --enable-log-host was given.
4965 if test "${enable_log_host+set}" = set; then
4966 enableval=$enable_log_host; case "$enableval" in
4967 yes) { echo "$as_me:$LINENO: result: yes" >&5
4968 echo "${ECHO_T}yes" >&6; }
4969 cat >>confdefs.h <<\_ACEOF
4970 #define HOST_IN_LOG 1
4974 no) { echo "$as_me:$LINENO: result: no" >&5
4975 echo "${ECHO_T}no" >&6; }
4977 *) { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4979 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
4980 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
4985 { echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6; }
4990 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
4991 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
4992 # Check whether --enable-noargs-shell was given.
4993 if test "${enable_noargs_shell+set}" = set; then
4994 enableval=$enable_noargs_shell; case "$enableval" in
4995 yes) { echo "$as_me:$LINENO: result: yes" >&5
4996 echo "${ECHO_T}yes" >&6; }
4997 cat >>confdefs.h <<\_ACEOF
4998 #define SHELL_IF_NO_ARGS 1
5002 no) { echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6; }
5005 *) { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5007 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5008 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5013 { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5018 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
5019 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
5020 # Check whether --enable-shell-sets-home was given.
5021 if test "${enable_shell_sets_home+set}" = set; then
5022 enableval=$enable_shell_sets_home; case "$enableval" in
5023 yes) { echo "$as_me:$LINENO: result: yes" >&5
5024 echo "${ECHO_T}yes" >&6; }
5025 cat >>confdefs.h <<\_ACEOF
5026 #define SHELL_SETS_HOME 1
5030 no) { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5033 *) { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5035 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5036 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5041 { echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6; }
5046 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
5047 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
5048 # Check whether --enable-path_info was given.
5049 if test "${enable_path_info+set}" = set; then
5050 enableval=$enable_path_info; case "$enableval" in
5051 yes) { echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6; }
5054 no) { echo "$as_me:$LINENO: result: yes" >&5
5055 echo "${ECHO_T}yes" >&6; }
5056 cat >>confdefs.h <<\_ACEOF
5057 #define DONT_LEAK_PATH_INFO 1
5062 *) { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5064 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5065 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5070 { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5075 { echo "$as_me:$LINENO: checking whether to enable environment debugging" >&5
5076 echo $ECHO_N "checking whether to enable environment debugging... $ECHO_C" >&6; }
5077 # Check whether --enable-env_debug was given.
5078 if test "${enable_env_debug+set}" = set; then
5079 enableval=$enable_env_debug; case "$enableval" in
5080 yes) { echo "$as_me:$LINENO: result: yes" >&5
5081 echo "${ECHO_T}yes" >&6; }
5082 cat >>confdefs.h <<\_ACEOF
5087 no) { echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6; }
5090 *) { echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6; }
5092 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5093 echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5104 # Check whether --with-selinux was given.
5105 if test "${with_selinux+set}" = set; then
5106 withval=$with_selinux; case $with_selinux in
5107 yes) SELINUX_USAGE="[-r role] [-t type] "
5108 cat >>confdefs.h <<\_ACEOF
5109 #define HAVE_SELINUX 1
5112 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5113 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5114 PROGS="${PROGS} sesh"
5119 *) { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
5120 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
5121 { (exit 1); exit 1; }; }
5127 # Check whether --enable-gss_krb5_ccache_name was given.
5128 if test "${enable_gss_krb5_ccache_name+set}" = set; then
5129 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5131 check_gss_krb5_ccache_name=no
5135 # Extract the first word of "egrep", so it can be a program name with args.
5136 set dummy egrep; ac_word=$2
5137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 if test -n "$EGREPPROG"; then
5143 ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_EGREPPROG="egrep"
5153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 EGREPPROG=$ac_cv_prog_EGREPPROG
5163 if test -n "$EGREPPROG"; then
5164 { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
5165 echo "${ECHO_T}$EGREPPROG" >&6; }
5167 { echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6; }
5172 if test -z "$EGREPPROG"; then
5173 { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
5174 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
5175 { (exit 1); exit 1; }; }
5178 if test "$with_devel" != "yes"; then
5182 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5183 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5184 if test "${ac_cv_search_strerror+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 ac_func_search_save_LIBS=$LIBS
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5195 /* Override any GCC internal prototype to avoid an error.
5196 Use char because int might match the return type of a GCC
5197 builtin and then its argument prototype would still apply. */
5210 for ac_lib in '' cposix; do
5211 if test -z "$ac_lib"; then
5212 ac_res="none required"
5215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5217 rm -f conftest.$ac_objext conftest$ac_exeext
5218 if { (ac_try="$ac_link"
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224 (eval "$ac_link") 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } && {
5231 test -z "$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5233 } && test -s conftest$ac_exeext &&
5234 $as_test_x conftest$ac_exeext; then
5235 ac_cv_search_strerror=$ac_res
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5245 if test "${ac_cv_search_strerror+set}" = set; then
5249 if test "${ac_cv_search_strerror+set}" = set; then
5252 ac_cv_search_strerror=no
5255 LIBS=$ac_func_search_save_LIBS
5257 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5258 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5259 ac_res=$ac_cv_search_strerror
5260 if test "$ac_res" != no; then
5261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5266 ac_cpp='$CPP $CPPFLAGS'
5267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5270 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5272 # On Suns, sometimes $CPP names a directory.
5273 if test -n "$CPP" && test -d "$CPP"; then
5276 if test -z "$CPP"; then
5277 if test "${ac_cv_prog_CPP+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 # Double quotes because CPP needs to be expanded
5281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5284 for ac_c_preproc_warn_flag in '' yes
5286 # Use a header file that comes with gcc, so configuring glibc
5287 # with a fresh cross-compiler works.
5288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5289 # <limits.h> exists even on freestanding compilers.
5290 # On the NeXT, cc -E runs the code through the compiler's parser,
5291 # not just through cpp. "Syntax error" is here to catch this case.
5292 cat >conftest.$ac_ext <<_ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5299 # include <limits.h>
5301 # include <assert.h>
5305 if { (ac_try="$ac_cpp conftest.$ac_ext"
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5313 grep -v '^ *+' conftest.er1 >conftest.err
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } >/dev/null && {
5318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 # Broken: fails on valid input.
5330 rm -f conftest.err conftest.$ac_ext
5332 # OK, works on sane cases. Now check whether nonexistent headers
5333 # can be detected and how.
5334 cat >conftest.$ac_ext <<_ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <ac_nonexistent.h>
5342 if { (ac_try="$ac_cpp conftest.$ac_ext"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } >/dev/null && {
5355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5356 test ! -s conftest.err
5358 # Broken: success on invalid input.
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 # Passes both tests.
5369 rm -f conftest.err conftest.$ac_ext
5372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5373 rm -f conftest.err conftest.$ac_ext
5374 if $ac_preproc_ok; then
5386 { echo "$as_me:$LINENO: result: $CPP" >&5
5387 echo "${ECHO_T}$CPP" >&6; }
5389 for ac_c_preproc_warn_flag in '' yes
5391 # Use a header file that comes with gcc, so configuring glibc
5392 # with a fresh cross-compiler works.
5393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5394 # <limits.h> exists even on freestanding compilers.
5395 # On the NeXT, cc -E runs the code through the compiler's parser,
5396 # not just through cpp. "Syntax error" is here to catch this case.
5397 cat >conftest.$ac_ext <<_ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5404 # include <limits.h>
5406 # include <assert.h>
5410 if { (ac_try="$ac_cpp conftest.$ac_ext"
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418 grep -v '^ *+' conftest.er1 >conftest.err
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } >/dev/null && {
5423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5431 # Broken: fails on valid input.
5435 rm -f conftest.err conftest.$ac_ext
5437 # OK, works on sane cases. Now check whether nonexistent headers
5438 # can be detected and how.
5439 cat >conftest.$ac_ext <<_ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 #include <ac_nonexistent.h>
5447 if { (ac_try="$ac_cpp conftest.$ac_ext"
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } >/dev/null && {
5460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5463 # Broken: success on invalid input.
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 # Passes both tests.
5474 rm -f conftest.err conftest.$ac_ext
5477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478 rm -f conftest.err conftest.$ac_ext
5479 if $ac_preproc_ok; then
5482 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5490 ac_cpp='$CPP $CPPFLAGS'
5491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5498 if test -f "$ac_dir/install-sh"; then
5500 ac_install_sh="$ac_aux_dir/install-sh -c"
5502 elif test -f "$ac_dir/install.sh"; then
5504 ac_install_sh="$ac_aux_dir/install.sh -c"
5506 elif test -f "$ac_dir/shtool"; then
5508 ac_install_sh="$ac_aux_dir/shtool install -c"
5512 if test -z "$ac_aux_dir"; then
5513 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5514 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5515 { (exit 1); exit 1; }; }
5518 # These three variables are undocumented and unsupported,
5519 # and are intended to be withdrawn in a future Autoconf release.
5520 # They can cause serious problems if a builder's source tree is in a directory
5521 # whose full name contains unusual characters.
5522 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5523 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5524 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5527 # Make sure we can run config.sub.
5528 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5529 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5530 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5531 { (exit 1); exit 1; }; }
5533 { echo "$as_me:$LINENO: checking build system type" >&5
5534 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5535 if test "${ac_cv_build+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 ac_build_alias=$build_alias
5539 test "x$ac_build_alias" = x &&
5540 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5541 test "x$ac_build_alias" = x &&
5542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5543 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5544 { (exit 1); exit 1; }; }
5545 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5546 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5547 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5548 { (exit 1); exit 1; }; }
5551 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5552 echo "${ECHO_T}$ac_cv_build" >&6; }
5553 case $ac_cv_build in
5555 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5556 echo "$as_me: error: invalid value of canonical build" >&2;}
5557 { (exit 1); exit 1; }; };;
5560 ac_save_IFS=$IFS; IFS='-'
5566 # Remember, the first character of IFS is used to create $*,
5567 # except with old shells:
5570 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5573 { echo "$as_me:$LINENO: checking host system type" >&5
5574 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5575 if test "${ac_cv_host+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 if test "x$host_alias" = x; then
5579 ac_cv_host=$ac_cv_build
5581 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5582 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5583 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5584 { (exit 1); exit 1; }; }
5588 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5589 echo "${ECHO_T}$ac_cv_host" >&6; }
5592 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5593 echo "$as_me: error: invalid value of canonical host" >&2;}
5594 { (exit 1); exit 1; }; };;
5597 ac_save_IFS=$IFS; IFS='-'
5603 # Remember, the first character of IFS is used to create $*,
5604 # except with old shells:
5607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5610 # Check whether --enable-static was given.
5611 if test "${enable_static+set}" = set; then
5612 enableval=$enable_static; p=${PACKAGE-default}
5614 yes) enable_static=yes ;;
5615 no) enable_static=no ;;
5618 # Look at the argument we got. We use all the common list separators.
5619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5620 for pkg in $enableval; do
5622 if test "X$pkg" = "X$p"; then
5637 # Check whether --enable-shared was given.
5638 if test "${enable_shared+set}" = set; then
5639 enableval=$enable_shared; p=${PACKAGE-default}
5641 yes) enable_shared=yes ;;
5642 no) enable_shared=no ;;
5645 # Look at the argument we got. We use all the common list separators.
5646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5647 for pkg in $enableval; do
5649 if test "X$pkg" = "X$p"; then
5661 # Check whether --enable-fast-install was given.
5662 if test "${enable_fast_install+set}" = set; then
5663 enableval=$enable_fast_install; p=${PACKAGE-default}
5665 yes) enable_fast_install=yes ;;
5666 no) enable_fast_install=no ;;
5668 enable_fast_install=no
5669 # Look at the argument we got. We use all the common list separators.
5670 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5671 for pkg in $enableval; do
5673 if test "X$pkg" = "X$p"; then
5674 enable_fast_install=yes
5681 enable_fast_install=yes
5685 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5686 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5687 if test "${lt_cv_path_SED+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 # Loop through the user's path and test for sed and gsed.
5691 # Then use that list of sed's as ones to test for truncation.
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 test -z "$as_dir" && as_dir=.
5697 for lt_ac_prog in sed gsed; do
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5700 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5708 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5709 # along with /bin/sed that truncates output.
5710 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5711 test ! -f $lt_ac_sed && continue
5712 cat /dev/null > conftest.in
5714 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5715 # Check for GNU sed and select it if it is found.
5716 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5717 lt_cv_path_SED=$lt_ac_sed
5721 cat conftest.in conftest.in >conftest.tmp
5722 mv conftest.tmp conftest.in
5723 cp conftest.in conftest.nl
5725 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5726 cmp -s conftest.out conftest.nl || break
5727 # 10000 chars as input seems more than enough
5728 test $lt_ac_count -gt 10 && break
5729 lt_ac_count=`expr $lt_ac_count + 1`
5730 if test $lt_ac_count -gt $lt_ac_max; then
5731 lt_ac_max=$lt_ac_count
5732 lt_cv_path_SED=$lt_ac_sed
5741 { echo "$as_me:$LINENO: result: $SED" >&5
5742 echo "${ECHO_T}$SED" >&6; }
5744 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5745 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5746 if test "${ac_cv_path_GREP+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 # Extract the first word of "grep ggrep" to use in msg output
5750 if test -z "$GREP"; then
5751 set dummy grep ggrep; ac_prog_name=$2
5752 if test "${ac_cv_path_GREP+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 ac_path_GREP_found=false
5756 # Loop through the user's path and test for each of PROGNAME-LIST
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5761 test -z "$as_dir" && as_dir=.
5762 for ac_prog in grep ggrep; do
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5765 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5766 # Check for GNU ac_path_GREP and select it if it is found.
5767 # Check for GNU $ac_path_GREP
5768 case `"$ac_path_GREP" --version 2>&1` in
5770 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5773 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5776 cat "conftest.in" "conftest.in" >"conftest.tmp"
5777 mv "conftest.tmp" "conftest.in"
5778 cp "conftest.in" "conftest.nl"
5779 echo 'GREP' >> "conftest.nl"
5780 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5782 ac_count=`expr $ac_count + 1`
5783 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5784 # Best one so far, save it but keep looking for a better one
5785 ac_cv_path_GREP="$ac_path_GREP"
5786 ac_path_GREP_max=$ac_count
5788 # 10*(2^10) chars as input seems more than enough
5789 test $ac_count -gt 10 && break
5791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5795 $ac_path_GREP_found && break 3
5805 GREP="$ac_cv_path_GREP"
5806 if test -z "$GREP"; then
5807 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5808 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5809 { (exit 1); exit 1; }; }
5813 ac_cv_path_GREP=$GREP
5818 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5819 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5820 GREP="$ac_cv_path_GREP"
5823 { echo "$as_me:$LINENO: checking for egrep" >&5
5824 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5825 if test "${ac_cv_path_EGREP+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5829 then ac_cv_path_EGREP="$GREP -E"
5831 # Extract the first word of "egrep" to use in msg output
5832 if test -z "$EGREP"; then
5833 set dummy egrep; ac_prog_name=$2
5834 if test "${ac_cv_path_EGREP+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 ac_path_EGREP_found=false
5838 # Loop through the user's path and test for each of PROGNAME-LIST
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5843 test -z "$as_dir" && as_dir=.
5844 for ac_prog in egrep; do
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5847 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5848 # Check for GNU ac_path_EGREP and select it if it is found.
5849 # Check for GNU $ac_path_EGREP
5850 case `"$ac_path_EGREP" --version 2>&1` in
5852 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5855 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5858 cat "conftest.in" "conftest.in" >"conftest.tmp"
5859 mv "conftest.tmp" "conftest.in"
5860 cp "conftest.in" "conftest.nl"
5861 echo 'EGREP' >> "conftest.nl"
5862 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5864 ac_count=`expr $ac_count + 1`
5865 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5866 # Best one so far, save it but keep looking for a better one
5867 ac_cv_path_EGREP="$ac_path_EGREP"
5868 ac_path_EGREP_max=$ac_count
5870 # 10*(2^10) chars as input seems more than enough
5871 test $ac_count -gt 10 && break
5873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5877 $ac_path_EGREP_found && break 3
5887 EGREP="$ac_cv_path_EGREP"
5888 if test -z "$EGREP"; then
5889 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5890 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5891 { (exit 1); exit 1; }; }
5895 ac_cv_path_EGREP=$EGREP
5901 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5902 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5903 EGREP="$ac_cv_path_EGREP"
5907 # Check whether --with-gnu-ld was given.
5908 if test "${with_gnu_ld+set}" = set; then
5909 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5915 if test "$GCC" = yes; then
5916 # Check if gcc -print-prog-name=ld gives a path.
5917 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5918 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5921 # gcc leaves a trailing carriage return which upsets mingw
5922 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5924 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5927 # Accept absolute paths.
5929 re_direlt='/[^/][^/]*/\.\./'
5930 # Canonicalize the pathname of ld
5931 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5932 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5933 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5935 test -z "$LD" && LD="$ac_prog"
5938 # If it fails, then pretend we aren't using GCC.
5942 # If it is relative, then search for the first ld in PATH.
5946 elif test "$with_gnu_ld" = yes; then
5947 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5948 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5950 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5951 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5953 if test "${lt_cv_path_LD+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 if test -z "$LD"; then
5957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5958 for ac_dir in $PATH; do
5960 test -z "$ac_dir" && ac_dir=.
5961 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5962 lt_cv_path_LD="$ac_dir/$ac_prog"
5963 # Check to see if the program is GNU ld. I'd rather use --version,
5964 # but apparently some variants of GNU ld only accept -v.
5965 # Break only if it was the GNU/non-GNU ld that we prefer.
5966 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5967 *GNU* | *'with BFD'*)
5968 test "$with_gnu_ld" != no && break
5971 test "$with_gnu_ld" != yes && break
5978 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5983 if test -n "$LD"; then
5984 { echo "$as_me:$LINENO: result: $LD" >&5
5985 echo "${ECHO_T}$LD" >&6; }
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5990 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5991 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5992 { (exit 1); exit 1; }; }
5993 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5994 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5995 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5999 case `$LD -v 2>&1 </dev/null` in
6000 *GNU* | *'with BFD'*)
6001 lt_cv_prog_gnu_ld=yes
6004 lt_cv_prog_gnu_ld=no
6008 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6009 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6010 with_gnu_ld=$lt_cv_prog_gnu_ld
6013 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6014 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6015 if test "${lt_cv_ld_reload_flag+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 lt_cv_ld_reload_flag='-r'
6020 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6021 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6022 reload_flag=$lt_cv_ld_reload_flag
6023 case $reload_flag in
6025 *) reload_flag=" $reload_flag" ;;
6027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6030 if test "$GCC" = yes; then
6031 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6033 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6038 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6039 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6040 if test "${lt_cv_path_NM+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 if test -n "$NM"; then
6044 # Let the user override the test.
6047 lt_nm_to_check="${ac_tool_prefix}nm"
6048 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6049 lt_nm_to_check="$lt_nm_to_check nm"
6051 for lt_tmp_nm in $lt_nm_to_check; do
6052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6053 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6055 test -z "$ac_dir" && ac_dir=.
6056 tmp_nm="$ac_dir/$lt_tmp_nm"
6057 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6058 # Check to see if the nm accepts a BSD-compat flag.
6059 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6060 # nm: unknown option "B" ignored
6061 # Tru64's nm complains that /dev/null is an invalid object file
6062 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6063 */dev/null* | *'Invalid file or object type'*)
6064 lt_cv_path_NM="$tmp_nm -B"
6068 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6070 lt_cv_path_NM="$tmp_nm -p"
6074 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6075 continue # so that we can try to find one that supports BSD flags
6084 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6087 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6088 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6091 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6092 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6094 if test "$LN_S" = "ln -s"; then
6095 { echo "$as_me:$LINENO: result: yes" >&5
6096 echo "${ECHO_T}yes" >&6; }
6098 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6099 echo "${ECHO_T}no, using $LN_S" >&6; }
6102 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6103 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6104 if test "${lt_cv_deplibs_check_method+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 lt_cv_file_magic_cmd='$MAGIC_CMD'
6108 lt_cv_file_magic_test_file=
6109 lt_cv_deplibs_check_method='unknown'
6110 # Need to set the preceding variable on all platforms that support
6111 # interlibrary dependencies.
6112 # 'none' -- dependencies not supported.
6113 # `unknown' -- same as none, but documents that we really don't know.
6114 # 'pass_all' -- all dependencies passed with no checks.
6115 # 'test_compile' -- check by making test program.
6116 # 'file_magic [[regex]]' -- check by looking for files in library path
6117 # which responds to the $file_magic_cmd with a given extended regex.
6118 # If you have `file' or equivalent on your system and you're not sure
6119 # whether `pass_all' will *always* work, you probably want this one.
6123 lt_cv_deplibs_check_method=pass_all
6127 lt_cv_deplibs_check_method=pass_all
6131 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6132 lt_cv_file_magic_cmd='/usr/bin/file -L'
6133 lt_cv_file_magic_test_file=/shlib/libc.so
6137 # func_win32_libid is a shell function defined in ltmain.sh
6138 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6139 lt_cv_file_magic_cmd='func_win32_libid'
6143 # Base MSYS/MinGW do not provide the 'file' command needed by
6144 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6145 # unless we find 'file', for example because we are cross-compiling.
6146 if ( file / ) >/dev/null 2>&1; then
6147 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6148 lt_cv_file_magic_cmd='func_win32_libid'
6150 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6151 lt_cv_file_magic_cmd='$OBJDUMP -f'
6155 darwin* | rhapsody*)
6156 lt_cv_deplibs_check_method=pass_all
6159 freebsd* | dragonfly*)
6160 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6163 # Not sure whether the presence of OpenBSD here was a mistake.
6164 # Let's accept both of them until this is cleared up.
6165 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6166 lt_cv_file_magic_cmd=/usr/bin/file
6167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6171 lt_cv_deplibs_check_method=pass_all
6176 lt_cv_deplibs_check_method=pass_all
6179 hpux10.20* | hpux11*)
6180 lt_cv_file_magic_cmd=/usr/bin/file
6183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6184 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6188 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6191 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6192 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6198 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6202 irix5* | irix6* | nonstopux*)
6204 *-32|*"-32 ") libmagic=32-bit;;
6205 *-n32|*"-n32 ") libmagic=N32;;
6206 *-64|*"-64 ") libmagic=64-bit;;
6207 *) libmagic=never-match;;
6209 lt_cv_deplibs_check_method=pass_all
6212 # This must be Linux ELF.
6213 linux* | k*bsd*-gnu)
6214 lt_cv_deplibs_check_method=pass_all
6218 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6227 lt_cv_file_magic_cmd=/usr/bin/file
6228 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6232 lt_cv_deplibs_check_method=unknown
6236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6243 osf3* | osf4* | osf5*)
6244 lt_cv_deplibs_check_method=pass_all
6248 lt_cv_deplibs_check_method=pass_all
6252 lt_cv_deplibs_check_method=pass_all
6256 case $host_vendor in
6258 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]'
6259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6262 lt_cv_deplibs_check_method=pass_all
6265 lt_cv_file_magic_cmd='/bin/file'
6266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6269 lt_cv_file_magic_cmd='/bin/file'
6270 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6271 lt_cv_file_magic_test_file=/lib/libc.so
6274 lt_cv_deplibs_check_method=pass_all
6277 lt_cv_deplibs_check_method=pass_all
6282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6283 lt_cv_deplibs_check_method=pass_all
6288 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6289 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6290 file_magic_cmd=$lt_cv_file_magic_cmd
6291 deplibs_check_method=$lt_cv_deplibs_check_method
6292 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6297 # If no C compiler was specified, use CC.
6300 # If no C compiler flags were specified, use CFLAGS.
6301 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6303 # Allow CC to be a program name with arguments.
6306 # Check whether --enable-libtool-lock was given.
6307 if test "${enable_libtool_lock+set}" = set; then
6308 enableval=$enable_libtool_lock;
6311 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6313 # Some flags need to be propagated to the compiler or linker for good
6317 # Find out which ABI we are using.
6318 echo 'int i;' > conftest.$ac_ext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; then
6324 case `/usr/bin/file conftest.$ac_objext` in
6336 # Find out which ABI we are using.
6337 echo '#line 6337 "configure"' > conftest.$ac_ext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6339 (eval $ac_compile) 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; then
6343 if test "$lt_cv_prog_gnu_ld" = yes; then
6344 case `/usr/bin/file conftest.$ac_objext` in
6346 LD="${LD-ld} -melf32bsmip"
6349 LD="${LD-ld} -melf32bmipn32"
6352 LD="${LD-ld} -melf64bmip"
6356 case `/usr/bin/file conftest.$ac_objext` in
6372 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6373 s390*-*linux*|sparc*-*linux*)
6374 # Find out which ABI we are using.
6375 echo 'int i;' > conftest.$ac_ext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; then
6381 case `/usr/bin/file conftest.o` in
6384 x86_64-*kfreebsd*-gnu)
6385 LD="${LD-ld} -m elf_i386_fbsd"
6388 LD="${LD-ld} -m elf_i386"
6390 ppc64-*linux*|powerpc64-*linux*)
6391 LD="${LD-ld} -m elf32ppclinux"
6394 LD="${LD-ld} -m elf_s390"
6397 LD="${LD-ld} -m elf32_sparc"
6403 x86_64-*kfreebsd*-gnu)
6404 LD="${LD-ld} -m elf_x86_64_fbsd"
6407 LD="${LD-ld} -m elf_x86_64"
6409 ppc*-*linux*|powerpc*-*linux*)
6410 LD="${LD-ld} -m elf64ppc"
6413 LD="${LD-ld} -m elf64_s390"
6416 LD="${LD-ld} -m elf64_sparc"
6426 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6427 SAVE_CFLAGS="$CFLAGS"
6428 CFLAGS="$CFLAGS -belf"
6429 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6430 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6431 if test "${lt_cv_cc_needs_belf+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 ac_cpp='$CPP $CPPFLAGS'
6436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6440 cat >conftest.$ac_ext <<_ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6455 rm -f conftest.$ac_objext conftest$ac_exeext
6456 if { (ac_try="$ac_link"
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_link") 2>conftest.er1
6464 grep -v '^ *+' conftest.er1 >conftest.err
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6471 } && test -s conftest$ac_exeext &&
6472 $as_test_x conftest$ac_exeext; then
6473 lt_cv_cc_needs_belf=yes
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 lt_cv_cc_needs_belf=no
6481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6482 conftest$ac_exeext conftest.$ac_ext
6484 ac_cpp='$CPP $CPPFLAGS'
6485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6490 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6491 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6492 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6493 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6494 CFLAGS="$SAVE_CFLAGS"
6498 # Find out which ABI we are using.
6499 echo 'int i;' > conftest.$ac_ext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501 (eval $ac_compile) 2>&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; then
6505 case `/usr/bin/file conftest.o` in
6507 case $lt_cv_prog_gnu_ld in
6508 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6510 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6524 need_locks="$enable_libtool_lock"
6528 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6529 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6530 if test "${ac_cv_header_stdc+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 cat >conftest.$ac_ext <<_ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_cv_header_stdc=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_cv_header_stdc=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 if test $ac_cv_header_stdc = yes; then
6580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6581 cat >conftest.$ac_ext <<_ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 $EGREP "memchr" >/dev/null 2>&1; then
6594 ac_cv_header_stdc=no
6600 if test $ac_cv_header_stdc = yes; then
6601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6602 cat >conftest.$ac_ext <<_ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612 $EGREP "free" >/dev/null 2>&1; then
6615 ac_cv_header_stdc=no
6621 if test $ac_cv_header_stdc = yes; then
6622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6623 if test "$cross_compiling" = yes; then
6626 cat >conftest.$ac_ext <<_ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6634 #if ((' ' & 0x0FF) == 0x020)
6635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6638 # define ISLOWER(c) \
6639 (('a' <= (c) && (c) <= 'i') \
6640 || ('j' <= (c) && (c) <= 'r') \
6641 || ('s' <= (c) && (c) <= 'z'))
6642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6650 for (i = 0; i < 256; i++)
6651 if (XOR (islower (i), ISLOWER (i))
6652 || toupper (i) != TOUPPER (i))
6657 rm -f conftest$ac_exeext
6658 if { (ac_try="$ac_link"
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_link") 2>&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6668 { (case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_try") 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6679 echo "$as_me: program exited with status $ac_status" >&5
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6684 ac_cv_header_stdc=no
6686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6692 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6693 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6694 if test $ac_cv_header_stdc = yes; then
6696 cat >>confdefs.h <<\_ACEOF
6697 #define STDC_HEADERS 1
6702 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6713 inttypes.h stdint.h unistd.h
6715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 cat >conftest.$ac_ext <<_ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 $ac_includes_default
6729 #include <$ac_header>
6731 rm -f conftest.$ac_objext
6732 if { (ac_try="$ac_compile"
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6740 grep -v '^ *+' conftest.er1 >conftest.err
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 eval "$as_ac_Header=yes"
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 eval "$as_ac_Header=no"
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 ac_res=`eval echo '${'$as_ac_Header'}'`
6759 { echo "$as_me:$LINENO: result: $ac_res" >&5
6760 echo "${ECHO_T}$ac_res" >&6; }
6761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6762 cat >>confdefs.h <<_ACEOF
6763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6772 for ac_header in dlfcn.h
6774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_res=`eval echo '${'$as_ac_Header'}'`
6782 { echo "$as_me:$LINENO: result: $ac_res" >&5
6783 echo "${ECHO_T}$ac_res" >&6; }
6785 # Is the header compilable?
6786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6795 #include <$ac_header>
6797 rm -f conftest.$ac_objext
6798 if { (ac_try="$ac_compile"
6800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801 *) ac_try_echo=$ac_try;;
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804 (eval "$ac_compile") 2>conftest.er1
6806 grep -v '^ *+' conftest.er1 >conftest.err
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && {
6811 test -z "$ac_c_werror_flag" ||
6812 test ! -s conftest.err
6813 } && test -s conftest.$ac_objext; then
6814 ac_header_compiler=yes
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6819 ac_header_compiler=no
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6824 echo "${ECHO_T}$ac_header_compiler" >&6; }
6826 # Is the header present?
6827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <$ac_header>
6837 if { (ac_try="$ac_cpp conftest.$ac_ext"
6839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840 *) ac_try_echo=$ac_try;;
6842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6845 grep -v '^ *+' conftest.er1 >conftest.err
6847 cat conftest.err >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } >/dev/null && {
6850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6851 test ! -s conftest.err
6853 ac_header_preproc=yes
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 ac_header_preproc=no
6861 rm -f conftest.err conftest.$ac_ext
6862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6863 echo "${ECHO_T}$ac_header_preproc" >&6; }
6865 # So? What about this header?
6866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6872 ac_header_preproc=yes
6875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6888 ## --------------------------------------- ##
6889 ## Report this to http://www.sudo.ws/bugs/ ##
6890 ## --------------------------------------- ##
6892 ) | sed "s/^/$as_me: WARNING: /" >&2
6895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 eval "$as_ac_Header=\$ac_header_preproc"
6902 ac_res=`eval echo '${'$as_ac_Header'}'`
6903 { echo "$as_me:$LINENO: result: $ac_res" >&5
6904 echo "${ECHO_T}$ac_res" >&6; }
6907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6908 cat >>confdefs.h <<_ACEOF
6909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6917 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6918 # find the maximum length of command line arguments
6919 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6920 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6921 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 # On DJGPP, this test can blow up pretty badly due to problems in libc
6930 # (any single argument exceeding 2000 bytes causes a buffer overrun
6931 # during glob expansion). Even if it were fixed, the result of this
6932 # check would be larger than it should be.
6933 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6937 # Under GNU Hurd, this test is not required because there is
6938 # no limit to the length of command line arguments.
6939 # Libtool will interpret -1 as no limit whatsoever
6940 lt_cv_sys_max_cmd_len=-1;
6944 # On Win9x/ME, this test blows up -- it succeeds, but takes
6945 # about 5 minutes as the teststring grows exponentially.
6946 # Worse, since 9x/ME are not pre-emptively multitasking,
6947 # you end up with a "frozen" computer, even though with patience
6948 # the test eventually succeeds (with a max line length of 256k).
6949 # Instead, let's just punt: use the minimum linelength reported by
6950 # all of the supported platforms: 8192 (on NT/2K/XP).
6951 lt_cv_sys_max_cmd_len=8192;
6955 # On AmigaOS with pdksh, this test takes hours, literally.
6956 # So we just punt and use a minimum line length of 8192.
6957 lt_cv_sys_max_cmd_len=8192;
6960 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6961 # This has been around since 386BSD, at least. Likely further.
6962 if test -x /sbin/sysctl; then
6963 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6964 elif test -x /usr/sbin/sysctl; then
6965 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6967 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6969 # And add a safety zone
6970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6975 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6976 lt_cv_sys_max_cmd_len=196608
6980 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6981 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6982 # nice to cause kernel panics so lets avoid the loop below.
6983 # First set a reasonable default.
6984 lt_cv_sys_max_cmd_len=16384
6986 if test -x /sbin/sysconfig; then
6987 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6988 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6993 lt_cv_sys_max_cmd_len=102400
6995 sysv5* | sco5v6* | sysv4.2uw2*)
6996 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6997 if test -n "$kargmax"; then
6998 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7000 lt_cv_sys_max_cmd_len=32768
7004 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7005 if test -n "$lt_cv_sys_max_cmd_len"; then
7006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7009 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7010 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7011 = "XX$teststring") >/dev/null 2>&1 &&
7012 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7013 lt_cv_sys_max_cmd_len=$new_result &&
7014 test $i != 17 # 1/2 MB should be enough
7017 teststring=$teststring$teststring
7020 # Add a significant safety factor because C++ compilers can tack on massive
7021 # amounts of additional arguments before passing them to the linker.
7022 # It appears as though 1/2 is a usable value.
7023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7030 if test -n $lt_cv_sys_max_cmd_len ; then
7031 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7032 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7034 { echo "$as_me:$LINENO: result: none" >&5
7035 echo "${ECHO_T}none" >&6; }
7042 # Check for command to grab the raw symbol name followed by C symbol from nm.
7043 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7044 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7045 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 # These are sane defaults that work on at least a few old systems.
7050 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7052 # Character class describing NM global symbol codes.
7053 symcode='[BCDEGRST]'
7055 # Regexp to match symbols that can be accessed directly from C.
7056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7058 # Transform an extracted symbol line into a proper C declaration
7059 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7061 # Transform an extracted symbol line into symbol name and symbol address
7062 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7064 # Define system-specific variables.
7069 cygwin* | mingw* | pw32*)
7070 symcode='[ABCDGISTW]'
7072 hpux*) # Its linker distinguishes data from code symbols
7073 if test "$host_cpu" = ia64; then
7074 symcode='[ABCDEGRST]'
7076 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7077 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7079 linux* | k*bsd*-gnu)
7080 if test "$host_cpu" = ia64; then
7081 symcode='[ABCDGIRSTW]'
7082 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7083 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7087 symcode='[BCDEGRST]'
7090 symcode='[BCDEGQRST]'
7101 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7109 # Handle CRLF in mingw tool chain
7113 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7117 # If we're using GNU nm, then use its standard symbol codes.
7118 case `$NM -V 2>&1` in
7119 *GNU* | *'with BFD'*)
7120 symcode='[ABCDGIRSTW]' ;;
7123 # Try without a prefix undercore, then with it.
7124 for ac_symprfx in "" "_"; do
7126 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7127 symxfrm="\\1 $ac_symprfx\\2 \\2"
7129 # Write the raw and C identifiers.
7130 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7132 # Check to see that the pipe works correctly.
7136 cat > conftest.$ac_ext <<EOF
7141 void nm_test_func(){}
7145 int main(){nm_test_var='a';nm_test_func();return(0);}
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149 (eval $ac_compile) 2>&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; then
7153 # Now try to grab the symbols.
7155 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7156 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } && test -s "$nlist"; then
7160 # Try sorting and uniquifying the output.
7161 if sort "$nlist" | uniq > "$nlist"T; then
7162 mv -f "$nlist"T "$nlist"
7167 # Make sure that we snagged all the symbols we need.
7168 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7169 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7170 cat <<EOF > conftest.$ac_ext
7176 # Now generate the symbol file.
7177 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7179 cat <<EOF >> conftest.$ac_ext
7180 #if defined (__STDC__) && __STDC__
7181 # define lt_ptr_t void *
7183 # define lt_ptr_t char *
7187 /* The mapping between symbol names and symbols. */
7192 lt_preloaded_symbols[] =
7195 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7196 cat <<\EOF >> conftest.$ac_ext
7204 # Now try linking the two files.
7205 mv conftest.$ac_objext conftstm.$ac_objext
7206 lt_save_LIBS="$LIBS"
7207 lt_save_CFLAGS="$CFLAGS"
7208 LIBS="conftstm.$ac_objext"
7209 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211 (eval $ac_link) 2>&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7217 LIBS="$lt_save_LIBS"
7218 CFLAGS="$lt_save_CFLAGS"
7220 echo "cannot find nm_test_func in $nlist" >&5
7223 echo "cannot find nm_test_var in $nlist" >&5
7226 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7229 echo "$progname: failed program was:" >&5
7230 cat conftest.$ac_ext >&5
7232 rm -rf conftest* conftst*
7234 # Do not use the global_symbol_pipe unless it works.
7235 if test "$pipe_works" = yes; then
7238 lt_cv_sys_global_symbol_pipe=
7244 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7245 lt_cv_sys_global_symbol_to_cdecl=
7247 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7248 { echo "$as_me:$LINENO: result: failed" >&5
7249 echo "${ECHO_T}failed" >&6; }
7251 { echo "$as_me:$LINENO: result: ok" >&5
7252 echo "${ECHO_T}ok" >&6; }
7255 { echo "$as_me:$LINENO: checking for objdir" >&5
7256 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7257 if test "${lt_cv_objdir+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 rm -f .libs 2>/dev/null
7261 mkdir .libs 2>/dev/null
7262 if test -d .libs; then
7265 # MS-DOS does not allow filenames that begin with a dot.
7268 rmdir .libs 2>/dev/null
7270 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7271 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7272 objdir=$lt_cv_objdir
7280 # AIX sometimes has problems with the GCC collect2 program. For some
7281 # reason, if we set the COLLECT_NAMES environment variable, the problems
7282 # vanish in a puff of smoke.
7283 if test "X${COLLECT_NAMES+set}" != Xset; then
7285 export COLLECT_NAMES
7290 # Sed substitution that helps us do robust quoting. It backslashifies
7291 # metacharacters that are still active within double-quoted strings.
7292 Xsed='sed -e 1s/^X//'
7293 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7295 # Same as above, but do not quote variable references.
7296 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7298 # Sed substitution to delay expansion of an escaped shell variable in a
7299 # double_quote_subst'ed string.
7300 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7302 # Sed substitution to avoid accidental globbing in evaled expressions
7303 no_glob_subst='s/\*/\\\*/g'
7309 default_ofile=libtool
7310 can_build_shared=yes
7312 # All known linkers require a `.a' archive for static linking (except MSVC,
7313 # which needs '.lib').
7315 ltmain="$ac_aux_dir/ltmain.sh"
7316 ofile="$default_ofile"
7317 with_gnu_ld="$lt_cv_prog_gnu_ld"
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}ar; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_prog_AR+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 if test -n "$AR"; then
7328 ac_cv_prog_AR="$AR" # Let the user override the test.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_AR="${ac_tool_prefix}ar"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 if test -n "$AR"; then
7349 { echo "$as_me:$LINENO: result: $AR" >&5
7350 echo "${ECHO_T}$AR" >&6; }
7352 { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7358 if test -z "$ac_cv_prog_AR"; then
7360 # Extract the first word of "ar", so it can be a program name with args.
7361 set dummy ar; ac_word=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 if test -n "$ac_ct_AR"; then
7368 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_ac_ct_AR="ar"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7388 if test -n "$ac_ct_AR"; then
7389 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7390 echo "${ECHO_T}$ac_ct_AR" >&6; }
7392 { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7396 if test "x$ac_ct_AR" = x; then
7399 case $cross_compiling:$ac_tool_warned in
7401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7402 whose name does not start with the host triplet. If you think this
7403 configuration is useful to you, please write to autoconf@gnu.org." >&5
7404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7405 whose name does not start with the host triplet. If you think this
7406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7407 ac_tool_warned=yes ;;
7415 if test -n "$ac_tool_prefix"; then
7416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_prog_RANLIB+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 if test -n "$RANLIB"; then
7424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 RANLIB=$ac_cv_prog_RANLIB
7444 if test -n "$RANLIB"; then
7445 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7446 echo "${ECHO_T}$RANLIB" >&6; }
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7454 if test -z "$ac_cv_prog_RANLIB"; then
7455 ac_ct_RANLIB=$RANLIB
7456 # Extract the first word of "ranlib", so it can be a program name with args.
7457 set dummy ranlib; ac_word=$2
7458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 if test -n "$ac_ct_RANLIB"; then
7464 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_prog_ac_ct_RANLIB="ranlib"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7484 if test -n "$ac_ct_RANLIB"; then
7485 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7486 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7488 { echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6; }
7492 if test "x$ac_ct_RANLIB" = x; then
7495 case $cross_compiling:$ac_tool_warned in
7497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7498 whose name does not start with the host triplet. If you think this
7499 configuration is useful to you, please write to autoconf@gnu.org." >&5
7500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7501 whose name does not start with the host triplet. If you think this
7502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7503 ac_tool_warned=yes ;;
7505 RANLIB=$ac_ct_RANLIB
7508 RANLIB="$ac_cv_prog_RANLIB"
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}strip; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_prog_STRIP+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 if test -n "$STRIP"; then
7520 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 STRIP=$ac_cv_prog_STRIP
7540 if test -n "$STRIP"; then
7541 { echo "$as_me:$LINENO: result: $STRIP" >&5
7542 echo "${ECHO_T}$STRIP" >&6; }
7544 { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7550 if test -z "$ac_cv_prog_STRIP"; then
7552 # Extract the first word of "strip", so it can be a program name with args.
7553 set dummy strip; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 if test -n "$ac_ct_STRIP"; then
7560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_ac_ct_STRIP="strip"
7570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7580 if test -n "$ac_ct_STRIP"; then
7581 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7582 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7584 { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7588 if test "x$ac_ct_STRIP" = x; then
7591 case $cross_compiling:$ac_tool_warned in
7593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7594 whose name does not start with the host triplet. If you think this
7595 configuration is useful to you, please write to autoconf@gnu.org." >&5
7596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7597 whose name does not start with the host triplet. If you think this
7598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7599 ac_tool_warned=yes ;;
7604 STRIP="$ac_cv_prog_STRIP"
7609 old_CFLAGS="$CFLAGS"
7611 # Set sane defaults for various variables
7612 test -z "$AR" && AR=ar
7613 test -z "$AR_FLAGS" && AR_FLAGS=cru
7614 test -z "$AS" && AS=as
7615 test -z "$CC" && CC=cc
7616 test -z "$LTCC" && LTCC=$CC
7617 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7618 test -z "$DLLTOOL" && DLLTOOL=dlltool
7619 test -z "$LD" && LD=ld
7620 test -z "$LN_S" && LN_S="ln -s"
7621 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7622 test -z "$NM" && NM=nm
7623 test -z "$SED" && SED=sed
7624 test -z "$OBJDUMP" && OBJDUMP=objdump
7625 test -z "$RANLIB" && RANLIB=:
7626 test -z "$STRIP" && STRIP=:
7627 test -z "$ac_objext" && ac_objext=o
7629 # Determine commands to create old-style static archives.
7630 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7631 old_postinstall_cmds='chmod 644 $oldlib'
7632 old_postuninstall_cmds=
7634 if test -n "$RANLIB"; then
7637 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7640 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7643 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7646 for cc_temp in $compiler""; do
7648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7654 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7657 # Only perform the check for file, if the check method requires it
7658 case $deplibs_check_method in
7660 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7661 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7662 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7663 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7671 lt_save_MAGIC_CMD="$MAGIC_CMD"
7672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7673 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7674 for ac_dir in $ac_dummy; do
7676 test -z "$ac_dir" && ac_dir=.
7677 if test -f $ac_dir/${ac_tool_prefix}file; then
7678 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7679 if test -n "$file_magic_test_file"; then
7680 case $deplibs_check_method in
7682 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7684 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7685 $EGREP "$file_magic_regex" > /dev/null; then
7690 *** Warning: the command libtool uses to detect shared libraries,
7691 *** $file_magic_cmd, produces output that libtool cannot recognize.
7692 *** The result is that libtool may fail to recognize shared libraries
7693 *** as such. This will affect the creation of libtool libraries that
7694 *** depend on shared libraries, but programs linked with such libtool
7695 *** libraries will work regardless of this problem. Nevertheless, you
7696 *** may want to report the problem to your system manager and/or to
7697 *** bug-libtool@gnu.org
7707 MAGIC_CMD="$lt_save_MAGIC_CMD"
7712 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7713 if test -n "$MAGIC_CMD"; then
7714 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7715 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7717 { echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6; }
7721 if test -z "$lt_cv_path_MAGIC_CMD"; then
7722 if test -n "$ac_tool_prefix"; then
7723 { echo "$as_me:$LINENO: checking for file" >&5
7724 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7725 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7733 lt_save_MAGIC_CMD="$MAGIC_CMD"
7734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7735 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7736 for ac_dir in $ac_dummy; do
7738 test -z "$ac_dir" && ac_dir=.
7739 if test -f $ac_dir/file; then
7740 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7741 if test -n "$file_magic_test_file"; then
7742 case $deplibs_check_method in
7744 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7746 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7747 $EGREP "$file_magic_regex" > /dev/null; then
7752 *** Warning: the command libtool uses to detect shared libraries,
7753 *** $file_magic_cmd, produces output that libtool cannot recognize.
7754 *** The result is that libtool may fail to recognize shared libraries
7755 *** as such. This will affect the creation of libtool libraries that
7756 *** depend on shared libraries, but programs linked with such libtool
7757 *** libraries will work regardless of this problem. Nevertheless, you
7758 *** may want to report the problem to your system manager and/or to
7759 *** bug-libtool@gnu.org
7769 MAGIC_CMD="$lt_save_MAGIC_CMD"
7774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7775 if test -n "$MAGIC_CMD"; then
7776 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7777 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7779 { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7794 rhapsody* | darwin*)
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 if test -n "$DSYMUTIL"; then
7804 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7824 if test -n "$DSYMUTIL"; then
7825 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7826 echo "${ECHO_T}$DSYMUTIL" >&6; }
7828 { echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6; }
7834 if test -z "$ac_cv_prog_DSYMUTIL"; then
7835 ac_ct_DSYMUTIL=$DSYMUTIL
7836 # Extract the first word of "dsymutil", so it can be a program name with args.
7837 set dummy dsymutil; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 if test -n "$ac_ct_DSYMUTIL"; then
7844 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7864 if test -n "$ac_ct_DSYMUTIL"; then
7865 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7866 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7868 { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7872 if test "x$ac_ct_DSYMUTIL" = x; then
7875 case $cross_compiling:$ac_tool_warned in
7877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7878 whose name does not start with the host triplet. If you think this
7879 configuration is useful to you, please write to autoconf@gnu.org." >&5
7880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7881 whose name does not start with the host triplet. If you think this
7882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7883 ac_tool_warned=yes ;;
7885 DSYMUTIL=$ac_ct_DSYMUTIL
7888 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7893 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 if test -n "$NMEDIT"; then
7900 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 NMEDIT=$ac_cv_prog_NMEDIT
7920 if test -n "$NMEDIT"; then
7921 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7922 echo "${ECHO_T}$NMEDIT" >&6; }
7924 { echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6; }
7930 if test -z "$ac_cv_prog_NMEDIT"; then
7931 ac_ct_NMEDIT=$NMEDIT
7932 # Extract the first word of "nmedit", so it can be a program name with args.
7933 set dummy nmedit; ac_word=$2
7934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7936 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 if test -n "$ac_ct_NMEDIT"; then
7940 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7960 if test -n "$ac_ct_NMEDIT"; then
7961 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7962 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7964 { echo "$as_me:$LINENO: result: no" >&5
7965 echo "${ECHO_T}no" >&6; }
7968 if test "x$ac_ct_NMEDIT" = x; then
7971 case $cross_compiling:$ac_tool_warned in
7973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7974 whose name does not start with the host triplet. If you think this
7975 configuration is useful to you, please write to autoconf@gnu.org." >&5
7976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7977 whose name does not start with the host triplet. If you think this
7978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7979 ac_tool_warned=yes ;;
7981 NMEDIT=$ac_ct_NMEDIT
7984 NMEDIT="$ac_cv_prog_NMEDIT"
7988 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7989 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7990 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 lt_cv_apple_cc_single_mod=no
7994 if test -z "${LT_MULTI_MODULE}"; then
7995 # By default we will add the -single_module flag. You can override
7996 # by either setting the environment variable LT_MULTI_MODULE
7997 # non-empty at configure time, or by adding -multi_module to the
7999 echo "int foo(void){return 1;}" > conftest.c
8000 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8001 -dynamiclib ${wl}-single_module conftest.c
8002 if test -f libconftest.dylib; then
8003 lt_cv_apple_cc_single_mod=yes
8004 rm -rf libconftest.dylib*
8009 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8010 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8011 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8012 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8013 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 lt_cv_ld_exported_symbols_list=no
8017 save_LDFLAGS=$LDFLAGS
8018 echo "_main" > conftest.sym
8019 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest$ac_exeext &&
8052 $as_test_x conftest$ac_exeext; then
8053 lt_cv_ld_exported_symbols_list=yes
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 lt_cv_ld_exported_symbols_list=no
8061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8062 conftest$ac_exeext conftest.$ac_ext
8063 LDFLAGS="$save_LDFLAGS"
8066 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8067 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8069 rhapsody* | darwin1.[0123])
8070 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8072 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8074 # if running on 10.5 or later, the deployment target defaults
8075 # to the OS version, if on x86, and 10.4, the deployment
8076 # target defaults to 10.4. Don't you love it?
8077 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8078 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8079 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8081 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8083 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8087 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8088 _lt_dar_single_mod='$single_module'
8090 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8091 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8093 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8095 if test "$DSYMUTIL" != ":"; then
8096 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8107 # Check whether --enable-libtool-lock was given.
8108 if test "${enable_libtool_lock+set}" = set; then
8109 enableval=$enable_libtool_lock;
8112 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8115 # Check whether --with-pic was given.
8116 if test "${with_pic+set}" = set; then
8117 withval=$with_pic; pic_mode="$withval"
8122 test -z "$pic_mode" && pic_mode=default
8124 # Use C for the default configuration in the libtool script
8128 ac_cpp='$CPP $CPPFLAGS'
8129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8134 # Source file extension for C test sources.
8137 # Object file extension for compiled C test sources.
8141 # Code to be used in simple compile tests
8142 lt_simple_compile_test_code="int some_variable = 0;"
8144 # Code to be used in simple link tests
8145 lt_simple_link_test_code='int main(){return(0);}'
8148 # If no C compiler was specified, use CC.
8151 # If no C compiler flags were specified, use CFLAGS.
8152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8154 # Allow CC to be a program name with arguments.
8158 # save warnings/boilerplate of simple test code
8159 ac_outfile=conftest.$ac_objext
8160 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8161 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8162 _lt_compiler_boilerplate=`cat conftest.err`
8165 ac_outfile=conftest.$ac_objext
8166 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8167 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8168 _lt_linker_boilerplate=`cat conftest.err`
8173 ## There is no encapsulation within the following macros, do not change
8174 ## the running order or otherwise move them around unless you know exactly
8175 ## what you are doing...
8177 lt_prog_compiler_no_builtin_flag=
8179 if test "$GCC" = yes; then
8180 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8183 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8184 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8185 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 lt_cv_prog_compiler_rtti_exceptions=no
8189 ac_outfile=conftest.$ac_objext
8190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8191 lt_compiler_flag="-fno-rtti -fno-exceptions"
8192 # Insert the option either (1) after the last *FLAGS variable, or
8193 # (2) before a word containing "conftest.", or (3) at the end.
8194 # Note that $ac_compile itself does not contain backslashes and begins
8195 # with a dollar sign (not a hyphen), so the echo should work correctly.
8196 # The option is referenced via a variable to avoid confusing sed.
8197 lt_compile=`echo "$ac_compile" | $SED \
8198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8200 -e 's:$: $lt_compiler_flag:'`
8201 (eval echo "\"\$as_me:8201: $lt_compile\"" >&5)
8202 (eval "$lt_compile" 2>conftest.err)
8204 cat conftest.err >&5
8205 echo "$as_me:8205: \$? = $ac_status" >&5
8206 if (exit $ac_status) && test -s "$ac_outfile"; then
8207 # The compiler can only warn and ignore the option if not recognized
8208 # So say no if there are warnings other than the usual output.
8209 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8211 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8212 lt_cv_prog_compiler_rtti_exceptions=yes
8218 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8219 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8221 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8222 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8229 lt_prog_compiler_wl=
8230 lt_prog_compiler_pic=
8231 lt_prog_compiler_static=
8233 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8234 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8236 if test "$GCC" = yes; then
8237 lt_prog_compiler_wl='-Wl,'
8238 lt_prog_compiler_static='-static'
8242 # All AIX code is PIC.
8243 if test "$host_cpu" = ia64; then
8244 # AIX 5 now supports IA64 processor
8245 lt_prog_compiler_static='-Bstatic'
8250 # FIXME: we need at least 68020 code to build shared libraries, but
8251 # adding the `-m68020' flag to GCC prevents building anything better,
8253 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8256 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8257 # PIC is the default for these OSes.
8260 mingw* | cygwin* | pw32* | os2*)
8261 # This hack is so that the source file can tell whether it is being
8262 # built for inclusion in a dll (and should export symbols for example).
8263 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8264 # (--disable-auto-import) libraries
8265 lt_prog_compiler_pic='-DDLL_EXPORT'
8268 darwin* | rhapsody*)
8269 # PIC is the default on this platform
8270 # Common symbols not allowed in MH_DYLIB files
8271 lt_prog_compiler_pic='-fno-common'
8275 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8276 # Instead, we relocate shared libraries at runtime.
8280 # Just because we use GCC doesn't mean we suddenly get shared libraries
8281 # on systems that don't support them.
8282 lt_prog_compiler_can_build_shared=no
8287 if test -d /usr/nec; then
8288 lt_prog_compiler_pic=-Kconform_pic
8293 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8300 lt_prog_compiler_pic='-fPIC'
8306 lt_prog_compiler_pic='-fPIC'
8310 # PORTME Check for flag to pass linker flags through the system compiler.
8313 lt_prog_compiler_wl='-Wl,'
8314 if test "$host_cpu" = ia64; then
8315 # AIX 5 now supports IA64 processor
8316 lt_prog_compiler_static='-Bstatic'
8318 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8322 # PIC is the default on this platform
8323 # Common symbols not allowed in MH_DYLIB files
8324 case $cc_basename in
8326 lt_prog_compiler_pic='-qnocommon'
8327 lt_prog_compiler_wl='-Wl,'
8332 mingw* | cygwin* | pw32* | os2*)
8333 # This hack is so that the source file can tell whether it is being
8334 # built for inclusion in a dll (and should export symbols for example).
8335 lt_prog_compiler_pic='-DDLL_EXPORT'
8338 hpux9* | hpux10* | hpux11*)
8339 lt_prog_compiler_wl='-Wl,'
8340 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8347 lt_prog_compiler_pic='+Z'
8350 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8351 lt_prog_compiler_static='${wl}-a ${wl}archive'
8354 irix5* | irix6* | nonstopux*)
8355 lt_prog_compiler_wl='-Wl,'
8356 # PIC (with -KPIC) is the default.
8357 lt_prog_compiler_static='-non_shared'
8361 lt_prog_compiler_pic='-KPIC'
8362 lt_prog_compiler_static='-Bstatic'
8365 linux* | k*bsd*-gnu)
8366 case $cc_basename in
8368 lt_prog_compiler_wl='-Wl,'
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-static'
8372 pgcc* | pgf77* | pgf90* | pgf95*)
8373 # Portland Group compilers (*not* the Pentium gcc compiler,
8374 # which looks to be a dead project)
8375 lt_prog_compiler_wl='-Wl,'
8376 lt_prog_compiler_pic='-fpic'
8377 lt_prog_compiler_static='-Bstatic'
8380 lt_prog_compiler_wl='-Wl,'
8381 # All Alpha code is PIC.
8382 lt_prog_compiler_static='-non_shared'
8385 case `$CC -V 2>&1 | sed 5q` in
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-Bstatic'
8390 lt_prog_compiler_wl='-Wl,'
8393 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8394 lt_prog_compiler_pic='-KPIC'
8395 lt_prog_compiler_static='-Bstatic'
8396 lt_prog_compiler_wl=''
8403 osf3* | osf4* | osf5*)
8404 lt_prog_compiler_wl='-Wl,'
8405 # All OSF/1 code is PIC.
8406 lt_prog_compiler_static='-non_shared'
8410 lt_prog_compiler_static='-non_shared'
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8416 case $cc_basename in
8418 lt_prog_compiler_wl='-Qoption ld ';;
8420 lt_prog_compiler_wl='-Wl,';;
8425 lt_prog_compiler_wl='-Qoption ld '
8426 lt_prog_compiler_pic='-PIC'
8427 lt_prog_compiler_static='-Bstatic'
8430 sysv4 | sysv4.2uw2* | sysv4.3*)
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_pic='-KPIC'
8433 lt_prog_compiler_static='-Bstatic'
8437 if test -d /usr/nec ;then
8438 lt_prog_compiler_pic='-Kconform_pic'
8439 lt_prog_compiler_static='-Bstatic'
8443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_pic='-KPIC'
8446 lt_prog_compiler_static='-Bstatic'
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_can_build_shared=no
8455 lt_prog_compiler_pic='-pic'
8456 lt_prog_compiler_static='-Bstatic'
8460 lt_prog_compiler_can_build_shared=no
8465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8466 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8469 # Check to make sure the PIC flag actually works.
8471 if test -n "$lt_prog_compiler_pic"; then
8473 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8474 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8475 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 lt_cv_prog_compiler_pic_works=no
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\$as_me:8491: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err)
8494 cat conftest.err >&5
8495 echo "$as_me:8495: \$? = $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502 lt_cv_prog_compiler_pic_works=yes
8508 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8509 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8511 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8512 case $lt_prog_compiler_pic in
8514 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8517 lt_prog_compiler_pic=
8518 lt_prog_compiler_can_build_shared=no
8523 # For platforms which do not support PIC, -DPIC is meaningless:
8525 lt_prog_compiler_pic=
8528 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8533 # Check to make sure the static flag actually works.
8535 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8536 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8537 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8538 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 lt_cv_prog_compiler_static_works=no
8542 save_LDFLAGS="$LDFLAGS"
8543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8544 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8546 # The linker can only warn and ignore the option if not recognized
8547 # So say no if there are warnings
8548 if test -s conftest.err; then
8549 # Append any errors to the config.log.
8550 cat conftest.err 1>&5
8551 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8553 if diff conftest.exp conftest.er2 >/dev/null; then
8554 lt_cv_prog_compiler_static_works=yes
8557 lt_cv_prog_compiler_static_works=yes
8561 LDFLAGS="$save_LDFLAGS"
8564 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8565 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8567 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8570 lt_prog_compiler_static=
8574 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8576 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 lt_cv_prog_compiler_c_o=no
8580 $rm -r conftest 2>/dev/null
8584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8586 lt_compiler_flag="-o out/conftest2.$ac_objext"
8587 # Insert the option either (1) after the last *FLAGS variable, or
8588 # (2) before a word containing "conftest.", or (3) at the end.
8589 # Note that $ac_compile itself does not contain backslashes and begins
8590 # with a dollar sign (not a hyphen), so the echo should work correctly.
8591 lt_compile=`echo "$ac_compile" | $SED \
8592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8594 -e 's:$: $lt_compiler_flag:'`
8595 (eval echo "\"\$as_me:8595: $lt_compile\"" >&5)
8596 (eval "$lt_compile" 2>out/conftest.err)
8598 cat out/conftest.err >&5
8599 echo "$as_me:8599: \$? = $ac_status" >&5
8600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8602 # The compiler can only warn and ignore the option if not recognized
8603 # So say no if there are warnings
8604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8607 lt_cv_prog_compiler_c_o=yes
8612 # SGI C++ compiler will create directory out/ii_files/ for
8613 # template instantiation
8614 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8615 $rm out/* && rmdir out
8621 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8622 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8625 hard_links="nottested"
8626 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8627 # do not overwrite the value of need_locks provided by the user
8628 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8629 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8634 ln conftest.a conftest.b 2>&5 || hard_links=no
8635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8636 { echo "$as_me:$LINENO: result: $hard_links" >&5
8637 echo "${ECHO_T}$hard_links" >&6; }
8638 if test "$hard_links" = no; then
8639 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8640 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8647 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8648 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8651 allow_undefined_flag=
8652 enable_shared_with_static_runtimes=no
8654 archive_expsym_cmds=
8655 old_archive_From_new_cmds=
8656 old_archive_from_expsyms_cmds=
8657 export_dynamic_flag_spec=
8658 whole_archive_flag_spec=
8659 thread_safe_flag_spec=
8660 hardcode_libdir_flag_spec=
8661 hardcode_libdir_flag_spec_ld=
8662 hardcode_libdir_separator=
8665 hardcode_shlibpath_var=unsupported
8666 link_all_deplibs=unknown
8667 hardcode_automatic=no
8670 always_export_symbols=no
8671 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8672 # include_expsyms should be a list of space-separated symbols to be *always*
8673 # included in the symbol list
8675 # exclude_expsyms can be an extended regexp of symbols to exclude
8676 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8677 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8678 # as well as any symbol that contains `d'.
8679 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8680 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8681 # platforms (ab)use it in PIC code, but their linkers get confused if
8682 # the symbol is explicitly referenced. Since portable code cannot
8683 # rely on this symbol name, it's probably fine to never include it in
8684 # preloaded symbol tables.
8685 # Exclude shared library initialization/finalization symbols.
8686 extract_expsyms_cmds=
8687 # Just being paranoid about ensuring that cc_basename is set.
8688 for cc_temp in $compiler""; do
8690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8696 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8699 cygwin* | mingw* | pw32*)
8700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8701 # When not using gcc, we currently assume that we are using
8702 # Microsoft Visual C++.
8703 if test "$GCC" != yes; then
8708 # we just hope/assume this is gcc and not c89 (= MSVC++)
8717 if test "$with_gnu_ld" = yes; then
8718 # If archive_cmds runs LD, not CC, wlarc should be empty
8721 # Set some defaults for GNU ld with shared library support. These
8722 # are reset later if shared libraries are not supported. Putting them
8723 # here allows them to be overridden if necessary.
8724 runpath_var=LD_RUN_PATH
8725 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8726 export_dynamic_flag_spec='${wl}--export-dynamic'
8727 # ancient GNU ld didn't support --whole-archive et. al.
8728 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8729 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8731 whole_archive_flag_spec=
8733 supports_anon_versioning=no
8734 case `$LD -v 2>/dev/null` in
8735 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8736 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8737 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8738 *\ 2.11.*) ;; # other 2.11 versions
8739 *) supports_anon_versioning=yes ;;
8742 # See if GNU ld supports shared libraries.
8745 # On AIX/PPC, the GNU linker is very broken
8746 if test "$host_cpu" != ia64; then
8750 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8751 *** to be unable to reliably create shared libraries on AIX.
8752 *** Therefore, libtool is disabling shared libraries support. If you
8753 *** really care for shared libraries, you may want to modify your PATH
8754 *** so that a non-GNU linker is found, and then restart.
8761 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)'
8762 hardcode_libdir_flag_spec='-L$libdir'
8763 hardcode_minus_L=yes
8765 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8766 # that the semantics of dynamic libraries on AmigaOS, at least up
8767 # to version 4, is to share data among multiple programs linked
8768 # with the same dynamic library. Since this doesn't match the
8769 # behavior of shared libraries on other platforms, we can't use
8775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8776 allow_undefined_flag=unsupported
8777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8778 # support --undefined. This deserves some investigation. FIXME
8779 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8785 cygwin* | mingw* | pw32*)
8786 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8787 # as there is no search path for DLLs.
8788 hardcode_libdir_flag_spec='-L$libdir'
8789 allow_undefined_flag=unsupported
8790 always_export_symbols=no
8791 enable_shared_with_static_runtimes=yes
8792 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8794 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8796 # If the export-symbols file already is a .def file (1st line
8797 # is EXPORTS), use it as is; otherwise, prepend...
8798 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8799 cp $export_symbols $output_objdir/$soname.def;
8801 echo EXPORTS > $output_objdir/$soname.def;
8802 cat $export_symbols >> $output_objdir/$soname.def;
8804 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8812 hardcode_shlibpath_var=no
8813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8814 export_dynamic_flag_spec='${wl}-E'
8815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8816 # Instead, shared libraries are loaded at an image base (0x10000000 by
8817 # default) and relocated if they conflict, which is a slow very memory
8818 # consuming and fragmenting process. To avoid this, we pick a random,
8819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8820 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8822 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'
8825 gnu* | linux* | k*bsd*-gnu)
8826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8828 case $cc_basename,$host_cpu in
8829 pgcc*) # Portland Group C compiler
8830 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8831 tmp_addflag=' $pic_flag'
8833 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8834 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8835 tmp_addflag=' $pic_flag -Mnomain' ;;
8836 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8837 tmp_addflag=' -i_dynamic' ;;
8838 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8839 tmp_addflag=' -i_dynamic -nofor_main' ;;
8840 ifc* | ifort*) # Intel Fortran compiler
8841 tmp_addflag=' -nofor_main' ;;
8843 case `$CC -V 2>&1 | sed 5q` in
8844 *Sun\ C*) # Sun C 5.9
8845 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8846 tmp_sharedflag='-G' ;;
8847 *Sun\ F*) # Sun Fortran 8.3
8848 tmp_sharedflag='-G' ;;
8850 tmp_sharedflag='-shared' ;;
8852 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854 if test $supports_anon_versioning = yes; then
8855 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8857 $echo "local: *; };" >> $output_objdir/$libname.ver~
8858 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8867 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8876 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8880 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8881 *** create shared libraries on Solaris systems. Therefore, libtool
8882 *** is disabling shared libraries support. We urge you to upgrade GNU
8883 *** binutils to release 2.9.1 or newer. Another option is to modify
8884 *** your PATH or compiler configuration so that the native linker is
8885 *** used, and then restart.
8888 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8896 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8897 case `$LD -v 2>&1` in
8898 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8902 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8903 *** reliably create shared libraries on SCO systems. Therefore, libtool
8904 *** is disabling shared libraries support. We urge you to upgrade GNU
8905 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8906 *** your PATH or compiler configuration so that the native linker is
8907 *** used, and then restart.
8912 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8913 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8924 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_shlibpath_var=no
8931 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8940 if test "$ld_shlibs" = no; then
8942 hardcode_libdir_flag_spec=
8943 export_dynamic_flag_spec=
8944 whole_archive_flag_spec=
8947 # PORTME fill in a description of your system's linker (not GNU ld)
8950 allow_undefined_flag=unsupported
8951 always_export_symbols=yes
8952 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'
8953 # Note: this linker hardcodes the directories in LIBPATH if there
8954 # are no directories specified by -L.
8955 hardcode_minus_L=yes
8956 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8957 # Neither direct hardcoding nor static linking is supported with a
8959 hardcode_direct=unsupported
8964 if test "$host_cpu" = ia64; then
8965 # On IA64, the linker does run time linking by default, so we don't
8966 # have to do anything special.
8967 aix_use_runtimelinking=no
8968 exp_sym_flag='-Bexport'
8971 # If we're using GNU nm, then we don't want the "-C" option.
8972 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8973 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8974 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8976 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'
8978 aix_use_runtimelinking=no
8980 # Test if we are trying to use run time linking or normal
8981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8982 # need to do runtime linking.
8983 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8984 for ld_flag in $LDFLAGS; do
8985 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8986 aix_use_runtimelinking=yes
8993 exp_sym_flag='-bexport'
8994 no_entry_flag='-bnoentry'
8997 # When large executables or shared objects are built, AIX ld can
8998 # have problems creating the table of contents. If linking a library
8999 # or program results in "error TOC overflow" add -mminimal-toc to
9000 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9001 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9005 hardcode_libdir_separator=':'
9006 link_all_deplibs=yes
9008 if test "$GCC" = yes; then
9009 case $host_os in aix4.[012]|aix4.[012].*)
9010 # We only want to do this on AIX 4.2 and lower, the check
9011 # below for broken collect2 doesn't work under 4.3+
9012 collect2name=`${CC} -print-prog-name=collect2`
9013 if test -f "$collect2name" && \
9014 strings "$collect2name" | grep resolve_lib_name >/dev/null
9016 # We have reworked collect2
9019 # We have old collect2
9020 hardcode_direct=unsupported
9021 # It fails to find uninstalled libraries when the uninstalled
9022 # path is not listed in the libpath. Setting hardcode_minus_L
9023 # to unsupported forces relinking
9024 hardcode_minus_L=yes
9025 hardcode_libdir_flag_spec='-L$libdir'
9026 hardcode_libdir_separator=
9030 shared_flag='-shared'
9031 if test "$aix_use_runtimelinking" = yes; then
9032 shared_flag="$shared_flag "'${wl}-G'
9036 if test "$host_cpu" = ia64; then
9037 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9038 # chokes on -Wl,-G. The following line is correct:
9041 if test "$aix_use_runtimelinking" = yes; then
9042 shared_flag='${wl}-G'
9044 shared_flag='${wl}-bM:SRE'
9049 # It seems that -bexpall does not export symbols beginning with
9050 # underscore (_), so it is better to generate a list of symbols to export.
9051 always_export_symbols=yes
9052 if test "$aix_use_runtimelinking" = yes; then
9053 # Warning - without using the other runtime loading flags (-brtl),
9054 # -berok will link without error, but may produce a broken library.
9055 allow_undefined_flag='-berok'
9056 # Determine the default libpath from the value encoded in an empty executable.
9057 cat >conftest.$ac_ext <<_ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_link") 2>conftest.er1
9081 grep -v '^ *+' conftest.er1 >conftest.err
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest$ac_exeext &&
9089 $as_test_x conftest$ac_exeext; then
9091 lt_aix_libpath_sed='
9092 /Import File Strings/,/^$/ {
9098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9099 # Check for a 64-bit object if we didn't find anything.
9100 if test -z "$aix_libpath"; then
9101 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111 conftest$ac_exeext conftest.$ac_ext
9112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9114 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9115 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9117 if test "$host_cpu" = ia64; then
9118 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9119 allow_undefined_flag="-z nodefs"
9120 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"
9122 # Determine the default libpath from the value encoded in an empty executable.
9123 cat >conftest.$ac_ext <<_ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9138 rm -f conftest.$ac_objext conftest$ac_exeext
9139 if { (ac_try="$ac_link"
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_link") 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } && {
9152 test -z "$ac_c_werror_flag" ||
9153 test ! -s conftest.err
9154 } && test -s conftest$ac_exeext &&
9155 $as_test_x conftest$ac_exeext; then
9157 lt_aix_libpath_sed='
9158 /Import File Strings/,/^$/ {
9164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9165 # Check for a 64-bit object if we didn't find anything.
9166 if test -z "$aix_libpath"; then
9167 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9170 echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9177 conftest$ac_exeext conftest.$ac_ext
9178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9180 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9181 # Warning - without using the other run time loading flags,
9182 # -berok will link without error, but may produce a broken library.
9183 no_undefined_flag=' ${wl}-bernotok'
9184 allow_undefined_flag=' ${wl}-berok'
9185 # Exported symbols can be pulled into shared objects from archives
9186 whole_archive_flag_spec='$convenience'
9187 archive_cmds_need_lc=yes
9188 # This is similar to how AIX traditionally builds its shared libraries.
9189 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'
9195 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)'
9196 hardcode_libdir_flag_spec='-L$libdir'
9197 hardcode_minus_L=yes
9198 # see comment about different semantics on the GNU ld section
9203 export_dynamic_flag_spec=-rdynamic
9206 cygwin* | mingw* | pw32*)
9207 # When not using gcc, we currently assume that we are using
9208 # Microsoft Visual C++.
9209 # hardcode_libdir_flag_spec is actually meaningless, as there is
9210 # no search path for DLLs.
9211 hardcode_libdir_flag_spec=' '
9212 allow_undefined_flag=unsupported
9213 # Tell ltmain to make .lib files, not .a files.
9215 # Tell ltmain to make .dll files, not .so files.
9217 # FIXME: Setting linknames here is a bad hack.
9218 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9219 # The linker will automatically build a .lib file if we build a DLL.
9220 old_archive_From_new_cmds='true'
9221 # FIXME: Should let the user specify the lib program.
9222 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9223 fix_srcfile_path='`cygpath -w "$srcfile"`'
9224 enable_shared_with_static_runtimes=yes
9227 darwin* | rhapsody*)
9229 rhapsody* | darwin1.[012])
9230 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9233 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9234 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9236 case ${MACOSX_DEPLOYMENT_TARGET} in
9238 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9241 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9247 archive_cmds_need_lc=no
9249 hardcode_automatic=yes
9250 hardcode_shlibpath_var=unsupported
9251 whole_archive_flag_spec=''
9252 link_all_deplibs=yes
9253 if test "$GCC" = yes ; then
9254 output_verbose_link_cmd='echo'
9255 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9256 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9257 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}"
9258 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}"
9260 case $cc_basename in
9262 output_verbose_link_cmd='echo'
9263 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9264 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9265 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9266 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9267 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_shlibpath_var=no
9286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9287 # support. Future versions do this automatically, but an explicit c++rt0.o
9288 # does not break anything, and helps significantly (at the cost of a little
9291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9292 hardcode_libdir_flag_spec='-R$libdir'
9294 hardcode_shlibpath_var=no
9297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9301 hardcode_minus_L=yes
9302 hardcode_shlibpath_var=no
9305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9306 freebsd* | dragonfly*)
9307 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9308 hardcode_libdir_flag_spec='-R$libdir'
9310 hardcode_shlibpath_var=no
9314 if test "$GCC" = yes; then
9315 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9317 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'
9319 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9320 hardcode_libdir_separator=:
9323 # hardcode_minus_L: Not really in the search PATH,
9324 # but as the default location of the library.
9325 hardcode_minus_L=yes
9326 export_dynamic_flag_spec='${wl}-E'
9330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9331 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9333 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9335 if test "$with_gnu_ld" = no; then
9336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9337 hardcode_libdir_separator=:
9340 export_dynamic_flag_spec='${wl}-E'
9342 # hardcode_minus_L: Not really in the search PATH,
9343 # but as the default location of the library.
9344 hardcode_minus_L=yes
9349 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9352 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9358 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9374 if test "$with_gnu_ld" = no; then
9375 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9376 hardcode_libdir_separator=:
9380 hardcode_libdir_flag_spec_ld='+b $libdir'
9382 hardcode_shlibpath_var=no
9386 export_dynamic_flag_spec='${wl}-E'
9388 # hardcode_minus_L: Not really in the search PATH,
9389 # but as the default location of the library.
9390 hardcode_minus_L=yes
9396 irix5* | irix6* | nonstopux*)
9397 if test "$GCC" = yes; then
9398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9400 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9401 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9404 hardcode_libdir_separator=:
9405 link_all_deplibs=yes
9409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9410 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9412 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9414 hardcode_libdir_flag_spec='-R$libdir'
9416 hardcode_shlibpath_var=no
9420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9423 hardcode_libdir_separator=:
9424 hardcode_shlibpath_var=no
9428 if test -f /usr/libexec/ld.so; then
9430 hardcode_shlibpath_var=no
9431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9435 export_dynamic_flag_spec='${wl}-E'
9438 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9440 hardcode_libdir_flag_spec='-R$libdir'
9443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9454 hardcode_libdir_flag_spec='-L$libdir'
9455 hardcode_minus_L=yes
9456 allow_undefined_flag=unsupported
9457 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'
9458 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9462 if test "$GCC" = yes; then
9463 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9464 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9466 allow_undefined_flag=' -expect_unresolved \*'
9467 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9470 hardcode_libdir_separator=:
9473 osf4* | osf5*) # as osf3* with the addition of -msym flag
9474 if test "$GCC" = yes; then
9475 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9476 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479 allow_undefined_flag=' -expect_unresolved \*'
9480 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9481 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9482 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9484 # Both c and cxx compiler support -rpath directly
9485 hardcode_libdir_flag_spec='-rpath $libdir'
9487 hardcode_libdir_separator=:
9491 no_undefined_flag=' -z text'
9492 if test "$GCC" = yes; then
9494 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9496 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9499 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9500 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9501 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9503 hardcode_libdir_flag_spec='-R$libdir'
9504 hardcode_shlibpath_var=no
9506 solaris2.[0-5] | solaris2.[0-5].*) ;;
9508 # The compiler driver will combine and reorder linker options,
9509 # but understands `-z linker_flag'. GCC discards it without `$wl',
9510 # but is careful enough not to reorder.
9511 # Supported since Solaris 2.6 (maybe 2.5.1?)
9512 if test "$GCC" = yes; then
9513 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9515 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9519 link_all_deplibs=yes
9523 if test "x$host_vendor" = xsequent; then
9524 # Use $CC to link under sequent, because it throws in some extra .o
9525 # files that make .init and .fini sections work.
9526 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9528 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9530 hardcode_libdir_flag_spec='-L$libdir'
9532 hardcode_minus_L=yes
9533 hardcode_shlibpath_var=no
9537 case $host_vendor in
9539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9540 hardcode_direct=yes # is this really true???
9543 ## LD is ld it makes a PLAMLIB
9544 ## CC just makes a GrossModule.
9545 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9546 reload_cmds='$CC -r -o $output$reload_objs'
9550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9554 runpath_var='LD_RUN_PATH'
9555 hardcode_shlibpath_var=no
9559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560 hardcode_shlibpath_var=no
9561 export_dynamic_flag_spec='-Bexport'
9565 if test -d /usr/nec; then
9566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567 hardcode_shlibpath_var=no
9568 runpath_var=LD_RUN_PATH
9569 hardcode_runpath_var=yes
9574 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9575 no_undefined_flag='${wl}-z,text'
9576 archive_cmds_need_lc=no
9577 hardcode_shlibpath_var=no
9578 runpath_var='LD_RUN_PATH'
9580 if test "$GCC" = yes; then
9581 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9582 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9584 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589 sysv5* | sco3.2v5* | sco5v6*)
9590 # Note: We can NOT use -z defs as we might desire, because we do not
9591 # link with -lc, and that would cause any symbols used from libc to
9592 # always be unresolved, which means just about no library would
9593 # ever link correctly. If we're not using GNU ld we use -z text
9594 # though, which does catch some bad symbols but isn't as heavy-handed
9596 no_undefined_flag='${wl}-z,text'
9597 allow_undefined_flag='${wl}-z,nodefs'
9598 archive_cmds_need_lc=no
9599 hardcode_shlibpath_var=no
9600 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9601 hardcode_libdir_separator=':'
9602 link_all_deplibs=yes
9603 export_dynamic_flag_spec='${wl}-Bexport'
9604 runpath_var='LD_RUN_PATH'
9606 if test "$GCC" = yes; then
9607 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9610 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9611 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9617 hardcode_libdir_flag_spec='-L$libdir'
9618 hardcode_shlibpath_var=no
9627 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9628 echo "${ECHO_T}$ld_shlibs" >&6; }
9629 test "$ld_shlibs" = no && can_build_shared=no
9632 # Do we need to explicitly link libc?
9634 case "x$archive_cmds_need_lc" in
9636 # Assume -lc should be added
9637 archive_cmds_need_lc=yes
9639 if test "$enable_shared" = yes && test "$GCC" = yes; then
9640 case $archive_cmds in
9642 # FIXME: we may have to deal with multi-command sequences.
9645 # Test whether the compiler implicitly links with -lc since on some
9646 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9647 # to ld, don't add -lc before -lgcc.
9648 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9649 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9654 (eval $ac_compile) 2>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } 2>conftest.err; then
9660 libobjs=conftest.$ac_objext
9662 wl=$lt_prog_compiler_wl
9663 pic_flag=$lt_prog_compiler_pic
9669 lt_save_allow_undefined_flag=$allow_undefined_flag
9670 allow_undefined_flag=
9671 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9672 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }
9677 archive_cmds_need_lc=no
9679 archive_cmds_need_lc=yes
9681 allow_undefined_flag=$lt_save_allow_undefined_flag
9683 cat conftest.err 1>&5
9686 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9687 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9694 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9695 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9697 libname_spec='lib$name'
9705 shlibpath_overrides_runpath=unknown
9707 dynamic_linker="$host_os ld.so"
9708 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9710 if test "$GCC" = yes; then
9712 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9713 *) lt_awk_arg="/^libraries:/" ;;
9715 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9716 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9717 # if the path contains ";" then we assume it to be the separator
9718 # otherwise default to the standard path separator (i.e. ":") - it is
9719 # assumed that no part of a normal pathname contains ";" but that should
9720 # okay in the real world where ";" in dirpaths is itself problematic.
9721 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9723 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9725 # Ok, now we have the path, separated by spaces, we can step through it
9726 # and add multilib dir if necessary.
9727 lt_tmp_lt_search_path_spec=
9728 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9729 for lt_sys_path in $lt_search_path_spec; do
9730 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9731 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9733 test -d "$lt_sys_path" && \
9734 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9737 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9738 BEGIN {RS=" "; FS="/|\n";} {
9741 for (lt_i = NF; lt_i > 0; lt_i--) {
9742 if ($lt_i != "" && $lt_i != ".") {
9743 if ($lt_i == "..") {
9746 if (lt_count == 0) {
9747 lt_foo="/" $lt_i lt_foo;
9754 if (lt_foo != "") { lt_freq[lt_foo]++; }
9755 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9757 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9759 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9762 hardcode_into_libs=no
9764 # when you set need_version to no, make sure it does not cause -set_version
9765 # flags to be left without arguments
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9772 shlibpath_var=LIBPATH
9774 # AIX 3 has no versioning support, so we append a major version to the name.
9775 soname_spec='${libname}${release}${shared_ext}$major'
9782 hardcode_into_libs=yes
9783 if test "$host_cpu" = ia64; then
9784 # AIX 5 supports IA64
9785 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9786 shlibpath_var=LD_LIBRARY_PATH
9788 # With GCC up to 2.95.x, collect2 would create an import file
9789 # for dependence libraries. The import file would start with
9790 # the line `#! .'. This would cause the generated library to
9791 # depend on `.', always an invalid library. This was fixed in
9792 # development snapshots of GCC prior to 3.0.
9794 aix4 | aix4.[01] | aix4.[01].*)
9795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9797 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9804 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9805 # soname into executable. Probably we can add versioning support to
9806 # collect2, so additional links can be useful in future.
9807 if test "$aix_use_runtimelinking" = yes; then
9808 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9809 # instead of lib<name>.a to let people know that these are not
9810 # typical AIX shared libraries.
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813 # We preserve .a as extension for shared libraries through AIX4.2
9814 # and later when we are not doing run time linking.
9815 library_names_spec='${libname}${release}.a $libname.a'
9816 soname_spec='${libname}${release}${shared_ext}$major'
9818 shlibpath_var=LIBPATH
9823 library_names_spec='$libname.ixlibrary $libname.a'
9824 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9825 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9829 library_names_spec='${libname}${shared_ext}'
9830 dynamic_linker="$host_os ld.so"
9831 shlibpath_var=LIBRARY_PATH
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9843 # the default ld.so.conf also contains /usr/contrib/lib and
9844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9845 # libtool to hard-code these into programs
9848 cygwin* | mingw* | pw32*)
9849 version_type=windows
9854 case $GCC,$host_os in
9855 yes,cygwin* | yes,mingw* | yes,pw32*)
9856 library_names_spec='$libname.dll.a'
9857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9858 postinstall_cmds='base_file=`basename \${file}`~
9859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9860 dldir=$destdir/`dirname \$dlpath`~
9861 test -d \$dldir || mkdir -p \$dldir~
9862 $install_prog $dir/$dlname \$dldir/$dlname~
9863 chmod a+x \$dldir/$dlname'
9864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9865 dlpath=$dir/\$dldll~
9867 shlibpath_overrides_runpath=yes
9871 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9872 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9873 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9876 # MinGW DLLs use traditional 'lib' prefix
9877 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9878 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9879 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9880 # It is most probably a Windows format PATH printed by
9881 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9882 # path with ; separators, and with drive letters. We can handle the
9883 # drive letters (cygwin fileutils understands them), so leave them,
9884 # especially as we might pass files found there to a mingw objdump,
9885 # which wouldn't understand a cygwinified path. Ahh.
9886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9892 # pw32 DLLs use 'pw' prefix rather than 'lib'
9893 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9902 dynamic_linker='Win32 ld.exe'
9903 # FIXME: first we should search . and the directory the executable is in
9907 darwin* | rhapsody*)
9908 dynamic_linker="$host_os dyld"
9912 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9913 soname_spec='${libname}${release}${major}$shared_ext'
9914 shlibpath_overrides_runpath=yes
9915 shlibpath_var=DYLD_LIBRARY_PATH
9916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9935 freebsd* | dragonfly*)
9936 # DragonFly does not have aout. When/if they implement a new
9937 # versioning mechanism, adjust this.
9938 if test -x /usr/bin/objformat; then
9939 objformat=`/usr/bin/objformat`
9942 freebsd[123]*) objformat=aout ;;
9946 version_type=freebsd-$objformat
9947 case $version_type in
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9958 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=yes
9963 freebsd3.[01]* | freebsdelf3.[01]*)
9964 shlibpath_overrides_runpath=yes
9965 hardcode_into_libs=yes
9967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9969 shlibpath_overrides_runpath=no
9970 hardcode_into_libs=yes
9972 *) # from 4.6 on, and DragonFly
9973 shlibpath_overrides_runpath=yes
9974 hardcode_into_libs=yes
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 hardcode_into_libs=yes
9989 hpux9* | hpux10* | hpux11*)
9990 # Give a soname corresponding to the major version so that dld.sl refuses to
9991 # link against other versions.
9998 hardcode_into_libs=yes
9999 dynamic_linker="$host_os dld.so"
10000 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 soname_spec='${libname}${release}${shared_ext}$major'
10004 if test "X$HPUX_IA64_MODE" = X32; then
10005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10013 hardcode_into_libs=yes
10014 dynamic_linker="$host_os dld.sl"
10015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10024 dynamic_linker="$host_os dld.sl"
10025 shlibpath_var=SHLIB_PATH
10026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10031 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10032 postinstall_cmds='chmod 555 $lib'
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=no
10044 hardcode_into_libs=yes
10047 irix5* | irix6* | nonstopux*)
10049 nonstopux*) version_type=nonstopux ;;
10051 if test "$lt_cv_prog_gnu_ld" = yes; then
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10062 irix5* | nonstopux*)
10063 libsuff= shlibsuff=
10066 case $LD in # libtool.m4 will add one of these switches to LD
10067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10068 libsuff= shlibsuff= libmagic=32-bit;;
10069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10070 libsuff=32 shlibsuff=N32 libmagic=N32;;
10071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10073 *) libsuff= shlibsuff= libmagic=never-match;;
10077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10078 shlibpath_overrides_runpath=no
10079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10081 hardcode_into_libs=yes
10084 # No shared lib support for Linux oldld, aout, or coff.
10085 linux*oldld* | linux*aout* | linux*coff*)
10089 # This must be Linux ELF.
10090 linux* | k*bsd*-gnu)
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10097 shlibpath_var=LD_LIBRARY_PATH
10098 shlibpath_overrides_runpath=no
10099 # This implies no fast_install, which is unacceptable.
10100 # Some rework will be needed to allow for fast_install
10101 # before this can be enabled.
10102 hardcode_into_libs=yes
10104 # Append ld.so.conf contents to the search path
10105 if test -f /etc/ld.so.conf; then
10106 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;/^$/d' | tr '\n' ' '`
10107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10110 # We used to test for /lib/ld.so.1 and disable shared libraries on
10111 # powerpc, because MkLinux only supported shared libraries with the
10112 # GNU dynamic linker. Since this was broken with cross compilers,
10113 # most powerpc-linux boxes support dynamic linking these days and
10114 # people can always --disable-shared, the test was removed, and we
10115 # assume the GNU/Linux dynamic linker is in use.
10116 dynamic_linker='GNU/Linux ld.so'
10123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10126 dynamic_linker='NetBSD (a.out) ld.so'
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 dynamic_linker='NetBSD ld.elf_so'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=yes
10134 hardcode_into_libs=yes
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 shlibpath_var=LD_LIBRARY_PATH
10141 shlibpath_overrides_runpath=yes
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 shlibpath_overrides_runpath=yes
10156 sys_lib_dlsearch_path_spec="/usr/lib"
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10164 openbsd2.[89] | openbsd2.[89].*)
10165 shlibpath_overrides_runpath=no
10168 shlibpath_overrides_runpath=yes
10172 shlibpath_overrides_runpath=yes
10177 libname_spec='$name'
10180 library_names_spec='$libname${shared_ext} $libname.a'
10181 dynamic_linker='OS/2 ld.exe'
10182 shlibpath_var=LIBPATH
10185 osf3* | osf4* | osf5*)
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 shlibpath_var=LD_LIBRARY_PATH
10192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10193 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205 soname_spec='${libname}${release}${shared_ext}$major'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 shlibpath_overrides_runpath=yes
10208 hardcode_into_libs=yes
10209 # ldd complains unless libraries are executable
10210 postinstall_cmds='chmod +x $lib'
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 shlibpath_overrides_runpath=yes
10219 if test "$with_gnu_ld" = yes; then
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 case $host_vendor in
10232 shlibpath_overrides_runpath=no
10234 export_dynamic_flag_spec='${wl}-Blargedynsym'
10235 runpath_var=LD_RUN_PATH
10243 shlibpath_overrides_runpath=no
10244 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10250 if test -d /usr/nec ;then
10252 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10253 soname_spec='$libname${shared_ext}.$major'
10254 shlibpath_var=LD_LIBRARY_PATH
10258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10259 version_type=freebsd-elf
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 shlibpath_var=LD_LIBRARY_PATH
10265 hardcode_into_libs=yes
10266 if test "$with_gnu_ld" = yes; then
10267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10268 shlibpath_overrides_runpath=no
10270 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10271 shlibpath_overrides_runpath=yes
10274 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10278 sys_lib_dlsearch_path_spec='/usr/lib'
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 shlibpath_var=LD_LIBRARY_PATH
10292 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10293 echo "${ECHO_T}$dynamic_linker" >&6; }
10294 test "$dynamic_linker" = no && can_build_shared=no
10296 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10302 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10303 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10309 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10311 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10312 if test "$GCC" = yes; then
10313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10316 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10317 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10319 if test -n "$hardcode_libdir_flag_spec" || \
10320 test -n "$runpath_var" || \
10321 test "X$hardcode_automatic" = "Xyes" ; then
10323 # We can hardcode non-existent directories.
10324 if test "$hardcode_direct" != no &&
10325 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10326 # have to relink, otherwise we might link with an installed library
10327 # when we should be linking with a yet-to-be-installed one
10328 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10329 test "$hardcode_minus_L" != no; then
10330 # Linking always hardcodes the temporary library directory.
10331 hardcode_action=relink
10333 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10334 hardcode_action=immediate
10337 # We cannot hardcode anything, or else we can only hardcode existing
10339 hardcode_action=unsupported
10341 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10342 echo "${ECHO_T}$hardcode_action" >&6; }
10344 if test "$hardcode_action" = relink; then
10345 # Fast installation is not supported
10346 enable_fast_install=no
10347 elif test "$shlibpath_overrides_runpath" = yes ||
10348 test "$enable_shared" = no; then
10349 # Fast installation is not necessary
10350 enable_fast_install=needless
10355 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10356 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10357 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10358 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10359 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10360 { echo "$as_me:$LINENO: result: yes" >&5
10361 echo "${ECHO_T}yes" >&6; }
10363 # FIXME - insert some real tests, host_os isn't really good enough
10366 if test -n "$STRIP" ; then
10367 striplib="$STRIP -x"
10368 old_striplib="$STRIP -S"
10369 { echo "$as_me:$LINENO: result: yes" >&5
10370 echo "${ECHO_T}yes" >&6; }
10372 { echo "$as_me:$LINENO: result: no" >&5
10373 echo "${ECHO_T}no" >&6; }
10377 { echo "$as_me:$LINENO: result: no" >&5
10378 echo "${ECHO_T}no" >&6; }
10383 if test "x$enable_dlopen" != xyes; then
10384 enable_dlopen=unknown
10385 enable_dlopen_self=unknown
10386 enable_dlopen_self_static=unknown
10393 lt_cv_dlopen="load_add_on"
10395 lt_cv_dlopen_self=yes
10399 lt_cv_dlopen="LoadLibrary"
10404 lt_cv_dlopen="dlopen"
10409 # if libdl is installed we need to link against it
10410 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10411 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10412 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 ac_check_lib_save_LIBS=$LIBS
10417 cat >conftest.$ac_ext <<_ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10439 rm -f conftest.$ac_objext conftest$ac_exeext
10440 if { (ac_try="$ac_link"
10441 case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_link") 2>conftest.er1
10448 grep -v '^ *+' conftest.er1 >conftest.err
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && {
10453 test -z "$ac_c_werror_flag" ||
10454 test ! -s conftest.err
10455 } && test -s conftest$ac_exeext &&
10456 $as_test_x conftest$ac_exeext; then
10457 ac_cv_lib_dl_dlopen=yes
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 ac_cv_lib_dl_dlopen=no
10465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10466 conftest$ac_exeext conftest.$ac_ext
10467 LIBS=$ac_check_lib_save_LIBS
10469 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10470 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10471 if test $ac_cv_lib_dl_dlopen = yes; then
10472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10475 lt_cv_dlopen="dyld"
10477 lt_cv_dlopen_self=yes
10484 { echo "$as_me:$LINENO: checking for shl_load" >&5
10485 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10486 if test "${ac_cv_func_shl_load+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 cat >conftest.$ac_ext <<_ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10497 #define shl_load innocuous_shl_load
10499 /* System header to define __stub macros and hopefully few prototypes,
10500 which can conflict with char shl_load (); below.
10501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10502 <limits.h> exists even on freestanding compilers. */
10505 # include <limits.h>
10507 # include <assert.h>
10512 /* Override any GCC internal prototype to avoid an error.
10513 Use char because int might match the return type of a GCC
10514 builtin and then its argument prototype would still apply. */
10519 /* The GNU C library defines this for functions which it implements
10520 to always fail with ENOSYS. Some functions are actually named
10521 something starting with __ and the normal name is an alias. */
10522 #if defined __stub_shl_load || defined __stub___shl_load
10529 return shl_load ();
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && {
10548 test -z "$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 } && test -s conftest$ac_exeext &&
10551 $as_test_x conftest$ac_exeext; then
10552 ac_cv_func_shl_load=yes
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ac_cv_func_shl_load=no
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10563 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10564 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10565 if test $ac_cv_func_shl_load = yes; then
10566 lt_cv_dlopen="shl_load"
10568 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10569 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10570 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 ac_check_lib_save_LIBS=$LIBS
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10592 return shl_load ();
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
10606 grep -v '^ *+' conftest.er1 >conftest.err
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext &&
10614 $as_test_x conftest$ac_exeext; then
10615 ac_cv_lib_dld_shl_load=yes
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 ac_cv_lib_dld_shl_load=no
10623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10627 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10628 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10629 if test $ac_cv_lib_dld_shl_load = yes; then
10630 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10632 { echo "$as_me:$LINENO: checking for dlopen" >&5
10633 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10634 if test "${ac_cv_func_dlopen+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10643 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10645 #define dlopen innocuous_dlopen
10647 /* System header to define __stub macros and hopefully few prototypes,
10648 which can conflict with char dlopen (); below.
10649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10650 <limits.h> exists even on freestanding compilers. */
10653 # include <limits.h>
10655 # include <assert.h>
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10667 /* The GNU C library defines this for functions which it implements
10668 to always fail with ENOSYS. Some functions are actually named
10669 something starting with __ and the normal name is an alias. */
10670 #if defined __stub_dlopen || defined __stub___dlopen
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (ac_try="$ac_link"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_link") 2>conftest.er1
10691 grep -v '^ *+' conftest.er1 >conftest.err
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest$ac_exeext &&
10699 $as_test_x conftest$ac_exeext; then
10700 ac_cv_func_dlopen=yes
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 ac_cv_func_dlopen=no
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709 conftest$ac_exeext conftest.$ac_ext
10711 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10712 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10713 if test $ac_cv_func_dlopen = yes; then
10714 lt_cv_dlopen="dlopen"
10716 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 ac_check_lib_save_LIBS=$LIBS
10723 cat >conftest.$ac_ext <<_ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10730 /* Override any GCC internal prototype to avoid an error.
10731 Use char because int might match the return type of a GCC
10732 builtin and then its argument prototype would still apply. */
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (ac_try="$ac_link"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_link") 2>conftest.er1
10754 grep -v '^ *+' conftest.er1 >conftest.err
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest$ac_exeext &&
10762 $as_test_x conftest$ac_exeext; then
10763 ac_cv_lib_dl_dlopen=yes
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 ac_cv_lib_dl_dlopen=no
10771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10772 conftest$ac_exeext conftest.$ac_ext
10773 LIBS=$ac_check_lib_save_LIBS
10775 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10777 if test $ac_cv_lib_dl_dlopen = yes; then
10778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10780 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10781 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10782 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 ac_check_lib_save_LIBS=$LIBS
10786 LIBS="-lsvld $LIBS"
10787 cat >conftest.$ac_ext <<_ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
10818 grep -v '^ *+' conftest.er1 >conftest.err
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && {
10823 test -z "$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 } && test -s conftest$ac_exeext &&
10826 $as_test_x conftest$ac_exeext; then
10827 ac_cv_lib_svld_dlopen=yes
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 ac_cv_lib_svld_dlopen=no
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10836 conftest$ac_exeext conftest.$ac_ext
10837 LIBS=$ac_check_lib_save_LIBS
10839 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10840 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10841 if test $ac_cv_lib_svld_dlopen = yes; then
10842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10844 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10845 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10846 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 ac_check_lib_save_LIBS=$LIBS
10851 cat >conftest.$ac_ext <<_ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10858 /* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
10868 return dld_link ();
10873 rm -f conftest.$ac_objext conftest$ac_exeext
10874 if { (ac_try="$ac_link"
10875 case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_link") 2>conftest.er1
10882 grep -v '^ *+' conftest.er1 >conftest.err
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest$ac_exeext &&
10890 $as_test_x conftest$ac_exeext; then
10891 ac_cv_lib_dld_dld_link=yes
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10896 ac_cv_lib_dld_dld_link=no
10899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10903 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10904 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10905 if test $ac_cv_lib_dld_dld_link = yes; then
10906 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10927 if test "x$lt_cv_dlopen" != xno; then
10933 case $lt_cv_dlopen in
10935 save_CPPFLAGS="$CPPFLAGS"
10936 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10938 save_LDFLAGS="$LDFLAGS"
10939 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10942 LIBS="$lt_cv_dlopen_libs $LIBS"
10944 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10945 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10946 if test "${lt_cv_dlopen_self+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 if test "$cross_compiling" = yes; then :
10950 lt_cv_dlopen_self=cross
10952 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10953 lt_status=$lt_dlunknown
10954 cat > conftest.$ac_ext <<EOF
10955 #line 10955 "configure"
10956 #include "confdefs.h"
10965 # define LT_DLGLOBAL RTLD_GLOBAL
10968 # define LT_DLGLOBAL DL_GLOBAL
10970 # define LT_DLGLOBAL 0
10974 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10975 find out it does not work in some platform. */
10976 #ifndef LT_DLLAZY_OR_NOW
10978 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10981 # define LT_DLLAZY_OR_NOW DL_LAZY
10984 # define LT_DLLAZY_OR_NOW RTLD_NOW
10987 # define LT_DLLAZY_OR_NOW DL_NOW
10989 # define LT_DLLAZY_OR_NOW 0
10997 extern "C" void exit (int);
11000 void fnord() { int i=42;}
11003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11004 int status = $lt_dlunknown;
11008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11009 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11010 /* dlclose (self); */
11018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11019 (eval $ac_link) 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11023 (./conftest; exit; ) >&5 2>/dev/null
11025 case x$lt_status in
11026 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11027 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11028 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11031 # compilation failed
11032 lt_cv_dlopen_self=no
11039 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11040 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11042 if test "x$lt_cv_dlopen_self" = xyes; then
11043 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11044 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11045 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11046 if test "${lt_cv_dlopen_self_static+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 if test "$cross_compiling" = yes; then :
11050 lt_cv_dlopen_self_static=cross
11052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11053 lt_status=$lt_dlunknown
11054 cat > conftest.$ac_ext <<EOF
11055 #line 11055 "configure"
11056 #include "confdefs.h"
11065 # define LT_DLGLOBAL RTLD_GLOBAL
11068 # define LT_DLGLOBAL DL_GLOBAL
11070 # define LT_DLGLOBAL 0
11074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11075 find out it does not work in some platform. */
11076 #ifndef LT_DLLAZY_OR_NOW
11078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11081 # define LT_DLLAZY_OR_NOW DL_LAZY
11084 # define LT_DLLAZY_OR_NOW RTLD_NOW
11087 # define LT_DLLAZY_OR_NOW DL_NOW
11089 # define LT_DLLAZY_OR_NOW 0
11097 extern "C" void exit (int);
11100 void fnord() { int i=42;}
11103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11104 int status = $lt_dlunknown;
11108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11110 /* dlclose (self); */
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119 (eval $ac_link) 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11123 (./conftest; exit; ) >&5 2>/dev/null
11125 case x$lt_status in
11126 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11127 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11128 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11131 # compilation failed
11132 lt_cv_dlopen_self_static=no
11139 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11140 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11143 CPPFLAGS="$save_CPPFLAGS"
11144 LDFLAGS="$save_LDFLAGS"
11149 case $lt_cv_dlopen_self in
11150 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11151 *) enable_dlopen_self=unknown ;;
11154 case $lt_cv_dlopen_self_static in
11155 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11156 *) enable_dlopen_self_static=unknown ;;
11161 # Report which library types will actually be built
11162 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11163 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11164 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11165 echo "${ECHO_T}$can_build_shared" >&6; }
11167 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11168 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11169 test "$can_build_shared" = "no" && enable_shared=no
11171 # On AIX, shared libraries and static libraries use the same namespace, and
11172 # are all built from PIC.
11175 test "$enable_shared" = yes && enable_static=no
11176 if test -n "$RANLIB"; then
11177 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11178 postinstall_cmds='$RANLIB $lib'
11183 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11184 test "$enable_shared" = yes && enable_static=no
11188 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11189 echo "${ECHO_T}$enable_shared" >&6; }
11191 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11192 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11193 # Make sure either enable_shared or enable_static is yes.
11194 test "$enable_shared" = yes || enable_static=yes
11195 { echo "$as_me:$LINENO: result: $enable_static" >&5
11196 echo "${ECHO_T}$enable_static" >&6; }
11198 # The else clause should only fire when bootstrapping the
11199 # libtool distribution, otherwise you forgot to ship ltmain.sh
11200 # with your package, and you will get complaints that there are
11201 # no rules to generate ltmain.sh.
11202 if test -f "$ltmain"; then
11203 # See if we are running on zsh, and set the options which allow our commands through
11204 # without removal of \ escapes.
11205 if test -n "${ZSH_VERSION+set}" ; then
11206 setopt NO_GLOB_SUBST
11208 # Now quote all the things that may contain metacharacters while being
11209 # careful not to overquote the AC_SUBSTed values. We take copies of the
11210 # variables and quote the copies for generation of the libtool script.
11211 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11213 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11214 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11215 deplibs_check_method reload_flag reload_cmds need_locks \
11216 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11217 lt_cv_sys_global_symbol_to_c_name_address \
11218 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11219 old_postinstall_cmds old_postuninstall_cmds \
11223 lt_prog_compiler_wl \
11224 lt_prog_compiler_pic \
11225 lt_prog_compiler_static \
11226 lt_prog_compiler_no_builtin_flag \
11227 export_dynamic_flag_spec \
11228 thread_safe_flag_spec \
11229 whole_archive_flag_spec \
11230 enable_shared_with_static_runtimes \
11232 old_archive_from_new_cmds \
11237 compiler_lib_search_path \
11238 compiler_lib_search_dirs \
11240 archive_expsym_cmds \
11242 postuninstall_cmds \
11243 old_archive_from_expsyms_cmds \
11244 allow_undefined_flag \
11245 no_undefined_flag \
11246 export_symbols_cmds \
11247 hardcode_libdir_flag_spec \
11248 hardcode_libdir_flag_spec_ld \
11249 hardcode_libdir_separator \
11250 hardcode_automatic \
11252 module_expsym_cmds \
11253 lt_cv_prog_compiler_c_o \
11256 include_expsyms; do
11259 old_archive_cmds | \
11260 old_archive_from_new_cmds | \
11262 archive_expsym_cmds | \
11264 module_expsym_cmds | \
11265 old_archive_from_expsyms_cmds | \
11266 export_symbols_cmds | \
11267 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11268 postinstall_cmds | postuninstall_cmds | \
11269 old_postinstall_cmds | old_postuninstall_cmds | \
11270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11271 # Double-quote double-evaled strings.
11272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11281 *'\$0 --fallback-echo"')
11282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11286 cfgfile="${ofile}T"
11287 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11289 { echo "$as_me:$LINENO: creating $ofile" >&5
11290 echo "$as_me: creating $ofile" >&6;}
11292 cat <<__EOF__ >> "$cfgfile"
11295 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11296 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11297 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11299 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11300 # Free Software Foundation, Inc.
11302 # This file is part of GNU Libtool:
11303 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11305 # This program is free software; you can redistribute it and/or modify
11306 # it under the terms of the GNU General Public License as published by
11307 # the Free Software Foundation; either version 2 of the License, or
11308 # (at your option) any later version.
11310 # This program is distributed in the hope that it will be useful, but
11311 # WITHOUT ANY WARRANTY; without even the implied warranty of
11312 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11313 # General Public License for more details.
11315 # You should have received a copy of the GNU General Public License
11316 # along with this program; if not, write to the Free Software
11317 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11319 # As a special exception to the GNU General Public License, if you
11320 # distribute this file as part of a program that contains a
11321 # configuration script generated by Autoconf, you may include it under
11322 # the same distribution terms that you use for the rest of that program.
11324 # A sed program that does not truncate output.
11327 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11328 Xsed="$SED -e 1s/^X//"
11330 # The HP-UX ksh and POSIX shell print the target directory to stdout
11331 # if CDPATH is set.
11332 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11334 # The names of the tagged configurations supported by this script.
11337 # ### BEGIN LIBTOOL CONFIG
11339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11341 # Shell to use when invoking shell scripts.
11344 # Whether or not to build shared libraries.
11345 build_libtool_libs=$enable_shared
11347 # Whether or not to build static libraries.
11348 build_old_libs=$enable_static
11350 # Whether or not to add -lc for building shared libraries.
11351 build_libtool_need_lc=$archive_cmds_need_lc
11353 # Whether or not to disallow shared libs when runtime libs are static
11354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11356 # Whether or not to optimize for fast installation.
11357 fast_install=$enable_fast_install
11360 host_alias=$host_alias
11364 # The build system.
11365 build_alias=$build_alias
11369 # An echo program that does not interpret backslashes.
11374 AR_FLAGS=$lt_AR_FLAGS
11379 # LTCC compiler flags.
11380 LTCFLAGS=$lt_LTCFLAGS
11382 # A language-specific compiler.
11385 # Is the compiler the GNU C compiler?
11391 # The linker used to build libraries.
11394 # Whether we need hard or soft links.
11397 # A BSD-compatible nm program.
11400 # A symbol stripping program
11403 # Used to examine libraries when file_magic_cmd begins "file"
11404 MAGIC_CMD=$MAGIC_CMD
11406 # Used on cygwin: DLL creation program.
11409 # Used on cygwin: object dumper.
11412 # Used on cygwin: assembler.
11415 # The name of the directory that contains temporary libtool files.
11418 # How to create reloadable object files.
11419 reload_flag=$lt_reload_flag
11420 reload_cmds=$lt_reload_cmds
11422 # How to pass a linker flag through the compiler.
11423 wl=$lt_lt_prog_compiler_wl
11425 # Object file suffix (normally "o").
11426 objext="$ac_objext"
11428 # Old archive suffix (normally "a").
11431 # Shared library suffix (normally ".so").
11432 shrext_cmds='$shrext_cmds'
11434 # Executable file suffix (normally "").
11437 # Additional compiler flags for building library objects.
11438 pic_flag=$lt_lt_prog_compiler_pic
11441 # What is the maximum length of a command?
11442 max_cmd_len=$lt_cv_sys_max_cmd_len
11444 # Does compiler simultaneously support -c and -o options?
11445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11447 # Must we lock files when doing compilation?
11448 need_locks=$lt_need_locks
11450 # Do we need the lib prefix for modules?
11451 need_lib_prefix=$need_lib_prefix
11453 # Do we need a version for libraries?
11454 need_version=$need_version
11456 # Whether dlopen is supported.
11457 dlopen_support=$enable_dlopen
11459 # Whether dlopen of programs is supported.
11460 dlopen_self=$enable_dlopen_self
11462 # Whether dlopen of statically linked programs is supported.
11463 dlopen_self_static=$enable_dlopen_self_static
11465 # Compiler flag to prevent dynamic linking.
11466 link_static_flag=$lt_lt_prog_compiler_static
11468 # Compiler flag to turn off builtin functions.
11469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11471 # Compiler flag to allow reflexive dlopens.
11472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11474 # Compiler flag to generate shared objects directly from archives.
11475 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11477 # Compiler flag to generate thread-safe objects.
11478 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11480 # Library versioning type.
11481 version_type=$version_type
11483 # Format of library name prefix.
11484 libname_spec=$lt_libname_spec
11486 # List of archive names. First name is the real one, the rest are links.
11487 # The last name is the one that the linker finds with -lNAME.
11488 library_names_spec=$lt_library_names_spec
11490 # The coded name of the library, if different from the real name.
11491 soname_spec=$lt_soname_spec
11493 # Commands used to build and install an old-style archive.
11495 old_archive_cmds=$lt_old_archive_cmds
11496 old_postinstall_cmds=$lt_old_postinstall_cmds
11497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11499 # Create an old-style archive from a shared archive.
11500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11502 # Create a temporary old-style archive to link instead of a shared archive.
11503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11505 # Commands used to build and install a shared archive.
11506 archive_cmds=$lt_archive_cmds
11507 archive_expsym_cmds=$lt_archive_expsym_cmds
11508 postinstall_cmds=$lt_postinstall_cmds
11509 postuninstall_cmds=$lt_postuninstall_cmds
11511 # Commands used to build a loadable module (assumed same as above if empty)
11512 module_cmds=$lt_module_cmds
11513 module_expsym_cmds=$lt_module_expsym_cmds
11515 # Commands to strip libraries.
11516 old_striplib=$lt_old_striplib
11517 striplib=$lt_striplib
11519 # Dependencies to place before the objects being linked to create a
11521 predep_objects=$lt_predep_objects
11523 # Dependencies to place after the objects being linked to create a
11525 postdep_objects=$lt_postdep_objects
11527 # Dependencies to place before the objects being linked to create a
11529 predeps=$lt_predeps
11531 # Dependencies to place after the objects being linked to create a
11533 postdeps=$lt_postdeps
11535 # The directories searched by this compiler when creating a shared
11537 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11539 # The library search path used internally by the compiler when linking
11540 # a shared library.
11541 compiler_lib_search_path=$lt_compiler_lib_search_path
11543 # Method to check whether dependent libraries are shared objects.
11544 deplibs_check_method=$lt_deplibs_check_method
11546 # Command to use when deplibs_check_method == file_magic.
11547 file_magic_cmd=$lt_file_magic_cmd
11549 # Flag that allows shared libraries with undefined symbols to be built.
11550 allow_undefined_flag=$lt_allow_undefined_flag
11552 # Flag that forces no undefined symbols.
11553 no_undefined_flag=$lt_no_undefined_flag
11555 # Commands used to finish a libtool library installation in a directory.
11556 finish_cmds=$lt_finish_cmds
11558 # Same as above, but a single script fragment to be evaled but not shown.
11559 finish_eval=$lt_finish_eval
11561 # Take the output of nm and produce a listing of raw symbols and C names.
11562 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11564 # Transform the output of nm in a proper C declaration
11565 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11567 # Transform the output of nm in a C name address pair
11568 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11570 # This is the shared library runtime path variable.
11571 runpath_var=$runpath_var
11573 # This is the shared library path variable.
11574 shlibpath_var=$shlibpath_var
11576 # Is shlibpath searched before the hard-coded library search path?
11577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11579 # How to hardcode a shared library path into an executable.
11580 hardcode_action=$hardcode_action
11582 # Whether we should hardcode library paths into libraries.
11583 hardcode_into_libs=$hardcode_into_libs
11585 # Flag to hardcode \$libdir into a binary during linking.
11586 # This must work even if \$libdir does not exist.
11587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11589 # If ld is used when linking, flag to hardcode \$libdir into
11590 # a binary during linking. This must work even if \$libdir does
11592 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11594 # Whether we need a single -rpath flag with a separated argument.
11595 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11597 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11598 # resulting binary.
11599 hardcode_direct=$hardcode_direct
11601 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11602 # resulting binary.
11603 hardcode_minus_L=$hardcode_minus_L
11605 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11606 # the resulting binary.
11607 hardcode_shlibpath_var=$hardcode_shlibpath_var
11609 # Set to yes if building a shared library automatically hardcodes DIR into the library
11610 # and all subsequent libraries and executables linked against it.
11611 hardcode_automatic=$hardcode_automatic
11613 # Variables whose values should be saved in libtool wrapper scripts and
11614 # restored at relink time.
11615 variables_saved_for_relink="$variables_saved_for_relink"
11617 # Whether libtool must link a program against all its dependency libraries.
11618 link_all_deplibs=$link_all_deplibs
11620 # Compile-time system search path for libraries
11621 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11623 # Run-time system search path for libraries
11624 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11626 # Fix the shell variable \$srcfile for the compiler.
11627 fix_srcfile_path=$lt_fix_srcfile_path
11629 # Set to yes if exported symbols are required.
11630 always_export_symbols=$always_export_symbols
11632 # The commands to list exported symbols.
11633 export_symbols_cmds=$lt_export_symbols_cmds
11635 # The commands to extract the exported symbol list from a shared archive.
11636 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11638 # Symbols that should not be listed in the preloaded symbols.
11639 exclude_expsyms=$lt_exclude_expsyms
11641 # Symbols that must always be exported.
11642 include_expsyms=$lt_include_expsyms
11644 # ### END LIBTOOL CONFIG
11651 cat <<\EOF >> "$cfgfile"
11653 # AIX sometimes has problems with the GCC collect2 program. For some
11654 # reason, if we set the COLLECT_NAMES environment variable, the problems
11655 # vanish in a puff of smoke.
11656 if test "X${COLLECT_NAMES+set}" != Xset; then
11658 export COLLECT_NAMES
11664 # We use sed instead of cat because bash on DJGPP gets confused if
11665 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11666 # text mode, it properly converts lines to CR/LF. This bash problem
11667 # is reportedly fixed, but why not run on old versions too?
11668 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11670 mv -f "$cfgfile" "$ofile" || \
11671 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11675 # If there is no Makefile yet, we rely on a make rule to execute
11676 # `config.status --recheck' to rerun these tests and create the
11677 # libtool script then.
11678 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11679 if test -f "$ltmain_in"; then
11680 test -f Makefile && make "$ltmain"
11686 ac_cpp='$CPP $CPPFLAGS'
11687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11695 # This can be used to rebuild libtool when needed
11696 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11698 # Always use our own libtool.
11699 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11701 # Prevent multiple expansion
11712 if test "$enable_shared" = "no"; then
11715 eval _shrext="$shrext_cmds"
11717 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11718 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11720 # Check whether --with-noexec was given.
11721 if test "${with_noexec+set}" = set; then
11722 withval=$with_noexec; case $with_noexec in
11723 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
11729 with_noexec="$libexecdir/sudo_noexec$_shrext"
11732 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11733 echo "${ECHO_T}$with_noexec" >&6; }
11734 NOEXECFILE="sudo_noexec$_shrext"
11735 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11737 if test "$with_devel" = "yes" -a -n "$GCC"; then
11738 CFLAGS="${CFLAGS} -Wall"
11741 # Extract the first word of "uname", so it can be a program name with args.
11742 set dummy uname; ac_word=$2
11743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11745 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 if test -n "$UNAMEPROG"; then
11749 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758 ac_cv_prog_UNAMEPROG="uname"
11759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11769 if test -n "$UNAMEPROG"; then
11770 { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11771 echo "${ECHO_T}$UNAMEPROG" >&6; }
11773 { echo "$as_me:$LINENO: result: no" >&5
11774 echo "${ECHO_T}no" >&6; }
11778 # Extract the first word of "tr", so it can be a program name with args.
11779 set dummy tr; ac_word=$2
11780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11782 if test "${ac_cv_prog_TRPROG+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 if test -n "$TRPROG"; then
11786 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795 ac_cv_prog_TRPROG="tr"
11796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 TRPROG=$ac_cv_prog_TRPROG
11806 if test -n "$TRPROG"; then
11807 { echo "$as_me:$LINENO: result: $TRPROG" >&5
11808 echo "${ECHO_T}$TRPROG" >&6; }
11810 { echo "$as_me:$LINENO: result: no" >&5
11811 echo "${ECHO_T}no" >&6; }
11815 # Extract the first word of "nroff", so it can be a program name with args.
11816 set dummy nroff; ac_word=$2
11817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11819 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 if test -n "$NROFFPROG"; then
11823 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11832 ac_cv_prog_NROFFPROG="nroff"
11833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 NROFFPROG=$ac_cv_prog_NROFFPROG
11843 if test -n "$NROFFPROG"; then
11844 { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11845 echo "${ECHO_T}$NROFFPROG" >&6; }
11847 { echo "$as_me:$LINENO: result: no" >&5
11848 echo "${ECHO_T}no" >&6; }
11852 if test -z "$NROFFPROG"; then
11854 mansrcdir='$(srcdir)'
11857 if test -n "$sudo_cv_prev_host"; then
11858 if test "$sudo_cv_prev_host" != "$host"; then
11859 { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11860 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11861 { (exit 1); exit 1; }; }
11863 { echo "$as_me:$LINENO: checking previous host type" >&5
11864 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11865 if test "${sudo_cv_prev_host+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 sudo_cv_prev_host="$host"
11871 { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11872 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11875 # this will produce no output since there is no cached value
11876 if test "${sudo_cv_prev_host+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 sudo_cv_prev_host="$host"
11884 if test -n "$host_os"; then
11885 OS=`echo $host_os | sed 's/[0-9].*//'`
11886 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11887 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11896 # getcwd(3) opens a pipe to getpwd(1)!?!
11899 # system headers lack prototypes but gcc helps...
11900 if test -n "$GCC"; then
11901 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11904 shadow_funcs="getpwanam issecure"
11907 # To get the crypt(3) prototype (so we pass -Wall)
11908 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11909 # AFS support needs -lucb
11910 if test "$with_AFS" = "yes"; then
11911 AFS_LIBS="-lc -lucb"
11913 : ${mansectsu='1m'}
11914 : ${mansectform='4'}
11915 : ${with_rpath='yes'}
11916 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11919 # To get all prototypes (so we pass -Wall)
11920 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11921 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11922 if test X"$with_blibpath" != X"no"; then
11923 { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11924 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11925 O_LDFLAGS="$LDFLAGS"
11926 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11927 cat >conftest.$ac_ext <<_ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (ac_try="$ac_link"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
11951 grep -v '^ *+' conftest.er1 >conftest.err
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } && {
11956 test -z "$ac_c_werror_flag" ||
11957 test ! -s conftest.err
11958 } && test -s conftest$ac_exeext &&
11959 $as_test_x conftest$ac_exeext; then
11961 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11962 blibpath="$with_blibpath"
11963 elif test -n "$GCC"; then
11964 blibpath="/usr/lib:/lib:/usr/local/lib"
11966 blibpath="/usr/lib:/lib"
11968 { echo "$as_me:$LINENO: result: yes" >&5
11969 echo "${ECHO_T}yes" >&6; }
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 { echo "$as_me:$LINENO: result: no" >&5
11976 echo "${ECHO_T}no" >&6; }
11979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11980 conftest$ac_exeext conftest.$ac_ext
11982 LDFLAGS="$O_LDFLAGS"
11984 # Use authenticate(3) as the default authentication method
11985 if test X"$with_aixauth" = X""; then
11987 for ac_func in authenticate
11989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 cat >conftest.$ac_ext <<_ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12003 #define $ac_func innocuous_$ac_func
12005 /* System header to define __stub macros and hopefully few prototypes,
12006 which can conflict with char $ac_func (); below.
12007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12008 <limits.h> exists even on freestanding compilers. */
12011 # include <limits.h>
12013 # include <assert.h>
12018 /* Override any GCC internal prototype to avoid an error.
12019 Use char because int might match the return type of a GCC
12020 builtin and then its argument prototype would still apply. */
12025 /* The GNU C library defines this for functions which it implements
12026 to always fail with ENOSYS. Some functions are actually named
12027 something starting with __ and the normal name is an alias. */
12028 #if defined __stub_$ac_func || defined __stub___$ac_func
12035 return $ac_func ();
12040 rm -f conftest.$ac_objext conftest$ac_exeext
12041 if { (ac_try="$ac_link"
12042 case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_link") 2>conftest.er1
12049 grep -v '^ *+' conftest.er1 >conftest.err
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && {
12054 test -z "$ac_c_werror_flag" ||
12055 test ! -s conftest.err
12056 } && test -s conftest$ac_exeext &&
12057 $as_test_x conftest$ac_exeext; then
12058 eval "$as_ac_var=yes"
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 eval "$as_ac_var=no"
12066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12067 conftest$ac_exeext conftest.$ac_ext
12069 ac_res=`eval echo '${'$as_ac_var'}'`
12070 { echo "$as_me:$LINENO: result: $ac_res" >&5
12071 echo "${ECHO_T}$ac_res" >&6; }
12072 if test `eval echo '${'$as_ac_var'}'` = yes; then
12073 cat >>confdefs.h <<_ACEOF
12074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12076 AUTH_EXCL_DEF="AIX_AUTH"
12082 # AIX analog of nsswitch.conf, enabled by default
12084 # Check whether --with-netsvc was given.
12085 if test "${with_netsvc+set}" = set; then
12086 withval=$with_netsvc; case $with_netsvc in
12088 yes) with_netsvc="/etc/netsvc.conf"
12094 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12095 with_netsvc="/etc/netsvc.conf"
12098 # AIX-specific functions
12100 for ac_func in getuserattr
12102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12116 #define $ac_func innocuous_$ac_func
12118 /* System header to define __stub macros and hopefully few prototypes,
12119 which can conflict with char $ac_func (); below.
12120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12121 <limits.h> exists even on freestanding compilers. */
12124 # include <limits.h>
12126 # include <assert.h>
12131 /* Override any GCC internal prototype to avoid an error.
12132 Use char because int might match the return type of a GCC
12133 builtin and then its argument prototype would still apply. */
12138 /* The GNU C library defines this for functions which it implements
12139 to always fail with ENOSYS. Some functions are actually named
12140 something starting with __ and the normal name is an alias. */
12141 #if defined __stub_$ac_func || defined __stub___$ac_func
12148 return $ac_func ();
12153 rm -f conftest.$ac_objext conftest$ac_exeext
12154 if { (ac_try="$ac_link"
12155 case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_link") 2>conftest.er1
12162 grep -v '^ *+' conftest.er1 >conftest.err
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } && {
12167 test -z "$ac_c_werror_flag" ||
12168 test ! -s conftest.err
12169 } && test -s conftest$ac_exeext &&
12170 $as_test_x conftest$ac_exeext; then
12171 eval "$as_ac_var=yes"
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12176 eval "$as_ac_var=no"
12179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12180 conftest$ac_exeext conftest.$ac_ext
12182 ac_res=`eval echo '${'$as_ac_var'}'`
12183 { echo "$as_me:$LINENO: result: $ac_res" >&5
12184 echo "${ECHO_T}$ac_res" >&6; }
12185 if test `eval echo '${'$as_ac_var'}'` = yes; then
12186 cat >>confdefs.h <<_ACEOF
12187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12193 SUDO_OBJS="$SUDO_OBJS aix.o"
12196 : ${mansectsu='1m'}
12197 : ${mansectform='4'}
12200 # AFS support needs -lBSD
12201 if test "$with_AFS" = "yes"; then
12202 AFS_LIBS="-lc -lBSD"
12204 : ${mansectsu='1m'}
12205 : ${mansectform='4'}
12207 # HP-UX bundled compiler can't generate shared objects
12208 if test "x$ac_cv_prog_cc_c89" = "xno"; then
12212 # Use the +DAportable flag if it is supported
12214 CFLAGS="$CFLAGS +DAportable"
12215 { echo "$as_me:$LINENO: checking whether $CC understands +DAportable" >&5
12216 echo $ECHO_N "checking whether $CC understands +DAportable... $ECHO_C" >&6; }
12217 if test "${sudo_cv_var_daportable+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 cat >conftest.$ac_ext <<_ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (ac_try="$ac_link"
12237 case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_link") 2>conftest.er1
12244 grep -v '^ *+' conftest.er1 >conftest.err
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } && {
12249 test -z "$ac_c_werror_flag" ||
12250 test ! -s conftest.err
12251 } && test -s conftest$ac_exeext &&
12252 $as_test_x conftest$ac_exeext; then
12253 sudo_cv_var_daportable=yes
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 sudo_cv_var_daportable=no
12261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12262 conftest$ac_exeext conftest.$ac_ext
12265 { echo "$as_me:$LINENO: result: $sudo_cv_var_daportable" >&5
12266 echo "${ECHO_T}$sudo_cv_var_daportable" >&6; }
12267 if test X"$sudo_cv_var_daportable" != X"yes"; then
12273 cat >>confdefs.h <<\_ACEOF
12274 #define BROKEN_SYSLOG 1
12278 # Not sure if setuid binaries are safe in < 9.x
12279 if test -n "$GCC"; then
12280 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12282 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12286 cat >>confdefs.h <<\_ACEOF
12287 #define BROKEN_SYSLOG 1
12291 shadow_funcs="getspwuid"
12293 # DCE support (requires ANSI C compiler)
12294 if test "$with_DCE" = "yes"; then
12295 # order of libs in 9.X is important. -lc_r must be last
12296 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12297 LIBS="${LIBS} -ldce -lM -lc_r"
12298 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12302 shadow_funcs="getprpwnam iscomsec"
12303 shadow_libs="-lsec"
12306 shadow_funcs="getspnam iscomsec"
12307 shadow_libs="-lsec"
12308 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12313 # ignore envariables wrt dynamic lib path
12314 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12316 : ${CHECKSIA='true'}
12317 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
12318 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
12319 # Check whether --enable-sia was given.
12320 if test "${enable_sia+set}" = set; then
12321 enableval=$enable_sia; case "$enableval" in
12322 yes) { echo "$as_me:$LINENO: result: no" >&5
12323 echo "${ECHO_T}no" >&6; }
12326 no) { echo "$as_me:$LINENO: result: yes" >&5
12327 echo "${ECHO_T}yes" >&6; }
12330 *) { echo "$as_me:$LINENO: result: no" >&5
12331 echo "${ECHO_T}no" >&6; }
12332 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12333 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12338 { echo "$as_me:$LINENO: result: no" >&5
12339 echo "${ECHO_T}no" >&6; }
12343 shadow_funcs="getprpwnam dispcrypt"
12344 # OSF/1 4.x and higher need -ldb too
12345 if test $OSMAJOR -lt 4; then
12346 shadow_libs="-lsecurity -laud -lm"
12348 shadow_libs="-lsecurity -ldb -laud -lm"
12351 # use SIA by default, if we have it
12352 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12355 # Some versions of Digital Unix ship with a broken
12356 # copy of prot.h, which we need for shadow passwords.
12357 # XXX - make should remove this as part of distclean
12359 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
12360 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
12361 cat >conftest.$ac_ext <<_ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h. */
12368 #include <sys/types.h>
12369 #include <sys/security.h>
12380 rm -f conftest.$ac_objext
12381 if { (ac_try="$ac_compile"
12382 case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387 (eval "$ac_compile") 2>conftest.er1
12389 grep -v '^ *+' conftest.er1 >conftest.err
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } && {
12394 test -z "$ac_c_werror_flag" ||
12395 test ! -s conftest.err
12396 } && test -s conftest.$ac_objext; then
12397 { echo "$as_me:$LINENO: result: no" >&5
12398 echo "${ECHO_T}no" >&6; }
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
12404 echo "${ECHO_T}yes, fixing locally" >&6; }
12405 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 : ${mansectform='4'}
12414 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12415 if test -z "$NROFFPROG"; then
12416 MAN_POSTINSTALL=' /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
12417 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12418 if test -d /usr/share/catman/local; then
12419 mandir="/usr/share/catman/local"
12421 mandir="/usr/catman/local"
12425 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12426 if test -d "/usr/share/man/local"; then
12427 mandir="/usr/share/man/local"
12429 mandir="/usr/man/local"
12433 # IRIX <= 4 needs -lsun
12434 if test "$OSMAJOR" -le 4; then
12435 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
12436 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
12437 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 ac_check_lib_save_LIBS=$LIBS
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12449 /* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12459 return getpwnam ();
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (ac_try="$ac_link"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_link") 2>conftest.er1
12473 grep -v '^ *+' conftest.er1 >conftest.err
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } && {
12478 test -z "$ac_c_werror_flag" ||
12479 test ! -s conftest.err
12480 } && test -s conftest$ac_exeext &&
12481 $as_test_x conftest$ac_exeext; then
12482 ac_cv_lib_sun_getpwnam=yes
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 ac_cv_lib_sun_getpwnam=no
12490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12491 conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS
12494 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
12495 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
12496 if test $ac_cv_lib_sun_getpwnam = yes; then
12497 LIBS="${LIBS} -lsun"
12501 : ${mansectsu='1m'}
12502 : ${mansectform='4'}
12504 *-*-linux*|*-*-k*bsd*-gnu)
12505 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12506 # Some Linux versions need to link with -lshadow
12507 shadow_funcs="getspnam"
12508 shadow_libs_optional="-lshadow"
12509 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12512 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12513 if test -z "$GCC"; then
12514 CFLAGS="${CFLAGS} -D__STDC__"
12517 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12518 shadow_funcs="getprpwnam"
12519 shadow_libs="-lprot"
12523 shadow_funcs="getauthuid"
12524 shadow_libs="-lauth"
12527 LIBS="${LIBS} -lsun -lbsd"
12528 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12529 OSDEFS="${OSDEFS} -D_MIPS"
12530 : ${mansectsu='1m'}
12531 : ${mansectform='4'}
12534 OSDEFS="${OSDEFS} -D_ISC"
12536 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12537 LIBS="${LIBS} -lcrypt"
12539 shadow_funcs="getspnam"
12540 shadow_libs="-lsec"
12542 : ${mansectsu='1m'}
12543 : ${mansectform='4'}
12546 shadow_funcs="getprpwnam"
12547 shadow_libs="-lprot -lx"
12548 : ${mansectsu='1m'}
12549 : ${mansectform='4'}
12551 m88k-motorola-sysv*)
12552 # motorolla's cc (a variant of gcc) does -O but not -O2
12553 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12554 : ${mansectsu='1m'}
12555 : ${mansectform='4'}
12558 shadow_funcs="getspnam"
12559 shadow_libs="-lsec"
12560 : ${mansectsu='1m'}
12561 : ${mansectform='4'}
12562 : ${with_rpath='yes'}
12564 *-ncr-sysv4*|*-ncr-sysvr4*)
12565 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
12566 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
12567 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 ac_check_lib_save_LIBS=$LIBS
12572 cat >conftest.$ac_ext <<_ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12579 /* Override any GCC internal prototype to avoid an error.
12580 Use char because int might match the return type of a GCC
12581 builtin and then its argument prototype would still apply. */
12585 char strcasecmp ();
12589 return strcasecmp ();
12594 rm -f conftest.$ac_objext conftest$ac_exeext
12595 if { (ac_try="$ac_link"
12596 case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_link") 2>conftest.er1
12603 grep -v '^ *+' conftest.er1 >conftest.err
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } && {
12608 test -z "$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12610 } && test -s conftest$ac_exeext &&
12611 $as_test_x conftest$ac_exeext; then
12612 ac_cv_lib_c89_strcasecmp=yes
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_cv_lib_c89_strcasecmp=no
12620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12621 conftest$ac_exeext conftest.$ac_ext
12622 LIBS=$ac_check_lib_save_LIBS
12624 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
12625 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
12626 if test $ac_cv_lib_c89_strcasecmp = yes; then
12627 cat >>confdefs.h <<\_ACEOF
12628 #define HAVE_STRCASECMP 1
12630 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
12633 : ${mansectsu='1m'}
12634 : ${mansectform='4'}
12635 : ${with_rpath='yes'}
12637 *-ccur-sysv4*|*-ccur-sysvr4*)
12638 LIBS="${LIBS} -lgen"
12639 SUDO_LIBS="${SUDO_LIBS} -lgen"
12640 : ${mansectsu='1m'}
12641 : ${mansectform='4'}
12642 : ${with_rpath='yes'}
12646 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
12647 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
12649 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
12650 echo "$as_me: using shlicc as CC" >&6;}
12651 ac_cv_prog_CC=shlicc
12652 CC="$ac_cv_prog_CC"
12656 # Check for newer BSD auth API (just check for >= 3.0?)
12657 if test -z "$with_bsdauth"; then
12659 for ac_func in auth_challenge
12661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12675 #define $ac_func innocuous_$ac_func
12677 /* System header to define __stub macros and hopefully few prototypes,
12678 which can conflict with char $ac_func (); below.
12679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12680 <limits.h> exists even on freestanding compilers. */
12683 # include <limits.h>
12685 # include <assert.h>
12690 /* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12697 /* The GNU C library defines this for functions which it implements
12698 to always fail with ENOSYS. Some functions are actually named
12699 something starting with __ and the normal name is an alias. */
12700 #if defined __stub_$ac_func || defined __stub___$ac_func
12707 return $ac_func ();
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (ac_try="$ac_link"
12714 case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_link") 2>conftest.er1
12721 grep -v '^ *+' conftest.er1 >conftest.err
12723 cat conftest.err >&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } && {
12726 test -z "$ac_c_werror_flag" ||
12727 test ! -s conftest.err
12728 } && test -s conftest$ac_exeext &&
12729 $as_test_x conftest$ac_exeext; then
12730 eval "$as_ac_var=yes"
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12735 eval "$as_ac_var=no"
12738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12739 conftest$ac_exeext conftest.$ac_ext
12741 ac_res=`eval echo '${'$as_ac_var'}'`
12742 { echo "$as_me:$LINENO: result: $ac_res" >&5
12743 echo "${ECHO_T}$ac_res" >&6; }
12744 if test `eval echo '${'$as_ac_var'}'` = yes; then
12745 cat >>confdefs.h <<_ACEOF
12746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12748 AUTH_EXCL_DEF="BSD_AUTH"
12755 # FreeBSD has a real setreuid(2) starting with 2.1 and
12756 # backported to 2.0.5. We just take 2.1 and above...
12762 if test "$with_skey" = "yes"; then
12763 SUDO_LIBS="${SUDO_LIBS} -lmd"
12765 CHECKSHADOW="false"
12766 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12767 : ${with_logincap='maybe'}
12770 # OpenBSD has a real setreuid(2) starting with 3.3 but
12771 # we will use setreuid(2) instead.
12773 CHECKSHADOW="false"
12774 # OpenBSD >= 3.0 supports BSD auth
12775 if test -z "$with_bsdauth"; then
12780 AUTH_EXCL_DEF="BSD_AUTH"
12784 : ${with_logincap='maybe'}
12787 # NetBSD has a real setreuid(2) starting with 1.3.2
12789 0.9*|1.012*|1.3|1.3.1)
12793 CHECKSHADOW="false"
12794 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12795 : ${with_logincap='maybe'}
12798 if test "$with_skey" = "yes"; then
12799 SUDO_LIBS="${SUDO_LIBS} -lmd"
12801 CHECKSHADOW="false"
12802 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12803 : ${with_logincap='yes'}
12806 CHECKSHADOW="false"
12810 CHECKSHADOW="false"
12811 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12812 : ${with_logincap='yes'}
12815 # lockf() on is broken on the NeXT -- use flock instead
12816 ac_cv_func_lockf=no
12817 ac_cv_func_flock=yes
12820 : ${mansectsu='1m'}
12821 : ${mansectform='4'}
12822 : ${with_rpath='yes'}
12825 : ${mansectsu='1m'}
12826 : ${mansectform='4'}
12829 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12833 AUTH_REG=${AUTH_REG# }
12834 AUTH_EXCL=${AUTH_EXCL# }
12835 if test -n "$AUTH_EXCL"; then
12837 if test $# != 1; then
12838 { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12839 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12840 { (exit 1); exit 1; }; }
12842 if test -n "$AUTH_REG"; then
12843 { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12844 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12845 { (exit 1); exit 1; }; }
12848 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12849 { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12850 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12851 { (exit 1); exit 1; }; }
12855 : ${mansectform='5'}
12857 if test -n "$with_libpath"; then
12858 for i in ${with_libpath}; do
12860 if test X"$with_rpath" = X"yes"; then
12862 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
12864 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
12868 LDFLAGS="${LDFLAGS} -L$i"
12870 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12871 blibpath_add="${blibpath_add}:$i"
12876 if test -n "$with_libraries"; then
12877 for i in ${with_libraries}; do
12884 LIBS="${LIBS} ${i}"
12888 if test $ac_cv_c_compiler_gnu = yes; then
12889 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12890 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12891 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 ac_pattern="Autoconf.*'x'"
12895 cat >conftest.$ac_ext <<_ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12905 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12906 ac_cv_prog_gcc_traditional=yes
12908 ac_cv_prog_gcc_traditional=no
12913 if test $ac_cv_prog_gcc_traditional = no; then
12914 cat >conftest.$ac_ext <<_ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 #include <termio.h>
12923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12924 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12925 ac_cv_prog_gcc_traditional=yes
12931 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12932 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12933 if test $ac_cv_prog_gcc_traditional = yes; then
12934 CC="$CC -traditional"
12938 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12939 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12940 if test "${ac_cv_c_const+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 cat >conftest.$ac_ext <<_ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12953 /* FIXME: Include the comments suggested by Paul. */
12954 #ifndef __cplusplus
12955 /* Ultrix mips cc rejects this. */
12956 typedef int charset[2];
12958 /* SunOS 4.1.1 cc rejects this. */
12959 char const *const *pcpcc;
12961 /* NEC SVR4.0.2 mips cc rejects this. */
12962 struct point {int x, y;};
12963 static struct point const zero = {0,0};
12964 /* AIX XL C 1.02.0.0 rejects this.
12965 It does not let you subtract one const X* pointer from another in
12966 an arm of an if-expression whose if-part is not a constant
12968 const char *g = "string";
12969 pcpcc = &g + (g ? g-g : 0);
12970 /* HPUX 7.0 cc rejects these. */
12972 ppc = (char**) pcpcc;
12973 pcpcc = (char const *const *) ppc;
12974 { /* SCO 3.2v4 cc rejects this. */
12976 char const *s = 0 ? (char *) 0 : (char const *) 0;
12981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12982 int x[] = {25, 17};
12983 const int *foo = &x[0];
12986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12987 typedef const int *iptr;
12991 { /* AIX XL C 1.02.0.0 rejects this saying
12992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12993 struct s { int j; const int *ap[3]; };
12994 struct s *b; b->j = 5;
12996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12997 const int foo = 10;
12998 if (!foo) return 0;
13000 return !cs[0] && !zero.x;
13007 rm -f conftest.$ac_objext
13008 if { (ac_try="$ac_compile"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_compile") 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } && {
13021 test -z "$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13023 } && test -s conftest.$ac_objext; then
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13035 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13036 if test $ac_cv_c_const = no; then
13038 cat >>confdefs.h <<\_ACEOF
13044 { echo "$as_me:$LINENO: checking for working volatile" >&5
13045 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13046 if test "${ac_cv_c_volatile+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 cat >conftest.$ac_ext <<_ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13061 int * volatile y = (int *) 0;
13067 rm -f conftest.$ac_objext
13068 if { (ac_try="$ac_compile"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_compile") 2>conftest.er1
13076 grep -v '^ *+' conftest.er1 >conftest.err
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
13083 } && test -s conftest.$ac_objext; then
13084 ac_cv_c_volatile=yes
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13089 ac_cv_c_volatile=no
13092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13094 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13095 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13096 if test $ac_cv_c_volatile = no; then
13098 cat >>confdefs.h <<\_ACEOF
13104 for ac_prog in 'bison -y' byacc
13106 # Extract the first word of "$ac_prog", so it can be a program name with args.
13107 set dummy $ac_prog; ac_word=$2
13108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13110 if test "${ac_cv_prog_YACC+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 if test -n "$YACC"; then
13114 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $PATH
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13123 ac_cv_prog_YACC="$ac_prog"
13124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 YACC=$ac_cv_prog_YACC
13134 if test -n "$YACC"; then
13135 { echo "$as_me:$LINENO: result: $YACC" >&5
13136 echo "${ECHO_T}$YACC" >&6; }
13138 { echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6; }
13143 test -n "$YACC" && break
13145 test -n "$YACC" || YACC="yacc"
13147 # Extract the first word of "flex", so it can be a program name with args.
13148 set dummy flex; ac_word=$2
13149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13151 if test "${ac_cv_path_FLEX+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160 for as_dir in $PATH
13163 test -z "$as_dir" && as_dir=.
13164 for ac_exec_ext in '' $ac_executable_extensions; do
13165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13166 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13178 FLEX=$ac_cv_path_FLEX
13179 if test -n "$FLEX"; then
13180 { echo "$as_me:$LINENO: result: $FLEX" >&5
13181 echo "${ECHO_T}$FLEX" >&6; }
13183 { echo "$as_me:$LINENO: result: no" >&5
13184 echo "${ECHO_T}no" >&6; }
13188 { echo "$as_me:$LINENO: checking for mv" >&5
13189 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
13190 if test -f "/usr/bin/mv"; then
13191 { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
13192 echo "${ECHO_T}/usr/bin/mv" >&6; }
13193 cat >>confdefs.h <<\EOF
13194 #define _PATH_MV "/usr/bin/mv"
13197 elif test -f "/bin/mv"; then
13198 { echo "$as_me:$LINENO: result: /bin/mv" >&5
13199 echo "${ECHO_T}/bin/mv" >&6; }
13200 cat >>confdefs.h <<\EOF
13201 #define _PATH_MV "/bin/mv"
13204 elif test -f "/usr/ucb/mv"; then
13205 { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
13206 echo "${ECHO_T}/usr/ucb/mv" >&6; }
13207 cat >>confdefs.h <<\EOF
13208 #define _PATH_MV "/usr/ucb/mv"
13211 elif test -f "/usr/sbin/mv"; then
13212 { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
13213 echo "${ECHO_T}/usr/sbin/mv" >&6; }
13214 cat >>confdefs.h <<\EOF
13215 #define _PATH_MV "/usr/sbin/mv"
13219 { echo "$as_me:$LINENO: result: not found" >&5
13220 echo "${ECHO_T}not found" >&6; }
13223 { echo "$as_me:$LINENO: checking for bourne shell" >&5
13224 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
13225 if test -f "/bin/sh"; then
13226 { echo "$as_me:$LINENO: result: /bin/sh" >&5
13227 echo "${ECHO_T}/bin/sh" >&6; }
13228 cat >>confdefs.h <<\EOF
13229 #define _PATH_BSHELL "/bin/sh"
13232 elif test -f "/usr/bin/sh"; then
13233 { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
13234 echo "${ECHO_T}/usr/bin/sh" >&6; }
13235 cat >>confdefs.h <<\EOF
13236 #define _PATH_BSHELL "/usr/bin/sh"
13239 elif test -f "/sbin/sh"; then
13240 { echo "$as_me:$LINENO: result: /sbin/sh" >&5
13241 echo "${ECHO_T}/sbin/sh" >&6; }
13242 cat >>confdefs.h <<\EOF
13243 #define _PATH_BSHELL "/sbin/sh"
13246 elif test -f "/usr/sbin/sh"; then
13247 { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
13248 echo "${ECHO_T}/usr/sbin/sh" >&6; }
13249 cat >>confdefs.h <<\EOF
13250 #define _PATH_BSHELL "/usr/sbin/sh"
13253 elif test -f "/bin/ksh"; then
13254 { echo "$as_me:$LINENO: result: /bin/ksh" >&5
13255 echo "${ECHO_T}/bin/ksh" >&6; }
13256 cat >>confdefs.h <<\EOF
13257 #define _PATH_BSHELL "/bin/ksh"
13260 elif test -f "/usr/bin/ksh"; then
13261 { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
13262 echo "${ECHO_T}/usr/bin/ksh" >&6; }
13263 cat >>confdefs.h <<\EOF
13264 #define _PATH_BSHELL "/usr/bin/ksh"
13267 elif test -f "/bin/bash"; then
13268 { echo "$as_me:$LINENO: result: /bin/bash" >&5
13269 echo "${ECHO_T}/bin/bash" >&6; }
13270 cat >>confdefs.h <<\EOF
13271 #define _PATH_BSHELL "/bin/bash"
13274 elif test -f "/usr/bin/bash"; then
13275 { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
13276 echo "${ECHO_T}/usr/bin/bash" >&6; }
13277 cat >>confdefs.h <<\EOF
13278 #define _PATH_BSHELL "/usr/bin/bash"
13282 { echo "$as_me:$LINENO: result: not found" >&5
13283 echo "${ECHO_T}not found" >&6; }
13286 if test -z "$with_sendmail"; then
13287 { echo "$as_me:$LINENO: checking for sendmail" >&5
13288 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
13289 if test -f "/usr/sbin/sendmail"; then
13290 { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
13291 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
13292 cat >>confdefs.h <<\EOF
13293 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
13296 elif test -f "/usr/lib/sendmail"; then
13297 { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
13298 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
13299 cat >>confdefs.h <<\EOF
13300 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
13303 elif test -f "/usr/etc/sendmail"; then
13304 { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
13305 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
13306 cat >>confdefs.h <<\EOF
13307 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
13310 elif test -f "/usr/ucblib/sendmail"; then
13311 { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
13312 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
13313 cat >>confdefs.h <<\EOF
13314 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
13317 elif test -f "/usr/local/lib/sendmail"; then
13318 { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
13319 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
13320 cat >>confdefs.h <<\EOF
13321 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
13324 elif test -f "/usr/local/bin/sendmail"; then
13325 { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
13326 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
13327 cat >>confdefs.h <<\EOF
13328 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
13332 { echo "$as_me:$LINENO: result: not found" >&5
13333 echo "${ECHO_T}not found" >&6; }
13337 if test -z "$with_editor"; then
13338 { echo "$as_me:$LINENO: checking for vi" >&5
13339 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
13340 if test -f "/usr/bin/vi"; then
13341 { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
13342 echo "${ECHO_T}/usr/bin/vi" >&6; }
13343 cat >>confdefs.h <<\EOF
13344 #define _PATH_VI "/usr/bin/vi"
13347 elif test -f "/usr/ucb/vi"; then
13348 { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
13349 echo "${ECHO_T}/usr/ucb/vi" >&6; }
13350 cat >>confdefs.h <<\EOF
13351 #define _PATH_VI "/usr/ucb/vi"
13354 elif test -f "/usr/bsd/vi"; then
13355 { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
13356 echo "${ECHO_T}/usr/bsd/vi" >&6; }
13357 cat >>confdefs.h <<\EOF
13358 #define _PATH_VI "/usr/bsd/vi"
13361 elif test -f "/bin/vi"; then
13362 { echo "$as_me:$LINENO: result: /bin/vi" >&5
13363 echo "${ECHO_T}/bin/vi" >&6; }
13364 cat >>confdefs.h <<\EOF
13365 #define _PATH_VI "/bin/vi"
13368 elif test -f "/usr/local/bin/vi"; then
13369 { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
13370 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
13371 cat >>confdefs.h <<\EOF
13372 #define _PATH_VI "/usr/local/bin/vi"
13376 { echo "$as_me:$LINENO: result: not found" >&5
13377 echo "${ECHO_T}not found" >&6; }
13381 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13382 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
13383 if test "${ac_cv_header_stdc+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 cat >conftest.$ac_ext <<_ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 #include <stdlib.h>
13393 #include <stdarg.h>
13394 #include <string.h>
13405 rm -f conftest.$ac_objext
13406 if { (ac_try="$ac_compile"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_compile") 2>conftest.er1
13414 grep -v '^ *+' conftest.er1 >conftest.err
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } && {
13419 test -z "$ac_c_werror_flag" ||
13420 test ! -s conftest.err
13421 } && test -s conftest.$ac_objext; then
13422 ac_cv_header_stdc=yes
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13427 ac_cv_header_stdc=no
13430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 if test $ac_cv_header_stdc = yes; then
13433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13434 cat >conftest.$ac_ext <<_ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 #include <string.h>
13443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13444 $EGREP "memchr" >/dev/null 2>&1; then
13447 ac_cv_header_stdc=no
13453 if test $ac_cv_header_stdc = yes; then
13454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13455 cat >conftest.$ac_ext <<_ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 #include <stdlib.h>
13464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13465 $EGREP "free" >/dev/null 2>&1; then
13468 ac_cv_header_stdc=no
13474 if test $ac_cv_header_stdc = yes; then
13475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13476 if test "$cross_compiling" = yes; then
13479 cat >conftest.$ac_ext <<_ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13486 #include <stdlib.h>
13487 #if ((' ' & 0x0FF) == 0x020)
13488 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13489 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13491 # define ISLOWER(c) \
13492 (('a' <= (c) && (c) <= 'i') \
13493 || ('j' <= (c) && (c) <= 'r') \
13494 || ('s' <= (c) && (c) <= 'z'))
13495 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13503 for (i = 0; i < 256; i++)
13504 if (XOR (islower (i), ISLOWER (i))
13505 || toupper (i) != TOUPPER (i))
13510 rm -f conftest$ac_exeext
13511 if { (ac_try="$ac_link"
13512 case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_link") 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13521 { (case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_try") 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13532 echo "$as_me: program exited with status $ac_status" >&5
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 ( exit $ac_status )
13537 ac_cv_header_stdc=no
13539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13546 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13547 if test $ac_cv_header_stdc = yes; then
13549 cat >>confdefs.h <<\_ACEOF
13550 #define STDC_HEADERS 1
13560 ac_header_dirent=no
13561 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13562 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13563 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13564 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 cat >conftest.$ac_ext <<_ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13574 #include <sys/types.h>
13586 rm -f conftest.$ac_objext
13587 if { (ac_try="$ac_compile"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_compile") 2>conftest.er1
13595 grep -v '^ *+' conftest.er1 >conftest.err
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } && {
13600 test -z "$ac_c_werror_flag" ||
13601 test ! -s conftest.err
13602 } && test -s conftest.$ac_objext; then
13603 eval "$as_ac_Header=yes"
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 eval "$as_ac_Header=no"
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13613 ac_res=`eval echo '${'$as_ac_Header'}'`
13614 { echo "$as_me:$LINENO: result: $ac_res" >&5
13615 echo "${ECHO_T}$ac_res" >&6; }
13616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13617 cat >>confdefs.h <<_ACEOF
13618 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13621 ac_header_dirent=$ac_hdr; break
13625 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13626 if test $ac_header_dirent = dirent.h; then
13627 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13628 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13629 if test "${ac_cv_search_opendir+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 ac_func_search_save_LIBS=$LIBS
13633 cat >conftest.$ac_ext <<_ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13640 /* Override any GCC internal prototype to avoid an error.
13641 Use char because int might match the return type of a GCC
13642 builtin and then its argument prototype would still apply. */
13655 for ac_lib in '' dir; do
13656 if test -z "$ac_lib"; then
13657 ac_res="none required"
13660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (ac_try="$ac_link"
13664 case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_link") 2>conftest.er1
13671 grep -v '^ *+' conftest.er1 >conftest.err
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } && {
13676 test -z "$ac_c_werror_flag" ||
13677 test ! -s conftest.err
13678 } && test -s conftest$ac_exeext &&
13679 $as_test_x conftest$ac_exeext; then
13680 ac_cv_search_opendir=$ac_res
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13690 if test "${ac_cv_search_opendir+set}" = set; then
13694 if test "${ac_cv_search_opendir+set}" = set; then
13697 ac_cv_search_opendir=no
13699 rm conftest.$ac_ext
13700 LIBS=$ac_func_search_save_LIBS
13702 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13703 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13704 ac_res=$ac_cv_search_opendir
13705 if test "$ac_res" != no; then
13706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13711 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13713 if test "${ac_cv_search_opendir+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 ac_func_search_save_LIBS=$LIBS
13717 cat >conftest.$ac_ext <<_ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13724 /* Override any GCC internal prototype to avoid an error.
13725 Use char because int might match the return type of a GCC
13726 builtin and then its argument prototype would still apply. */
13739 for ac_lib in '' x; do
13740 if test -z "$ac_lib"; then
13741 ac_res="none required"
13744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (ac_try="$ac_link"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_link") 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } && {
13760 test -z "$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 } && test -s conftest$ac_exeext &&
13763 $as_test_x conftest$ac_exeext; then
13764 ac_cv_search_opendir=$ac_res
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13774 if test "${ac_cv_search_opendir+set}" = set; then
13778 if test "${ac_cv_search_opendir+set}" = set; then
13781 ac_cv_search_opendir=no
13783 rm conftest.$ac_ext
13784 LIBS=$ac_func_search_save_LIBS
13786 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13787 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13788 ac_res=$ac_cv_search_opendir
13789 if test "$ac_res" != no; then
13790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13796 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13797 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13798 if test "${ac_cv_header_time+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 cat >conftest.$ac_ext <<_ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 #include <sys/types.h>
13808 #include <sys/time.h>
13814 if ((struct tm *) 0)
13820 rm -f conftest.$ac_objext
13821 if { (ac_try="$ac_compile"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_compile") 2>conftest.er1
13829 grep -v '^ *+' conftest.er1 >conftest.err
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } && {
13834 test -z "$ac_c_werror_flag" ||
13835 test ! -s conftest.err
13836 } && test -s conftest.$ac_objext; then
13837 ac_cv_header_time=yes
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13842 ac_cv_header_time=no
13845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13848 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13849 if test $ac_cv_header_time = yes; then
13851 cat >>confdefs.h <<\_ACEOF
13852 #define TIME_WITH_SYS_TIME 1
13864 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 ac_res=`eval echo '${'$as_ac_Header'}'`
13874 { echo "$as_me:$LINENO: result: $ac_res" >&5
13875 echo "${ECHO_T}$ac_res" >&6; }
13877 # Is the header compilable?
13878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13880 cat >conftest.$ac_ext <<_ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 $ac_includes_default
13887 #include <$ac_header>
13889 rm -f conftest.$ac_objext
13890 if { (ac_try="$ac_compile"
13891 case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_compile") 2>conftest.er1
13898 grep -v '^ *+' conftest.er1 >conftest.err
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } && {
13903 test -z "$ac_c_werror_flag" ||
13904 test ! -s conftest.err
13905 } && test -s conftest.$ac_objext; then
13906 ac_header_compiler=yes
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13911 ac_header_compiler=no
13914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13916 echo "${ECHO_T}$ac_header_compiler" >&6; }
13918 # Is the header present?
13919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13921 cat >conftest.$ac_ext <<_ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927 #include <$ac_header>
13929 if { (ac_try="$ac_cpp conftest.$ac_ext"
13930 case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } >/dev/null && {
13942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13943 test ! -s conftest.err
13945 ac_header_preproc=yes
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_header_preproc=no
13953 rm -f conftest.err conftest.$ac_ext
13954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13955 echo "${ECHO_T}$ac_header_preproc" >&6; }
13957 # So? What about this header?
13958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13964 ac_header_preproc=yes
13967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13980 ## --------------------------------------- ##
13981 ## Report this to http://www.sudo.ws/bugs/ ##
13982 ## --------------------------------------- ##
13984 ) | sed "s/^/$as_me: WARNING: /" >&2
13987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 eval "$as_ac_Header=\$ac_header_preproc"
13994 ac_res=`eval echo '${'$as_ac_Header'}'`
13995 { echo "$as_me:$LINENO: result: $ac_res" >&5
13996 echo "${ECHO_T}$ac_res" >&6; }
13999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14000 cat >>confdefs.h <<_ACEOF
14001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14008 if test "$OS" != "ultrix"; then
14009 { echo "$as_me:$LINENO: checking POSIX termios" >&5
14010 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
14011 if test "${ac_cv_sys_posix_termios+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 cat >conftest.$ac_ext <<_ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 #include <sys/types.h>
14021 #include <unistd.h>
14022 #include <termios.h>
14027 /* SunOS 4.0.3 has termios.h but not the library calls. */
14033 rm -f conftest.$ac_objext conftest$ac_exeext
14034 if { (ac_try="$ac_link"
14035 case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_link") 2>conftest.er1
14042 grep -v '^ *+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } && {
14047 test -z "$ac_c_werror_flag" ||
14048 test ! -s conftest.err
14049 } && test -s conftest$ac_exeext &&
14050 $as_test_x conftest$ac_exeext; then
14051 ac_cv_sys_posix_termios=yes
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14056 ac_cv_sys_posix_termios=no
14059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14060 conftest$ac_exeext conftest.$ac_ext
14062 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
14063 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
14065 if test "$ac_cv_sys_posix_termios" = "yes"; then
14066 cat >>confdefs.h <<\_ACEOF
14067 #define HAVE_TERMIOS_H 1
14072 for ac_header in termio.h
14074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 ac_res=`eval echo '${'$as_ac_Header'}'`
14082 { echo "$as_me:$LINENO: result: $ac_res" >&5
14083 echo "${ECHO_T}$ac_res" >&6; }
14085 # Is the header compilable?
14086 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14088 cat >conftest.$ac_ext <<_ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 $ac_includes_default
14095 #include <$ac_header>
14097 rm -f conftest.$ac_objext
14098 if { (ac_try="$ac_compile"
14099 case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_compile") 2>conftest.er1
14106 grep -v '^ *+' conftest.er1 >conftest.err
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } && {
14111 test -z "$ac_c_werror_flag" ||
14112 test ! -s conftest.err
14113 } && test -s conftest.$ac_objext; then
14114 ac_header_compiler=yes
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 ac_header_compiler=no
14122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14124 echo "${ECHO_T}$ac_header_compiler" >&6; }
14126 # Is the header present?
14127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14129 cat >conftest.$ac_ext <<_ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135 #include <$ac_header>
14137 if { (ac_try="$ac_cpp conftest.$ac_ext"
14138 case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14145 grep -v '^ *+' conftest.er1 >conftest.err
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } >/dev/null && {
14150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14151 test ! -s conftest.err
14153 ac_header_preproc=yes
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 ac_header_preproc=no
14161 rm -f conftest.err conftest.$ac_ext
14162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14163 echo "${ECHO_T}$ac_header_preproc" >&6; }
14165 # So? What about this header?
14166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14172 ac_header_preproc=yes
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14188 ## --------------------------------------- ##
14189 ## Report this to http://www.sudo.ws/bugs/ ##
14190 ## --------------------------------------- ##
14192 ) | sed "s/^/$as_me: WARNING: /" >&2
14195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 eval "$as_ac_Header=\$ac_header_preproc"
14202 ac_res=`eval echo '${'$as_ac_Header'}'`
14203 { echo "$as_me:$LINENO: result: $ac_res" >&5
14204 echo "${ECHO_T}$ac_res" >&6; }
14207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14208 cat >>confdefs.h <<_ACEOF
14209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14218 if test ${with_logincap-'no'} != "no"; then
14220 for ac_header in login_cap.h
14222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 ac_res=`eval echo '${'$as_ac_Header'}'`
14230 { echo "$as_me:$LINENO: result: $ac_res" >&5
14231 echo "${ECHO_T}$ac_res" >&6; }
14233 # Is the header compilable?
14234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14236 cat >conftest.$ac_ext <<_ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 $ac_includes_default
14243 #include <$ac_header>
14245 rm -f conftest.$ac_objext
14246 if { (ac_try="$ac_compile"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_compile") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } && {
14259 test -z "$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 } && test -s conftest.$ac_objext; then
14262 ac_header_compiler=yes
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_header_compiler=no
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14272 echo "${ECHO_T}$ac_header_compiler" >&6; }
14274 # Is the header present?
14275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <$ac_header>
14285 if { (ac_try="$ac_cpp conftest.$ac_ext"
14286 case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14293 grep -v '^ *+' conftest.er1 >conftest.err
14295 cat conftest.err >&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } >/dev/null && {
14298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14301 ac_header_preproc=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_header_preproc=no
14309 rm -f conftest.err conftest.$ac_ext
14310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14311 echo "${ECHO_T}$ac_header_preproc" >&6; }
14313 # So? What about this header?
14314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14320 ac_header_preproc=yes
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14336 ## --------------------------------------- ##
14337 ## Report this to http://www.sudo.ws/bugs/ ##
14338 ## --------------------------------------- ##
14340 ) | sed "s/^/$as_me: WARNING: /" >&2
14343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 eval "$as_ac_Header=\$ac_header_preproc"
14350 ac_res=`eval echo '${'$as_ac_Header'}'`
14351 { echo "$as_me:$LINENO: result: $ac_res" >&5
14352 echo "${ECHO_T}$ac_res" >&6; }
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14359 LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
14361 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
14370 if test ${with_project-'no'} != "no"; then
14371 if test "${ac_cv_header_project_h+set}" = set; then
14372 { echo "$as_me:$LINENO: checking for project.h" >&5
14373 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14374 if test "${ac_cv_header_project_h+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14378 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14380 # Is the header compilable?
14381 { echo "$as_me:$LINENO: checking project.h usability" >&5
14382 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
14383 cat >conftest.$ac_ext <<_ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 $ac_includes_default
14390 #include <project.h>
14392 rm -f conftest.$ac_objext
14393 if { (ac_try="$ac_compile"
14394 case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_compile") 2>conftest.er1
14401 grep -v '^ *+' conftest.er1 >conftest.err
14403 cat conftest.err >&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && {
14406 test -z "$ac_c_werror_flag" ||
14407 test ! -s conftest.err
14408 } && test -s conftest.$ac_objext; then
14409 ac_header_compiler=yes
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 ac_header_compiler=no
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14419 echo "${ECHO_T}$ac_header_compiler" >&6; }
14421 # Is the header present?
14422 { echo "$as_me:$LINENO: checking project.h presence" >&5
14423 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
14424 cat >conftest.$ac_ext <<_ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 #include <project.h>
14432 if { (ac_try="$ac_cpp conftest.$ac_ext"
14433 case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } >/dev/null && {
14445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14446 test ! -s conftest.err
14448 ac_header_preproc=yes
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 ac_header_preproc=no
14456 rm -f conftest.err conftest.$ac_ext
14457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14458 echo "${ECHO_T}$ac_header_preproc" >&6; }
14460 # So? What about this header?
14461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14463 { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
14464 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
14466 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
14467 ac_header_preproc=yes
14470 { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
14471 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
14473 echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
14475 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
14477 echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
14479 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
14481 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
14483 ## --------------------------------------- ##
14484 ## Report this to http://www.sudo.ws/bugs/ ##
14485 ## --------------------------------------- ##
14487 ) | sed "s/^/$as_me: WARNING: /" >&2
14490 { echo "$as_me:$LINENO: checking for project.h" >&5
14491 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14492 if test "${ac_cv_header_project_h+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 ac_cv_header_project_h=$ac_header_preproc
14497 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14498 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14501 if test $ac_cv_header_project_h = yes; then
14502 cat >>confdefs.h <<\_ACEOF
14503 #define HAVE_PROJECT_H 1
14506 SUDO_LIBS="${SUDO_LIBS} -lproject"
14513 { echo "$as_me:$LINENO: checking for mode_t" >&5
14514 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
14515 if test "${ac_cv_type_mode_t+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 cat >conftest.$ac_ext <<_ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 $ac_includes_default
14525 typedef mode_t ac__type_new_;
14529 if ((ac__type_new_ *) 0)
14531 if (sizeof (ac__type_new_))
14537 rm -f conftest.$ac_objext
14538 if { (ac_try="$ac_compile"
14539 case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_compile") 2>conftest.er1
14546 grep -v '^ *+' conftest.er1 >conftest.err
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } && {
14551 test -z "$ac_c_werror_flag" ||
14552 test ! -s conftest.err
14553 } && test -s conftest.$ac_objext; then
14554 ac_cv_type_mode_t=yes
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 ac_cv_type_mode_t=no
14562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14565 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
14566 if test $ac_cv_type_mode_t = yes; then
14570 cat >>confdefs.h <<_ACEOF
14576 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14577 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
14578 if test "${ac_cv_type_uid_t+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 #include <sys/types.h>
14590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14591 $EGREP "uid_t" >/dev/null 2>&1; then
14592 ac_cv_type_uid_t=yes
14594 ac_cv_type_uid_t=no
14599 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14600 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
14601 if test $ac_cv_type_uid_t = no; then
14603 cat >>confdefs.h <<\_ACEOF
14608 cat >>confdefs.h <<\_ACEOF
14614 { echo "$as_me:$LINENO: checking for __signed char" >&5
14615 echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
14616 if test "${ac_cv_type___signed_char+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 cat >conftest.$ac_ext <<_ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h. */
14625 $ac_includes_default
14626 typedef __signed char ac__type_new_;
14630 if ((ac__type_new_ *) 0)
14632 if (sizeof (ac__type_new_))
14638 rm -f conftest.$ac_objext
14639 if { (ac_try="$ac_compile"
14640 case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_compile") 2>conftest.er1
14647 grep -v '^ *+' conftest.er1 >conftest.err
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest.$ac_objext; then
14655 ac_cv_type___signed_char=yes
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 ac_cv_type___signed_char=no
14663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665 { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
14666 echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
14667 if test $ac_cv_type___signed_char = yes; then
14670 { echo "$as_me:$LINENO: checking for signed char" >&5
14671 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
14672 if test "${ac_cv_type_signed_char+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 cat >conftest.$ac_ext <<_ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 $ac_includes_default
14682 typedef signed char ac__type_new_;
14686 if ((ac__type_new_ *) 0)
14688 if (sizeof (ac__type_new_))
14694 rm -f conftest.$ac_objext
14695 if { (ac_try="$ac_compile"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_compile") 2>conftest.er1
14703 grep -v '^ *+' conftest.er1 >conftest.err
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_c_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest.$ac_objext; then
14711 ac_cv_type_signed_char=yes
14713 echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14716 ac_cv_type_signed_char=no
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
14722 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
14723 if test $ac_cv_type_signed_char = yes; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define __signed signed
14729 cat >>confdefs.h <<\_ACEOF
14737 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14738 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14739 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <sys/types.h>
14749 #include <signal.h>
14751 typedef sig_atomic_t ac__type_new_;
14755 if ((ac__type_new_ *) 0)
14757 if (sizeof (ac__type_new_))
14763 rm -f conftest.$ac_objext
14764 if { (ac_try="$ac_compile"
14765 case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770 (eval "$ac_compile") 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } && {
14777 test -z "$ac_c_werror_flag" ||
14778 test ! -s conftest.err
14779 } && test -s conftest.$ac_objext; then
14780 ac_cv_type_sig_atomic_t=yes
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14785 ac_cv_type_sig_atomic_t=no
14788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14790 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14791 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14792 if test $ac_cv_type_sig_atomic_t = yes; then
14795 cat >>confdefs.h <<\_ACEOF
14796 #define sig_atomic_t int
14801 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14802 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14803 if test "${ac_cv_type_sigaction_t+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 cat >conftest.$ac_ext <<_ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 #include <sys/types.h>
14813 #include <signal.h>
14815 typedef sigaction_t ac__type_new_;
14819 if ((ac__type_new_ *) 0)
14821 if (sizeof (ac__type_new_))
14827 rm -f conftest.$ac_objext
14828 if { (ac_try="$ac_compile"
14829 case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_compile") 2>conftest.er1
14836 grep -v '^ *+' conftest.er1 >conftest.err
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } && {
14841 test -z "$ac_c_werror_flag" ||
14842 test ! -s conftest.err
14843 } && test -s conftest.$ac_objext; then
14844 ac_cv_type_sigaction_t=yes
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_cv_type_sigaction_t=no
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14855 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14856 if test $ac_cv_type_sigaction_t = yes; then
14858 cat >>confdefs.h <<_ACEOF
14859 #define HAVE_SIGACTION_T 1
14862 cat >>confdefs.h <<\_ACEOF
14863 #define HAVE_SIGACTION_T 1
14868 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14869 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14870 if test "${ac_cv_type_struct_timespec+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 #include <sys/types.h>
14880 #if TIME_WITH_SYS_TIME
14881 # include <sys/time.h>
14885 typedef struct timespec ac__type_new_;
14889 if ((ac__type_new_ *) 0)
14891 if (sizeof (ac__type_new_))
14897 rm -f conftest.$ac_objext
14898 if { (ac_try="$ac_compile"
14899 case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_compile") 2>conftest.er1
14906 grep -v '^ *+' conftest.er1 >conftest.err
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && {
14911 test -z "$ac_c_werror_flag" ||
14912 test ! -s conftest.err
14913 } && test -s conftest.$ac_objext; then
14914 ac_cv_type_struct_timespec=yes
14916 echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14919 ac_cv_type_struct_timespec=no
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14925 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14926 if test $ac_cv_type_struct_timespec = yes; then
14927 cat >>confdefs.h <<\_ACEOF
14928 #define HAVE_TIMESPEC 1
14933 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14934 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14935 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 cat >conftest.$ac_ext <<_ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <sys/types.h>
14945 #include <netinet/in.h>
14947 typedef struct in6_addr ac__type_new_;
14951 if ((ac__type_new_ *) 0)
14953 if (sizeof (ac__type_new_))
14959 rm -f conftest.$ac_objext
14960 if { (ac_try="$ac_compile"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_compile") 2>conftest.er1
14968 grep -v '^ *+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } && {
14973 test -z "$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 } && test -s conftest.$ac_objext; then
14976 ac_cv_type_struct_in6_addr=yes
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ac_cv_type_struct_in6_addr=no
14984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14986 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14987 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14988 if test $ac_cv_type_struct_in6_addr = yes; then
14990 cat >>confdefs.h <<_ACEOF
14991 #define HAVE_STRUCT_IN6_ADDR 1
14994 cat >>confdefs.h <<\_ACEOF
14995 #define HAVE_IN6_ADDR 1
15000 { echo "$as_me:$LINENO: checking for size_t" >&5
15001 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15002 if test "${sudo_cv_type_size_t+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 cat >conftest.$ac_ext <<_ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15011 #include <sys/types.h>
15014 #include <stdlib.h>
15017 #include <unistd.h>
15020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15021 $EGREP "size_t" >/dev/null 2>&1; then
15022 sudo_cv_type_size_t=yes
15024 sudo_cv_type_size_t=no
15029 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
15030 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
15031 if test $sudo_cv_type_size_t = no; then
15033 cat >>confdefs.h <<\_ACEOF
15039 { echo "$as_me:$LINENO: checking for ssize_t" >&5
15040 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
15041 if test "${sudo_cv_type_ssize_t+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 cat >conftest.$ac_ext <<_ACEOF
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h. */
15050 #include <sys/types.h>
15053 #include <stdlib.h>
15056 #include <unistd.h>
15059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15060 $EGREP "ssize_t" >/dev/null 2>&1; then
15061 sudo_cv_type_ssize_t=yes
15063 sudo_cv_type_ssize_t=no
15068 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
15069 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
15070 if test $sudo_cv_type_ssize_t = no; then
15072 cat >>confdefs.h <<\_ACEOF
15073 #define ssize_t int
15078 { echo "$as_me:$LINENO: checking for dev_t" >&5
15079 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
15080 if test "${sudo_cv_type_dev_t+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 #include <sys/types.h>
15092 #include <stdlib.h>
15095 #include <unistd.h>
15098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15099 $EGREP "dev_t" >/dev/null 2>&1; then
15100 sudo_cv_type_dev_t=yes
15102 sudo_cv_type_dev_t=no
15107 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
15108 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
15109 if test $sudo_cv_type_dev_t = no; then
15111 cat >>confdefs.h <<\_ACEOF
15117 { echo "$as_me:$LINENO: checking for ino_t" >&5
15118 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
15119 if test "${sudo_cv_type_ino_t+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 #include <sys/types.h>
15131 #include <stdlib.h>
15134 #include <unistd.h>
15137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15138 $EGREP "ino_t" >/dev/null 2>&1; then
15139 sudo_cv_type_ino_t=yes
15141 sudo_cv_type_ino_t=no
15146 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
15147 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
15148 if test $sudo_cv_type_ino_t = no; then
15150 cat >>confdefs.h <<\_ACEOF
15151 #define ino_t unsigned int
15157 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
15158 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
15159 if test "${sudo_cv_uid_t_len+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 if test "$cross_compiling" = yes; then
15164 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15165 See \`config.log' for more details." >&5
15166 echo "$as_me: error: cannot run test program while cross compiling
15167 See \`config.log' for more details." >&2;}
15168 { (exit 1); exit 1; }; }
15170 cat >conftest.$ac_ext <<_ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15178 #include <limits.h>
15179 #include <sys/types.h>
15180 #include <sys/param.h>
15184 uid_t u = (uid_t) -1;
15186 if ((f = fopen("conftestdata", "w")) == NULL)
15189 (void) sprintf(b, "%lu", (unsigned long) u);
15190 (void) fprintf(f, "%d\n", strlen(b));
15195 rm -f conftest$ac_exeext
15196 if { (ac_try="$ac_link"
15197 case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_link") 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15206 { (case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211 (eval "$ac_try") 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 sudo_cv_uid_t_len=`cat conftestdata`
15217 echo "$as_me: program exited with status $ac_status" >&5
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15221 ( exit $ac_status )
15222 sudo_cv_uid_t_len=10
15224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15232 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
15233 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
15235 cat >>confdefs.h <<_ACEOF
15236 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15240 { echo "$as_me:$LINENO: checking for long long" >&5
15241 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
15242 if test "${ac_cv_type_long_long+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 $ac_includes_default
15252 typedef long long ac__type_new_;
15256 if ((ac__type_new_ *) 0)
15258 if (sizeof (ac__type_new_))
15264 rm -f conftest.$ac_objext
15265 if { (ac_try="$ac_compile"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_compile") 2>conftest.er1
15273 grep -v '^ *+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } && {
15278 test -z "$ac_c_werror_flag" ||
15279 test ! -s conftest.err
15280 } && test -s conftest.$ac_objext; then
15281 ac_cv_type_long_long=yes
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_cv_type_long_long=no
15289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15292 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15293 if test $ac_cv_type_long_long = yes; then
15295 cat >>confdefs.h <<_ACEOF
15296 #define HAVE_LONG_LONG 1
15300 cat >>confdefs.h <<\_ACEOF
15301 #define HAVE_LONG_LONG 1
15304 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
15305 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
15306 if test "${sudo_cv_type_long_is_quad+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 if test "$cross_compiling" = yes; then
15310 sudo_cv_type_long_is_quad=no
15312 cat >conftest.$ac_ext <<_ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15320 if (sizeof(long long) == sizeof(long)) exit(0);
15324 rm -f conftest$ac_exeext
15325 if { (ac_try="$ac_link"
15326 case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_link") 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15335 { (case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_try") 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 sudo_cv_type_long_is_quad=yes
15346 echo "$as_me: program exited with status $ac_status" >&5
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 ( exit $ac_status )
15351 sudo_cv_type_long_is_quad=no
15353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15357 rm -f core core.* *.core
15359 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
15360 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
15361 if test $sudo_cv_type_long_is_quad = yes; then
15363 cat >>confdefs.h <<\_ACEOF
15364 #define LONG_IS_QUAD 1
15371 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
15372 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
15373 if test "${sudo_cv_sock_sa_len+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 if test "$cross_compiling" = yes; then
15377 sudo_cv_sock_sa_len=no
15379 cat >conftest.$ac_ext <<_ACEOF
15382 cat confdefs.h >>conftest.$ac_ext
15383 cat >>conftest.$ac_ext <<_ACEOF
15384 /* end confdefs.h. */
15385 #include <sys/types.h>
15386 #include <sys/socket.h>
15393 rm -f conftest$ac_exeext
15394 if { (ac_try="$ac_link"
15395 case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_link") 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15404 { (case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_try") 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15413 sudo_cv_sock_sa_len=yes
15415 echo "$as_me: program exited with status $ac_status" >&5
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ( exit $ac_status )
15420 sudo_cv_sock_sa_len=no
15422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15426 rm -f core core.* *.core
15428 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
15429 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
15430 if test $sudo_cv_sock_sa_len = yes; then
15432 cat >>confdefs.h <<\_ACEOF
15433 #define HAVE_SA_LEN 1
15440 *) { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15441 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15442 if test "${ac_cv_type_signal+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 cat >conftest.$ac_ext <<_ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 #include <sys/types.h>
15452 #include <signal.h>
15457 return *(signal (0, 0)) (0) == 1;
15462 rm -f conftest.$ac_objext
15463 if { (ac_try="$ac_compile"
15464 case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_compile") 2>conftest.er1
15471 grep -v '^ *+' conftest.er1 >conftest.err
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } && {
15476 test -z "$ac_c_werror_flag" ||
15477 test ! -s conftest.err
15478 } && test -s conftest.$ac_objext; then
15479 ac_cv_type_signal=int
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15484 ac_cv_type_signal=void
15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15490 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15492 cat >>confdefs.h <<_ACEOF
15493 #define RETSIGTYPE $ac_cv_type_signal
15498 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15499 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
15500 if test "${ac_cv_type_getgroups+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 if test "$cross_compiling" = yes; then
15504 ac_cv_type_getgroups=cross
15506 cat >conftest.$ac_ext <<_ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 /* Thanks to Mike Rendell for this test. */
15513 $ac_includes_default
15516 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15521 gid_t gidset[NGID];
15523 union { gid_t gval; long int lval; } val;
15526 for (i = 0; i < NGID; i++)
15527 gidset[i] = val.gval;
15528 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15530 /* Exit non-zero if getgroups seems to require an array of ints. This
15531 happens when gid_t is short int but getgroups modifies an array
15533 return n > 0 && gidset[n] != val.gval;
15536 rm -f conftest$ac_exeext
15537 if { (ac_try="$ac_link"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_link") 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15547 { (case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_try") 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_type_getgroups=gid_t
15558 echo "$as_me: program exited with status $ac_status" >&5
15559 echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 ( exit $ac_status )
15563 ac_cv_type_getgroups=int
15565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15569 if test $ac_cv_type_getgroups = cross; then
15570 cat >conftest.$ac_ext <<_ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15576 #include <unistd.h>
15579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15580 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15581 ac_cv_type_getgroups=gid_t
15583 ac_cv_type_getgroups=int
15589 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15590 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
15592 cat >>confdefs.h <<_ACEOF
15593 #define GETGROUPS_T $ac_cv_type_getgroups
15597 { echo "$as_me:$LINENO: checking for size_t" >&5
15598 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15599 if test "${ac_cv_type_size_t+set}" = set; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 cat >conftest.$ac_ext <<_ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 $ac_includes_default
15609 typedef size_t ac__type_new_;
15613 if ((ac__type_new_ *) 0)
15615 if (sizeof (ac__type_new_))
15621 rm -f conftest.$ac_objext
15622 if { (ac_try="$ac_compile"
15623 case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_compile") 2>conftest.er1
15630 grep -v '^ *+' conftest.er1 >conftest.err
15632 cat conftest.err >&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } && {
15635 test -z "$ac_c_werror_flag" ||
15636 test ! -s conftest.err
15637 } && test -s conftest.$ac_objext; then
15638 ac_cv_type_size_t=yes
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 ac_cv_type_size_t=no
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15648 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15649 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15650 if test $ac_cv_type_size_t = yes; then
15654 cat >>confdefs.h <<_ACEOF
15655 #define size_t unsigned int
15660 { echo "$as_me:$LINENO: checking for getgroups" >&5
15661 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
15662 if test "${ac_cv_func_getgroups+set}" = set; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 cat >conftest.$ac_ext <<_ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h. */
15671 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15673 #define getgroups innocuous_getgroups
15675 /* System header to define __stub macros and hopefully few prototypes,
15676 which can conflict with char getgroups (); below.
15677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15678 <limits.h> exists even on freestanding compilers. */
15681 # include <limits.h>
15683 # include <assert.h>
15688 /* Override any GCC internal prototype to avoid an error.
15689 Use char because int might match the return type of a GCC
15690 builtin and then its argument prototype would still apply. */
15695 /* The GNU C library defines this for functions which it implements
15696 to always fail with ENOSYS. Some functions are actually named
15697 something starting with __ and the normal name is an alias. */
15698 #if defined __stub_getgroups || defined __stub___getgroups
15705 return getgroups ();
15710 rm -f conftest.$ac_objext conftest$ac_exeext
15711 if { (ac_try="$ac_link"
15712 case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_link") 2>conftest.er1
15719 grep -v '^ *+' conftest.er1 >conftest.err
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } && {
15724 test -z "$ac_c_werror_flag" ||
15725 test ! -s conftest.err
15726 } && test -s conftest$ac_exeext &&
15727 $as_test_x conftest$ac_exeext; then
15728 ac_cv_func_getgroups=yes
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ac_cv_func_getgroups=no
15736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15737 conftest$ac_exeext conftest.$ac_ext
15739 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15740 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15743 # If we don't yet have getgroups, see if it's in -lbsd.
15744 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15746 if test $ac_cv_func_getgroups = no; then
15747 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15748 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15749 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 ac_check_lib_save_LIBS=$LIBS
15754 cat >conftest.$ac_ext <<_ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15761 /* Override any GCC internal prototype to avoid an error.
15762 Use char because int might match the return type of a GCC
15763 builtin and then its argument prototype would still apply. */
15771 return getgroups ();
15776 rm -f conftest.$ac_objext conftest$ac_exeext
15777 if { (ac_try="$ac_link"
15778 case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_link") 2>conftest.er1
15785 grep -v '^ *+' conftest.er1 >conftest.err
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && {
15790 test -z "$ac_c_werror_flag" ||
15791 test ! -s conftest.err
15792 } && test -s conftest$ac_exeext &&
15793 $as_test_x conftest$ac_exeext; then
15794 ac_cv_lib_bsd_getgroups=yes
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15799 ac_cv_lib_bsd_getgroups=no
15802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15803 conftest$ac_exeext conftest.$ac_ext
15804 LIBS=$ac_check_lib_save_LIBS
15806 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15807 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15808 if test $ac_cv_lib_bsd_getgroups = yes; then
15809 GETGROUPS_LIB=-lbsd
15814 # Run the program to test the functionality of the system-supplied
15815 # getgroups function only if there is such a function.
15816 if test $ac_cv_func_getgroups = yes; then
15817 { echo "$as_me:$LINENO: checking for working getgroups" >&5
15818 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15819 if test "${ac_cv_func_getgroups_works+set}" = set; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 if test "$cross_compiling" = yes; then
15823 ac_cv_func_getgroups_works=no
15825 cat >conftest.$ac_ext <<_ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 $ac_includes_default
15835 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15836 return getgroups (0, 0) == -1;
15841 rm -f conftest$ac_exeext
15842 if { (ac_try="$ac_link"
15843 case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_link") 2>&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15852 { (case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_try") 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_cv_func_getgroups_works=yes
15863 echo "$as_me: program exited with status $ac_status" >&5
15864 echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15867 ( exit $ac_status )
15868 ac_cv_func_getgroups_works=no
15870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15876 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15877 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15878 if test $ac_cv_func_getgroups_works = yes; then
15880 cat >>confdefs.h <<\_ACEOF
15881 #define HAVE_GETGROUPS 1
15906 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15907 strftime setrlimit initgroups getgroups fstat gettimeofday \
15908 setlocale getaddrinfo setsid setenv setrlimit64
15910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15924 #define $ac_func innocuous_$ac_func
15926 /* System header to define __stub macros and hopefully few prototypes,
15927 which can conflict with char $ac_func (); below.
15928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15929 <limits.h> exists even on freestanding compilers. */
15932 # include <limits.h>
15934 # include <assert.h>
15939 /* Override any GCC internal prototype to avoid an error.
15940 Use char because int might match the return type of a GCC
15941 builtin and then its argument prototype would still apply. */
15946 /* The GNU C library defines this for functions which it implements
15947 to always fail with ENOSYS. Some functions are actually named
15948 something starting with __ and the normal name is an alias. */
15949 #if defined __stub_$ac_func || defined __stub___$ac_func
15956 return $ac_func ();
15961 rm -f conftest.$ac_objext conftest$ac_exeext
15962 if { (ac_try="$ac_link"
15963 case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_link") 2>conftest.er1
15970 grep -v '^ *+' conftest.er1 >conftest.err
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } && {
15975 test -z "$ac_c_werror_flag" ||
15976 test ! -s conftest.err
15977 } && test -s conftest$ac_exeext &&
15978 $as_test_x conftest$ac_exeext; then
15979 eval "$as_ac_var=yes"
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 eval "$as_ac_var=no"
15987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15988 conftest$ac_exeext conftest.$ac_ext
15990 ac_res=`eval echo '${'$as_ac_var'}'`
15991 { echo "$as_me:$LINENO: result: $ac_res" >&5
15992 echo "${ECHO_T}$ac_res" >&6; }
15993 if test `eval echo '${'$as_ac_var'}'` = yes; then
15994 cat >>confdefs.h <<_ACEOF
15995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16002 for ac_func in unsetenv
16004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16008 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 cat >conftest.$ac_ext <<_ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16018 #define $ac_func innocuous_$ac_func
16020 /* System header to define __stub macros and hopefully few prototypes,
16021 which can conflict with char $ac_func (); below.
16022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16023 <limits.h> exists even on freestanding compilers. */
16026 # include <limits.h>
16028 # include <assert.h>
16033 /* Override any GCC internal prototype to avoid an error.
16034 Use char because int might match the return type of a GCC
16035 builtin and then its argument prototype would still apply. */
16040 /* The GNU C library defines this for functions which it implements
16041 to always fail with ENOSYS. Some functions are actually named
16042 something starting with __ and the normal name is an alias. */
16043 #if defined __stub_$ac_func || defined __stub___$ac_func
16050 return $ac_func ();
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (ac_try="$ac_link"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_link") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } && {
16069 test -z "$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 } && test -s conftest$ac_exeext &&
16072 $as_test_x conftest$ac_exeext; then
16073 eval "$as_ac_var=yes"
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 eval "$as_ac_var=no"
16081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16082 conftest$ac_exeext conftest.$ac_ext
16084 ac_res=`eval echo '${'$as_ac_var'}'`
16085 { echo "$as_me:$LINENO: result: $ac_res" >&5
16086 echo "${ECHO_T}$ac_res" >&6; }
16087 if test `eval echo '${'$as_ac_var'}'` = yes; then
16088 cat >>confdefs.h <<_ACEOF
16089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16091 { echo "$as_me:$LINENO: checking whether unsetenv returns void" >&5
16092 echo $ECHO_N "checking whether unsetenv returns void... $ECHO_C" >&6; }
16093 if test "${sudo_cv_func_unsetenv_void+set}" = set; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
16096 if test "$cross_compiling" = yes; then
16097 sudo_cv_func_unsetenv_void=yes
16099 cat >conftest.$ac_ext <<_ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 $ac_includes_default
16112 return unsetenv("FOO") != 0;
16119 rm -f conftest$ac_exeext
16120 if { (ac_try="$ac_link"
16121 case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_link") 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16130 { (case "(($ac_try" in
16131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132 *) ac_try_echo=$ac_try;;
16134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16135 (eval "$ac_try") 2>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; }; then
16139 sudo_cv_func_unsetenv_void=no
16141 echo "$as_me: program exited with status $ac_status" >&5
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ( exit $ac_status )
16146 sudo_cv_func_unsetenv_void=yes
16148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16153 { echo "$as_me:$LINENO: result: $sudo_cv_func_unsetenv_void" >&5
16154 echo "${ECHO_T}$sudo_cv_func_unsetenv_void" >&6; }
16155 if test $sudo_cv_func_unsetenv_void = yes; then
16157 cat >>confdefs.h <<\_ACEOF
16158 #define UNSETENV_VOID 1
16166 { echo "$as_me:$LINENO: checking whether putenv has a const argument" >&5
16167 echo $ECHO_N "checking whether putenv has a const argument... $ECHO_C" >&6; }
16168 if test "${sudo_cv_func_putenv_const+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 cat >conftest.$ac_ext <<_ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 $ac_includes_default
16178 int putenv(const char *string) {return 0;}
16187 rm -f conftest.$ac_objext
16188 if { (ac_try="$ac_compile"
16189 case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_compile") 2>conftest.er1
16196 grep -v '^ *+' conftest.er1 >conftest.err
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } && {
16201 test -z "$ac_c_werror_flag" ||
16202 test ! -s conftest.err
16203 } && test -s conftest.$ac_objext; then
16204 sudo_cv_func_putenv_const=yes
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 sudo_cv_func_putenv_const=no
16212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 { echo "$as_me:$LINENO: result: $sudo_cv_func_putenv_const" >&5
16216 echo "${ECHO_T}$sudo_cv_func_putenv_const" >&6; }
16217 if test $sudo_cv_func_putenv_const = yes; then
16219 cat >>confdefs.h <<\_ACEOF
16220 #define PUTENV_CONST 1
16225 if test -z "$SKIP_SETRESUID"; then
16227 for ac_func in setresuid
16229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 cat >conftest.$ac_ext <<_ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16243 #define $ac_func innocuous_$ac_func
16245 /* System header to define __stub macros and hopefully few prototypes,
16246 which can conflict with char $ac_func (); below.
16247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16248 <limits.h> exists even on freestanding compilers. */
16251 # include <limits.h>
16253 # include <assert.h>
16258 /* Override any GCC internal prototype to avoid an error.
16259 Use char because int might match the return type of a GCC
16260 builtin and then its argument prototype would still apply. */
16265 /* The GNU C library defines this for functions which it implements
16266 to always fail with ENOSYS. Some functions are actually named
16267 something starting with __ and the normal name is an alias. */
16268 #if defined __stub_$ac_func || defined __stub___$ac_func
16275 return $ac_func ();
16280 rm -f conftest.$ac_objext conftest$ac_exeext
16281 if { (ac_try="$ac_link"
16282 case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287 (eval "$ac_link") 2>conftest.er1
16289 grep -v '^ *+' conftest.er1 >conftest.err
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } && {
16294 test -z "$ac_c_werror_flag" ||
16295 test ! -s conftest.err
16296 } && test -s conftest$ac_exeext &&
16297 $as_test_x conftest$ac_exeext; then
16298 eval "$as_ac_var=yes"
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16303 eval "$as_ac_var=no"
16306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16307 conftest$ac_exeext conftest.$ac_ext
16309 ac_res=`eval echo '${'$as_ac_var'}'`
16310 { echo "$as_me:$LINENO: result: $ac_res" >&5
16311 echo "${ECHO_T}$ac_res" >&6; }
16312 if test `eval echo '${'$as_ac_var'}'` = yes; then
16313 cat >>confdefs.h <<_ACEOF
16314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16321 if test -z "$SKIP_SETREUID"; then
16323 for ac_func in setreuid
16325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16331 cat >conftest.$ac_ext <<_ACEOF
16334 cat confdefs.h >>conftest.$ac_ext
16335 cat >>conftest.$ac_ext <<_ACEOF
16336 /* end confdefs.h. */
16337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16339 #define $ac_func innocuous_$ac_func
16341 /* System header to define __stub macros and hopefully few prototypes,
16342 which can conflict with char $ac_func (); below.
16343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16344 <limits.h> exists even on freestanding compilers. */
16347 # include <limits.h>
16349 # include <assert.h>
16354 /* Override any GCC internal prototype to avoid an error.
16355 Use char because int might match the return type of a GCC
16356 builtin and then its argument prototype would still apply. */
16361 /* The GNU C library defines this for functions which it implements
16362 to always fail with ENOSYS. Some functions are actually named
16363 something starting with __ and the normal name is an alias. */
16364 #if defined __stub_$ac_func || defined __stub___$ac_func
16371 return $ac_func ();
16376 rm -f conftest.$ac_objext conftest$ac_exeext
16377 if { (ac_try="$ac_link"
16378 case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_link") 2>conftest.er1
16385 grep -v '^ *+' conftest.er1 >conftest.err
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } && {
16390 test -z "$ac_c_werror_flag" ||
16391 test ! -s conftest.err
16392 } && test -s conftest$ac_exeext &&
16393 $as_test_x conftest$ac_exeext; then
16394 eval "$as_ac_var=yes"
16396 echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16399 eval "$as_ac_var=no"
16402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16403 conftest$ac_exeext conftest.$ac_ext
16405 ac_res=`eval echo '${'$as_ac_var'}'`
16406 { echo "$as_me:$LINENO: result: $ac_res" >&5
16407 echo "${ECHO_T}$ac_res" >&6; }
16408 if test `eval echo '${'$as_ac_var'}'` = yes; then
16409 cat >>confdefs.h <<_ACEOF
16410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16417 if test -z "$SKIP_SETEUID"; then
16419 for ac_func in seteuid
16421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16435 #define $ac_func innocuous_$ac_func
16437 /* System header to define __stub macros and hopefully few prototypes,
16438 which can conflict with char $ac_func (); below.
16439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16440 <limits.h> exists even on freestanding compilers. */
16443 # include <limits.h>
16445 # include <assert.h>
16450 /* Override any GCC internal prototype to avoid an error.
16451 Use char because int might match the return type of a GCC
16452 builtin and then its argument prototype would still apply. */
16457 /* The GNU C library defines this for functions which it implements
16458 to always fail with ENOSYS. Some functions are actually named
16459 something starting with __ and the normal name is an alias. */
16460 #if defined __stub_$ac_func || defined __stub___$ac_func
16467 return $ac_func ();
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_link") 2>conftest.er1
16481 grep -v '^ *+' conftest.er1 >conftest.err
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } && {
16486 test -z "$ac_c_werror_flag" ||
16487 test ! -s conftest.err
16488 } && test -s conftest$ac_exeext &&
16489 $as_test_x conftest$ac_exeext; then
16490 eval "$as_ac_var=yes"
16492 echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 eval "$as_ac_var=no"
16498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16499 conftest$ac_exeext conftest.$ac_ext
16501 ac_res=`eval echo '${'$as_ac_var'}'`
16502 { echo "$as_me:$LINENO: result: $ac_res" >&5
16503 echo "${ECHO_T}$ac_res" >&6; }
16504 if test `eval echo '${'$as_ac_var'}'` = yes; then
16505 cat >>confdefs.h <<_ACEOF
16506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16513 if test X"$with_interfaces" != X"no"; then
16515 for ac_func in getifaddrs
16517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 cat >conftest.$ac_ext <<_ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16531 #define $ac_func innocuous_$ac_func
16533 /* System header to define __stub macros and hopefully few prototypes,
16534 which can conflict with char $ac_func (); below.
16535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16536 <limits.h> exists even on freestanding compilers. */
16539 # include <limits.h>
16541 # include <assert.h>
16546 /* Override any GCC internal prototype to avoid an error.
16547 Use char because int might match the return type of a GCC
16548 builtin and then its argument prototype would still apply. */
16553 /* The GNU C library defines this for functions which it implements
16554 to always fail with ENOSYS. Some functions are actually named
16555 something starting with __ and the normal name is an alias. */
16556 #if defined __stub_$ac_func || defined __stub___$ac_func
16563 return $ac_func ();
16568 rm -f conftest.$ac_objext conftest$ac_exeext
16569 if { (ac_try="$ac_link"
16570 case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_link") 2>conftest.er1
16577 grep -v '^ *+' conftest.er1 >conftest.err
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } && {
16582 test -z "$ac_c_werror_flag" ||
16583 test ! -s conftest.err
16584 } && test -s conftest$ac_exeext &&
16585 $as_test_x conftest$ac_exeext; then
16586 eval "$as_ac_var=yes"
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 eval "$as_ac_var=no"
16594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16595 conftest$ac_exeext conftest.$ac_ext
16597 ac_res=`eval echo '${'$as_ac_var'}'`
16598 { echo "$as_me:$LINENO: result: $ac_res" >&5
16599 echo "${ECHO_T}$ac_res" >&6; }
16600 if test `eval echo '${'$as_ac_var'}'` = yes; then
16601 cat >>confdefs.h <<_ACEOF
16602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16605 for ac_func in freeifaddrs
16607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 cat >conftest.$ac_ext <<_ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16621 #define $ac_func innocuous_$ac_func
16623 /* System header to define __stub macros and hopefully few prototypes,
16624 which can conflict with char $ac_func (); below.
16625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16626 <limits.h> exists even on freestanding compilers. */
16629 # include <limits.h>
16631 # include <assert.h>
16636 /* Override any GCC internal prototype to avoid an error.
16637 Use char because int might match the return type of a GCC
16638 builtin and then its argument prototype would still apply. */
16643 /* The GNU C library defines this for functions which it implements
16644 to always fail with ENOSYS. Some functions are actually named
16645 something starting with __ and the normal name is an alias. */
16646 #if defined __stub_$ac_func || defined __stub___$ac_func
16653 return $ac_func ();
16658 rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (ac_try="$ac_link"
16660 case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_link") 2>conftest.er1
16667 grep -v '^ *+' conftest.er1 >conftest.err
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } && {
16672 test -z "$ac_c_werror_flag" ||
16673 test ! -s conftest.err
16674 } && test -s conftest$ac_exeext &&
16675 $as_test_x conftest$ac_exeext; then
16676 eval "$as_ac_var=yes"
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 eval "$as_ac_var=no"
16684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16685 conftest$ac_exeext conftest.$ac_ext
16687 ac_res=`eval echo '${'$as_ac_var'}'`
16688 { echo "$as_me:$LINENO: result: $ac_res" >&5
16689 echo "${ECHO_T}$ac_res" >&6; }
16690 if test `eval echo '${'$as_ac_var'}'` = yes; then
16691 cat >>confdefs.h <<_ACEOF
16692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16702 if test -z "$BROKEN_GETCWD"; then
16704 for ac_func in getcwd
16706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 cat >conftest.$ac_ext <<_ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16720 #define $ac_func innocuous_$ac_func
16722 /* System header to define __stub macros and hopefully few prototypes,
16723 which can conflict with char $ac_func (); below.
16724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16725 <limits.h> exists even on freestanding compilers. */
16728 # include <limits.h>
16730 # include <assert.h>
16735 /* Override any GCC internal prototype to avoid an error.
16736 Use char because int might match the return type of a GCC
16737 builtin and then its argument prototype would still apply. */
16742 /* The GNU C library defines this for functions which it implements
16743 to always fail with ENOSYS. Some functions are actually named
16744 something starting with __ and the normal name is an alias. */
16745 #if defined __stub_$ac_func || defined __stub___$ac_func
16752 return $ac_func ();
16757 rm -f conftest.$ac_objext conftest$ac_exeext
16758 if { (ac_try="$ac_link"
16759 case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764 (eval "$ac_link") 2>conftest.er1
16766 grep -v '^ *+' conftest.er1 >conftest.err
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } && {
16771 test -z "$ac_c_werror_flag" ||
16772 test ! -s conftest.err
16773 } && test -s conftest$ac_exeext &&
16774 $as_test_x conftest$ac_exeext; then
16775 eval "$as_ac_var=yes"
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 eval "$as_ac_var=no"
16783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16784 conftest$ac_exeext conftest.$ac_ext
16786 ac_res=`eval echo '${'$as_ac_var'}'`
16787 { echo "$as_me:$LINENO: result: $ac_res" >&5
16788 echo "${ECHO_T}$ac_res" >&6; }
16789 if test `eval echo '${'$as_ac_var'}'` = yes; then
16790 cat >>confdefs.h <<_ACEOF
16791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16795 case " $LIBOBJS " in
16796 *" $ac_func.$ac_objext "* ) ;;
16797 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16807 for ac_func in glob
16809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16815 cat >conftest.$ac_ext <<_ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16823 #define $ac_func innocuous_$ac_func
16825 /* System header to define __stub macros and hopefully few prototypes,
16826 which can conflict with char $ac_func (); below.
16827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16828 <limits.h> exists even on freestanding compilers. */
16831 # include <limits.h>
16833 # include <assert.h>
16838 /* Override any GCC internal prototype to avoid an error.
16839 Use char because int might match the return type of a GCC
16840 builtin and then its argument prototype would still apply. */
16845 /* The GNU C library defines this for functions which it implements
16846 to always fail with ENOSYS. Some functions are actually named
16847 something starting with __ and the normal name is an alias. */
16848 #if defined __stub_$ac_func || defined __stub___$ac_func
16855 return $ac_func ();
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (ac_try="$ac_link"
16862 case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_link") 2>conftest.er1
16869 grep -v '^ *+' conftest.er1 >conftest.err
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } && {
16874 test -z "$ac_c_werror_flag" ||
16875 test ! -s conftest.err
16876 } && test -s conftest$ac_exeext &&
16877 $as_test_x conftest$ac_exeext; then
16878 eval "$as_ac_var=yes"
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 eval "$as_ac_var=no"
16886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16887 conftest$ac_exeext conftest.$ac_ext
16889 ac_res=`eval echo '${'$as_ac_var'}'`
16890 { echo "$as_me:$LINENO: result: $ac_res" >&5
16891 echo "${ECHO_T}$ac_res" >&6; }
16892 if test `eval echo '${'$as_ac_var'}'` = yes; then
16893 cat >>confdefs.h <<_ACEOF
16894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16896 { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16897 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16908 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16913 rm -f conftest.$ac_objext
16914 if { (ac_try="$ac_compile"
16915 case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_compile") 2>conftest.er1
16922 grep -v '^ *+' conftest.er1 >conftest.err
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } && {
16927 test -z "$ac_c_werror_flag" ||
16928 test ! -s conftest.err
16929 } && test -s conftest.$ac_objext; then
16930 cat >>confdefs.h <<\_ACEOF
16931 #define HAVE_EXTENDED_GLOB 1
16934 { echo "$as_me:$LINENO: result: yes" >&5
16935 echo "${ECHO_T}yes" >&6; }
16937 echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16940 case " $LIBOBJS " in
16941 *" glob.$ac_objext "* ) ;;
16942 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16946 { echo "$as_me:$LINENO: result: no" >&5
16947 echo "${ECHO_T}no" >&6; }
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 case " $LIBOBJS " in
16953 *" glob.$ac_objext "* ) ;;
16954 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16963 for ac_func in lockf flock
16965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 cat >conftest.$ac_ext <<_ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16979 #define $ac_func innocuous_$ac_func
16981 /* System header to define __stub macros and hopefully few prototypes,
16982 which can conflict with char $ac_func (); below.
16983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16984 <limits.h> exists even on freestanding compilers. */
16987 # include <limits.h>
16989 # include <assert.h>
16994 /* Override any GCC internal prototype to avoid an error.
16995 Use char because int might match the return type of a GCC
16996 builtin and then its argument prototype would still apply. */
17001 /* The GNU C library defines this for functions which it implements
17002 to always fail with ENOSYS. Some functions are actually named
17003 something starting with __ and the normal name is an alias. */
17004 #if defined __stub_$ac_func || defined __stub___$ac_func
17011 return $ac_func ();
17016 rm -f conftest.$ac_objext conftest$ac_exeext
17017 if { (ac_try="$ac_link"
17018 case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023 (eval "$ac_link") 2>conftest.er1
17025 grep -v '^ *+' conftest.er1 >conftest.err
17027 cat conftest.err >&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } && {
17030 test -z "$ac_c_werror_flag" ||
17031 test ! -s conftest.err
17032 } && test -s conftest$ac_exeext &&
17033 $as_test_x conftest$ac_exeext; then
17034 eval "$as_ac_var=yes"
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 eval "$as_ac_var=no"
17042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17043 conftest$ac_exeext conftest.$ac_ext
17045 ac_res=`eval echo '${'$as_ac_var'}'`
17046 { echo "$as_me:$LINENO: result: $ac_res" >&5
17047 echo "${ECHO_T}$ac_res" >&6; }
17048 if test `eval echo '${'$as_ac_var'}'` = yes; then
17049 cat >>confdefs.h <<_ACEOF
17050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17058 for ac_func in waitpid wait3
17060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 cat >conftest.$ac_ext <<_ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17074 #define $ac_func innocuous_$ac_func
17076 /* System header to define __stub macros and hopefully few prototypes,
17077 which can conflict with char $ac_func (); below.
17078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079 <limits.h> exists even on freestanding compilers. */
17082 # include <limits.h>
17084 # include <assert.h>
17089 /* Override any GCC internal prototype to avoid an error.
17090 Use char because int might match the return type of a GCC
17091 builtin and then its argument prototype would still apply. */
17096 /* The GNU C library defines this for functions which it implements
17097 to always fail with ENOSYS. Some functions are actually named
17098 something starting with __ and the normal name is an alias. */
17099 #if defined __stub_$ac_func || defined __stub___$ac_func
17106 return $ac_func ();
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (ac_try="$ac_link"
17113 case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_link") 2>conftest.er1
17120 grep -v '^ *+' conftest.er1 >conftest.err
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && {
17125 test -z "$ac_c_werror_flag" ||
17126 test ! -s conftest.err
17127 } && test -s conftest$ac_exeext &&
17128 $as_test_x conftest$ac_exeext; then
17129 eval "$as_ac_var=yes"
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 eval "$as_ac_var=no"
17137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17138 conftest$ac_exeext conftest.$ac_ext
17140 ac_res=`eval echo '${'$as_ac_var'}'`
17141 { echo "$as_me:$LINENO: result: $ac_res" >&5
17142 echo "${ECHO_T}$ac_res" >&6; }
17143 if test `eval echo '${'$as_ac_var'}'` = yes; then
17144 cat >>confdefs.h <<_ACEOF
17145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17153 for ac_func in innetgr _innetgr
17155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17169 #define $ac_func innocuous_$ac_func
17171 /* System header to define __stub macros and hopefully few prototypes,
17172 which can conflict with char $ac_func (); below.
17173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17174 <limits.h> exists even on freestanding compilers. */
17177 # include <limits.h>
17179 # include <assert.h>
17184 /* Override any GCC internal prototype to avoid an error.
17185 Use char because int might match the return type of a GCC
17186 builtin and then its argument prototype would still apply. */
17191 /* The GNU C library defines this for functions which it implements
17192 to always fail with ENOSYS. Some functions are actually named
17193 something starting with __ and the normal name is an alias. */
17194 #if defined __stub_$ac_func || defined __stub___$ac_func
17201 return $ac_func ();
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (ac_try="$ac_link"
17208 case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_link") 2>conftest.er1
17215 grep -v '^ *+' conftest.er1 >conftest.err
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } && {
17220 test -z "$ac_c_werror_flag" ||
17221 test ! -s conftest.err
17222 } && test -s conftest$ac_exeext &&
17223 $as_test_x conftest$ac_exeext; then
17224 eval "$as_ac_var=yes"
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17229 eval "$as_ac_var=no"
17232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17233 conftest$ac_exeext conftest.$ac_ext
17235 ac_res=`eval echo '${'$as_ac_var'}'`
17236 { echo "$as_me:$LINENO: result: $ac_res" >&5
17237 echo "${ECHO_T}$ac_res" >&6; }
17238 if test `eval echo '${'$as_ac_var'}'` = yes; then
17239 cat >>confdefs.h <<_ACEOF
17240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17243 for ac_func in getdomainname
17245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 cat >conftest.$ac_ext <<_ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17259 #define $ac_func innocuous_$ac_func
17261 /* System header to define __stub macros and hopefully few prototypes,
17262 which can conflict with char $ac_func (); below.
17263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17264 <limits.h> exists even on freestanding compilers. */
17267 # include <limits.h>
17269 # include <assert.h>
17274 /* Override any GCC internal prototype to avoid an error.
17275 Use char because int might match the return type of a GCC
17276 builtin and then its argument prototype would still apply. */
17281 /* The GNU C library defines this for functions which it implements
17282 to always fail with ENOSYS. Some functions are actually named
17283 something starting with __ and the normal name is an alias. */
17284 #if defined __stub_$ac_func || defined __stub___$ac_func
17291 return $ac_func ();
17296 rm -f conftest.$ac_objext conftest$ac_exeext
17297 if { (ac_try="$ac_link"
17298 case "(($ac_try" in
17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_link") 2>conftest.er1
17305 grep -v '^ *+' conftest.er1 >conftest.err
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } && {
17310 test -z "$ac_c_werror_flag" ||
17311 test ! -s conftest.err
17312 } && test -s conftest$ac_exeext &&
17313 $as_test_x conftest$ac_exeext; then
17314 eval "$as_ac_var=yes"
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 eval "$as_ac_var=no"
17322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17323 conftest$ac_exeext conftest.$ac_ext
17325 ac_res=`eval echo '${'$as_ac_var'}'`
17326 { echo "$as_me:$LINENO: result: $ac_res" >&5
17327 echo "${ECHO_T}$ac_res" >&6; }
17328 if test `eval echo '${'$as_ac_var'}'` = yes; then
17329 cat >>confdefs.h <<_ACEOF
17330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17340 for ac_func in utimes
17342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 cat >conftest.$ac_ext <<_ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17356 #define $ac_func innocuous_$ac_func
17358 /* System header to define __stub macros and hopefully few prototypes,
17359 which can conflict with char $ac_func (); below.
17360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361 <limits.h> exists even on freestanding compilers. */
17364 # include <limits.h>
17366 # include <assert.h>
17371 /* Override any GCC internal prototype to avoid an error.
17372 Use char because int might match the return type of a GCC
17373 builtin and then its argument prototype would still apply. */
17378 /* The GNU C library defines this for functions which it implements
17379 to always fail with ENOSYS. Some functions are actually named
17380 something starting with __ and the normal name is an alias. */
17381 #if defined __stub_$ac_func || defined __stub___$ac_func
17388 return $ac_func ();
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>conftest.er1
17402 grep -v '^ *+' conftest.er1 >conftest.err
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } && {
17407 test -z "$ac_c_werror_flag" ||
17408 test ! -s conftest.err
17409 } && test -s conftest$ac_exeext &&
17410 $as_test_x conftest$ac_exeext; then
17411 eval "$as_ac_var=yes"
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 eval "$as_ac_var=no"
17419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17420 conftest$ac_exeext conftest.$ac_ext
17422 ac_res=`eval echo '${'$as_ac_var'}'`
17423 { echo "$as_me:$LINENO: result: $ac_res" >&5
17424 echo "${ECHO_T}$ac_res" >&6; }
17425 if test `eval echo '${'$as_ac_var'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17431 for ac_func in futimes futimesat
17433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 cat >conftest.$ac_ext <<_ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17447 #define $ac_func innocuous_$ac_func
17449 /* System header to define __stub macros and hopefully few prototypes,
17450 which can conflict with char $ac_func (); below.
17451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17452 <limits.h> exists even on freestanding compilers. */
17455 # include <limits.h>
17457 # include <assert.h>
17462 /* Override any GCC internal prototype to avoid an error.
17463 Use char because int might match the return type of a GCC
17464 builtin and then its argument prototype would still apply. */
17469 /* The GNU C library defines this for functions which it implements
17470 to always fail with ENOSYS. Some functions are actually named
17471 something starting with __ and the normal name is an alias. */
17472 #if defined __stub_$ac_func || defined __stub___$ac_func
17479 return $ac_func ();
17484 rm -f conftest.$ac_objext conftest$ac_exeext
17485 if { (ac_try="$ac_link"
17486 case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_link") 2>conftest.er1
17493 grep -v '^ *+' conftest.er1 >conftest.err
17495 cat conftest.err >&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } && {
17498 test -z "$ac_c_werror_flag" ||
17499 test ! -s conftest.err
17500 } && test -s conftest$ac_exeext &&
17501 $as_test_x conftest$ac_exeext; then
17502 eval "$as_ac_var=yes"
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 eval "$as_ac_var=no"
17510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17511 conftest$ac_exeext conftest.$ac_ext
17513 ac_res=`eval echo '${'$as_ac_var'}'`
17514 { echo "$as_me:$LINENO: result: $ac_res" >&5
17515 echo "${ECHO_T}$ac_res" >&6; }
17516 if test `eval echo '${'$as_ac_var'}'` = yes; then
17517 cat >>confdefs.h <<_ACEOF
17518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17526 for ac_func in futime
17528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 cat >conftest.$ac_ext <<_ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17542 #define $ac_func innocuous_$ac_func
17544 /* System header to define __stub macros and hopefully few prototypes,
17545 which can conflict with char $ac_func (); below.
17546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547 <limits.h> exists even on freestanding compilers. */
17550 # include <limits.h>
17552 # include <assert.h>
17557 /* Override any GCC internal prototype to avoid an error.
17558 Use char because int might match the return type of a GCC
17559 builtin and then its argument prototype would still apply. */
17564 /* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567 #if defined __stub_$ac_func || defined __stub___$ac_func
17574 return $ac_func ();
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } && {
17593 test -z "$ac_c_werror_flag" ||
17594 test ! -s conftest.err
17595 } && test -s conftest$ac_exeext &&
17596 $as_test_x conftest$ac_exeext; then
17597 eval "$as_ac_var=yes"
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17602 eval "$as_ac_var=no"
17605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17606 conftest$ac_exeext conftest.$ac_ext
17608 ac_res=`eval echo '${'$as_ac_var'}'`
17609 { echo "$as_me:$LINENO: result: $ac_res" >&5
17610 echo "${ECHO_T}$ac_res" >&6; }
17611 if test `eval echo '${'$as_ac_var'}'` = yes; then
17612 cat >>confdefs.h <<_ACEOF
17613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17618 case " $LIBOBJS " in
17619 *" utimes.$ac_objext "* ) ;;
17620 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17627 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17628 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17629 if test "${sudo_cv_func_fnmatch+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 rm -f conftestdata; > conftestdata
17633 if test "$cross_compiling" = yes; then
17634 sudo_cv_func_fnmatch=no
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 #include <fnmatch.h>
17643 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17645 rm -f conftest$ac_exeext
17646 if { (ac_try="$ac_link"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_link") 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 sudo_cv_func_fnmatch=yes
17667 echo "$as_me: program exited with status $ac_status" >&5
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 ( exit $ac_status )
17672 sudo_cv_func_fnmatch=no
17674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17678 rm -f core core.* *.core
17681 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17682 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17683 if test $sudo_cv_func_fnmatch = yes; then
17684 cat >>confdefs.h <<\_ACEOF
17685 #define HAVE_FNMATCH 1
17689 case " $LIBOBJS " in
17690 *" fnmatch.$ac_objext "* ) ;;
17691 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17697 { echo "$as_me:$LINENO: checking for isblank" >&5
17698 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17699 if test "${sudo_cv_func_isblank+set}" = set; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17702 cat >conftest.$ac_ext <<_ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17712 return (isblank('a'));
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (ac_try="$ac_link"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_link") 2>conftest.er1
17726 grep -v '^ *+' conftest.er1 >conftest.err
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } && {
17731 test -z "$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 } && test -s conftest$ac_exeext &&
17734 $as_test_x conftest$ac_exeext; then
17735 sudo_cv_func_isblank=yes
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 sudo_cv_func_isblank=no
17743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17744 conftest$ac_exeext conftest.$ac_ext
17746 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17747 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17749 if test "$sudo_cv_func_isblank" = "yes"; then
17751 cat >>confdefs.h <<\_ACEOF
17752 #define HAVE_ISBLANK 1
17756 case " $LIBOBJS " in
17757 *" isblank.$ac_objext "* ) ;;
17758 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17770 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17773 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 cat >conftest.$ac_ext <<_ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17786 #define $ac_func innocuous_$ac_func
17788 /* System header to define __stub macros and hopefully few prototypes,
17789 which can conflict with char $ac_func (); below.
17790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17791 <limits.h> exists even on freestanding compilers. */
17794 # include <limits.h>
17796 # include <assert.h>
17801 /* Override any GCC internal prototype to avoid an error.
17802 Use char because int might match the return type of a GCC
17803 builtin and then its argument prototype would still apply. */
17808 /* The GNU C library defines this for functions which it implements
17809 to always fail with ENOSYS. Some functions are actually named
17810 something starting with __ and the normal name is an alias. */
17811 #if defined __stub_$ac_func || defined __stub___$ac_func
17818 return $ac_func ();
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_link") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest$ac_exeext &&
17840 $as_test_x conftest$ac_exeext; then
17841 eval "$as_ac_var=yes"
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 eval "$as_ac_var=no"
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850 conftest$ac_exeext conftest.$ac_ext
17852 ac_res=`eval echo '${'$as_ac_var'}'`
17853 { echo "$as_me:$LINENO: result: $ac_res" >&5
17854 echo "${ECHO_T}$ac_res" >&6; }
17855 if test `eval echo '${'$as_ac_var'}'` = yes; then
17856 cat >>confdefs.h <<_ACEOF
17857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17861 case " $LIBOBJS " in
17862 *" $ac_func.$ac_objext "* ) ;;
17863 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17872 for ac_func in closefrom
17874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17888 #define $ac_func innocuous_$ac_func
17890 /* System header to define __stub macros and hopefully few prototypes,
17891 which can conflict with char $ac_func (); below.
17892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17893 <limits.h> exists even on freestanding compilers. */
17896 # include <limits.h>
17898 # include <assert.h>
17903 /* Override any GCC internal prototype to avoid an error.
17904 Use char because int might match the return type of a GCC
17905 builtin and then its argument prototype would still apply. */
17910 /* The GNU C library defines this for functions which it implements
17911 to always fail with ENOSYS. Some functions are actually named
17912 something starting with __ and the normal name is an alias. */
17913 #if defined __stub_$ac_func || defined __stub___$ac_func
17920 return $ac_func ();
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (ac_try="$ac_link"
17927 case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_link") 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } && {
17939 test -z "$ac_c_werror_flag" ||
17940 test ! -s conftest.err
17941 } && test -s conftest$ac_exeext &&
17942 $as_test_x conftest$ac_exeext; then
17943 eval "$as_ac_var=yes"
17945 echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17948 eval "$as_ac_var=no"
17951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17952 conftest$ac_exeext conftest.$ac_ext
17954 ac_res=`eval echo '${'$as_ac_var'}'`
17955 { echo "$as_me:$LINENO: result: $ac_res" >&5
17956 echo "${ECHO_T}$ac_res" >&6; }
17957 if test `eval echo '${'$as_ac_var'}'` = yes; then
17958 cat >>confdefs.h <<_ACEOF
17959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17963 case " $LIBOBJS " in
17964 *" closefrom.$ac_objext "* ) ;;
17965 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17969 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17970 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17971 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17974 cat >conftest.$ac_ext <<_ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980 #include <limits.h>
17994 rm -f conftest.$ac_objext
17995 if { (ac_try="$ac_compile"
17996 case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_compile") 2>conftest.er1
18003 grep -v '^ *+' conftest.er1 >conftest.err
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } && {
18008 test -z "$ac_c_werror_flag" ||
18009 test ! -s conftest.err
18010 } && test -s conftest.$ac_objext; then
18011 ac_cv_have_decl_F_CLOSEM=yes
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_cv_have_decl_F_CLOSEM=no
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
18022 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
18023 if test $ac_cv_have_decl_F_CLOSEM = yes; then
18024 cat >>confdefs.h <<\_ACEOF
18025 #define HAVE_FCNTL_CLOSEM 1
18035 for ac_func in mkstemp
18037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18043 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18051 #define $ac_func innocuous_$ac_func
18053 /* System header to define __stub macros and hopefully few prototypes,
18054 which can conflict with char $ac_func (); below.
18055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18056 <limits.h> exists even on freestanding compilers. */
18059 # include <limits.h>
18061 # include <assert.h>
18066 /* Override any GCC internal prototype to avoid an error.
18067 Use char because int might match the return type of a GCC
18068 builtin and then its argument prototype would still apply. */
18073 /* The GNU C library defines this for functions which it implements
18074 to always fail with ENOSYS. Some functions are actually named
18075 something starting with __ and the normal name is an alias. */
18076 #if defined __stub_$ac_func || defined __stub___$ac_func
18083 return $ac_func ();
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (ac_try="$ac_link"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_link") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && {
18102 test -z "$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 } && test -s conftest$ac_exeext &&
18105 $as_test_x conftest$ac_exeext; then
18106 eval "$as_ac_var=yes"
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 eval "$as_ac_var=no"
18114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18115 conftest$ac_exeext conftest.$ac_ext
18117 ac_res=`eval echo '${'$as_ac_var'}'`
18118 { echo "$as_me:$LINENO: result: $ac_res" >&5
18119 echo "${ECHO_T}$ac_res" >&6; }
18120 if test `eval echo '${'$as_ac_var'}'` = yes; then
18121 cat >>confdefs.h <<_ACEOF
18122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18126 SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
18129 for ac_func in random lrand48
18131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 cat >conftest.$ac_ext <<_ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18145 #define $ac_func innocuous_$ac_func
18147 /* System header to define __stub macros and hopefully few prototypes,
18148 which can conflict with char $ac_func (); below.
18149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150 <limits.h> exists even on freestanding compilers. */
18153 # include <limits.h>
18155 # include <assert.h>
18160 /* Override any GCC internal prototype to avoid an error.
18161 Use char because int might match the return type of a GCC
18162 builtin and then its argument prototype would still apply. */
18167 /* The GNU C library defines this for functions which it implements
18168 to always fail with ENOSYS. Some functions are actually named
18169 something starting with __ and the normal name is an alias. */
18170 #if defined __stub_$ac_func || defined __stub___$ac_func
18177 return $ac_func ();
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_link") 2>conftest.er1
18191 grep -v '^ *+' conftest.er1 >conftest.err
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } && {
18196 test -z "$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18198 } && test -s conftest$ac_exeext &&
18199 $as_test_x conftest$ac_exeext; then
18200 eval "$as_ac_var=yes"
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18205 eval "$as_ac_var=no"
18208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18209 conftest$ac_exeext conftest.$ac_ext
18211 ac_res=`eval echo '${'$as_ac_var'}'`
18212 { echo "$as_me:$LINENO: result: $ac_res" >&5
18213 echo "${ECHO_T}$ac_res" >&6; }
18214 if test `eval echo '${'$as_ac_var'}'` = yes; then
18215 cat >>confdefs.h <<_ACEOF
18216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18230 for ac_func in snprintf vsnprintf asprintf vasprintf
18232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 cat >conftest.$ac_ext <<_ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18246 #define $ac_func innocuous_$ac_func
18248 /* System header to define __stub macros and hopefully few prototypes,
18249 which can conflict with char $ac_func (); below.
18250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18251 <limits.h> exists even on freestanding compilers. */
18254 # include <limits.h>
18256 # include <assert.h>
18261 /* Override any GCC internal prototype to avoid an error.
18262 Use char because int might match the return type of a GCC
18263 builtin and then its argument prototype would still apply. */
18268 /* The GNU C library defines this for functions which it implements
18269 to always fail with ENOSYS. Some functions are actually named
18270 something starting with __ and the normal name is an alias. */
18271 #if defined __stub_$ac_func || defined __stub___$ac_func
18278 return $ac_func ();
18283 rm -f conftest.$ac_objext conftest$ac_exeext
18284 if { (ac_try="$ac_link"
18285 case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_link") 2>conftest.er1
18292 grep -v '^ *+' conftest.er1 >conftest.err
18294 cat conftest.err >&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); } && {
18297 test -z "$ac_c_werror_flag" ||
18298 test ! -s conftest.err
18299 } && test -s conftest$ac_exeext &&
18300 $as_test_x conftest$ac_exeext; then
18301 eval "$as_ac_var=yes"
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 eval "$as_ac_var=no"
18309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18310 conftest$ac_exeext conftest.$ac_ext
18312 ac_res=`eval echo '${'$as_ac_var'}'`
18313 { echo "$as_me:$LINENO: result: $ac_res" >&5
18314 echo "${ECHO_T}$ac_res" >&6; }
18315 if test `eval echo '${'$as_ac_var'}'` = yes; then
18316 cat >>confdefs.h <<_ACEOF
18317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18325 if test X"$ac_cv_type_struct_timespec" != X"no"; then
18326 { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
18327 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
18328 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 cat >conftest.$ac_ext <<_ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 $ac_includes_default
18341 static struct stat ac_aggr;
18342 if (ac_aggr.st_mtim)
18348 rm -f conftest.$ac_objext
18349 if { (ac_try="$ac_compile"
18350 case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_compile") 2>conftest.er1
18357 grep -v '^ *+' conftest.er1 >conftest.err
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } && {
18362 test -z "$ac_c_werror_flag" ||
18363 test ! -s conftest.err
18364 } && test -s conftest.$ac_objext; then
18365 ac_cv_member_struct_stat_st_mtim=yes
18367 echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18376 $ac_includes_default
18380 static struct stat ac_aggr;
18381 if (sizeof ac_aggr.st_mtim)
18387 rm -f conftest.$ac_objext
18388 if { (ac_try="$ac_compile"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_compile") 2>conftest.er1
18396 grep -v '^ *+' conftest.er1 >conftest.err
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } && {
18401 test -z "$ac_c_werror_flag" ||
18402 test ! -s conftest.err
18403 } && test -s conftest.$ac_objext; then
18404 ac_cv_member_struct_stat_st_mtim=yes
18406 echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18409 ac_cv_member_struct_stat_st_mtim=no
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18417 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
18418 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
18419 if test $ac_cv_member_struct_stat_st_mtim = yes; then
18420 cat >>confdefs.h <<\_ACEOF
18421 #define HAVE_ST_MTIM 1
18424 { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
18425 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
18426 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 cat >conftest.$ac_ext <<_ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18435 $ac_includes_default
18439 static struct stat ac_aggr;
18440 if (ac_aggr.st_mtim.st__tim)
18446 rm -f conftest.$ac_objext
18447 if { (ac_try="$ac_compile"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_compile") 2>conftest.er1
18455 grep -v '^ *+' conftest.er1 >conftest.err
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } && {
18460 test -z "$ac_c_werror_flag" ||
18461 test ! -s conftest.err
18462 } && test -s conftest.$ac_objext; then
18463 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18465 echo "$as_me: failed program was:" >&5
18466 sed 's/^/| /' conftest.$ac_ext >&5
18468 cat >conftest.$ac_ext <<_ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 $ac_includes_default
18478 static struct stat ac_aggr;
18479 if (sizeof ac_aggr.st_mtim.st__tim)
18485 rm -f conftest.$ac_objext
18486 if { (ac_try="$ac_compile"
18487 case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_compile") 2>conftest.er1
18494 grep -v '^ *+' conftest.er1 >conftest.err
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } && {
18499 test -z "$ac_c_werror_flag" ||
18500 test ! -s conftest.err
18501 } && test -s conftest.$ac_objext; then
18502 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18504 echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18507 ac_cv_member_struct_stat_st_mtim_st__tim=no
18510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18516 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18517 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18518 cat >>confdefs.h <<\_ACEOF
18519 #define HAVE_ST__TIM 1
18525 { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18526 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18527 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18528 echo $ECHO_N "(cached) $ECHO_C" >&6
18530 cat >conftest.$ac_ext <<_ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18536 $ac_includes_default
18540 static struct stat ac_aggr;
18541 if (ac_aggr.st_mtimespec)
18547 rm -f conftest.$ac_objext
18548 if { (ac_try="$ac_compile"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_compile") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1 >conftest.err
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest.$ac_objext; then
18564 ac_cv_member_struct_stat_st_mtimespec=yes
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18569 cat >conftest.$ac_ext <<_ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 $ac_includes_default
18579 static struct stat ac_aggr;
18580 if (sizeof ac_aggr.st_mtimespec)
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_compile") 2>conftest.er1
18595 grep -v '^ *+' conftest.er1 >conftest.err
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } && {
18600 test -z "$ac_c_werror_flag" ||
18601 test ! -s conftest.err
18602 } && test -s conftest.$ac_objext; then
18603 ac_cv_member_struct_stat_st_mtimespec=yes
18605 echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18608 ac_cv_member_struct_stat_st_mtimespec=no
18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18616 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18617 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18618 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18619 cat >>confdefs.h <<\_ACEOF
18620 #define HAVE_ST_MTIMESPEC 1
18627 { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18628 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18629 cat >conftest.$ac_ext <<_ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 #include <sys/types.h>
18636 #include <sys/time.h>
18640 struct timespec ts1, ts2;
18641 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18642 #ifndef timespecsub
18643 #error missing timespecsub
18645 timespecsub(&ts1, &ts2);
18650 rm -f conftest.$ac_objext
18651 if { (ac_try="$ac_compile"
18652 case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_compile") 2>conftest.er1
18659 grep -v '^ *+' conftest.er1 >conftest.err
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } && {
18664 test -z "$ac_c_werror_flag" ||
18665 test ! -s conftest.err
18666 } && test -s conftest.$ac_objext; then
18667 cat >>confdefs.h <<\_ACEOF
18668 #define HAVE_TIMESPECSUB2 1
18671 { echo "$as_me:$LINENO: result: yes" >&5
18672 echo "${ECHO_T}yes" >&6; }
18674 echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18677 { echo "$as_me:$LINENO: result: no" >&5
18678 echo "${ECHO_T}no" >&6; }
18681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683 cat >conftest.$ac_ext <<_ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18689 #include <sys/types.h>
18690 #include <$ac_header_dirent>
18694 DIR *d; (void)dirfd(d);
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (ac_try="$ac_link"
18701 case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_link") 2>conftest.er1
18708 grep -v '^ *+' conftest.er1 >conftest.err
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } && {
18713 test -z "$ac_c_werror_flag" ||
18714 test ! -s conftest.err
18715 } && test -s conftest$ac_exeext &&
18716 $as_test_x conftest$ac_exeext; then
18717 cat >>confdefs.h <<\_ACEOF
18718 #define HAVE_DIRFD 1
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 cat >conftest.$ac_ext <<_ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 #include <sys/types.h>
18732 #include <$ac_header_dirent>
18736 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18750 grep -v '^ *+' conftest.er1 >conftest.err
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } && {
18755 test -z "$ac_c_werror_flag" ||
18756 test ! -s conftest.err
18757 } && test -s conftest$ac_exeext &&
18758 $as_test_x conftest$ac_exeext; then
18759 cat >>confdefs.h <<\_ACEOF
18760 #define HAVE_DD_FD 1
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18771 conftest$ac_exeext conftest.$ac_ext
18774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18775 conftest$ac_exeext conftest.$ac_ext
18776 if test -n "$NEED_SNPRINTF"; then
18777 case " $LIBOBJS " in
18778 *" snprintf.$ac_objext "* ) ;;
18779 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18784 { echo "$as_me:$LINENO: checking for socket" >&5
18785 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18786 if test "${ac_cv_func_socket+set}" = set; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797 #define socket innocuous_socket
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char socket (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18805 # include <limits.h>
18807 # include <assert.h>
18812 /* Override any GCC internal prototype to avoid an error.
18813 Use char because int might match the return type of a GCC
18814 builtin and then its argument prototype would still apply. */
18819 /* The GNU C library defines this for functions which it implements
18820 to always fail with ENOSYS. Some functions are actually named
18821 something starting with __ and the normal name is an alias. */
18822 #if defined __stub_socket || defined __stub___socket
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest$ac_exeext &&
18851 $as_test_x conftest$ac_exeext; then
18852 ac_cv_func_socket=yes
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18857 ac_cv_func_socket=no
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18863 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18864 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18865 if test $ac_cv_func_socket = yes; then
18868 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18869 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18870 if test "${ac_cv_lib_socket_socket+set}" = set; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 ac_check_lib_save_LIBS=$LIBS
18874 LIBS="-lsocket $LIBS"
18875 cat >conftest.$ac_ext <<_ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18882 /* Override any GCC internal prototype to avoid an error.
18883 Use char because int might match the return type of a GCC
18884 builtin and then its argument prototype would still apply. */
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (ac_try="$ac_link"
18899 case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_link") 2>conftest.er1
18906 grep -v '^ *+' conftest.er1 >conftest.err
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } && {
18911 test -z "$ac_c_werror_flag" ||
18912 test ! -s conftest.err
18913 } && test -s conftest$ac_exeext &&
18914 $as_test_x conftest$ac_exeext; then
18915 ac_cv_lib_socket_socket=yes
18917 echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18920 ac_cv_lib_socket_socket=no
18923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18924 conftest$ac_exeext conftest.$ac_ext
18925 LIBS=$ac_check_lib_save_LIBS
18927 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18928 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18929 if test $ac_cv_lib_socket_socket = yes; then
18930 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18932 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18933 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18934 if test "${ac_cv_lib_inet_socket+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 ac_check_lib_save_LIBS=$LIBS
18938 LIBS="-linet $LIBS"
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18946 /* Override any GCC internal prototype to avoid an error.
18947 Use char because int might match the return type of a GCC
18948 builtin and then its argument prototype would still apply. */
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18970 grep -v '^ *+' conftest.er1 >conftest.err
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } && {
18975 test -z "$ac_c_werror_flag" ||
18976 test ! -s conftest.err
18977 } && test -s conftest$ac_exeext &&
18978 $as_test_x conftest$ac_exeext; then
18979 ac_cv_lib_inet_socket=yes
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 ac_cv_lib_inet_socket=no
18987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18988 conftest$ac_exeext conftest.$ac_ext
18989 LIBS=$ac_check_lib_save_LIBS
18991 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18992 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18993 if test $ac_cv_lib_inet_socket = yes; then
18994 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18996 { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18997 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18998 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18999 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
19000 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 ac_check_lib_save_LIBS=$LIBS
19004 LIBS="-lsocket -lnsl $LIBS"
19005 cat >conftest.$ac_ext <<_ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19012 /* Override any GCC internal prototype to avoid an error.
19013 Use char because int might match the return type of a GCC
19014 builtin and then its argument prototype would still apply. */
19027 rm -f conftest.$ac_objext conftest$ac_exeext
19028 if { (ac_try="$ac_link"
19029 case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_link") 2>conftest.er1
19036 grep -v '^ *+' conftest.er1 >conftest.err
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } && {
19041 test -z "$ac_c_werror_flag" ||
19042 test ! -s conftest.err
19043 } && test -s conftest$ac_exeext &&
19044 $as_test_x conftest$ac_exeext; then
19045 ac_cv_lib_socket_socket_lnsl=yes
19047 echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19050 ac_cv_lib_socket_socket_lnsl=no
19053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19054 conftest$ac_exeext conftest.$ac_ext
19055 LIBS=$ac_check_lib_save_LIBS
19057 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
19058 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
19059 if test $ac_cv_lib_socket_socket_lnsl = yes; then
19060 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
19069 { echo "$as_me:$LINENO: checking for inet_addr" >&5
19070 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
19071 if test "${ac_cv_func_inet_addr+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 cat >conftest.$ac_ext <<_ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19080 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
19081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19082 #define inet_addr innocuous_inet_addr
19084 /* System header to define __stub macros and hopefully few prototypes,
19085 which can conflict with char inet_addr (); below.
19086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19087 <limits.h> exists even on freestanding compilers. */
19090 # include <limits.h>
19092 # include <assert.h>
19097 /* Override any GCC internal prototype to avoid an error.
19098 Use char because int might match the return type of a GCC
19099 builtin and then its argument prototype would still apply. */
19104 /* The GNU C library defines this for functions which it implements
19105 to always fail with ENOSYS. Some functions are actually named
19106 something starting with __ and the normal name is an alias. */
19107 #if defined __stub_inet_addr || defined __stub___inet_addr
19114 return inet_addr ();
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>conftest.er1
19128 grep -v '^ *+' conftest.er1 >conftest.err
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } && {
19133 test -z "$ac_c_werror_flag" ||
19134 test ! -s conftest.err
19135 } && test -s conftest$ac_exeext &&
19136 $as_test_x conftest$ac_exeext; then
19137 ac_cv_func_inet_addr=yes
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19142 ac_cv_func_inet_addr=no
19145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19146 conftest$ac_exeext conftest.$ac_ext
19148 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
19149 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
19150 if test $ac_cv_func_inet_addr = yes; then
19153 { echo "$as_me:$LINENO: checking for __inet_addr" >&5
19154 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
19155 if test "${ac_cv_func___inet_addr+set}" = set; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19158 cat >conftest.$ac_ext <<_ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
19165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19166 #define __inet_addr innocuous___inet_addr
19168 /* System header to define __stub macros and hopefully few prototypes,
19169 which can conflict with char __inet_addr (); below.
19170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19171 <limits.h> exists even on freestanding compilers. */
19174 # include <limits.h>
19176 # include <assert.h>
19181 /* Override any GCC internal prototype to avoid an error.
19182 Use char because int might match the return type of a GCC
19183 builtin and then its argument prototype would still apply. */
19187 char __inet_addr ();
19188 /* The GNU C library defines this for functions which it implements
19189 to always fail with ENOSYS. Some functions are actually named
19190 something starting with __ and the normal name is an alias. */
19191 #if defined __stub___inet_addr || defined __stub_____inet_addr
19198 return __inet_addr ();
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>conftest.er1
19212 grep -v '^ *+' conftest.er1 >conftest.err
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } && {
19217 test -z "$ac_c_werror_flag" ||
19218 test ! -s conftest.err
19219 } && test -s conftest$ac_exeext &&
19220 $as_test_x conftest$ac_exeext; then
19221 ac_cv_func___inet_addr=yes
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 ac_cv_func___inet_addr=no
19229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19230 conftest$ac_exeext conftest.$ac_ext
19232 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
19233 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
19234 if test $ac_cv_func___inet_addr = yes; then
19237 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
19238 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
19239 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19242 ac_check_lib_save_LIBS=$LIBS
19244 cat >conftest.$ac_ext <<_ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19251 /* Override any GCC internal prototype to avoid an error.
19252 Use char because int might match the return type of a GCC
19253 builtin and then its argument prototype would still apply. */
19261 return inet_addr ();
19266 rm -f conftest.$ac_objext conftest$ac_exeext
19267 if { (ac_try="$ac_link"
19268 case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_link") 2>conftest.er1
19275 grep -v '^ *+' conftest.er1 >conftest.err
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } && {
19280 test -z "$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 } && test -s conftest$ac_exeext &&
19283 $as_test_x conftest$ac_exeext; then
19284 ac_cv_lib_nsl_inet_addr=yes
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19289 ac_cv_lib_nsl_inet_addr=no
19292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19293 conftest$ac_exeext conftest.$ac_ext
19294 LIBS=$ac_check_lib_save_LIBS
19296 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
19297 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
19298 if test $ac_cv_lib_nsl_inet_addr = yes; then
19299 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19301 { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
19302 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
19303 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 ac_check_lib_save_LIBS=$LIBS
19307 LIBS="-linet $LIBS"
19308 cat >conftest.$ac_ext <<_ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19315 /* Override any GCC internal prototype to avoid an error.
19316 Use char because int might match the return type of a GCC
19317 builtin and then its argument prototype would still apply. */
19325 return inet_addr ();
19330 rm -f conftest.$ac_objext conftest$ac_exeext
19331 if { (ac_try="$ac_link"
19332 case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_link") 2>conftest.er1
19339 grep -v '^ *+' conftest.er1 >conftest.err
19341 cat conftest.err >&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } && {
19344 test -z "$ac_c_werror_flag" ||
19345 test ! -s conftest.err
19346 } && test -s conftest$ac_exeext &&
19347 $as_test_x conftest$ac_exeext; then
19348 ac_cv_lib_inet_inet_addr=yes
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19353 ac_cv_lib_inet_inet_addr=no
19356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19357 conftest$ac_exeext conftest.$ac_ext
19358 LIBS=$ac_check_lib_save_LIBS
19360 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
19361 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
19362 if test $ac_cv_lib_inet_inet_addr = yes; then
19363 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19365 { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
19366 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
19367 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
19368 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
19369 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 ac_check_lib_save_LIBS=$LIBS
19373 LIBS="-lsocket -lnsl $LIBS"
19374 cat >conftest.$ac_ext <<_ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19391 return inet_addr ();
19396 rm -f conftest.$ac_objext conftest$ac_exeext
19397 if { (ac_try="$ac_link"
19398 case "(($ac_try" in
19399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400 *) ac_try_echo=$ac_try;;
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403 (eval "$ac_link") 2>conftest.er1
19405 grep -v '^ *+' conftest.er1 >conftest.err
19407 cat conftest.err >&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } && {
19410 test -z "$ac_c_werror_flag" ||
19411 test ! -s conftest.err
19412 } && test -s conftest$ac_exeext &&
19413 $as_test_x conftest$ac_exeext; then
19414 ac_cv_lib_socket_inet_addr_lnsl=yes
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19419 ac_cv_lib_socket_inet_addr_lnsl=no
19422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19423 conftest$ac_exeext conftest.$ac_ext
19424 LIBS=$ac_check_lib_save_LIBS
19426 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
19427 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
19428 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
19429 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
19440 { echo "$as_me:$LINENO: checking for syslog" >&5
19441 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
19442 if test "${ac_cv_func_syslog+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19453 #define syslog innocuous_syslog
19455 /* System header to define __stub macros and hopefully few prototypes,
19456 which can conflict with char syslog (); below.
19457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19458 <limits.h> exists even on freestanding compilers. */
19461 # include <limits.h>
19463 # include <assert.h>
19468 /* Override any GCC internal prototype to avoid an error.
19469 Use char because int might match the return type of a GCC
19470 builtin and then its argument prototype would still apply. */
19475 /* The GNU C library defines this for functions which it implements
19476 to always fail with ENOSYS. Some functions are actually named
19477 something starting with __ and the normal name is an alias. */
19478 #if defined __stub_syslog || defined __stub___syslog
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (ac_try="$ac_link"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_link") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && {
19504 test -z "$ac_c_werror_flag" ||
19505 test ! -s conftest.err
19506 } && test -s conftest$ac_exeext &&
19507 $as_test_x conftest$ac_exeext; then
19508 ac_cv_func_syslog=yes
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19513 ac_cv_func_syslog=no
19516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19517 conftest$ac_exeext conftest.$ac_ext
19519 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19520 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19521 if test $ac_cv_func_syslog = yes; then
19524 { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19525 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19526 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19527 echo $ECHO_N "(cached) $ECHO_C" >&6
19529 ac_check_lib_save_LIBS=$LIBS
19530 LIBS="-lsocket $LIBS"
19531 cat >conftest.$ac_ext <<_ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19538 /* Override any GCC internal prototype to avoid an error.
19539 Use char because int might match the return type of a GCC
19540 builtin and then its argument prototype would still apply. */
19553 rm -f conftest.$ac_objext conftest$ac_exeext
19554 if { (ac_try="$ac_link"
19555 case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_link") 2>conftest.er1
19562 grep -v '^ *+' conftest.er1 >conftest.err
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && {
19567 test -z "$ac_c_werror_flag" ||
19568 test ! -s conftest.err
19569 } && test -s conftest$ac_exeext &&
19570 $as_test_x conftest$ac_exeext; then
19571 ac_cv_lib_socket_syslog=yes
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 ac_cv_lib_socket_syslog=no
19579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19580 conftest$ac_exeext conftest.$ac_ext
19581 LIBS=$ac_check_lib_save_LIBS
19583 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19584 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19585 if test $ac_cv_lib_socket_syslog = yes; then
19586 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19588 { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19589 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19590 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 ac_check_lib_save_LIBS=$LIBS
19595 cat >conftest.$ac_ext <<_ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19602 /* Override any GCC internal prototype to avoid an error.
19603 Use char because int might match the return type of a GCC
19604 builtin and then its argument prototype would still apply. */
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (ac_try="$ac_link"
19619 case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624 (eval "$ac_link") 2>conftest.er1
19626 grep -v '^ *+' conftest.er1 >conftest.err
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } && {
19631 test -z "$ac_c_werror_flag" ||
19632 test ! -s conftest.err
19633 } && test -s conftest$ac_exeext &&
19634 $as_test_x conftest$ac_exeext; then
19635 ac_cv_lib_nsl_syslog=yes
19637 echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19640 ac_cv_lib_nsl_syslog=no
19643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19644 conftest$ac_exeext conftest.$ac_ext
19645 LIBS=$ac_check_lib_save_LIBS
19647 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19648 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19649 if test $ac_cv_lib_nsl_syslog = yes; then
19650 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19652 { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19653 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19654 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 ac_check_lib_save_LIBS=$LIBS
19658 LIBS="-linet $LIBS"
19659 cat >conftest.$ac_ext <<_ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h. */
19666 /* Override any GCC internal prototype to avoid an error.
19667 Use char because int might match the return type of a GCC
19668 builtin and then its argument prototype would still apply. */
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (ac_try="$ac_link"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_link") 2>conftest.er1
19690 grep -v '^ *+' conftest.er1 >conftest.err
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && {
19695 test -z "$ac_c_werror_flag" ||
19696 test ! -s conftest.err
19697 } && test -s conftest$ac_exeext &&
19698 $as_test_x conftest$ac_exeext; then
19699 ac_cv_lib_inet_syslog=yes
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 ac_cv_lib_inet_syslog=no
19707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19708 conftest$ac_exeext conftest.$ac_ext
19709 LIBS=$ac_check_lib_save_LIBS
19711 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19712 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19713 if test $ac_cv_lib_inet_syslog = yes; then
19714 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19724 for ac_func in getprogname
19726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19732 cat >conftest.$ac_ext <<_ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19740 #define $ac_func innocuous_$ac_func
19742 /* System header to define __stub macros and hopefully few prototypes,
19743 which can conflict with char $ac_func (); below.
19744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19745 <limits.h> exists even on freestanding compilers. */
19748 # include <limits.h>
19750 # include <assert.h>
19755 /* Override any GCC internal prototype to avoid an error.
19756 Use char because int might match the return type of a GCC
19757 builtin and then its argument prototype would still apply. */
19762 /* The GNU C library defines this for functions which it implements
19763 to always fail with ENOSYS. Some functions are actually named
19764 something starting with __ and the normal name is an alias. */
19765 #if defined __stub_$ac_func || defined __stub___$ac_func
19772 return $ac_func ();
19777 rm -f conftest.$ac_objext conftest$ac_exeext
19778 if { (ac_try="$ac_link"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_link") 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } && {
19791 test -z "$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19793 } && test -s conftest$ac_exeext &&
19794 $as_test_x conftest$ac_exeext; then
19795 eval "$as_ac_var=yes"
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 eval "$as_ac_var=no"
19803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19804 conftest$ac_exeext conftest.$ac_ext
19806 ac_res=`eval echo '${'$as_ac_var'}'`
19807 { echo "$as_me:$LINENO: result: $ac_res" >&5
19808 echo "${ECHO_T}$ac_res" >&6; }
19809 if test `eval echo '${'$as_ac_var'}'` = yes; then
19810 cat >>confdefs.h <<_ACEOF
19811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19816 { echo "$as_me:$LINENO: checking for __progname" >&5
19817 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19818 if test "${sudo_cv___progname+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 cat >conftest.$ac_ext <<_ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19832 extern char *__progname; (void)puts(__progname);
19837 rm -f conftest.$ac_objext conftest$ac_exeext
19838 if { (ac_try="$ac_link"
19839 case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_link") 2>conftest.er1
19846 grep -v '^ *+' conftest.er1 >conftest.err
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } && {
19851 test -z "$ac_c_werror_flag" ||
19852 test ! -s conftest.err
19853 } && test -s conftest$ac_exeext &&
19854 $as_test_x conftest$ac_exeext; then
19855 sudo_cv___progname=yes
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 sudo_cv___progname=no
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19867 if test "$sudo_cv___progname" = "yes"; then
19868 cat >>confdefs.h <<\_ACEOF
19869 #define HAVE___PROGNAME 1
19873 case " $LIBOBJS " in
19874 *" getprogname.$ac_objext "* ) ;;
19875 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19880 { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19881 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19887 netsvc_conf='/etc/netsvc.conf'
19888 nsswitch_conf='/etc/nsswitch.conf'
19889 if test ${with_netsvc-"no"} != "no"; then
19890 cat >>confdefs.h <<EOF
19891 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
19894 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
19895 elif test ${with_nsswitch-"yes"} != "no"; then
19896 cat >>confdefs.h <<EOF
19897 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
19900 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
19904 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19905 for auth in $AUTH_EXCL_DEF; do
19907 AIX_AUTH) with_aixauth=maybe;;
19908 BSD_AUTH) with_bsdauth=maybe;;
19909 PAM) with_pam=maybe;;
19910 SIA) CHECKSIA=true;;
19915 if test ${with_pam-"no"} != "no"; then
19917 *-ldl*) SUDO_LIBS="${SUDO_LIBS} -lpam"
19919 *) { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19920 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19921 if test "${ac_cv_lib_dl_main+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19924 ac_check_lib_save_LIBS=$LIBS
19926 cat >conftest.$ac_ext <<_ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19942 rm -f conftest.$ac_objext conftest$ac_exeext
19943 if { (ac_try="$ac_link"
19944 case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_link") 2>conftest.er1
19951 grep -v '^ *+' conftest.er1 >conftest.err
19953 cat conftest.err >&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } && {
19956 test -z "$ac_c_werror_flag" ||
19957 test ! -s conftest.err
19958 } && test -s conftest$ac_exeext &&
19959 $as_test_x conftest$ac_exeext; then
19960 ac_cv_lib_dl_main=yes
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 ac_cv_lib_dl_main=no
19968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19969 conftest$ac_exeext conftest.$ac_ext
19970 LIBS=$ac_check_lib_save_LIBS
19972 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19973 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19974 if test $ac_cv_lib_dl_main = yes; then
19975 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19977 SUDO_LIBS="${SUDO_LIBS} -lpam"
19980 ac_cv_lib_dl=ac_cv_lib_dl_main
19986 for ac_header in security/pam_appl.h pam/pam_appl.h
19988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 ac_res=`eval echo '${'$as_ac_Header'}'`
19996 { echo "$as_me:$LINENO: result: $ac_res" >&5
19997 echo "${ECHO_T}$ac_res" >&6; }
19999 # Is the header compilable?
20000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 $ac_includes_default
20009 #include <$ac_header>
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_compile") 2>conftest.er1
20020 grep -v '^ *+' conftest.er1 >conftest.err
20022 cat conftest.err >&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } && {
20025 test -z "$ac_c_werror_flag" ||
20026 test ! -s conftest.err
20027 } && test -s conftest.$ac_objext; then
20028 ac_header_compiler=yes
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_header_compiler=no
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20038 echo "${ECHO_T}$ac_header_compiler" >&6; }
20040 # Is the header present?
20041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 #include <$ac_header>
20051 if { (ac_try="$ac_cpp conftest.$ac_ext"
20052 case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20059 grep -v '^ *+' conftest.er1 >conftest.err
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } >/dev/null && {
20064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20065 test ! -s conftest.err
20067 ac_header_preproc=yes
20069 echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20072 ac_header_preproc=no
20075 rm -f conftest.err conftest.$ac_ext
20076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20077 echo "${ECHO_T}$ac_header_preproc" >&6; }
20079 # So? What about this header?
20080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20086 ac_header_preproc=yes
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20102 ## --------------------------------------- ##
20103 ## Report this to http://www.sudo.ws/bugs/ ##
20104 ## --------------------------------------- ##
20106 ) | sed "s/^/$as_me: WARNING: /" >&2
20109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20114 eval "$as_ac_Header=\$ac_header_preproc"
20116 ac_res=`eval echo '${'$as_ac_Header'}'`
20117 { echo "$as_me:$LINENO: result: $ac_res" >&5
20118 echo "${ECHO_T}$ac_res" >&6; }
20121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20122 cat >>confdefs.h <<_ACEOF
20123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20125 with_pam=yes; break
20130 if test "$with_pam" = "yes"; then
20131 cat >>confdefs.h <<\_ACEOF
20135 AUTH_OBJS="$AUTH_OBJS pam.o";
20137 { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
20138 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
20139 # Check whether --enable-pam_session was given.
20140 if test "${enable_pam_session+set}" = set; then
20141 enableval=$enable_pam_session; case "$enableval" in
20142 yes) { echo "$as_me:$LINENO: result: yes" >&5
20143 echo "${ECHO_T}yes" >&6; }
20145 no) { echo "$as_me:$LINENO: result: no" >&5
20146 echo "${ECHO_T}no" >&6; }
20148 cat >>confdefs.h <<\_ACEOF
20149 #define NO_PAM_SESSION
20153 *) { echo "$as_me:$LINENO: result: no" >&5
20154 echo "${ECHO_T}no" >&6; }
20155 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
20156 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
20160 { echo "$as_me:$LINENO: result: yes" >&5
20161 echo "${ECHO_T}yes" >&6; }
20165 *-*-linux*|*-*-solaris*)
20166 # dgettext() may be defined to dgettext_libintl in the
20167 # header file, so first check that it links w/ additional
20168 # libs, then try with -lintl
20169 cat >conftest.$ac_ext <<_ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20175 #include <libintl.h>
20179 (void)dgettext((char *)0, (char *)0);
20184 rm -f conftest.$ac_objext conftest$ac_exeext
20185 if { (ac_try="$ac_link"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_link") 2>conftest.er1
20193 grep -v '^ *+' conftest.er1 >conftest.err
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest$ac_exeext &&
20201 $as_test_x conftest$ac_exeext; then
20202 cat >>confdefs.h <<\_ACEOF
20203 #define HAVE_DGETTEXT 1
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20211 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20212 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 ac_check_lib_save_LIBS=$LIBS
20216 LIBS="-lintl $LIBS"
20217 cat >conftest.$ac_ext <<_ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20224 /* Override any GCC internal prototype to avoid an error.
20225 Use char because int might match the return type of a GCC
20226 builtin and then its argument prototype would still apply. */
20234 return dgettext ();
20239 rm -f conftest.$ac_objext conftest$ac_exeext
20240 if { (ac_try="$ac_link"
20241 case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_link") 2>conftest.er1
20248 grep -v '^ *+' conftest.er1 >conftest.err
20250 cat conftest.err >&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } && {
20253 test -z "$ac_c_werror_flag" ||
20254 test ! -s conftest.err
20255 } && test -s conftest$ac_exeext &&
20256 $as_test_x conftest$ac_exeext; then
20257 ac_cv_lib_intl_dgettext=yes
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20262 ac_cv_lib_intl_dgettext=no
20265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20266 conftest$ac_exeext conftest.$ac_ext
20267 LIBS=$ac_check_lib_save_LIBS
20269 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20270 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20271 if test $ac_cv_lib_intl_dgettext = yes; then
20272 LIBS="${LIBS} -lintl"
20273 cat >>confdefs.h <<\_ACEOF
20274 #define HAVE_DGETTEXT 1
20281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20282 conftest$ac_exeext conftest.$ac_ext
20288 if test ${with_aixauth-'no'} != "no"; then
20289 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
20290 { echo "$as_me:$LINENO: using AIX general authentication" >&5
20291 echo "$as_me: using AIX general authentication" >&6;}
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_AIXAUTH 1
20296 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
20297 SUDO_LIBS="${SUDO_LIBS} -ls"
20302 if test ${with_bsdauth-'no'} != "no"; then
20303 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20304 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20305 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20306 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20310 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20312 # Is the header compilable?
20313 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
20314 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 $ac_includes_default
20322 #include <bsd_auth.h>
20324 rm -f conftest.$ac_objext
20325 if { (ac_try="$ac_compile"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_compile") 2>conftest.er1
20333 grep -v '^ *+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest.$ac_objext; then
20341 ac_header_compiler=yes
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_header_compiler=no
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20351 echo "${ECHO_T}$ac_header_compiler" >&6; }
20353 # Is the header present?
20354 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20355 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20356 cat >conftest.$ac_ext <<_ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 #include <bsd_auth.h>
20364 if { (ac_try="$ac_cpp conftest.$ac_ext"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20372 grep -v '^ *+' conftest.er1 >conftest.err
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } >/dev/null && {
20377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20380 ac_header_preproc=yes
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 ac_header_preproc=no
20388 rm -f conftest.err conftest.$ac_ext
20389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20390 echo "${ECHO_T}$ac_header_preproc" >&6; }
20392 # So? What about this header?
20393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20395 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20396 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20398 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20399 ac_header_preproc=yes
20402 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20403 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20404 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
20405 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20407 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
20409 echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
20410 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20411 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20413 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20415 ## --------------------------------------- ##
20416 ## Report this to http://www.sudo.ws/bugs/ ##
20417 ## --------------------------------------- ##
20419 ) | sed "s/^/$as_me: WARNING: /" >&2
20422 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20423 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20424 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 ac_cv_header_bsd_auth_h=$ac_header_preproc
20429 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20430 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20433 if test $ac_cv_header_bsd_auth_h = yes; then
20434 cat >>confdefs.h <<\_ACEOF
20435 #define HAVE_BSD_AUTH_H 1
20438 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20439 BSDAUTH_USAGE='[-a auth_type] '
20440 AUTH_EXCL=BSD_AUTH; BAMAN=""
20442 { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20443 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20444 { (exit 1); exit 1; }; }
20450 if test ${CHECKSIA-'false'} = "true"; then
20452 for ac_func in sia_ses_init
20454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20468 #define $ac_func innocuous_$ac_func
20470 /* System header to define __stub macros and hopefully few prototypes,
20471 which can conflict with char $ac_func (); below.
20472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20473 <limits.h> exists even on freestanding compilers. */
20476 # include <limits.h>
20478 # include <assert.h>
20483 /* Override any GCC internal prototype to avoid an error.
20484 Use char because int might match the return type of a GCC
20485 builtin and then its argument prototype would still apply. */
20490 /* The GNU C library defines this for functions which it implements
20491 to always fail with ENOSYS. Some functions are actually named
20492 something starting with __ and the normal name is an alias. */
20493 #if defined __stub_$ac_func || defined __stub___$ac_func
20500 return $ac_func ();
20505 rm -f conftest.$ac_objext conftest$ac_exeext
20506 if { (ac_try="$ac_link"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_link") 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } && {
20519 test -z "$ac_c_werror_flag" ||
20520 test ! -s conftest.err
20521 } && test -s conftest$ac_exeext &&
20522 $as_test_x conftest$ac_exeext; then
20523 eval "$as_ac_var=yes"
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 eval "$as_ac_var=no"
20531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20532 conftest$ac_exeext conftest.$ac_ext
20534 ac_res=`eval echo '${'$as_ac_var'}'`
20535 { echo "$as_me:$LINENO: result: $ac_res" >&5
20536 echo "${ECHO_T}$ac_res" >&6; }
20537 if test `eval echo '${'$as_ac_var'}'` = yes; then
20538 cat >>confdefs.h <<_ACEOF
20539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20547 if test "$found" = "true"; then
20549 AUTH_OBJS="$AUTH_OBJS sia.o"
20553 if test ${with_fwtk-'no'} != "no"; then
20554 if test "$with_fwtk" != "yes"; then
20556 if test X"$with_rpath" = X"yes"; then
20558 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
20560 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
20564 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20566 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20567 blibpath_add="${blibpath_add}:${with_fwtk}"
20570 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20573 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20574 AUTH_OBJS="$AUTH_OBJS fwtk.o"
20577 if test ${with_SecurID-'no'} != "no"; then
20578 if test "$with_SecurID" != "yes"; then
20580 elif test -d /usr/ace/examples; then
20581 with_SecurID=/usr/ace/examples
20583 with_SecurID=/usr/ace
20585 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20586 _LDFLAGS="${LDFLAGS}"
20588 if test X"$with_rpath" = X"yes"; then
20590 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
20592 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
20596 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20598 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20599 blibpath_add="${blibpath_add}:${with_SecurID}"
20603 # Determine whether to use the new or old SecurID API
20605 { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20606 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20607 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 ac_check_lib_save_LIBS=$LIBS
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 /* Override any GCC internal prototype to avoid an error.
20623 Use char because int might match the return type of a GCC
20624 builtin and then its argument prototype would still apply. */
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest$ac_exeext &&
20654 $as_test_x conftest$ac_exeext; then
20655 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20664 conftest$ac_exeext conftest.$ac_ext
20665 LIBS=$ac_check_lib_save_LIBS
20667 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20668 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20669 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20671 AUTH_OBJS="$AUTH_OBJS securid5.o";
20672 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20676 if test X"$with_rpath" = X"yes"; then
20678 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
20680 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
20684 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20686 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20687 blibpath_add="${blibpath_add}:${with_SecurID}"
20693 AUTH_OBJS="$AUTH_OBJS securid.o";
20694 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20698 LDFLAGS="${_LDFLAGS}"
20702 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20703 for auth in $AUTH_DEF; do
20705 passwd) : ${with_passwd='maybe'};;
20710 if test ${with_kerb4-'no'} != "no"; then
20711 cat >>confdefs.h <<\_ACEOF
20712 #define HAVE_KERB4 1
20715 O_LDFLAGS="$LDFLAGS"
20716 if test "$with_kerb4" = "yes"; then
20718 O_CPPFLAGS="$CPPFLAGS"
20719 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20720 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20721 cat >conftest.$ac_ext <<_ACEOF
20724 if { (ac_try="$ac_cpp conftest.$ac_ext"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20732 grep -v '^ *+' conftest.er1 >conftest.err
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } >/dev/null && {
20737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20748 rm -f conftest.err conftest.$ac_ext
20750 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20753 if test X"$with_rpath" = X"yes"; then
20755 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
20757 *) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
20761 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20763 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20764 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20768 if test X"$with_rpath" = X"yes"; then
20770 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
20772 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
20776 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20778 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20779 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20782 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20783 if test "${ac_cv_header_krb_h+set}" = set; then
20784 { echo "$as_me:$LINENO: checking for krb.h" >&5
20785 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20786 if test "${ac_cv_header_krb_h+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20790 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20792 # Is the header compilable?
20793 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20794 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20795 cat >conftest.$ac_ext <<_ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 $ac_includes_default
20804 rm -f conftest.$ac_objext
20805 if { (ac_try="$ac_compile"
20806 case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_compile") 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } && {
20818 test -z "$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 } && test -s conftest.$ac_objext; then
20821 ac_header_compiler=yes
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 ac_header_compiler=no
20829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20831 echo "${ECHO_T}$ac_header_compiler" >&6; }
20833 # Is the header present?
20834 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20835 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20836 cat >conftest.$ac_ext <<_ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20844 if { (ac_try="$ac_cpp conftest.$ac_ext"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } >/dev/null && {
20857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20860 ac_header_preproc=yes
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 ac_header_preproc=no
20868 rm -f conftest.err conftest.$ac_ext
20869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20870 echo "${ECHO_T}$ac_header_preproc" >&6; }
20872 # So? What about this header?
20873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20875 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20876 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20878 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20879 ac_header_preproc=yes
20882 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20883 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
20885 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20887 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20888 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
20889 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
20890 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20891 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20892 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20893 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20895 ## --------------------------------------- ##
20896 ## Report this to http://www.sudo.ws/bugs/ ##
20897 ## --------------------------------------- ##
20899 ) | sed "s/^/$as_me: WARNING: /" >&2
20902 { echo "$as_me:$LINENO: checking for krb.h" >&5
20903 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20904 if test "${ac_cv_header_krb_h+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 ac_cv_header_krb_h=$ac_header_preproc
20909 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20910 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20913 if test $ac_cv_header_krb_h = yes; then
20921 if test X"$found" = X"no"; then
20922 { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
20923 echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
20926 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20927 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20928 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 ac_check_lib_save_LIBS=$LIBS
20933 cat >conftest.$ac_ext <<_ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20940 /* Override any GCC internal prototype to avoid an error.
20941 Use char because int might match the return type of a GCC
20942 builtin and then its argument prototype would still apply. */
20946 char des_cbc_encrypt ();
20950 return des_cbc_encrypt ();
20955 rm -f conftest.$ac_objext conftest$ac_exeext
20956 if { (ac_try="$ac_link"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_link") 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } && {
20969 test -z "$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 } && test -s conftest$ac_exeext &&
20972 $as_test_x conftest$ac_exeext; then
20973 ac_cv_lib_des_des_cbc_encrypt=yes
20975 echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20978 ac_cv_lib_des_des_cbc_encrypt=no
20981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20982 conftest$ac_exeext conftest.$ac_ext
20983 LIBS=$ac_check_lib_save_LIBS
20985 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20986 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20987 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20991 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20992 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20993 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-ldes425 $LIBS"
20998 cat >conftest.$ac_ext <<_ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21005 /* Override any GCC internal prototype to avoid an error.
21006 Use char because int might match the return type of a GCC
21007 builtin and then its argument prototype would still apply. */
21011 char des_cbc_encrypt ();
21015 return des_cbc_encrypt ();
21020 rm -f conftest.$ac_objext conftest$ac_exeext
21021 if { (ac_try="$ac_link"
21022 case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_link") 2>conftest.er1
21029 grep -v '^ *+' conftest.er1 >conftest.err
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && {
21034 test -z "$ac_c_werror_flag" ||
21035 test ! -s conftest.err
21036 } && test -s conftest$ac_exeext &&
21037 $as_test_x conftest$ac_exeext; then
21038 ac_cv_lib_des425_des_cbc_encrypt=yes
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21043 ac_cv_lib_des425_des_cbc_encrypt=no
21046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21047 conftest$ac_exeext conftest.$ac_ext
21048 LIBS=$ac_check_lib_save_LIBS
21050 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21051 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21052 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21061 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
21062 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
21063 cat >conftest.$ac_ext <<_ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21073 const char *tmp = krb4_version;
21078 rm -f conftest.$ac_objext
21079 if { (ac_try="$ac_compile"
21080 case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085 (eval "$ac_compile") 2>conftest.er1
21087 grep -v '^ *+' conftest.er1 >conftest.err
21089 cat conftest.err >&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } && {
21092 test -z "$ac_c_werror_flag" ||
21093 test ! -s conftest.err
21094 } && test -s conftest.$ac_objext; then
21096 { echo "$as_me:$LINENO: result: yes" >&5
21097 echo "${ECHO_T}yes" >&6; }
21098 K4LIBS="${K4LIBS} -lcom_err"
21099 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21100 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21101 if test "${ac_cv_lib_roken_main+set}" = set; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
21104 ac_check_lib_save_LIBS=$LIBS
21105 LIBS="-lroken $LIBS"
21106 cat >conftest.$ac_ext <<_ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21122 rm -f conftest.$ac_objext conftest$ac_exeext
21123 if { (ac_try="$ac_link"
21124 case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129 (eval "$ac_link") 2>conftest.er1
21131 grep -v '^ *+' conftest.er1 >conftest.err
21133 cat conftest.err >&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } && {
21136 test -z "$ac_c_werror_flag" ||
21137 test ! -s conftest.err
21138 } && test -s conftest$ac_exeext &&
21139 $as_test_x conftest$ac_exeext; then
21140 ac_cv_lib_roken_main=yes
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 ac_cv_lib_roken_main=no
21148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21149 conftest$ac_exeext conftest.$ac_ext
21150 LIBS=$ac_check_lib_save_LIBS
21152 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21153 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21154 if test $ac_cv_lib_roken_main = yes; then
21155 K4LIBS="${K4LIBS} -lroken"
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21164 { echo "$as_me:$LINENO: result: no" >&5
21165 echo "${ECHO_T}no" >&6; }
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
21172 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
21173 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
21174 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 ac_check_lib_save_LIBS=$LIBS
21178 LIBS="-lkrb $K4LIBS $LIBS"
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (ac_try="$ac_link"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_link") 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && {
21209 test -z "$ac_c_werror_flag" ||
21210 test ! -s conftest.err
21211 } && test -s conftest$ac_exeext &&
21212 $as_test_x conftest$ac_exeext; then
21213 eval "$as_ac_Lib=yes"
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 eval "$as_ac_Lib=no"
21221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21222 conftest$ac_exeext conftest.$ac_ext
21223 LIBS=$ac_check_lib_save_LIBS
21225 ac_res=`eval echo '${'$as_ac_Lib'}'`
21226 { echo "$as_me:$LINENO: result: $ac_res" >&5
21227 echo "${ECHO_T}$ac_res" >&6; }
21228 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21229 K4LIBS="-lkrb $K4LIBS"
21232 as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
21233 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
21234 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
21235 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 ac_check_lib_save_LIBS=$LIBS
21239 LIBS="-lkrb4 $K4LIBS $LIBS"
21240 cat >conftest.$ac_ext <<_ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21256 rm -f conftest.$ac_objext conftest$ac_exeext
21257 if { (ac_try="$ac_link"
21258 case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_link") 2>conftest.er1
21265 grep -v '^ *+' conftest.er1 >conftest.err
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } && {
21270 test -z "$ac_c_werror_flag" ||
21271 test ! -s conftest.err
21272 } && test -s conftest$ac_exeext &&
21273 $as_test_x conftest$ac_exeext; then
21274 eval "$as_ac_Lib=yes"
21276 echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21279 eval "$as_ac_Lib=no"
21282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21283 conftest$ac_exeext conftest.$ac_ext
21284 LIBS=$ac_check_lib_save_LIBS
21286 ac_res=`eval echo '${'$as_ac_Lib'}'`
21287 { echo "$as_me:$LINENO: result: $ac_res" >&5
21288 echo "${ECHO_T}$ac_res" >&6; }
21289 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21290 K4LIBS="-lkrb4 $K4LIBS"
21292 K4LIBS="-lkrb $K4LIBS"
21293 { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
21294 echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
21301 LDFLAGS="$O_LDFLAGS"
21302 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
21303 AUTH_OBJS="$AUTH_OBJS kerb4.o"
21306 if test ${with_kerb5-'no'} != "no"; then
21307 # Extract the first word of "krb5-config", so it can be a program name with args.
21308 set dummy krb5-config; ac_word=$2
21309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21311 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
21312 echo $ECHO_N "(cached) $ECHO_C" >&6
21314 if test -n "$KRB5CONFIG"; then
21315 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
21317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21318 for as_dir in $PATH
21321 test -z "$as_dir" && as_dir=.
21322 for ac_exec_ext in '' $ac_executable_extensions; do
21323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21324 ac_cv_prog_KRB5CONFIG="yes"
21325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21332 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
21335 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
21336 if test -n "$KRB5CONFIG"; then
21337 { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
21338 echo "${ECHO_T}$KRB5CONFIG" >&6; }
21340 { echo "$as_me:$LINENO: result: no" >&5
21341 echo "${ECHO_T}no" >&6; }
21345 if test -n "$KRB5CONFIG"; then
21346 cat >>confdefs.h <<\_ACEOF
21347 #define HAVE_KERB5 1
21350 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21351 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
21352 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
21353 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21354 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21355 cat >conftest.$ac_ext <<_ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21365 const char *tmp = heimdal_version;
21370 rm -f conftest.$ac_objext
21371 if { (ac_try="$ac_compile"
21372 case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_compile") 2>conftest.er1
21379 grep -v '^ *+' conftest.er1 >conftest.err
21381 cat conftest.err >&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } && {
21384 test -z "$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21386 } && test -s conftest.$ac_objext; then
21388 { echo "$as_me:$LINENO: result: yes" >&5
21389 echo "${ECHO_T}yes" >&6; }
21390 cat >>confdefs.h <<\_ACEOF
21391 #define HAVE_HEIMDAL 1
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21400 { echo "$as_me:$LINENO: result: no" >&5
21401 echo "${ECHO_T}no" >&6; }
21406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_KERB5 1
21414 if test "$with_kerb5" = "yes"; then
21416 O_CPPFLAGS="$CPPFLAGS"
21417 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21418 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21419 cat >conftest.$ac_ext <<_ACEOF
21422 if { (ac_try="$ac_cpp conftest.$ac_ext"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21430 grep -v '^ *+' conftest.er1 >conftest.err
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } >/dev/null && {
21435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21440 echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21446 rm -f conftest.err conftest.$ac_ext
21448 if test X"$found" = X"no"; then
21449 CPPFLAGS="$O_CPPFLAGS"
21450 { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
21451 echo "$as_me: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
21455 if test X"$with_rpath" = X"yes"; then
21457 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
21459 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
21463 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21465 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21466 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21469 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21472 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21473 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21484 const char *tmp = heimdal_version;
21489 rm -f conftest.$ac_objext
21490 if { (ac_try="$ac_compile"
21491 case "(($ac_try" in
21492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493 *) ac_try_echo=$ac_try;;
21495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496 (eval "$ac_compile") 2>conftest.er1
21498 grep -v '^ *+' conftest.er1 >conftest.err
21500 cat conftest.err >&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest.$ac_objext; then
21507 { echo "$as_me:$LINENO: result: yes" >&5
21508 echo "${ECHO_T}yes" >&6; }
21509 cat >>confdefs.h <<\_ACEOF
21510 #define HAVE_HEIMDAL 1
21513 # XXX - need to check whether -lcrypo is needed!
21514 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21515 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21516 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21517 if test "${ac_cv_lib_roken_main+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21520 ac_check_lib_save_LIBS=$LIBS
21521 LIBS="-lroken $LIBS"
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21538 rm -f conftest.$ac_objext conftest$ac_exeext
21539 if { (ac_try="$ac_link"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_link") 2>conftest.er1
21547 grep -v '^ *+' conftest.er1 >conftest.err
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest$ac_exeext &&
21555 $as_test_x conftest$ac_exeext; then
21556 ac_cv_lib_roken_main=yes
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 ac_cv_lib_roken_main=no
21564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21565 conftest$ac_exeext conftest.$ac_ext
21566 LIBS=$ac_check_lib_save_LIBS
21568 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21569 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21570 if test $ac_cv_lib_roken_main = yes; then
21571 SUDO_LIBS="${SUDO_LIBS} -lroken"
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21580 { echo "$as_me:$LINENO: result: no" >&5
21581 echo "${ECHO_T}no" >&6; }
21582 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21583 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21584 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21585 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21588 ac_check_lib_save_LIBS=$LIBS
21589 LIBS="-lkrb5support $LIBS"
21590 cat >conftest.$ac_ext <<_ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21606 rm -f conftest.$ac_objext conftest$ac_exeext
21607 if { (ac_try="$ac_link"
21608 case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613 (eval "$ac_link") 2>conftest.er1
21615 grep -v '^ *+' conftest.er1 >conftest.err
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } && {
21620 test -z "$ac_c_werror_flag" ||
21621 test ! -s conftest.err
21622 } && test -s conftest$ac_exeext &&
21623 $as_test_x conftest$ac_exeext; then
21624 ac_cv_lib_krb5support_main=yes
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 ac_cv_lib_krb5support_main=no
21632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21633 conftest$ac_exeext conftest.$ac_ext
21634 LIBS=$ac_check_lib_save_LIBS
21636 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21637 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21638 if test $ac_cv_lib_krb5support_main = yes; then
21639 SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
21645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21646 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21648 LIBS="${LIBS} ${SUDO_LIBS}"
21651 for ac_func in krb5_verify_user krb5_init_secure_context
21653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21667 #define $ac_func innocuous_$ac_func
21669 /* System header to define __stub macros and hopefully few prototypes,
21670 which can conflict with char $ac_func (); below.
21671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21672 <limits.h> exists even on freestanding compilers. */
21675 # include <limits.h>
21677 # include <assert.h>
21682 /* Override any GCC internal prototype to avoid an error.
21683 Use char because int might match the return type of a GCC
21684 builtin and then its argument prototype would still apply. */
21689 /* The GNU C library defines this for functions which it implements
21690 to always fail with ENOSYS. Some functions are actually named
21691 something starting with __ and the normal name is an alias. */
21692 #if defined __stub_$ac_func || defined __stub___$ac_func
21699 return $ac_func ();
21704 rm -f conftest.$ac_objext conftest$ac_exeext
21705 if { (ac_try="$ac_link"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_link") 2>conftest.er1
21713 grep -v '^ *+' conftest.er1 >conftest.err
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } && {
21718 test -z "$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21720 } && test -s conftest$ac_exeext &&
21721 $as_test_x conftest$ac_exeext; then
21722 eval "$as_ac_var=yes"
21724 echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21727 eval "$as_ac_var=no"
21730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21731 conftest$ac_exeext conftest.$ac_ext
21733 ac_res=`eval echo '${'$as_ac_var'}'`
21734 { echo "$as_me:$LINENO: result: $ac_res" >&5
21735 echo "${ECHO_T}$ac_res" >&6; }
21736 if test `eval echo '${'$as_ac_var'}'` = yes; then
21737 cat >>confdefs.h <<_ACEOF
21738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21745 for ac_func in krb5_get_init_creds_opt_alloc
21747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21751 echo $ECHO_N "(cached) $ECHO_C" >&6
21753 cat >conftest.$ac_ext <<_ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21761 #define $ac_func innocuous_$ac_func
21763 /* System header to define __stub macros and hopefully few prototypes,
21764 which can conflict with char $ac_func (); below.
21765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21766 <limits.h> exists even on freestanding compilers. */
21769 # include <limits.h>
21771 # include <assert.h>
21776 /* Override any GCC internal prototype to avoid an error.
21777 Use char because int might match the return type of a GCC
21778 builtin and then its argument prototype would still apply. */
21783 /* The GNU C library defines this for functions which it implements
21784 to always fail with ENOSYS. Some functions are actually named
21785 something starting with __ and the normal name is an alias. */
21786 #if defined __stub_$ac_func || defined __stub___$ac_func
21793 return $ac_func ();
21798 rm -f conftest.$ac_objext conftest$ac_exeext
21799 if { (ac_try="$ac_link"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_link") 2>conftest.er1
21807 grep -v '^ *+' conftest.er1 >conftest.err
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest$ac_exeext &&
21815 $as_test_x conftest$ac_exeext; then
21816 eval "$as_ac_var=yes"
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 eval "$as_ac_var=no"
21824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21825 conftest$ac_exeext conftest.$ac_ext
21827 ac_res=`eval echo '${'$as_ac_var'}'`
21828 { echo "$as_me:$LINENO: result: $ac_res" >&5
21829 echo "${ECHO_T}$ac_res" >&6; }
21830 if test `eval echo '${'$as_ac_var'}'` = yes; then
21831 cat >>confdefs.h <<_ACEOF
21832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21835 { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a context" >&5
21836 echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a context... $ECHO_C" >&6; }
21837 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 cat >conftest.$ac_ext <<_ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21851 krb5_get_init_creds_opt_free(NULL, NULL);
21856 rm -f conftest.$ac_objext
21857 if { (ac_try="$ac_compile"
21858 case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_compile") 2>conftest.er1
21865 grep -v '^ *+' conftest.er1 >conftest.err
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } && {
21870 test -z "$ac_c_werror_flag" ||
21871 test ! -s conftest.err
21872 } && test -s conftest.$ac_objext; then
21873 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21878 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886 { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
21887 echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
21892 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
21893 cat >>confdefs.h <<\_ACEOF
21894 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
21901 if test ${with_AFS-'no'} = "yes"; then
21903 # looks like the "standard" place for AFS libs is /usr/afsws/lib
21904 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21905 for i in $AFSLIBDIRS; do
21906 if test -d ${i}; then
21908 if test X"$with_rpath" = X"yes"; then
21910 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,+b,$i"
21912 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,-R$i"
21916 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21918 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21919 blibpath_add="${blibpath_add}:$i"
21922 FOUND_AFSLIBDIR=true
21925 if test -z "$FOUND_AFSLIBDIR"; then
21926 { echo "$as_me:$LINENO: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
21927 echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
21930 # Order is important here. Note that we build AFS_LIBS from right to left
21931 # since AFS_LIBS may be initialized with BSD compat libs that must go last
21932 AFS_LIBS="-laudit ${AFS_LIBS}"
21933 for i in $AFSLIBDIRS; do
21934 if test -f ${i}/util.a; then
21935 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21940 if test -z "$FOUND_UTIL_A"; then
21941 AFS_LIBS="-lutil ${AFS_LIBS}"
21943 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21945 # AFS includes may live in /usr/include on some machines...
21946 for i in /usr/afsws/include; do
21947 if test -d ${i}; then
21948 CPPFLAGS="${CPPFLAGS} -I${i}"
21949 FOUND_AFSINCDIR=true
21953 if test -z "$FOUND_AFSLIBDIR"; then
21954 { echo "$as_me:$LINENO: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&5
21955 echo "$as_me: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&2;}
21958 AUTH_OBJS="$AUTH_OBJS afs.o"
21961 if test ${with_DCE-'no'} = "yes"; then
21962 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21963 SUDO_LIBS="${SUDO_LIBS} -ldce"
21964 AUTH_OBJS="$AUTH_OBJS dce.o"
21967 if test ${with_skey-'no'} = "yes"; then
21968 O_LDFLAGS="$LDFLAGS"
21969 if test "$with_skey" != "yes"; then
21970 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21972 if test X"$with_rpath" = X"yes"; then
21974 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
21976 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
21980 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21982 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21983 blibpath_add="${blibpath_add}:${with_skey}/lib"
21987 if test X"$with_rpath" = X"yes"; then
21989 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
21991 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
21995 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21997 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21998 blibpath_add="${blibpath_add}:${with_skey}/lib"
22001 cat >conftest.$ac_ext <<_ACEOF
22004 if { (ac_try="$ac_cpp conftest.$ac_ext"
22005 case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22012 grep -v '^ *+' conftest.er1 >conftest.err
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } >/dev/null && {
22017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22018 test ! -s conftest.err
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22028 rm -f conftest.err conftest.$ac_ext
22031 O_CPPFLAGS="$CPPFLAGS"
22032 for dir in "" "/usr/local" "/usr/contrib"; do
22033 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
22034 cat >conftest.$ac_ext <<_ACEOF
22037 if { (ac_try="$ac_cpp conftest.$ac_ext"
22038 case "(($ac_try" in
22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22045 grep -v '^ *+' conftest.er1 >conftest.err
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } >/dev/null && {
22050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22051 test ! -s conftest.err
22055 echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22061 rm -f conftest.err conftest.$ac_ext
22063 if test "$found" = "no" -o -z "$dir"; then
22064 CPPFLAGS="$O_CPPFLAGS"
22067 if test X"$with_rpath" = X"yes"; then
22069 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
22071 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
22075 LDFLAGS="${LDFLAGS} -L${dir}/lib"
22077 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22078 blibpath_add="${blibpath_add}:${dir}/lib"
22082 if test X"$with_rpath" = X"yes"; then
22084 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
22086 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
22090 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
22092 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22093 blibpath_add="${blibpath_add}:${dir}/lib"
22098 if test "$found" = "no"; then
22099 { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
22100 echo "$as_me: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&2;}
22102 { echo "$as_me:$LINENO: checking for main in -lskey" >&5
22103 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
22104 if test "${ac_cv_lib_skey_main+set}" = set; then
22105 echo $ECHO_N "(cached) $ECHO_C" >&6
22107 ac_check_lib_save_LIBS=$LIBS
22108 LIBS="-lskey $LIBS"
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22125 rm -f conftest.$ac_objext conftest$ac_exeext
22126 if { (ac_try="$ac_link"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_link") 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } && {
22139 test -z "$ac_c_werror_flag" ||
22140 test ! -s conftest.err
22141 } && test -s conftest$ac_exeext &&
22142 $as_test_x conftest$ac_exeext; then
22143 ac_cv_lib_skey_main=yes
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ac_cv_lib_skey_main=no
22151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22152 conftest$ac_exeext conftest.$ac_ext
22153 LIBS=$ac_check_lib_save_LIBS
22155 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
22156 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
22157 if test $ac_cv_lib_skey_main = yes; then
22160 { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
22161 echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
22164 { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
22165 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
22166 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 ac_check_lib_save_LIBS=$LIBS
22170 LIBS="-lskey $LIBS"
22171 cat >conftest.$ac_ext <<_ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22178 /* Override any GCC internal prototype to avoid an error.
22179 Use char because int might match the return type of a GCC
22180 builtin and then its argument prototype would still apply. */
22184 char skeyaccess ();
22188 return skeyaccess ();
22193 rm -f conftest.$ac_objext conftest$ac_exeext
22194 if { (ac_try="$ac_link"
22195 case "(($ac_try" in
22196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197 *) ac_try_echo=$ac_try;;
22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200 (eval "$ac_link") 2>conftest.er1
22202 grep -v '^ *+' conftest.er1 >conftest.err
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } && {
22207 test -z "$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22209 } && test -s conftest$ac_exeext &&
22210 $as_test_x conftest$ac_exeext; then
22211 ac_cv_lib_skey_skeyaccess=yes
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 ac_cv_lib_skey_skeyaccess=no
22219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22220 conftest$ac_exeext conftest.$ac_ext
22221 LIBS=$ac_check_lib_save_LIBS
22223 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
22224 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
22225 if test $ac_cv_lib_skey_skeyaccess = yes; then
22226 cat >>confdefs.h <<\_ACEOF
22227 #define HAVE_SKEYACCESS 1
22232 LDFLAGS="$O_LDFLAGS"
22233 SUDO_LIBS="${SUDO_LIBS} -lskey"
22234 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22237 if test ${with_opie-'no'} = "yes"; then
22238 O_LDFLAGS="$LDFLAGS"
22239 if test "$with_opie" != "yes"; then
22240 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
22242 if test X"$with_rpath" = X"yes"; then
22244 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
22246 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
22250 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
22252 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22253 blibpath_add="${blibpath_add}:${with_opie}/lib"
22257 if test X"$with_rpath" = X"yes"; then
22259 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
22261 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
22265 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
22267 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22268 blibpath_add="${blibpath_add}:${with_opie}/lib"
22271 cat >conftest.$ac_ext <<_ACEOF
22274 if { (ac_try="$ac_cpp conftest.$ac_ext"
22275 case "(($ac_try" in
22276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22282 grep -v '^ *+' conftest.er1 >conftest.err
22284 cat conftest.err >&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } >/dev/null && {
22287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22288 test ! -s conftest.err
22292 echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22298 rm -f conftest.err conftest.$ac_ext
22301 O_CPPFLAGS="$CPPFLAGS"
22302 for dir in "" "/usr/local" "/usr/contrib"; do
22303 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
22304 cat >conftest.$ac_ext <<_ACEOF
22307 if { (ac_try="$ac_cpp conftest.$ac_ext"
22308 case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22315 grep -v '^ *+' conftest.er1 >conftest.err
22317 cat conftest.err >&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } >/dev/null && {
22320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22321 test ! -s conftest.err
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22331 rm -f conftest.err conftest.$ac_ext
22333 if test "$found" = "no" -o -z "$dir"; then
22334 CPPFLAGS="$O_CPPFLAGS"
22337 if test X"$with_rpath" = X"yes"; then
22339 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
22341 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
22345 LDFLAGS="${LDFLAGS} -L${dir}/lib"
22347 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22348 blibpath_add="${blibpath_add}:${dir}/lib"
22352 if test X"$with_rpath" = X"yes"; then
22354 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
22356 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
22360 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
22362 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22363 blibpath_add="${blibpath_add}:${dir}/lib"
22368 if test "$found" = "no"; then
22369 { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
22370 echo "$as_me: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&2;}
22372 { echo "$as_me:$LINENO: checking for main in -lopie" >&5
22373 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
22374 if test "${ac_cv_lib_opie_main+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 ac_check_lib_save_LIBS=$LIBS
22378 LIBS="-lopie $LIBS"
22379 cat >conftest.$ac_ext <<_ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396 if { (ac_try="$ac_link"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402 (eval "$ac_link") 2>conftest.er1
22404 grep -v '^ *+' conftest.er1 >conftest.err
22406 cat conftest.err >&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } && {
22409 test -z "$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 } && test -s conftest$ac_exeext &&
22412 $as_test_x conftest$ac_exeext; then
22413 ac_cv_lib_opie_main=yes
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_cv_lib_opie_main=no
22421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22422 conftest$ac_exeext conftest.$ac_ext
22423 LIBS=$ac_check_lib_save_LIBS
22425 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
22426 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
22427 if test $ac_cv_lib_opie_main = yes; then
22430 { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
22431 echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
22434 LDFLAGS="$O_LDFLAGS"
22435 SUDO_LIBS="${SUDO_LIBS} -lopie"
22436 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22439 if test ${with_passwd-'no'} != "no"; then
22440 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
22441 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22442 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22443 if test "${ac_cv_search_crypt+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 ac_func_search_save_LIBS=$LIBS
22447 cat >conftest.$ac_ext <<_ACEOF
22450 cat confdefs.h >>conftest.$ac_ext
22451 cat >>conftest.$ac_ext <<_ACEOF
22452 /* end confdefs.h. */
22454 /* Override any GCC internal prototype to avoid an error.
22455 Use char because int might match the return type of a GCC
22456 builtin and then its argument prototype would still apply. */
22469 for ac_lib in '' crypt crypt_d ufc; do
22470 if test -z "$ac_lib"; then
22471 ac_res="none required"
22474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22476 rm -f conftest.$ac_objext conftest$ac_exeext
22477 if { (ac_try="$ac_link"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_link") 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } && {
22490 test -z "$ac_c_werror_flag" ||
22491 test ! -s conftest.err
22492 } && test -s conftest$ac_exeext &&
22493 $as_test_x conftest$ac_exeext; then
22494 ac_cv_search_crypt=$ac_res
22496 echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22504 if test "${ac_cv_search_crypt+set}" = set; then
22508 if test "${ac_cv_search_crypt+set}" = set; then
22511 ac_cv_search_crypt=no
22513 rm conftest.$ac_ext
22514 LIBS=$ac_func_search_save_LIBS
22516 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22517 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22518 ac_res=$ac_cv_search_crypt
22519 if test "$ac_res" != no; then
22520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22521 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22526 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
22528 LIBS="$LIBS $shadow_libs"
22531 for ac_func in $shadow_funcs
22533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22537 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 cat >conftest.$ac_ext <<_ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22547 #define $ac_func innocuous_$ac_func
22549 /* System header to define __stub macros and hopefully few prototypes,
22550 which can conflict with char $ac_func (); below.
22551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22552 <limits.h> exists even on freestanding compilers. */
22555 # include <limits.h>
22557 # include <assert.h>
22562 /* Override any GCC internal prototype to avoid an error.
22563 Use char because int might match the return type of a GCC
22564 builtin and then its argument prototype would still apply. */
22569 /* The GNU C library defines this for functions which it implements
22570 to always fail with ENOSYS. Some functions are actually named
22571 something starting with __ and the normal name is an alias. */
22572 #if defined __stub_$ac_func || defined __stub___$ac_func
22579 return $ac_func ();
22584 rm -f conftest.$ac_objext conftest$ac_exeext
22585 if { (ac_try="$ac_link"
22586 case "(($ac_try" in
22587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588 *) ac_try_echo=$ac_try;;
22590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591 (eval "$ac_link") 2>conftest.er1
22593 grep -v '^ *+' conftest.er1 >conftest.err
22595 cat conftest.err >&5
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); } && {
22598 test -z "$ac_c_werror_flag" ||
22599 test ! -s conftest.err
22600 } && test -s conftest$ac_exeext &&
22601 $as_test_x conftest$ac_exeext; then
22602 eval "$as_ac_var=yes"
22604 echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22607 eval "$as_ac_var=no"
22610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22611 conftest$ac_exeext conftest.$ac_ext
22613 ac_res=`eval echo '${'$as_ac_var'}'`
22614 { echo "$as_me:$LINENO: result: $ac_res" >&5
22615 echo "${ECHO_T}$ac_res" >&6; }
22616 if test `eval echo '${'$as_ac_var'}'` = yes; then
22617 cat >>confdefs.h <<_ACEOF
22618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22624 if test "$found" = "yes"; then
22625 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22626 elif test -n "$shadow_libs_optional"; then
22627 LIBS="$LIBS $shadow_libs_optional"
22629 for ac_func in $shadow_funcs
22631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22645 #define $ac_func innocuous_$ac_func
22647 /* System header to define __stub macros and hopefully few prototypes,
22648 which can conflict with char $ac_func (); below.
22649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22650 <limits.h> exists even on freestanding compilers. */
22653 # include <limits.h>
22655 # include <assert.h>
22660 /* Override any GCC internal prototype to avoid an error.
22661 Use char because int might match the return type of a GCC
22662 builtin and then its argument prototype would still apply. */
22667 /* The GNU C library defines this for functions which it implements
22668 to always fail with ENOSYS. Some functions are actually named
22669 something starting with __ and the normal name is an alias. */
22670 #if defined __stub_$ac_func || defined __stub___$ac_func
22677 return $ac_func ();
22682 rm -f conftest.$ac_objext conftest$ac_exeext
22683 if { (ac_try="$ac_link"
22684 case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_link") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest$ac_exeext &&
22699 $as_test_x conftest$ac_exeext; then
22700 eval "$as_ac_var=yes"
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 eval "$as_ac_var=no"
22708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22709 conftest$ac_exeext conftest.$ac_ext
22711 ac_res=`eval echo '${'$as_ac_var'}'`
22712 { echo "$as_me:$LINENO: result: $ac_res" >&5
22713 echo "${ECHO_T}$ac_res" >&6; }
22714 if test `eval echo '${'$as_ac_var'}'` = yes; then
22715 cat >>confdefs.h <<_ACEOF
22716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22722 if test "$found" = "yes"; then
22723 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22726 if test "$found" = "yes"; then
22727 case "$shadow_funcs" in
22728 *getprpwnam*) SECUREWARE=1;;
22730 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22736 if test "$CHECKSHADOW" = "true"; then
22737 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22738 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22739 if test "${ac_cv_search_getspnam+set}" = set; then
22740 echo $ECHO_N "(cached) $ECHO_C" >&6
22742 ac_func_search_save_LIBS=$LIBS
22743 cat >conftest.$ac_ext <<_ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22750 /* Override any GCC internal prototype to avoid an error.
22751 Use char because int might match the return type of a GCC
22752 builtin and then its argument prototype would still apply. */
22760 return getspnam ();
22765 for ac_lib in '' gen; do
22766 if test -z "$ac_lib"; then
22767 ac_res="none required"
22770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22772 rm -f conftest.$ac_objext conftest$ac_exeext
22773 if { (ac_try="$ac_link"
22774 case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779 (eval "$ac_link") 2>conftest.er1
22781 grep -v '^ *+' conftest.er1 >conftest.err
22783 cat conftest.err >&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } && {
22786 test -z "$ac_c_werror_flag" ||
22787 test ! -s conftest.err
22788 } && test -s conftest$ac_exeext &&
22789 $as_test_x conftest$ac_exeext; then
22790 ac_cv_search_getspnam=$ac_res
22792 echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22800 if test "${ac_cv_search_getspnam+set}" = set; then
22804 if test "${ac_cv_search_getspnam+set}" = set; then
22807 ac_cv_search_getspnam=no
22809 rm conftest.$ac_ext
22810 LIBS=$ac_func_search_save_LIBS
22812 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22813 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22814 ac_res=$ac_cv_search_getspnam
22815 if test "$ac_res" != no; then
22816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_GETSPNAM 1
22820 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22824 if test "$CHECKSHADOW" = "true"; then
22825 { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22826 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22827 if test "${ac_cv_search_getprpwnam+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 ac_func_search_save_LIBS=$LIBS
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22838 /* Override any GCC internal prototype to avoid an error.
22839 Use char because int might match the return type of a GCC
22840 builtin and then its argument prototype would still apply. */
22844 char getprpwnam ();
22848 return getprpwnam ();
22853 for ac_lib in '' sec security prot; do
22854 if test -z "$ac_lib"; then
22855 ac_res="none required"
22858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22860 rm -f conftest.$ac_objext conftest$ac_exeext
22861 if { (ac_try="$ac_link"
22862 case "(($ac_try" in
22863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864 *) ac_try_echo=$ac_try;;
22866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867 (eval "$ac_link") 2>conftest.er1
22869 grep -v '^ *+' conftest.er1 >conftest.err
22871 cat conftest.err >&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } && {
22874 test -z "$ac_c_werror_flag" ||
22875 test ! -s conftest.err
22876 } && test -s conftest$ac_exeext &&
22877 $as_test_x conftest$ac_exeext; then
22878 ac_cv_search_getprpwnam=$ac_res
22880 echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22888 if test "${ac_cv_search_getprpwnam+set}" = set; then
22892 if test "${ac_cv_search_getprpwnam+set}" = set; then
22895 ac_cv_search_getprpwnam=no
22897 rm conftest.$ac_ext
22898 LIBS=$ac_func_search_save_LIBS
22900 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22901 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22902 ac_res=$ac_cv_search_getprpwnam
22903 if test "$ac_res" != no; then
22904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22905 cat >>confdefs.h <<\_ACEOF
22906 #define HAVE_GETPRPWNAM 1
22908 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22912 if test -n "$SECUREWARE"; then
22916 for ac_func in bigcrypt set_auth_parameters initprivs
22918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22922 echo $ECHO_N "(cached) $ECHO_C" >&6
22924 cat >conftest.$ac_ext <<_ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22932 #define $ac_func innocuous_$ac_func
22934 /* System header to define __stub macros and hopefully few prototypes,
22935 which can conflict with char $ac_func (); below.
22936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22937 <limits.h> exists even on freestanding compilers. */
22940 # include <limits.h>
22942 # include <assert.h>
22947 /* Override any GCC internal prototype to avoid an error.
22948 Use char because int might match the return type of a GCC
22949 builtin and then its argument prototype would still apply. */
22954 /* The GNU C library defines this for functions which it implements
22955 to always fail with ENOSYS. Some functions are actually named
22956 something starting with __ and the normal name is an alias. */
22957 #if defined __stub_$ac_func || defined __stub___$ac_func
22964 return $ac_func ();
22969 rm -f conftest.$ac_objext conftest$ac_exeext
22970 if { (ac_try="$ac_link"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_link") 2>conftest.er1
22978 grep -v '^ *+' conftest.er1 >conftest.err
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } && {
22983 test -z "$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 } && test -s conftest$ac_exeext &&
22986 $as_test_x conftest$ac_exeext; then
22987 eval "$as_ac_var=yes"
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 eval "$as_ac_var=no"
22995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22996 conftest$ac_exeext conftest.$ac_ext
22998 ac_res=`eval echo '${'$as_ac_var'}'`
22999 { echo "$as_me:$LINENO: result: $ac_res" >&5
23000 echo "${ECHO_T}$ac_res" >&6; }
23001 if test `eval echo '${'$as_ac_var'}'` = yes; then
23002 cat >>confdefs.h <<_ACEOF
23003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23009 AUTH_OBJS="$AUTH_OBJS secureware.o"
23013 if test ${with_ldap-'no'} != "no"; then
23014 _LDFLAGS="$LDFLAGS"
23015 if test "$with_ldap" != "yes"; then
23017 if test X"$with_rpath" = X"yes"; then
23019 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
23021 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
23025 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
23027 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
23028 blibpath_add="${blibpath_add}:${with_ldap}/lib"
23032 if test X"$with_rpath" = X"yes"; then
23034 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
23036 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
23040 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
23042 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
23043 blibpath_add="${blibpath_add}:${with_ldap}/lib"
23046 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
23049 SUDO_OBJS="${SUDO_OBJS} ldap.o"
23052 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
23053 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
23057 for l in -lldap -llber '-lssl -lcrypto'; do
23059 LDAP_LIBS="${LDAP_LIBS} $l"
23060 cat >conftest.$ac_ext <<_ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23066 #include <sys/types.h>
23072 (void)ldap_init(0, 0)
23077 rm -f conftest.$ac_objext conftest$ac_exeext
23078 if { (ac_try="$ac_link"
23079 case "(($ac_try" in
23080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081 *) ac_try_echo=$ac_try;;
23083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23084 (eval "$ac_link") 2>conftest.er1
23086 grep -v '^ *+' conftest.er1 >conftest.err
23088 cat conftest.err >&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); } && {
23091 test -z "$ac_c_werror_flag" ||
23092 test ! -s conftest.err
23093 } && test -s conftest$ac_exeext &&
23094 $as_test_x conftest$ac_exeext; then
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23104 conftest$ac_exeext conftest.$ac_ext
23106 if test "$found" = "no"; then
23107 LIBS="${_LIBS} -lldap"
23109 { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
23110 echo "${ECHO_T}not found, using -lldap" >&6; }
23112 { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
23113 echo "${ECHO_T}$LDAP_LIBS" >&6; }
23116 { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
23117 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
23118 if test "${ac_cv_search_ber_set_option+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23121 ac_func_search_save_LIBS=$LIBS
23122 cat >conftest.$ac_ext <<_ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h. */
23129 /* Override any GCC internal prototype to avoid an error.
23130 Use char because int might match the return type of a GCC
23131 builtin and then its argument prototype would still apply. */
23135 char ber_set_option ();
23139 return ber_set_option ();
23144 for ac_lib in '' lber; do
23145 if test -z "$ac_lib"; then
23146 ac_res="none required"
23149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23151 rm -f conftest.$ac_objext conftest$ac_exeext
23152 if { (ac_try="$ac_link"
23153 case "(($ac_try" in
23154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23155 *) ac_try_echo=$ac_try;;
23157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23158 (eval "$ac_link") 2>conftest.er1
23160 grep -v '^ *+' conftest.er1 >conftest.err
23162 cat conftest.err >&5
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); } && {
23165 test -z "$ac_c_werror_flag" ||
23166 test ! -s conftest.err
23167 } && test -s conftest$ac_exeext &&
23168 $as_test_x conftest$ac_exeext; then
23169 ac_cv_search_ber_set_option=$ac_res
23171 echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23179 if test "${ac_cv_search_ber_set_option+set}" = set; then
23183 if test "${ac_cv_search_ber_set_option+set}" = set; then
23186 ac_cv_search_ber_set_option=no
23188 rm conftest.$ac_ext
23189 LIBS=$ac_func_search_save_LIBS
23191 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
23192 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
23193 ac_res=$ac_cv_search_ber_set_option
23194 if test "$ac_res" != no; then
23195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23201 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
23202 LDAP_LIBS="$LDAP_LIBS -llber"
23204 { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
23205 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
23206 cat >conftest.$ac_ext <<_ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 #include <sys/types.h>
23217 (void)ldap_init(0, 0)
23222 rm -f conftest.$ac_objext conftest$ac_exeext
23223 if { (ac_try="$ac_link"
23224 case "(($ac_try" in
23225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226 *) ac_try_echo=$ac_try;;
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229 (eval "$ac_link") 2>conftest.er1
23231 grep -v '^ *+' conftest.er1 >conftest.err
23233 cat conftest.err >&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest$ac_exeext &&
23239 $as_test_x conftest$ac_exeext; then
23240 { echo "$as_me:$LINENO: result: no" >&5
23241 echo "${ECHO_T}no" >&6; }
23243 echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23247 { echo "$as_me:$LINENO: result: yes" >&5
23248 echo "${ECHO_T}yes" >&6; }
23249 cat >>confdefs.h <<\_ACEOF
23250 #define HAVE_LBER_H 1
23255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23256 conftest$ac_exeext conftest.$ac_ext
23260 for ac_header in sasl/sasl.h sasl.h
23262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23267 echo $ECHO_N "(cached) $ECHO_C" >&6
23269 ac_res=`eval echo '${'$as_ac_Header'}'`
23270 { echo "$as_me:$LINENO: result: $ac_res" >&5
23271 echo "${ECHO_T}$ac_res" >&6; }
23273 # Is the header compilable?
23274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23276 cat >conftest.$ac_ext <<_ACEOF
23279 cat confdefs.h >>conftest.$ac_ext
23280 cat >>conftest.$ac_ext <<_ACEOF
23281 /* end confdefs.h. */
23282 $ac_includes_default
23283 #include <$ac_header>
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23292 (eval "$ac_compile") 2>conftest.er1
23294 grep -v '^ *+' conftest.er1 >conftest.err
23296 cat conftest.err >&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } && {
23299 test -z "$ac_c_werror_flag" ||
23300 test ! -s conftest.err
23301 } && test -s conftest.$ac_objext; then
23302 ac_header_compiler=yes
23304 echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 ac_header_compiler=no
23310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23312 echo "${ECHO_T}$ac_header_compiler" >&6; }
23314 # Is the header present?
23315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23317 cat >conftest.$ac_ext <<_ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 #include <$ac_header>
23325 if { (ac_try="$ac_cpp conftest.$ac_ext"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23333 grep -v '^ *+' conftest.er1 >conftest.err
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } >/dev/null && {
23338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23339 test ! -s conftest.err
23341 ac_header_preproc=yes
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 ac_header_preproc=no
23349 rm -f conftest.err conftest.$ac_ext
23350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23351 echo "${ECHO_T}$ac_header_preproc" >&6; }
23353 # So? What about this header?
23354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23360 ac_header_preproc=yes
23363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23376 ## --------------------------------------- ##
23377 ## Report this to http://www.sudo.ws/bugs/ ##
23378 ## --------------------------------------- ##
23380 ) | sed "s/^/$as_me: WARNING: /" >&2
23383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23386 echo $ECHO_N "(cached) $ECHO_C" >&6
23388 eval "$as_ac_Header=\$ac_header_preproc"
23390 ac_res=`eval echo '${'$as_ac_Header'}'`
23391 { echo "$as_me:$LINENO: result: $ac_res" >&5
23392 echo "${ECHO_T}$ac_res" >&6; }
23395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23396 cat >>confdefs.h <<_ACEOF
23397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23400 for ac_func in ldap_sasl_interactive_bind_s
23402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23406 echo $ECHO_N "(cached) $ECHO_C" >&6
23408 cat >conftest.$ac_ext <<_ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h. */
23414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23416 #define $ac_func innocuous_$ac_func
23418 /* System header to define __stub macros and hopefully few prototypes,
23419 which can conflict with char $ac_func (); below.
23420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23421 <limits.h> exists even on freestanding compilers. */
23424 # include <limits.h>
23426 # include <assert.h>
23431 /* Override any GCC internal prototype to avoid an error.
23432 Use char because int might match the return type of a GCC
23433 builtin and then its argument prototype would still apply. */
23438 /* The GNU C library defines this for functions which it implements
23439 to always fail with ENOSYS. Some functions are actually named
23440 something starting with __ and the normal name is an alias. */
23441 #if defined __stub_$ac_func || defined __stub___$ac_func
23448 return $ac_func ();
23453 rm -f conftest.$ac_objext conftest$ac_exeext
23454 if { (ac_try="$ac_link"
23455 case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_link") 2>conftest.er1
23462 grep -v '^ *+' conftest.er1 >conftest.err
23464 cat conftest.err >&5
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); } && {
23467 test -z "$ac_c_werror_flag" ||
23468 test ! -s conftest.err
23469 } && test -s conftest$ac_exeext &&
23470 $as_test_x conftest$ac_exeext; then
23471 eval "$as_ac_var=yes"
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 eval "$as_ac_var=no"
23479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23480 conftest$ac_exeext conftest.$ac_ext
23482 ac_res=`eval echo '${'$as_ac_var'}'`
23483 { echo "$as_me:$LINENO: result: $ac_res" >&5
23484 echo "${ECHO_T}$ac_res" >&6; }
23485 if test `eval echo '${'$as_ac_var'}'` = yes; then
23486 cat >>confdefs.h <<_ACEOF
23487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23501 for ac_header in ldap_ssl.h mps/ldap_ssl.h
23503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23509 cat >conftest.$ac_ext <<_ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h. */
23517 #include <$ac_header>
23519 rm -f conftest.$ac_objext
23520 if { (ac_try="$ac_compile"
23521 case "(($ac_try" in
23522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523 *) ac_try_echo=$ac_try;;
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526 (eval "$ac_compile") 2>conftest.er1
23528 grep -v '^ *+' conftest.er1 >conftest.err
23530 cat conftest.err >&5
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } && {
23533 test -z "$ac_c_werror_flag" ||
23534 test ! -s conftest.err
23535 } && test -s conftest.$ac_objext; then
23536 eval "$as_ac_Header=yes"
23538 echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23541 eval "$as_ac_Header=no"
23544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23546 ac_res=`eval echo '${'$as_ac_Header'}'`
23547 { echo "$as_me:$LINENO: result: $ac_res" >&5
23548 echo "${ECHO_T}$ac_res" >&6; }
23549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23550 cat >>confdefs.h <<_ACEOF
23551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23569 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
23571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 cat >conftest.$ac_ext <<_ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23585 #define $ac_func innocuous_$ac_func
23587 /* System header to define __stub macros and hopefully few prototypes,
23588 which can conflict with char $ac_func (); below.
23589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23590 <limits.h> exists even on freestanding compilers. */
23593 # include <limits.h>
23595 # include <assert.h>
23600 /* Override any GCC internal prototype to avoid an error.
23601 Use char because int might match the return type of a GCC
23602 builtin and then its argument prototype would still apply. */
23607 /* The GNU C library defines this for functions which it implements
23608 to always fail with ENOSYS. Some functions are actually named
23609 something starting with __ and the normal name is an alias. */
23610 #if defined __stub_$ac_func || defined __stub___$ac_func
23617 return $ac_func ();
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (ac_try="$ac_link"
23624 case "(($ac_try" in
23625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626 *) ac_try_echo=$ac_try;;
23628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629 (eval "$ac_link") 2>conftest.er1
23631 grep -v '^ *+' conftest.er1 >conftest.err
23633 cat conftest.err >&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } && {
23636 test -z "$ac_c_werror_flag" ||
23637 test ! -s conftest.err
23638 } && test -s conftest$ac_exeext &&
23639 $as_test_x conftest$ac_exeext; then
23640 eval "$as_ac_var=yes"
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23645 eval "$as_ac_var=no"
23648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23649 conftest$ac_exeext conftest.$ac_ext
23651 ac_res=`eval echo '${'$as_ac_var'}'`
23652 { echo "$as_me:$LINENO: result: $ac_res" >&5
23653 echo "${ECHO_T}$ac_res" >&6; }
23654 if test `eval echo '${'$as_ac_var'}'` = yes; then
23655 cat >>confdefs.h <<_ACEOF
23656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23663 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
23664 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
23665 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
23666 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
23667 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 ac_check_lib_save_LIBS=$LIBS
23670 LIBS="-lgssapi $LIBS"
23671 cat >conftest.$ac_ext <<_ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h. */
23678 /* Override any GCC internal prototype to avoid an error.
23679 Use char because int might match the return type of a GCC
23680 builtin and then its argument prototype would still apply. */
23684 char gss_krb5_ccache_name ();
23688 return gss_krb5_ccache_name ();
23693 rm -f conftest.$ac_objext conftest$ac_exeext
23694 if { (ac_try="$ac_link"
23695 case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_link") 2>conftest.er1
23702 grep -v '^ *+' conftest.er1 >conftest.err
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } && {
23707 test -z "$ac_c_werror_flag" ||
23708 test ! -s conftest.err
23709 } && test -s conftest$ac_exeext &&
23710 $as_test_x conftest$ac_exeext; then
23711 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23716 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
23719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23720 conftest$ac_exeext conftest.$ac_ext
23721 LIBS=$ac_check_lib_save_LIBS
23723 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
23724 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
23725 if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
23726 cat >>confdefs.h <<\_ACEOF
23727 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23730 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
23732 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
23733 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
23734 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
23735 echo $ECHO_N "(cached) $ECHO_C" >&6
23737 ac_check_lib_save_LIBS=$LIBS
23738 LIBS="-lgssapi_krb5 $LIBS"
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23746 /* Override any GCC internal prototype to avoid an error.
23747 Use char because int might match the return type of a GCC
23748 builtin and then its argument prototype would still apply. */
23752 char gss_krb5_ccache_name ();
23756 return gss_krb5_ccache_name ();
23761 rm -f conftest.$ac_objext conftest$ac_exeext
23762 if { (ac_try="$ac_link"
23763 case "(($ac_try" in
23764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23765 *) ac_try_echo=$ac_try;;
23767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23768 (eval "$ac_link") 2>conftest.er1
23770 grep -v '^ *+' conftest.er1 >conftest.err
23772 cat conftest.err >&5
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); } && {
23775 test -z "$ac_c_werror_flag" ||
23776 test ! -s conftest.err
23777 } && test -s conftest$ac_exeext &&
23778 $as_test_x conftest$ac_exeext; then
23779 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
23781 echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23784 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
23787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23788 conftest$ac_exeext conftest.$ac_ext
23789 LIBS=$ac_check_lib_save_LIBS
23791 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
23792 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
23793 if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
23794 cat >>confdefs.h <<\_ACEOF
23795 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23798 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
23805 # gssapi headers may be separate or part of Kerberos V
23807 O_CPPFLAGS="$CPPFLAGS"
23808 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
23809 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
23810 cat >conftest.$ac_ext <<_ACEOF
23811 #include <gssapi/gssapi.h>
23813 if { (ac_try="$ac_cpp conftest.$ac_ext"
23814 case "(($ac_try" in
23815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816 *) ac_try_echo=$ac_try;;
23818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23821 grep -v '^ *+' conftest.er1 >conftest.err
23823 cat conftest.err >&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); } >/dev/null && {
23826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23827 test ! -s conftest.err
23829 found="gssapi/gssapi.h"; break
23831 echo "$as_me: failed program was:" >&5
23832 sed 's/^/| /' conftest.$ac_ext >&5
23834 cat >conftest.$ac_ext <<_ACEOF
23835 #include <gssapi.h>
23837 if { (ac_try="$ac_cpp conftest.$ac_ext"
23838 case "(($ac_try" in
23839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23840 *) ac_try_echo=$ac_try;;
23842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23845 grep -v '^ *+' conftest.er1 >conftest.err
23847 cat conftest.err >&5
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); } >/dev/null && {
23850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23851 test ! -s conftest.err
23853 found="gssapi.h"; break
23855 echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23861 rm -f conftest.err conftest.$ac_ext
23864 rm -f conftest.err conftest.$ac_ext
23866 if test X"$found" != X"no"; then
23868 for ac_header in $found
23870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23877 ac_res=`eval echo '${'$as_ac_Header'}'`
23878 { echo "$as_me:$LINENO: result: $ac_res" >&5
23879 echo "${ECHO_T}$ac_res" >&6; }
23881 # Is the header compilable?
23882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23884 cat >conftest.$ac_ext <<_ACEOF
23887 cat confdefs.h >>conftest.$ac_ext
23888 cat >>conftest.$ac_ext <<_ACEOF
23889 /* end confdefs.h. */
23890 $ac_includes_default
23891 #include <$ac_header>
23893 rm -f conftest.$ac_objext
23894 if { (ac_try="$ac_compile"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23900 (eval "$ac_compile") 2>conftest.er1
23902 grep -v '^ *+' conftest.er1 >conftest.err
23904 cat conftest.err >&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } && {
23907 test -z "$ac_c_werror_flag" ||
23908 test ! -s conftest.err
23909 } && test -s conftest.$ac_objext; then
23910 ac_header_compiler=yes
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 ac_header_compiler=no
23918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23920 echo "${ECHO_T}$ac_header_compiler" >&6; }
23922 # Is the header present?
23923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23925 cat >conftest.$ac_ext <<_ACEOF
23928 cat confdefs.h >>conftest.$ac_ext
23929 cat >>conftest.$ac_ext <<_ACEOF
23930 /* end confdefs.h. */
23931 #include <$ac_header>
23933 if { (ac_try="$ac_cpp conftest.$ac_ext"
23934 case "(($ac_try" in
23935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23936 *) ac_try_echo=$ac_try;;
23938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23941 grep -v '^ *+' conftest.er1 >conftest.err
23943 cat conftest.err >&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); } >/dev/null && {
23946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23947 test ! -s conftest.err
23949 ac_header_preproc=yes
23951 echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23954 ac_header_preproc=no
23957 rm -f conftest.err conftest.$ac_ext
23958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23959 echo "${ECHO_T}$ac_header_preproc" >&6; }
23961 # So? What about this header?
23962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23968 ac_header_preproc=yes
23971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23984 ## --------------------------------------- ##
23985 ## Report this to http://www.sudo.ws/bugs/ ##
23986 ## --------------------------------------- ##
23988 ) | sed "s/^/$as_me: WARNING: /" >&2
23991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23994 echo $ECHO_N "(cached) $ECHO_C" >&6
23996 eval "$as_ac_Header=\$ac_header_preproc"
23998 ac_res=`eval echo '${'$as_ac_Header'}'`
23999 { echo "$as_me:$LINENO: result: $ac_res" >&5
24000 echo "${ECHO_T}$ac_res" >&6; }
24003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24004 cat >>confdefs.h <<_ACEOF
24005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24012 if test X"$found" = X"gssapi/gssapi.h"; then
24014 for ac_header in gssapi/gssapi_krb5.h
24016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24023 ac_res=`eval echo '${'$as_ac_Header'}'`
24024 { echo "$as_me:$LINENO: result: $ac_res" >&5
24025 echo "${ECHO_T}$ac_res" >&6; }
24027 # Is the header compilable?
24028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24030 cat >conftest.$ac_ext <<_ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 $ac_includes_default
24037 #include <$ac_header>
24039 rm -f conftest.$ac_objext
24040 if { (ac_try="$ac_compile"
24041 case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046 (eval "$ac_compile") 2>conftest.er1
24048 grep -v '^ *+' conftest.er1 >conftest.err
24050 cat conftest.err >&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } && {
24053 test -z "$ac_c_werror_flag" ||
24054 test ! -s conftest.err
24055 } && test -s conftest.$ac_objext; then
24056 ac_header_compiler=yes
24058 echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24061 ac_header_compiler=no
24064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24066 echo "${ECHO_T}$ac_header_compiler" >&6; }
24068 # Is the header present?
24069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24071 cat >conftest.$ac_ext <<_ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h. */
24077 #include <$ac_header>
24079 if { (ac_try="$ac_cpp conftest.$ac_ext"
24080 case "(($ac_try" in
24081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082 *) ac_try_echo=$ac_try;;
24084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24087 grep -v '^ *+' conftest.er1 >conftest.err
24089 cat conftest.err >&5
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } >/dev/null && {
24092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24093 test ! -s conftest.err
24095 ac_header_preproc=yes
24097 echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24100 ac_header_preproc=no
24103 rm -f conftest.err conftest.$ac_ext
24104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24105 echo "${ECHO_T}$ac_header_preproc" >&6; }
24107 # So? What about this header?
24108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24114 ac_header_preproc=yes
24117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24130 ## --------------------------------------- ##
24131 ## Report this to http://www.sudo.ws/bugs/ ##
24132 ## --------------------------------------- ##
24134 ) | sed "s/^/$as_me: WARNING: /" >&2
24137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24140 echo $ECHO_N "(cached) $ECHO_C" >&6
24142 eval "$as_ac_Header=\$ac_header_preproc"
24144 ac_res=`eval echo '${'$as_ac_Header'}'`
24145 { echo "$as_me:$LINENO: result: $ac_res" >&5
24146 echo "${ECHO_T}$ac_res" >&6; }
24149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24150 cat >>confdefs.h <<_ACEOF
24151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24160 CPPFLAGS="$O_CPPFLAGS"
24161 { echo "$as_me:$LINENO: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
24162 echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&2;}
24166 SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
24168 LDFLAGS="$_LDFLAGS"
24171 if test X"$LIBVAS_RPATH" != X""; then
24172 if test -n "$blibpath"; then
24173 blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
24176 *-*-hpux*) LDFLAGS="$LDFLAGS -Wl,+b,$LIBVAS_RPATH"
24178 *) LDFLAGS="$LDFLAGS -Wl,-R$LIBVAS_RPATH"
24184 if test -n "$blibpath"; then
24185 if test -n "$blibpath_add"; then
24186 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
24187 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
24188 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
24192 { echo "$as_me:$LINENO: checking for log file location" >&5
24193 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
24194 if test -n "$with_logpath"; then
24195 { echo "$as_me:$LINENO: result: $with_logpath" >&5
24196 echo "${ECHO_T}$with_logpath" >&6; }
24197 cat >>confdefs.h <<EOF
24198 #define _PATH_SUDO_LOGFILE "$with_logpath"
24201 elif test -d "/var/log"; then
24202 { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
24203 echo "${ECHO_T}/var/log/sudo.log" >&6; }
24204 cat >>confdefs.h <<\EOF
24205 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
24208 elif test -d "/var/adm"; then
24209 { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
24210 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
24211 cat >>confdefs.h <<\EOF
24212 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
24215 elif test -d "/usr/adm"; then
24216 { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
24217 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
24218 cat >>confdefs.h <<\EOF
24219 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
24223 { echo "$as_me:$LINENO: result: unknown" >&5
24224 echo "${ECHO_T}unknown" >&6; }
24227 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
24228 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
24229 if test -n "$with_timedir"; then
24230 { echo "$as_me:$LINENO: result: $with_timedir" >&5
24231 echo "${ECHO_T}$with_timedir" >&6; }
24232 cat >>confdefs.h <<EOF
24233 #define _PATH_SUDO_TIMEDIR "$with_timedir"
24236 timedir="$with_timedir"
24237 elif test -d "/var/run"; then
24238 { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
24239 echo "${ECHO_T}/var/run/sudo" >&6; }
24240 cat >>confdefs.h <<\EOF
24241 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
24244 timedir="/var/run/sudo"
24245 elif test -d "/var/adm"; then
24246 { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
24247 echo "${ECHO_T}/var/adm/sudo" >&6; }
24248 cat >>confdefs.h <<\EOF
24249 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
24252 timedir="/var/adm/sudo"
24254 { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
24255 echo "${ECHO_T}/usr/adm/sudo" >&6; }
24256 cat >>confdefs.h <<\EOF
24257 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
24260 timedir="/usr/adm/sudo"
24264 case "$with_passwd" in
24266 AUTH_OBJS="$AUTH_OBJS passwd.o"
24269 cat >>confdefs.h <<\_ACEOF
24270 #define WITHOUT_PASSWD 1
24273 if test -z "$AUTH_OBJS"; then
24274 { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
24275 echo "$as_me: error: no authentication methods defined." >&2;}
24276 { (exit 1); exit 1; }; }
24280 AUTH_OBJS=${AUTH_OBJS# }
24281 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
24282 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
24283 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
24285 if test -n "$LIBS"; then
24290 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
24291 test $l = $sl && dupe=1
24293 test $dupe = 0 && LIBS="${LIBS} $l"
24297 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
24299 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
24300 oexec_prefix="$exec_prefix"
24301 if test "$exec_prefix" = '$(prefix)'; then
24302 if test "$prefix" = "NONE"; then
24303 exec_prefix="$ac_default_prefix"
24305 exec_prefix="$prefix"
24308 if test X"$with_noexec" != X"no"; then
24309 PROGS="${PROGS} sudo_noexec.la"
24310 INSTALL_NOEXEC="install-noexec"
24312 eval noexec_file="$with_noexec"
24314 cat >>confdefs.h <<_ACEOF
24315 #define _PATH_SUDO_NOEXEC "$noexec_file"
24319 if test X"$with_selinux" != X"no"; then
24320 eval sesh_file="$libexecdir/sesh"
24322 cat >>confdefs.h <<_ACEOF
24323 #define _PATH_SUDO_SESH "$sesh_file"
24327 exec_prefix="$oexec_prefix"
24330 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
24332 cat >confcache <<\_ACEOF
24333 # This file is a shell script that caches the results of configure
24334 # tests run on this system so they can be shared between configure
24335 # scripts and configure runs, see configure's option --config-cache.
24336 # It is not useful on other systems. If it contains results you don't
24337 # want to keep, you may remove or edit it.
24339 # config.status only pays attention to the cache file if you give it
24340 # the --recheck option to rerun configure.
24342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24344 # following values.
24348 # The following way of writing the cache mishandles newlines in values,
24349 # but we know of no workaround that is simple, portable, and efficient.
24350 # So, we kill variables containing newlines.
24351 # Ultrix sh set writes to stderr and can't be redirected directly,
24352 # and sets the high bit in the cache file unless we assign to the vars.
24354 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24355 eval ac_val=\$$ac_var
24359 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24360 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24363 _ | IFS | as_nl) ;; #(
24364 *) $as_unset $ac_var ;;
24370 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24371 *${as_nl}ac_space=\ *)
24372 # `set' does not quote correctly, so add quotes (double-quote
24373 # substitution turns \\\\ into \\, and sed turns \\ into \).
24376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24379 # `set' quotes correctly as required by POSIX, so do not add quotes.
24380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24391 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24393 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24394 if test -w "$cache_file"; then
24395 test "x$cache_file" != "x/dev/null" &&
24396 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24397 echo "$as_me: updating cache $cache_file" >&6;}
24398 cat confcache >$cache_file
24400 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24401 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24407 # Let make expand exec_prefix.
24408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24410 DEFS=-DHAVE_CONFIG_H
24414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24415 # 1. Remove the extension, and $U if already installed.
24416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24417 ac_i=`echo "$ac_i" | sed "$ac_script"`
24418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24419 # will be set to the directory where LIBOBJS objects are built.
24420 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24421 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24423 LIBOBJS=$ac_libobjs
24425 LTLIBOBJS=$ac_ltlibobjs
24429 : ${CONFIG_STATUS=./config.status}
24430 ac_clean_files_save=$ac_clean_files
24431 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24432 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24433 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24434 cat >$CONFIG_STATUS <<_ACEOF
24436 # Generated by $as_me.
24437 # Run this file to recreate the current configuration.
24438 # Compiler output produced by configure, useful for debugging
24439 # configure, is in config.log if it exists.
24442 ac_cs_recheck=false
24444 SHELL=\${CONFIG_SHELL-$SHELL}
24447 cat >>$CONFIG_STATUS <<\_ACEOF
24448 ## --------------------- ##
24449 ## M4sh Initialization. ##
24450 ## --------------------- ##
24452 # Be more Bourne compatible
24453 DUALCASE=1; export DUALCASE # for MKS sh
24454 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24457 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24458 # is contrary to our usage. Disable this feature.
24459 alias -g '${1+"$@"}'='"$@"'
24460 setopt NO_GLOB_SUBST
24462 case `(set -o) 2>/dev/null` in
24463 *posix*) set -o posix ;;
24472 # Avoid depending upon Character Ranges.
24473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24476 as_cr_digits='0123456789'
24477 as_cr_alnum=$as_cr_Letters$as_cr_digits
24479 # The user is always right.
24480 if test "${PATH_SEPARATOR+set}" != set; then
24481 echo "#! /bin/sh" >conf$$.sh
24482 echo "exit 0" >>conf$$.sh
24484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24492 # Support unset when possible.
24493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24501 # We need space, tab and new line, in precisely that order. Quoting is
24502 # there to prevent editors from complaining about space-tab.
24503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24504 # splitting by setting IFS to empty value.)
24509 # Find who we are. Look in the path if we contain no directory separator.
24511 *[\\/]* ) as_myself=$0 ;;
24512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24513 for as_dir in $PATH
24516 test -z "$as_dir" && as_dir=.
24517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24523 # We did not find ourselves, most probably we were run as `sh COMMAND'
24524 # in which case we are not to be found in the path.
24525 if test "x$as_myself" = x; then
24528 if test ! -f "$as_myself"; then
24529 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24530 { (exit 1); exit 1; }
24533 # Work around bugs in pre-3.0 UWIN ksh.
24534 for as_var in ENV MAIL MAILPATH
24535 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24545 LC_TELEPHONE LC_TIME
24547 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24548 eval $as_var=C; export $as_var
24550 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24554 # Required to use basename.
24555 if expr a : '\(a\)' >/dev/null 2>&1 &&
24556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24562 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24563 as_basename=basename
24569 # Name of the executable.
24570 as_me=`$as_basename -- "$0" ||
24571 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24572 X"$0" : 'X\(//\)$' \| \
24573 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24575 sed '/^.*\/\([^/][^/]*\)\/*$/{
24594 as_lineno_1=$LINENO
24595 as_lineno_2=$LINENO
24596 test "x$as_lineno_1" != "x$as_lineno_2" &&
24597 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24599 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24600 # uniformly replaced by the line number. The first 'sed' inserts a
24601 # line-number line after each line using $LINENO; the second 'sed'
24602 # does the real work. The second script uses 'N' to pair each
24603 # line-number line with the line containing $LINENO, and appends
24604 # trailing '-' during substitution so that $LINENO is not a special
24605 # case at line end.
24606 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24607 # scripts with optimization help from Paolo Bonzini. Blame Lee
24608 # E. McMahon (1931-1989) for sed's syntax. :-)
24620 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24623 ' >$as_me.lineno &&
24624 chmod +x "$as_me.lineno" ||
24625 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24626 { (exit 1); exit 1; }; }
24628 # Don't try to exec as it changes $[0], causing all sort of problems
24629 # (the dirname of $[0] is not the place where we might find the
24630 # original and so on. Autoconf is especially sensitive to this).
24631 . "./$as_me.lineno"
24632 # Exit status is that of the last command.
24637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24643 ECHO_C= ECHO_N= ECHO_T=
24644 case `echo -n x` in
24646 case `echo 'x\c'` in
24647 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24654 if expr a : '\(a\)' >/dev/null 2>&1 &&
24655 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24661 rm -f conf$$ conf$$.exe conf$$.file
24662 if test -d conf$$.dir; then
24663 rm -f conf$$.dir/conf$$.file
24669 if ln -s conf$$.file conf$$ 2>/dev/null; then
24671 # ... but there are two gotchas:
24672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24674 # In both cases, we have to default to `cp -p'.
24675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24677 elif ln conf$$.file conf$$ 2>/dev/null; then
24682 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24683 rmdir conf$$.dir 2>/dev/null
24685 if mkdir -p . 2>/dev/null; then
24688 test -d ./-p && rmdir ./-p
24692 if test -x / >/dev/null 2>&1; then
24693 as_test_x='test -x'
24695 if ls -dL / >/dev/null 2>&1; then
24702 if test -d "$1"; then
24708 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24709 ???[sx]*):;;*)false;;esac;fi
24713 as_executable_p=$as_test_x
24715 # Sed expression to map a string onto a valid CPP name.
24716 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24718 # Sed expression to map a string onto a valid variable name.
24719 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24724 # Save the log message, to keep $[0] and so on meaningful, and to
24725 # report actual input values of CONFIG_FILES etc. instead of their
24726 # values after options handling.
24728 This file was extended by sudo $as_me 1.7.2p7, which was
24729 generated by GNU Autoconf 2.61. Invocation command line was
24731 CONFIG_FILES = $CONFIG_FILES
24732 CONFIG_HEADERS = $CONFIG_HEADERS
24733 CONFIG_LINKS = $CONFIG_LINKS
24734 CONFIG_COMMANDS = $CONFIG_COMMANDS
24737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24742 cat >>$CONFIG_STATUS <<_ACEOF
24743 # Files that config.status was made for.
24744 config_files="$ac_config_files"
24745 config_headers="$ac_config_headers"
24749 cat >>$CONFIG_STATUS <<\_ACEOF
24751 \`$as_me' instantiates files from templates according to the
24752 current configuration.
24754 Usage: $0 [OPTIONS] [FILE]...
24756 -h, --help print this help, then exit
24757 -V, --version print version number and configuration settings, then exit
24758 -q, --quiet do not print progress messages
24759 -d, --debug don't remove temporary files
24760 --recheck update $as_me by reconfiguring in the same conditions
24761 --file=FILE[:TEMPLATE]
24762 instantiate the configuration file FILE
24763 --header=FILE[:TEMPLATE]
24764 instantiate the configuration header FILE
24766 Configuration files:
24769 Configuration headers:
24772 Report bugs to <bug-autoconf@gnu.org>."
24775 cat >>$CONFIG_STATUS <<_ACEOF
24777 sudo config.status 1.7.2p7
24778 configured by $0, generated by GNU Autoconf 2.61,
24779 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24781 Copyright (C) 2006 Free Software Foundation, Inc.
24782 This config.status script is free software; the Free Software Foundation
24783 gives unlimited permission to copy, distribute and modify it."
24789 cat >>$CONFIG_STATUS <<\_ACEOF
24790 # If no file are specified by the user, then we need to provide default
24791 # value. By we need to know if files were specified by the user.
24797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24798 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24809 # Handling of the options.
24810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24812 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24813 echo "$ac_cs_version"; exit ;;
24814 --debug | --debu | --deb | --de | --d | -d )
24816 --file | --fil | --fi | --f )
24818 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24819 ac_need_defaults=false;;
24820 --header | --heade | --head | --hea )
24822 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24823 ac_need_defaults=false;;
24825 # Conflict between --help and --header
24826 { echo "$as_me: error: ambiguous option: $1
24827 Try \`$0 --help' for more information." >&2
24828 { (exit 1); exit 1; }; };;
24829 --help | --hel | -h )
24830 echo "$ac_cs_usage"; exit ;;
24831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24832 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24835 # This is an error.
24836 -*) { echo "$as_me: error: unrecognized option: $1
24837 Try \`$0 --help' for more information." >&2
24838 { (exit 1); exit 1; }; } ;;
24840 *) ac_config_targets="$ac_config_targets $1"
24841 ac_need_defaults=false ;;
24847 ac_configure_extra_args=
24849 if $ac_cs_silent; then
24851 ac_configure_extra_args="$ac_configure_extra_args --silent"
24855 cat >>$CONFIG_STATUS <<_ACEOF
24856 if \$ac_cs_recheck; then
24857 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24858 CONFIG_SHELL=$SHELL
24859 export CONFIG_SHELL
24860 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24864 cat >>$CONFIG_STATUS <<\_ACEOF
24868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24869 ## Running $as_me. ##
24875 cat >>$CONFIG_STATUS <<_ACEOF
24878 cat >>$CONFIG_STATUS <<\_ACEOF
24880 # Handling of arguments.
24881 for ac_config_target in $ac_config_targets
24883 case $ac_config_target in
24884 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24885 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
24886 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24887 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
24888 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
24889 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
24890 "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
24891 "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
24893 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24894 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24895 { (exit 1); exit 1; }; };;
24900 # If the user did not use the arguments to specify the items to instantiate,
24901 # then the envvar interface is used. Set only those that are not.
24902 # We use the long form for the default assignment because of an extremely
24903 # bizarre bug on SunOS 4.1.3.
24904 if $ac_need_defaults; then
24905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24909 # Have a temporary directory for convenience. Make it in the build tree
24910 # simply because there is no reason against having it here, and in addition,
24911 # creating and moving files from /tmp can sometimes cause problems.
24912 # Hook for its removal unless debugging.
24913 # Note that there is a small window in which the directory will not be cleaned:
24914 # after its creation but before its name has been assigned to `$tmp'.
24918 trap 'exit_status=$?
24919 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24921 trap '{ (exit 1); exit 1; }' 1 2 13 15
24923 # Create a (secure) tmp directory for tmp files.
24926 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24927 test -n "$tmp" && test -d "$tmp"
24930 tmp=./conf$$-$RANDOM
24931 (umask 077 && mkdir "$tmp")
24934 echo "$me: cannot create a temporary directory in ." >&2
24935 { (exit 1); exit 1; }
24939 # Set up the sed scripts for CONFIG_FILES section.
24942 # No need to generate the scripts if there are no CONFIG_FILES.
24943 # This happens for instance when ./config.status config.h
24944 if test -n "$CONFIG_FILES"; then
24951 for ac_last_try in false false false false false :; do
24952 cat >conf$$subs.sed <<_ACEOF
24953 SHELL!$SHELL$ac_delim
24954 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24955 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24956 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24957 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24958 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24959 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24960 exec_prefix!$exec_prefix$ac_delim
24961 prefix!$prefix$ac_delim
24962 program_transform_name!$program_transform_name$ac_delim
24963 bindir!$bindir$ac_delim
24964 sbindir!$sbindir$ac_delim
24965 libexecdir!$libexecdir$ac_delim
24966 datarootdir!$datarootdir$ac_delim
24967 datadir!$datadir$ac_delim
24968 sysconfdir!$sysconfdir$ac_delim
24969 sharedstatedir!$sharedstatedir$ac_delim
24970 localstatedir!$localstatedir$ac_delim
24971 includedir!$includedir$ac_delim
24972 oldincludedir!$oldincludedir$ac_delim
24973 docdir!$docdir$ac_delim
24974 infodir!$infodir$ac_delim
24975 htmldir!$htmldir$ac_delim
24976 dvidir!$dvidir$ac_delim
24977 pdfdir!$pdfdir$ac_delim
24978 psdir!$psdir$ac_delim
24979 libdir!$libdir$ac_delim
24980 localedir!$localedir$ac_delim
24981 mandir!$mandir$ac_delim
24982 DEFS!$DEFS$ac_delim
24983 ECHO_C!$ECHO_C$ac_delim
24984 ECHO_N!$ECHO_N$ac_delim
24985 ECHO_T!$ECHO_T$ac_delim
24986 LIBS!$LIBS$ac_delim
24987 build_alias!$build_alias$ac_delim
24988 host_alias!$host_alias$ac_delim
24989 target_alias!$target_alias$ac_delim
24990 HAVE_BSM_AUDIT!$HAVE_BSM_AUDIT$ac_delim
24991 LIBTOOL!$LIBTOOL$ac_delim
24992 CFLAGS!$CFLAGS$ac_delim
24993 PROGS!$PROGS$ac_delim
24994 CPPFLAGS!$CPPFLAGS$ac_delim
24995 LDFLAGS!$LDFLAGS$ac_delim
24996 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
24997 SUDO_OBJS!$SUDO_OBJS$ac_delim
24998 SUDO_LIBS!$SUDO_LIBS$ac_delim
24999 NET_LIBS!$NET_LIBS$ac_delim
25000 AFS_LIBS!$AFS_LIBS$ac_delim
25001 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
25002 OSDEFS!$OSDEFS$ac_delim
25003 AUTH_OBJS!$AUTH_OBJS$ac_delim
25004 MANTYPE!$MANTYPE$ac_delim
25005 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
25006 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
25007 SUDOERS_UID!$SUDOERS_UID$ac_delim
25008 SUDOERS_GID!$SUDOERS_GID$ac_delim
25010 SELINUX!$SELINUX$ac_delim
25011 BAMAN!$BAMAN$ac_delim
25012 LCMAN!$LCMAN$ac_delim
25013 SEMAN!$SEMAN$ac_delim
25014 devdir!$devdir$ac_delim
25015 mansectsu!$mansectsu$ac_delim
25016 mansectform!$mansectform$ac_delim
25017 mansrcdir!$mansrcdir$ac_delim
25018 NOEXECFILE!$NOEXECFILE$ac_delim
25019 NOEXECDIR!$NOEXECDIR$ac_delim
25020 noexec_file!$noexec_file$ac_delim
25021 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
25022 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
25023 BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
25024 SELINUX_USAGE!$SELINUX_USAGE$ac_delim
25025 LDAP!$LDAP$ac_delim
25026 LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
25027 NONUNIX_GROUPS_IMPL!$NONUNIX_GROUPS_IMPL$ac_delim
25028 timedir!$timedir$ac_delim
25029 timeout!$timeout$ac_delim
25030 password_timeout!$password_timeout$ac_delim
25031 sudo_umask!$sudo_umask$ac_delim
25032 passprompt!$passprompt$ac_delim
25033 long_otp_prompt!$long_otp_prompt$ac_delim
25034 lecture!$lecture$ac_delim
25035 logfac!$logfac$ac_delim
25036 goodpri!$goodpri$ac_delim
25037 badpri!$badpri$ac_delim
25038 loglen!$loglen$ac_delim
25039 ignore_dot!$ignore_dot$ac_delim
25040 mail_no_user!$mail_no_user$ac_delim
25041 mail_no_host!$mail_no_host$ac_delim
25042 mail_no_perms!$mail_no_perms$ac_delim
25043 mailto!$mailto$ac_delim
25044 mailsub!$mailsub$ac_delim
25045 badpass_message!$badpass_message$ac_delim
25046 fqdn!$fqdn$ac_delim
25047 runas_default!$runas_default$ac_delim
25048 env_editor!$env_editor$ac_delim
25049 passwd_tries!$passwd_tries$ac_delim
25052 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25054 elif $ac_last_try; then
25055 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25056 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25057 { (exit 1); exit 1; }; }
25059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25063 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25064 if test -n "$ac_eof"; then
25065 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25066 ac_eof=`expr $ac_eof + 1`
25069 cat >>$CONFIG_STATUS <<_ACEOF
25070 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25074 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25075 s/^/s,@/; s/!/@,|#_!!_#|/
25078 s/'"$ac_delim"'$/,g/; t
25080 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25081 ' >>$CONFIG_STATUS <conf$$subs.sed
25082 rm -f conf$$subs.sed
25083 cat >>$CONFIG_STATUS <<_ACEOF
25089 for ac_last_try in false false false false false :; do
25090 cat >conf$$subs.sed <<_ACEOF
25091 tty_tickets!$tty_tickets$ac_delim
25092 insults!$insults$ac_delim
25093 root_sudo!$root_sudo$ac_delim
25094 path_info!$path_info$ac_delim
25095 ldap_conf!$ldap_conf$ac_delim
25096 ldap_secret!$ldap_secret$ac_delim
25097 nsswitch_conf!$nsswitch_conf$ac_delim
25098 netsvc_conf!$netsvc_conf$ac_delim
25099 secure_path!$secure_path$ac_delim
25101 ac_ct_CC!$ac_ct_CC$ac_delim
25102 EXEEXT!$EXEEXT$ac_delim
25103 OBJEXT!$OBJEXT$ac_delim
25104 EGREPPROG!$EGREPPROG$ac_delim
25106 build!$build$ac_delim
25107 build_cpu!$build_cpu$ac_delim
25108 build_vendor!$build_vendor$ac_delim
25109 build_os!$build_os$ac_delim
25110 host!$host$ac_delim
25111 host_cpu!$host_cpu$ac_delim
25112 host_vendor!$host_vendor$ac_delim
25113 host_os!$host_os$ac_delim
25115 GREP!$GREP$ac_delim
25116 EGREP!$EGREP$ac_delim
25117 LN_S!$LN_S$ac_delim
25118 ECHO!$ECHO$ac_delim
25120 RANLIB!$RANLIB$ac_delim
25121 STRIP!$STRIP$ac_delim
25122 DSYMUTIL!$DSYMUTIL$ac_delim
25123 NMEDIT!$NMEDIT$ac_delim
25124 UNAMEPROG!$UNAMEPROG$ac_delim
25125 TRPROG!$TRPROG$ac_delim
25126 NROFFPROG!$NROFFPROG$ac_delim
25127 YACC!$YACC$ac_delim
25128 YFLAGS!$YFLAGS$ac_delim
25129 FLEX!$FLEX$ac_delim
25130 LIBOBJS!$LIBOBJS$ac_delim
25131 KRB5CONFIG!$KRB5CONFIG$ac_delim
25132 LTLIBOBJS!$LTLIBOBJS$ac_delim
25135 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
25137 elif $ac_last_try; then
25138 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25139 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25140 { (exit 1); exit 1; }; }
25142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25146 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25147 if test -n "$ac_eof"; then
25148 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25149 ac_eof=`expr $ac_eof + 1`
25152 cat >>$CONFIG_STATUS <<_ACEOF
25153 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25157 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25158 s/^/s,@/; s/!/@,|#_!!_#|/
25161 s/'"$ac_delim"'$/,g/; t
25163 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25164 ' >>$CONFIG_STATUS <conf$$subs.sed
25165 rm -f conf$$subs.sed
25166 cat >>$CONFIG_STATUS <<_ACEOF
25173 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25174 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25175 # trailing colons and then remove the whole line if VPATH becomes empty
25176 # (actually we leave an empty line to preserve line numbers).
25177 if test "x$srcdir" = x.; then
25178 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25179 s/:*\$(srcdir):*/:/
25180 s/:*\${srcdir}:*/:/
25182 s/^\([^=]*=[ ]*\):*/\1/
25188 cat >>$CONFIG_STATUS <<\_ACEOF
25189 fi # test -n "$CONFIG_FILES"
25192 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25195 :[FHLC]) ac_mode=$ac_tag; continue;;
25197 case $ac_mode$ac_tag in
25199 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25200 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25201 { (exit 1); exit 1; }; };;
25202 :[FH]-) ac_tag=-:-;;
25203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25220 -) ac_f="$tmp/stdin";;
25221 *) # Look for the file first in the build tree, then in the source tree
25222 # (if the path is not absolute). The absolute path cannot be DOS-style,
25223 # because $ac_f cannot contain `:'.
25227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25229 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25230 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25231 { (exit 1); exit 1; }; };;
25233 ac_file_inputs="$ac_file_inputs $ac_f"
25236 # Let's still pretend it is `configure' which instantiates (i.e., don't
25237 # use $as_me), people would be surprised to read:
25238 # /* config.h. Generated by config.status. */
25239 configure_input="Generated from "`IFS=:
25240 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25241 if test x"$ac_file" != x-; then
25242 configure_input="$ac_file. $configure_input"
25243 { echo "$as_me:$LINENO: creating $ac_file" >&5
25244 echo "$as_me: creating $ac_file" >&6;}
25248 *:-:* | *:-) cat >"$tmp/stdin";;
25253 ac_dir=`$as_dirname -- "$ac_file" ||
25254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25255 X"$ac_file" : 'X\(//\)[^/]' \| \
25256 X"$ac_file" : 'X\(//\)$' \| \
25257 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25263 /^X\(\/\/\)[^/].*/{
25278 -*) as_dir=./$as_dir;;
25280 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25284 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25285 *) as_qdir=$as_dir;;
25287 as_dirs="'$as_qdir' $as_dirs"
25288 as_dir=`$as_dirname -- "$as_dir" ||
25289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25290 X"$as_dir" : 'X\(//\)[^/]' \| \
25291 X"$as_dir" : 'X\(//\)$' \| \
25292 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25298 /^X\(\/\/\)[^/].*/{
25311 test -d "$as_dir" && break
25313 test -z "$as_dirs" || eval "mkdir $as_dirs"
25314 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25315 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25316 { (exit 1); exit 1; }; }; }
25320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25322 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25323 # A ".." for each directory in $ac_dir_suffix.
25324 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25325 case $ac_top_builddir_sub in
25326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25330 ac_abs_top_builddir=$ac_pwd
25331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25332 # for backward compatibility:
25333 ac_top_builddir=$ac_top_build_prefix
25336 .) # We are building in place.
25338 ac_top_srcdir=$ac_top_builddir_sub
25339 ac_abs_top_srcdir=$ac_pwd ;;
25340 [\\/]* | ?:[\\/]* ) # Absolute name.
25341 ac_srcdir=$srcdir$ac_dir_suffix;
25342 ac_top_srcdir=$srcdir
25343 ac_abs_top_srcdir=$srcdir ;;
25344 *) # Relative name.
25345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25346 ac_top_srcdir=$ac_top_build_prefix$srcdir
25347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25360 cat >>$CONFIG_STATUS <<\_ACEOF
25361 # If the template does not know about datarootdir, expand it.
25362 # FIXME: This hack should be removed a few years after 2.60.
25363 ac_datarootdir_hack=; ac_datarootdir_seen=
25365 case `sed -n '/datarootdir/ {
25374 ' $ac_file_inputs` in
25375 *datarootdir*) ac_datarootdir_seen=yes;;
25376 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25377 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25378 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25380 cat >>$CONFIG_STATUS <<_ACEOF
25381 ac_datarootdir_hack='
25382 s&@datadir@&$datadir&g
25383 s&@docdir@&$docdir&g
25384 s&@infodir@&$infodir&g
25385 s&@localedir@&$localedir&g
25386 s&@mandir@&$mandir&g
25387 s&\\\${datarootdir}&$datarootdir&g' ;;
25391 # Neutralize VPATH when `$srcdir' = `.'.
25392 # Shell code in configure.ac might set extrasub.
25393 # FIXME: do we really want to maintain this feature?
25394 cat >>$CONFIG_STATUS <<_ACEOF
25398 cat >>$CONFIG_STATUS <<\_ACEOF
25400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25401 s&@configure_input@&$configure_input&;t t
25402 s&@top_builddir@&$ac_top_builddir_sub&;t t
25403 s&@srcdir@&$ac_srcdir&;t t
25404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25405 s&@top_srcdir@&$ac_top_srcdir&;t t
25406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25407 s&@builddir@&$ac_builddir&;t t
25408 s&@abs_builddir@&$ac_abs_builddir&;t t
25409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25410 $ac_datarootdir_hack
25411 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25413 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25414 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25415 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25416 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25417 which seems to be undefined. Please make sure it is defined." >&5
25418 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25419 which seems to be undefined. Please make sure it is defined." >&2;}
25423 -) cat "$tmp/out"; rm -f "$tmp/out";;
25424 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25433 # Transform confdefs.h into a sed script `conftest.defines', that
25434 # substitutes the proper values into config.h.in to produce config.h.
25435 rm -f conftest.defines conftest.tail
25436 # First, append a space to every undef/define line, to ease matching.
25437 echo 's/$/ /' >conftest.defines
25438 # Then, protect against being on the right side of a sed subst, or in
25439 # an unquoted here document, in config.status. If some macros were
25440 # called several times there might be several #defines for the same
25441 # symbol, which is useless. But do not sort them, since the last
25442 # AC_DEFINE must be honored.
25443 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25444 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25445 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25446 # PARAMS is the parameter list in the macro definition--in most cases, it's
25447 # just an empty string.
25448 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25449 ac_dB='\\)[ (].*,\\1define\\2'
25457 s/^[ ]*#[ ]*define[ ][ ]*//
25462 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25463 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25464 ' >>conftest.defines
25466 # Remove the space that was appended to ease matching.
25467 # Then replace #undef with comments. This is necessary, for
25468 # example, in the case of _POSIX_SOURCE, which is predefined and required
25469 # on some systems where configure will not decide to define it.
25470 # (The regexp can be short, since the line contains either #define or #undef.)
25472 s,^[ #]*u.*,/* & */,' >>conftest.defines
25474 # Break up conftest.defines:
25475 ac_max_sed_lines=50
25477 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25478 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25479 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25481 ac_in='$ac_file_inputs'
25482 ac_out='"$tmp/out1"'
25483 ac_nxt='"$tmp/out2"'
25487 # Write a here document:
25488 cat >>$CONFIG_STATUS <<_ACEOF
25489 # First, check the format of the line:
25490 cat >"\$tmp/defines.sed" <<\\CEOF
25491 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25492 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25496 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25498 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25499 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25500 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25501 grep . conftest.tail >/dev/null || break
25502 rm -f conftest.defines
25503 mv conftest.tail conftest.defines
25505 rm -f conftest.defines conftest.tail
25507 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25508 cat >>$CONFIG_STATUS <<\_ACEOF
25509 if test x"$ac_file" != x-; then
25510 echo "/* $configure_input */" >"$tmp/config.h"
25511 cat "$ac_result" >>"$tmp/config.h"
25512 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25513 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25514 echo "$as_me: $ac_file is unchanged" >&6;}
25517 mv "$tmp/config.h" $ac_file
25520 echo "/* $configure_input */"
25524 # Compute $ac_file's index in $config_headers.
25527 for _am_header in $config_headers :; do
25528 case $_am_header in
25529 $_am_arg | $_am_arg:* )
25532 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25535 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25536 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25537 X"$_am_arg" : 'X\(//\)[^/]' \| \
25538 X"$_am_arg" : 'X\(//\)$' \| \
25539 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25545 /^X\(\/\/\)[^/].*/{
25557 s/.*/./; q'`/stamp-h$_am_stamp_count
25566 { (exit 0); exit 0; }
25568 chmod +x $CONFIG_STATUS
25569 ac_clean_files=$ac_clean_files_save
25572 # configure is writing to config.log, and then calls config.status.
25573 # config.status does its own redirection, appending to config.log.
25574 # Unfortunately, on DOS this fails, as config.log is still kept open
25575 # by configure, so config.status won't be able to write to it; its
25576 # output is simply discarded. So we exec the FD to /dev/null,
25577 # effectively closing config.log, so it can be properly (re)opened and
25578 # appended to by config.status. When coming back to configure, we
25579 # need to make the FD available again.
25580 if test "$no_create" != yes; then
25582 ac_config_status_args=
25583 test "$silent" = yes &&
25584 ac_config_status_args="$ac_config_status_args --quiet"
25586 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25588 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25589 # would make configure fail if this is the last instruction.
25590 $ac_cs_success || { (exit 1); exit 1; }
25594 if test "$with_pam" = "yes"; then
25597 { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
25598 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}