2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.7.2p2.
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.2p2'
728 PACKAGE_STRING='sudo 1.7.2p2'
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.2p2 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.2p2:";;
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.2p2
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.2p2, 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;}
2130 passprompt="Password:"
2142 mailsub='*** SECURITY information for %h ***'
2143 badpass_message='Sorry, try again.'
2152 secure_path="not set"
2158 : ${SUDOERS_MODE='0440'}
2159 : ${SUDOERS_UID='0'}
2160 : ${SUDOERS_GID='0'}
2177 shadow_libs_optional=
2179 if test X"$prefix" = X"NONE"; then
2180 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2182 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2184 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2185 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2186 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2190 # Check whether --with-otp-only was given.
2191 if test "${with_otp_only+set}" = set; then
2192 withval=$with_otp_only; case $with_otp_only in
2193 yes) with_passwd="no"
2194 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2195 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2202 # Check whether --with-alertmail was given.
2203 if test "${with_alertmail+set}" = set; then
2204 withval=$with_alertmail; case $with_alertmail in
2205 *) with_mailto="$with_alertmail"
2206 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2207 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2215 # Check whether --with-CC was given.
2216 if test "${with_CC+set}" = set; then
2217 withval=$with_CC; case $with_CC in
2218 yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2219 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2220 { (exit 1); exit 1; }; }
2222 no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2223 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2224 { (exit 1); exit 1; }; }
2233 # Check whether --with-rpath was given.
2234 if test "${with_rpath+set}" = set; then
2235 withval=$with_rpath; case $with_rpath in
2237 *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2238 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2239 { (exit 1); exit 1; }; }
2246 # Check whether --with-blibpath was given.
2247 if test "${with_blibpath+set}" = set; then
2248 withval=$with_blibpath; case $with_blibpath in
2250 *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2251 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2258 # Check whether --with-bsm-audit was given.
2259 if test "${with_bsm_audit+set}" = set; then
2260 withval=$with_bsm_audit; case $with_bsm_audit in
2261 yes) cat >>confdefs.h <<\_ACEOF
2262 #define HAVE_BSM_AUDIT 1
2265 SUDO_LIBS="${SUDO_LIBS} -lbsm"
2266 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
2269 *) { { echo "$as_me:$LINENO: error: \"--with-bsm-audit does not take an argument.\"" >&5
2270 echo "$as_me: error: \"--with-bsm-audit does not take an argument.\"" >&2;}
2271 { (exit 1); exit 1; }; }
2278 # Check whether --with-incpath was given.
2279 if test "${with_incpath+set}" = set; then
2280 withval=$with_incpath; case $with_incpath in
2281 yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2282 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2283 { (exit 1); exit 1; }; }
2285 no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2286 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2287 { (exit 1); exit 1; }; }
2289 *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2290 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2291 for i in ${with_incpath}; do
2292 CPPFLAGS="${CPPFLAGS} -I${i}"
2300 # Check whether --with-libpath was given.
2301 if test "${with_libpath+set}" = set; then
2302 withval=$with_libpath; case $with_libpath in
2303 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2304 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2305 { (exit 1); exit 1; }; }
2307 no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2308 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2309 { (exit 1); exit 1; }; }
2311 *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2312 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2319 # Check whether --with-libraries was given.
2320 if test "${with_libraries+set}" = set; then
2321 withval=$with_libraries; case $with_libraries in
2322 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2323 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2324 { (exit 1); exit 1; }; }
2326 no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2327 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2328 { (exit 1); exit 1; }; }
2330 *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2331 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2338 # Check whether --with-devel was given.
2339 if test "${with_devel+set}" = set; then
2340 withval=$with_devel; case $with_devel in
2341 yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2342 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2343 PROGS="${PROGS} testsudoers"
2344 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2349 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2350 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2357 # Check whether --with-efence was given.
2358 if test "${with_efence+set}" = set; then
2359 withval=$with_efence; case $with_efence in
2360 yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2361 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2362 LIBS="${LIBS} -lefence"
2363 if test -f /usr/local/lib/libefence.a; then
2364 with_libpath="${with_libpath} /usr/local/lib"
2368 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2369 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2376 # Check whether --with-csops was given.
2377 if test "${with_csops+set}" = set; then
2378 withval=$with_csops; case $with_csops in
2379 yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2380 echo "$as_me: Adding CSOps standard options" >&6;}
2384 with_classic_insults=yes
2385 with_csops_insults=yes
2388 : ${mansectform='5'}
2391 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2392 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2399 # Check whether --with-passwd was given.
2400 if test "${with_passwd+set}" = set; then
2401 withval=$with_passwd; case $with_passwd in
2402 yes|no) { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2403 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2404 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2405 echo "${ECHO_T}$with_passwd" >&6; }
2407 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2409 *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2410 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2411 { (exit 1); exit 1; }; }
2418 # Check whether --with-skey was given.
2419 if test "${with_skey+set}" = set; then
2420 withval=$with_skey; case $with_skey in
2423 *) cat >>confdefs.h <<\_ACEOF
2427 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2428 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2429 { echo "$as_me:$LINENO: result: yes" >&5
2430 echo "${ECHO_T}yes" >&6; }
2431 AUTH_REG="$AUTH_REG S/Key"
2438 # Check whether --with-opie was given.
2439 if test "${with_opie+set}" = set; then
2440 withval=$with_opie; case $with_opie in
2443 *) cat >>confdefs.h <<\_ACEOF
2447 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2448 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2449 { echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6; }
2451 AUTH_REG="$AUTH_REG NRL_OPIE"
2458 # Check whether --with-long-otp-prompt was given.
2459 if test "${with_long_otp_prompt+set}" = set; then
2460 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2461 yes) cat >>confdefs.h <<\_ACEOF
2462 #define LONG_OTP_PROMPT 1
2465 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2466 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2467 { echo "$as_me:$LINENO: result: yes" >&5
2468 echo "${ECHO_T}yes" >&6; }
2471 no) long_otp_prompt=off
2473 *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2474 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2475 { (exit 1); exit 1; }; }
2482 # Check whether --with-SecurID was given.
2483 if test "${with_SecurID+set}" = set; then
2484 withval=$with_SecurID; case $with_SecurID in
2485 no) with_SecurID="";;
2486 *) cat >>confdefs.h <<\_ACEOF
2487 #define HAVE_SECURID 1
2490 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2491 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2492 { echo "$as_me:$LINENO: result: yes" >&5
2493 echo "${ECHO_T}yes" >&6; }
2494 AUTH_EXCL="$AUTH_EXCL SecurID"
2501 # Check whether --with-fwtk was given.
2502 if test "${with_fwtk+set}" = set; then
2503 withval=$with_fwtk; case $with_fwtk in
2505 *) cat >>confdefs.h <<\_ACEOF
2509 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2510 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2511 { echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6; }
2513 AUTH_EXCL="$AUTH_EXCL FWTK"
2520 # Check whether --with-kerb4 was given.
2521 if test "${with_kerb4+set}" = set; then
2522 withval=$with_kerb4; case $with_kerb4 in
2524 *) { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2525 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2526 { echo "$as_me:$LINENO: result: yes" >&5
2527 echo "${ECHO_T}yes" >&6; }
2528 AUTH_REG="$AUTH_REG kerb4"
2535 # Check whether --with-kerb5 was given.
2536 if test "${with_kerb5+set}" = set; then
2537 withval=$with_kerb5; case $with_kerb5 in
2539 *) { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2540 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2541 { echo "$as_me:$LINENO: result: yes" >&5
2542 echo "${ECHO_T}yes" >&6; }
2543 AUTH_REG="$AUTH_REG kerb5"
2550 # Check whether --with-aixauth was given.
2551 if test "${with_aixauth+set}" = set; then
2552 withval=$with_aixauth; case $with_aixauth in
2553 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2555 *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2556 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2557 { (exit 1); exit 1; }; }
2564 # Check whether --with-pam was given.
2565 if test "${with_pam+set}" = set; then
2566 withval=$with_pam; case $with_pam in
2567 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
2569 *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2570 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2571 { (exit 1); exit 1; }; }
2578 # Check whether --with-AFS was given.
2579 if test "${with_AFS+set}" = set; then
2580 withval=$with_AFS; case $with_AFS in
2581 yes) cat >>confdefs.h <<\_ACEOF
2585 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2586 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2587 { echo "$as_me:$LINENO: result: yes" >&5
2588 echo "${ECHO_T}yes" >&6; }
2589 AUTH_REG="$AUTH_REG AFS"
2592 *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2593 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2594 { (exit 1); exit 1; }; }
2601 # Check whether --with-DCE was given.
2602 if test "${with_DCE+set}" = set; then
2603 withval=$with_DCE; case $with_DCE in
2604 yes) cat >>confdefs.h <<\_ACEOF
2608 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2609 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2610 { echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6; }
2612 AUTH_REG="$AUTH_REG DCE"
2615 *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2616 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2617 { (exit 1); exit 1; }; }
2624 # Check whether --with-logincap was given.
2625 if test "${with_logincap+set}" = set; then
2626 withval=$with_logincap; case $with_logincap in
2628 *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2629 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2630 { (exit 1); exit 1; }; }
2637 # Check whether --with-bsdauth was given.
2638 if test "${with_bsdauth+set}" = set; then
2639 withval=$with_bsdauth; case $with_bsdauth in
2640 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2642 *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2643 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2644 { (exit 1); exit 1; }; }
2651 # Check whether --with-project was given.
2652 if test "${with_project+set}" = set; then
2653 withval=$with_project; case $with_project in
2656 *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2657 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2658 { (exit 1); exit 1; }; }
2664 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2665 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2667 # Check whether --with-lecture was given.
2668 if test "${with_lecture+set}" = set; then
2669 withval=$with_lecture; case $with_lecture in
2670 yes|short|always) lecture=once
2672 no|none|never) lecture=never
2674 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2675 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2676 { (exit 1); exit 1; }; }
2681 if test "$lecture" = "once"; then
2682 { echo "$as_me:$LINENO: result: yes" >&5
2683 echo "${ECHO_T}yes" >&6; }
2685 cat >>confdefs.h <<\_ACEOF
2686 #define NO_LECTURE 1
2689 { echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6; }
2693 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2694 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2696 # Check whether --with-logging was given.
2697 if test "${with_logging+set}" = set; then
2698 withval=$with_logging; case $with_logging in
2699 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2700 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2701 { (exit 1); exit 1; }; }
2703 no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2704 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2705 { (exit 1); exit 1; }; }
2707 syslog) cat >>confdefs.h <<\_ACEOF
2708 #define LOGGING SLOG_SYSLOG
2711 { echo "$as_me:$LINENO: result: syslog" >&5
2712 echo "${ECHO_T}syslog" >&6; }
2714 file) cat >>confdefs.h <<\_ACEOF
2715 #define LOGGING SLOG_FILE
2718 { echo "$as_me:$LINENO: result: file" >&5
2719 echo "${ECHO_T}file" >&6; }
2721 both) cat >>confdefs.h <<\_ACEOF
2722 #define LOGGING SLOG_BOTH
2725 { echo "$as_me:$LINENO: result: both" >&5
2726 echo "${ECHO_T}both" >&6; }
2728 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2729 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2730 { (exit 1); exit 1; }; }
2734 cat >>confdefs.h <<\_ACEOF
2735 #define LOGGING SLOG_SYSLOG
2737 { echo "$as_me:$LINENO: result: syslog" >&5
2738 echo "${ECHO_T}syslog" >&6; }
2742 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2743 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2745 # Check whether --with-logfac was given.
2746 if test "${with_logfac+set}" = set; then
2747 withval=$with_logfac; case $with_logfac in
2748 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2749 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2750 { (exit 1); exit 1; }; }
2752 no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2753 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2754 { (exit 1); exit 1; }; }
2756 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
2758 *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2759 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2760 { (exit 1); exit 1; }; }
2766 cat >>confdefs.h <<_ACEOF
2767 #define LOGFAC "$logfac"
2770 { echo "$as_me:$LINENO: result: $logfac" >&5
2771 echo "${ECHO_T}$logfac" >&6; }
2773 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2774 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2776 # Check whether --with-goodpri was given.
2777 if test "${with_goodpri+set}" = set; then
2778 withval=$with_goodpri; case $with_goodpri in
2779 yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2780 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2781 { (exit 1); exit 1; }; }
2783 no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2784 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2785 { (exit 1); exit 1; }; }
2787 alert|crit|debug|emerg|err|info|notice|warning)
2788 goodpri=$with_goodpri
2790 *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2791 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2792 { (exit 1); exit 1; }; }
2798 cat >>confdefs.h <<_ACEOF
2799 #define PRI_SUCCESS "$goodpri"
2802 { echo "$as_me:$LINENO: result: $goodpri" >&5
2803 echo "${ECHO_T}$goodpri" >&6; }
2805 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2806 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2808 # Check whether --with-badpri was given.
2809 if test "${with_badpri+set}" = set; then
2810 withval=$with_badpri; case $with_badpri in
2811 yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2812 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2813 { (exit 1); exit 1; }; }
2815 no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2816 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2817 { (exit 1); exit 1; }; }
2819 alert|crit|debug|emerg|err|info|notice|warning)
2822 *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2823 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2824 { (exit 1); exit 1; }; }
2830 cat >>confdefs.h <<_ACEOF
2831 #define PRI_FAILURE "$badpri"
2834 { echo "$as_me:$LINENO: result: $badpri" >&5
2835 echo "${ECHO_T}$badpri" >&6; }
2838 # Check whether --with-logpath was given.
2839 if test "${with_logpath+set}" = set; then
2840 withval=$with_logpath; case $with_logpath in
2841 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2842 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2843 { (exit 1); exit 1; }; }
2845 no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2846 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2847 { (exit 1); exit 1; }; }
2853 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2854 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2856 # Check whether --with-loglen was given.
2857 if test "${with_loglen+set}" = set; then
2858 withval=$with_loglen; case $with_loglen in
2859 yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2860 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2861 { (exit 1); exit 1; }; }
2863 no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2864 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2865 { (exit 1); exit 1; }; }
2867 [0-9]*) loglen=$with_loglen
2869 *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2870 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2871 { (exit 1); exit 1; }; }
2877 cat >>confdefs.h <<_ACEOF
2878 #define MAXLOGFILELEN $loglen
2881 { echo "$as_me:$LINENO: result: $loglen" >&5
2882 echo "${ECHO_T}$loglen" >&6; }
2884 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2885 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2887 # Check whether --with-ignore-dot was given.
2888 if test "${with_ignore_dot+set}" = set; then
2889 withval=$with_ignore_dot; case $with_ignore_dot in
2894 *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2895 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2896 { (exit 1); exit 1; }; }
2901 if test "$ignore_dot" = "on"; then
2902 cat >>confdefs.h <<\_ACEOF
2903 #define IGNORE_DOT_PATH 1
2906 { echo "$as_me:$LINENO: result: yes" >&5
2907 echo "${ECHO_T}yes" >&6; }
2909 { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2913 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2914 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2916 # Check whether --with-mail-if-no-user was given.
2917 if test "${with_mail_if_no_user+set}" = set; then
2918 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2919 yes) mail_no_user=on
2921 no) mail_no_user=off
2923 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2924 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2925 { (exit 1); exit 1; }; }
2930 if test "$mail_no_user" = "on"; then
2931 cat >>confdefs.h <<\_ACEOF
2932 #define SEND_MAIL_WHEN_NO_USER 1
2935 { echo "$as_me:$LINENO: result: yes" >&5
2936 echo "${ECHO_T}yes" >&6; }
2938 { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2942 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2943 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2945 # Check whether --with-mail-if-no-host was given.
2946 if test "${with_mail_if_no_host+set}" = set; then
2947 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2948 yes) mail_no_host=on
2950 no) mail_no_host=off
2952 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2953 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2954 { (exit 1); exit 1; }; }
2959 if test "$mail_no_host" = "on"; then
2960 cat >>confdefs.h <<\_ACEOF
2961 #define SEND_MAIL_WHEN_NO_HOST 1
2964 { echo "$as_me:$LINENO: result: yes" >&5
2965 echo "${ECHO_T}yes" >&6; }
2967 { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2971 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2972 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2974 # Check whether --with-mail-if-noperms was given.
2975 if test "${with_mail_if_noperms+set}" = set; then
2976 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2977 yes) mail_noperms=on
2979 no) mail_noperms=off
2981 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2982 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2983 { (exit 1); exit 1; }; }
2988 if test "$mail_noperms" = "on"; then
2989 cat >>confdefs.h <<\_ACEOF
2990 #define SEND_MAIL_WHEN_NOT_OK 1
2993 { echo "$as_me:$LINENO: result: yes" >&5
2994 echo "${ECHO_T}yes" >&6; }
2996 { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
3000 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
3001 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
3003 # Check whether --with-mailto was given.
3004 if test "${with_mailto+set}" = set; then
3005 withval=$with_mailto; case $with_mailto in
3006 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
3007 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
3008 { (exit 1); exit 1; }; }
3010 no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
3011 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
3012 { (exit 1); exit 1; }; }
3014 *) mailto=$with_mailto
3020 cat >>confdefs.h <<_ACEOF
3021 #define MAILTO "$mailto"
3024 { echo "$as_me:$LINENO: result: $mailto" >&5
3025 echo "${ECHO_T}$mailto" >&6; }
3028 # Check whether --with-mailsubject was given.
3029 if test "${with_mailsubject+set}" = set; then
3030 withval=$with_mailsubject; case $with_mailsubject in
3031 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
3032 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
3033 { (exit 1); exit 1; }; }
3035 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
3036 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
3038 *) mailsub="$with_mailsubject"
3039 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
3040 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
3041 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
3042 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
3048 cat >>confdefs.h <<_ACEOF
3049 #define MAILSUBJECT "$mailsub"
3053 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
3054 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
3056 # Check whether --with-passprompt was given.
3057 if test "${with_passprompt+set}" = set; then
3058 withval=$with_passprompt; case $with_passprompt in
3059 yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
3060 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
3061 { (exit 1); exit 1; }; }
3063 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
3064 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
3066 *) passprompt="$with_passprompt"
3070 { echo "$as_me:$LINENO: result: $passprompt" >&5
3071 echo "${ECHO_T}$passprompt" >&6; }
3073 cat >>confdefs.h <<_ACEOF
3074 #define PASSPROMPT "$passprompt"
3078 { echo "$as_me:$LINENO: checking for bad password message" >&5
3079 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3081 # Check whether --with-badpass-message was given.
3082 if test "${with_badpass_message+set}" = set; then
3083 withval=$with_badpass_message; case $with_badpass_message in
3084 yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3085 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3086 { (exit 1); exit 1; }; }
3088 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3089 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3091 *) badpass_message="$with_badpass_message"
3097 cat >>confdefs.h <<_ACEOF
3098 #define INCORRECT_PASSWORD "$badpass_message"
3101 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3102 echo "${ECHO_T}$badpass_message" >&6; }
3104 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3105 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3107 # Check whether --with-fqdn was given.
3108 if test "${with_fqdn+set}" = set; then
3109 withval=$with_fqdn; case $with_fqdn in
3114 *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3115 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3116 { (exit 1); exit 1; }; }
3121 if test "$fqdn" = "on"; then
3122 cat >>confdefs.h <<\_ACEOF
3126 { echo "$as_me:$LINENO: result: yes" >&5
3127 echo "${ECHO_T}yes" >&6; }
3129 { echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6; }
3134 # Check whether --with-timedir was given.
3135 if test "${with_timedir+set}" = set; then
3136 withval=$with_timedir; case $with_timedir in
3137 yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3138 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3139 { (exit 1); exit 1; }; }
3141 no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3142 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3143 { (exit 1); exit 1; }; }
3150 # Check whether --with-sendmail was given.
3151 if test "${with_sendmail+set}" = set; then
3152 withval=$with_sendmail; case $with_sendmail in
3153 yes) with_sendmail=""
3156 *) cat >>confdefs.h <<EOF
3157 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3166 # Check whether --with-sudoers-mode was given.
3167 if test "${with_sudoers_mode+set}" = set; then
3168 withval=$with_sudoers_mode; case $with_sudoers_mode in
3169 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3170 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3171 { (exit 1); exit 1; }; }
3173 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3174 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3175 { (exit 1); exit 1; }; }
3177 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
3179 0*) SUDOERS_MODE=$with_sudoers_mode
3181 *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3182 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3183 { (exit 1); exit 1; }; }
3190 # Check whether --with-sudoers-uid was given.
3191 if test "${with_sudoers_uid+set}" = set; then
3192 withval=$with_sudoers_uid; case $with_sudoers_uid in
3193 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3194 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3195 { (exit 1); exit 1; }; }
3197 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3198 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3199 { (exit 1); exit 1; }; }
3201 [0-9]*) SUDOERS_UID=$with_sudoers_uid
3203 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3204 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3205 { (exit 1); exit 1; }; }
3212 # Check whether --with-sudoers-gid was given.
3213 if test "${with_sudoers_gid+set}" = set; then
3214 withval=$with_sudoers_gid; case $with_sudoers_gid in
3215 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3216 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3217 { (exit 1); exit 1; }; }
3219 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3220 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3221 { (exit 1); exit 1; }; }
3223 [0-9]*) SUDOERS_GID=$with_sudoers_gid
3225 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3226 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3227 { (exit 1); exit 1; }; }
3233 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3234 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3236 # Check whether --with-umask was given.
3237 if test "${with_umask+set}" = set; then
3238 withval=$with_umask; case $with_umask in
3239 yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3240 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3241 { (exit 1); exit 1; }; }
3245 [0-9]*) sudo_umask=$with_umask
3247 *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3248 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3249 { (exit 1); exit 1; }; }
3255 cat >>confdefs.h <<_ACEOF
3256 #define SUDO_UMASK $sudo_umask
3259 if test "$sudo_umask" = "0777"; then
3260 { echo "$as_me:$LINENO: result: user" >&5
3261 echo "${ECHO_T}user" >&6; }
3263 { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3264 echo "${ECHO_T}$sudo_umask" >&6; }
3267 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3268 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3270 # Check whether --with-runas-default was given.
3271 if test "${with_runas_default+set}" = set; then
3272 withval=$with_runas_default; case $with_runas_default in
3273 yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3274 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3275 { (exit 1); exit 1; }; }
3277 no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3278 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3279 { (exit 1); exit 1; }; }
3281 *) runas_default="$with_runas_default"
3287 cat >>confdefs.h <<_ACEOF
3288 #define RUNAS_DEFAULT "$runas_default"
3291 { echo "$as_me:$LINENO: result: $runas_default" >&5
3292 echo "${ECHO_T}$runas_default" >&6; }
3295 # Check whether --with-exempt was given.
3296 if test "${with_exempt+set}" = set; then
3297 withval=$with_exempt; case $with_exempt in
3298 yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3299 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3300 { (exit 1); exit 1; }; }
3302 no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3303 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3304 { (exit 1); exit 1; }; }
3307 cat >>confdefs.h <<_ACEOF
3308 #define EXEMPTGROUP "$with_exempt"
3311 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3312 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3313 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3314 echo "${ECHO_T}$with_exempt" >&6; }
3320 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3321 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3323 # Check whether --with-editor was given.
3324 if test "${with_editor+set}" = set; then
3325 withval=$with_editor; case $with_editor in
3326 yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3327 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3328 { (exit 1); exit 1; }; }
3330 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3331 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3332 { (exit 1); exit 1; }; }
3335 cat >>confdefs.h <<_ACEOF
3336 #define EDITOR "$with_editor"
3339 { echo "$as_me:$LINENO: result: $with_editor" >&5
3340 echo "${ECHO_T}$with_editor" >&6; }
3344 cat >>confdefs.h <<\_ACEOF
3345 #define EDITOR _PATH_VI
3347 { echo "$as_me:$LINENO: result: vi" >&5
3348 echo "${ECHO_T}vi" >&6; }
3352 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3353 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3355 # Check whether --with-env-editor was given.
3356 if test "${with_env_editor+set}" = set; then
3357 withval=$with_env_editor; case $with_env_editor in
3362 *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3363 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3364 { (exit 1); exit 1; }; }
3369 if test "$env_editor" = "on"; then
3370 cat >>confdefs.h <<\_ACEOF
3371 #define ENV_EDITOR 1
3374 { echo "$as_me:$LINENO: result: yes" >&5
3375 echo "${ECHO_T}yes" >&6; }
3377 { echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6; }
3381 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3382 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3384 # Check whether --with-passwd-tries was given.
3385 if test "${with_passwd_tries+set}" = set; then
3386 withval=$with_passwd_tries; case $with_passwd_tries in
3388 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3389 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3390 { (exit 1); exit 1; }; }
3392 [1-9]*) passwd_tries=$with_passwd_tries
3394 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3395 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3396 { (exit 1); exit 1; }; }
3402 cat >>confdefs.h <<_ACEOF
3403 #define TRIES_FOR_PASSWORD $passwd_tries
3406 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3407 echo "${ECHO_T}$passwd_tries" >&6; }
3409 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3410 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3412 # Check whether --with-timeout was given.
3413 if test "${with_timeout+set}" = set; then
3414 withval=$with_timeout; case $with_timeout in
3418 [0-9]*) timeout=$with_timeout
3420 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3421 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3422 { (exit 1); exit 1; }; }
3428 cat >>confdefs.h <<_ACEOF
3429 #define TIMEOUT $timeout
3432 { echo "$as_me:$LINENO: result: $timeout" >&5
3433 echo "${ECHO_T}$timeout" >&6; }
3435 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3436 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3438 # Check whether --with-password-timeout was given.
3439 if test "${with_password_timeout+set}" = set; then
3440 withval=$with_password_timeout; case $with_password_timeout in
3442 no) password_timeout=0
3444 [0-9]*) password_timeout=$with_password_timeout
3446 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3447 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3448 { (exit 1); exit 1; }; }
3454 cat >>confdefs.h <<_ACEOF
3455 #define PASSWORD_TIMEOUT $password_timeout
3458 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3459 echo "${ECHO_T}$password_timeout" >&6; }
3461 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3462 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3464 # Check whether --with-tty-tickets was given.
3465 if test "${with_tty_tickets+set}" = set; then
3466 withval=$with_tty_tickets; case $with_tty_tickets in
3471 *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3472 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3473 { (exit 1); exit 1; }; }
3478 if test "$tty_tickets" = "on"; then
3479 cat >>confdefs.h <<\_ACEOF
3480 #define USE_TTY_TICKETS 1
3483 { echo "$as_me:$LINENO: result: yes" >&5
3484 echo "${ECHO_T}yes" >&6; }
3486 { echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6; }
3490 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3491 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3493 # Check whether --with-insults was given.
3494 if test "${with_insults+set}" = set; then
3495 withval=$with_insults; case $with_insults in
3497 with_classic_insults=yes
3498 with_csops_insults=yes
3502 *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3503 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3504 { (exit 1); exit 1; }; }
3509 if test "$insults" = "on"; then
3510 cat >>confdefs.h <<\_ACEOF
3511 #define USE_INSULTS 1
3514 { echo "$as_me:$LINENO: result: yes" >&5
3515 echo "${ECHO_T}yes" >&6; }
3517 { echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6; }
3522 # Check whether --with-all-insults was given.
3523 if test "${with_all_insults+set}" = set; then
3524 withval=$with_all_insults; case $with_all_insults in
3525 yes) with_classic_insults=yes
3526 with_csops_insults=yes
3527 with_hal_insults=yes
3528 with_goons_insults=yes
3531 *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3532 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3533 { (exit 1); exit 1; }; }
3540 # Check whether --with-classic-insults was given.
3541 if test "${with_classic_insults+set}" = set; then
3542 withval=$with_classic_insults; case $with_classic_insults in
3543 yes) cat >>confdefs.h <<\_ACEOF
3544 #define CLASSIC_INSULTS 1
3549 *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3550 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3551 { (exit 1); exit 1; }; }
3558 # Check whether --with-csops-insults was given.
3559 if test "${with_csops_insults+set}" = set; then
3560 withval=$with_csops_insults; case $with_csops_insults in
3561 yes) cat >>confdefs.h <<\_ACEOF
3562 #define CSOPS_INSULTS 1
3567 *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3568 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3569 { (exit 1); exit 1; }; }
3576 # Check whether --with-hal-insults was given.
3577 if test "${with_hal_insults+set}" = set; then
3578 withval=$with_hal_insults; case $with_hal_insults in
3579 yes) cat >>confdefs.h <<\_ACEOF
3580 #define HAL_INSULTS 1
3585 *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3586 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3587 { (exit 1); exit 1; }; }
3594 # Check whether --with-goons-insults was given.
3595 if test "${with_goons_insults+set}" = set; then
3596 withval=$with_goons_insults; case $with_goons_insults in
3597 yes) cat >>confdefs.h <<\_ACEOF
3598 #define GOONS_INSULTS 1
3603 *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3604 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3605 { (exit 1); exit 1; }; }
3612 # Check whether --with-nsswitch was given.
3613 if test "${with_nsswitch+set}" = set; then
3614 withval=$with_nsswitch; case $with_nsswitch in
3616 yes) with_nsswitch="/etc/nsswitch.conf"
3624 # Check whether --with-ldap was given.
3625 if test "${with_ldap+set}" = set; then
3626 withval=$with_ldap; case $with_ldap in
3628 *) cat >>confdefs.h <<\_ACEOF
3632 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3633 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3634 { echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6; }
3642 # Check whether --with-ldap-conf-file was given.
3643 if test "${with_ldap_conf_file+set}" = set; then
3644 withval=$with_ldap_conf_file;
3647 cat >>confdefs.h <<EOF
3648 #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
3651 ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
3654 # Check whether --with-ldap-secret-file was given.
3655 if test "${with_ldap_secret_file+set}" = set; then
3656 withval=$with_ldap_secret_file;
3659 cat >>confdefs.h <<EOF
3660 #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
3663 ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
3666 # Check whether --with-pc-insults was given.
3667 if test "${with_pc_insults+set}" = set; then
3668 withval=$with_pc_insults; case $with_pc_insults in
3669 yes) cat >>confdefs.h <<\_ACEOF
3670 #define PC_INSULTS 1
3675 *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3676 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3677 { (exit 1); exit 1; }; }
3683 if test "$insults" = "on"; then
3684 { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3685 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3687 test "$with_goons_insults" = "yes" && i="goons ${i}"
3688 test "$with_hal_insults" = "yes" && i="hal ${i}"
3689 test "$with_csops_insults" = "yes" && i="csops ${i}"
3690 test "$with_classic_insults" = "yes" && i="classic ${i}"
3691 { echo "$as_me:$LINENO: result: $i" >&5
3692 echo "${ECHO_T}$i" >&6; }
3695 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3696 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3698 # Check whether --with-secure-path was given.
3699 if test "${with_secure_path+set}" = set; then
3700 withval=$with_secure_path; case $with_secure_path in
3701 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3702 cat >>confdefs.h <<_ACEOF
3703 #define SECURE_PATH "$with_secure_path"
3706 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3707 echo "${ECHO_T}$with_secure_path" >&6; }
3708 secure_path="set to $with_secure_path"
3710 no) { echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6; }
3713 *) cat >>confdefs.h <<_ACEOF
3714 #define SECURE_PATH "$with_secure_path"
3717 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3718 echo "${ECHO_T}$with_secure_path" >&6; }
3719 secure_path="set to F<$with_secure_path>"
3723 { echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6; }
3728 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3729 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3731 # Check whether --with-interfaces was given.
3732 if test "${with_interfaces+set}" = set; then
3733 withval=$with_interfaces; case $with_interfaces in
3734 yes) { echo "$as_me:$LINENO: result: yes" >&5
3735 echo "${ECHO_T}yes" >&6; }
3737 no) cat >>confdefs.h <<\_ACEOF
3738 #define STUB_LOAD_INTERFACES 1
3741 { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3744 *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3745 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3746 { (exit 1); exit 1; }; }
3750 { echo "$as_me:$LINENO: result: yes" >&5
3751 echo "${ECHO_T}yes" >&6; }
3755 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3756 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3758 # Check whether --with-stow was given.
3759 if test "${with_stow+set}" = set; then
3760 withval=$with_stow; case $with_stow in
3761 yes) { echo "$as_me:$LINENO: result: yes" >&5
3762 echo "${ECHO_T}yes" >&6; }
3763 cat >>confdefs.h <<\_ACEOF
3768 no) { echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6; }
3771 *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3772 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3773 { (exit 1); exit 1; }; }
3777 { echo "$as_me:$LINENO: result: no" >&5
3778 echo "${ECHO_T}no" >&6; }
3782 { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
3783 echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
3785 # Check whether --with-askpass was given.
3786 if test "${with_askpass+set}" = set; then
3787 withval=$with_askpass; case $with_askpass in
3788 yes) { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
3789 echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
3790 { (exit 1); exit 1; }; }
3794 cat >>confdefs.h <<_ACEOF
3795 #define _PATH_SUDO_ASKPASS "$with_askpass"
3801 { echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6; }
3807 # Check whether --with-libvas was given.
3808 if test "${with_libvas+set}" = set; then
3809 withval=$with_libvas; case $with_libvas in
3810 yes) with_libvas=libvas.so
3814 cat >>confdefs.h <<_ACEOF
3815 #define LIBVAS_SO "$with_with_libvas"
3820 if test X"$with_libvas" != X"no"; then
3822 cat >>confdefs.h <<_ACEOF
3823 #define LIBVAS_SO "$with_libvas"
3826 cat >>confdefs.h <<\_ACEOF
3827 #define USING_NONUNIX_GROUPS 1
3830 NONUNIX_GROUPS_IMPL="vasgroups.o"
3832 # Check whether --with-libvas-rpath was given.
3833 if test "${with_libvas_rpath+set}" = set; then
3834 withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
3836 LIBVAS_RPATH=/opt/quest/lib
3845 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3846 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3847 # Check whether --enable-authentication was given.
3848 if test "${enable_authentication+set}" = set; then
3849 enableval=$enable_authentication; case "$enableval" in
3850 yes) { echo "$as_me:$LINENO: result: yes" >&5
3851 echo "${ECHO_T}yes" >&6; }
3853 no) { echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6; }
3855 cat >>confdefs.h <<\_ACEOF
3856 #define NO_AUTHENTICATION 1
3860 *) { echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6; }
3862 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3863 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3868 { echo "$as_me:$LINENO: result: yes" >&5
3869 echo "${ECHO_T}yes" >&6; }
3873 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3874 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3875 # Check whether --enable-root-mailer was given.
3876 if test "${enable_root_mailer+set}" = set; then
3877 enableval=$enable_root_mailer; case "$enableval" in
3878 yes) { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3881 no) { echo "$as_me:$LINENO: result: yes" >&5
3882 echo "${ECHO_T}yes" >&6; }
3883 cat >>confdefs.h <<\_ACEOF
3884 #define NO_ROOT_MAILER 1
3888 *) { echo "$as_me:$LINENO: result: no" >&5
3889 echo "${ECHO_T}no" >&6; }
3890 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3891 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3896 { echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6; }
3901 # Check whether --enable-setreuid was given.
3902 if test "${enable_setreuid+set}" = set; then
3903 enableval=$enable_setreuid; case "$enableval" in
3904 no) SKIP_SETREUID=yes
3912 # Check whether --enable-setresuid was given.
3913 if test "${enable_setresuid+set}" = set; then
3914 enableval=$enable_setresuid; case "$enableval" in
3915 no) SKIP_SETRESUID=yes
3923 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3924 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3925 # Check whether --enable-shadow was given.
3926 if test "${enable_shadow+set}" = set; then
3927 enableval=$enable_shadow; case "$enableval" in
3928 yes) { echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6; }
3931 no) { echo "$as_me:$LINENO: result: yes" >&5
3932 echo "${ECHO_T}yes" >&6; }
3935 *) { echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6; }
3937 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3938 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3943 { echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6; }
3948 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3949 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3950 # Check whether --enable-root-sudo was given.
3951 if test "${enable_root_sudo+set}" = set; then
3952 enableval=$enable_root_sudo; case "$enableval" in
3953 yes) { echo "$as_me:$LINENO: result: yes" >&5
3954 echo "${ECHO_T}yes" >&6; }
3956 no) cat >>confdefs.h <<\_ACEOF
3957 #define NO_ROOT_SUDO 1
3960 { echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6; }
3964 *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3965 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3966 { (exit 1); exit 1; }; }
3971 { echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6; }
3976 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3977 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3978 # Check whether --enable-log-host was given.
3979 if test "${enable_log_host+set}" = set; then
3980 enableval=$enable_log_host; case "$enableval" in
3981 yes) { echo "$as_me:$LINENO: result: yes" >&5
3982 echo "${ECHO_T}yes" >&6; }
3983 cat >>confdefs.h <<\_ACEOF
3984 #define HOST_IN_LOG 1
3988 no) { echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6; }
3991 *) { echo "$as_me:$LINENO: result: no" >&5
3992 echo "${ECHO_T}no" >&6; }
3993 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3994 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3999 { echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6; }
4004 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
4005 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
4006 # Check whether --enable-noargs-shell was given.
4007 if test "${enable_noargs_shell+set}" = set; then
4008 enableval=$enable_noargs_shell; case "$enableval" in
4009 yes) { echo "$as_me:$LINENO: result: yes" >&5
4010 echo "${ECHO_T}yes" >&6; }
4011 cat >>confdefs.h <<\_ACEOF
4012 #define SHELL_IF_NO_ARGS 1
4016 no) { echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6; }
4019 *) { echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6; }
4021 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
4022 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4032 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
4033 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
4034 # Check whether --enable-shell-sets-home was given.
4035 if test "${enable_shell_sets_home+set}" = set; then
4036 enableval=$enable_shell_sets_home; case "$enableval" in
4037 yes) { echo "$as_me:$LINENO: result: yes" >&5
4038 echo "${ECHO_T}yes" >&6; }
4039 cat >>confdefs.h <<\_ACEOF
4040 #define SHELL_SETS_HOME 1
4044 no) { echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6; }
4047 *) { echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6; }
4049 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
4050 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
4055 { echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6; }
4060 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
4061 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
4062 # Check whether --enable-path_info was given.
4063 if test "${enable_path_info+set}" = set; then
4064 enableval=$enable_path_info; case "$enableval" in
4065 yes) { echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6; }
4068 no) { echo "$as_me:$LINENO: result: yes" >&5
4069 echo "${ECHO_T}yes" >&6; }
4070 cat >>confdefs.h <<\_ACEOF
4071 #define DONT_LEAK_PATH_INFO 1
4076 *) { echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6; }
4078 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
4079 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
4084 { echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6; }
4089 { echo "$as_me:$LINENO: checking whether to enable environment debugging" >&5
4090 echo $ECHO_N "checking whether to enable environment debugging... $ECHO_C" >&6; }
4091 # Check whether --enable-env_debug was given.
4092 if test "${enable_env_debug+set}" = set; then
4093 enableval=$enable_env_debug; case "$enableval" in
4094 yes) { echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6; }
4096 cat >>confdefs.h <<\_ACEOF
4101 no) { echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6; }
4104 *) { echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6; }
4106 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
4107 echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
4112 { echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6; }
4118 # Check whether --with-selinux was given.
4119 if test "${with_selinux+set}" = set; then
4120 withval=$with_selinux; case $with_selinux in
4121 yes) SELINUX_USAGE="[-r role] [-t type] "
4122 cat >>confdefs.h <<\_ACEOF
4123 #define HAVE_SELINUX 1
4126 SUDO_LIBS="${SUDO_LIBS} -lselinux"
4127 SUDO_OBJS="${SUDO_OBJS} selinux.o"
4128 PROGS="${PROGS} sesh"
4133 *) { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
4134 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
4135 { (exit 1); exit 1; }; }
4141 # Check whether --enable-gss_krb5_ccache_name was given.
4142 if test "${enable_gss_krb5_ccache_name+set}" = set; then
4143 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
4145 check_gss_krb5_ccache_name=no
4149 # Extract the first word of "egrep", so it can be a program name with args.
4150 set dummy egrep; ac_word=$2
4151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 if test -n "$EGREPPROG"; then
4157 ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_prog_EGREPPROG="egrep"
4167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 EGREPPROG=$ac_cv_prog_EGREPPROG
4177 if test -n "$EGREPPROG"; then
4178 { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
4179 echo "${ECHO_T}$EGREPPROG" >&6; }
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4186 if test -z "$EGREPPROG"; then
4187 { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4188 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4189 { (exit 1); exit 1; }; }
4192 if test "$with_devel" != "yes"; then
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_CC+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 if test -n "$CC"; then
4231 { echo "$as_me:$LINENO: result: $CC" >&5
4232 echo "${ECHO_T}$CC" >&6; }
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4240 if test -z "$ac_cv_prog_CC"; then
4242 # Extract the first word of "gcc", so it can be a program name with args.
4243 set dummy gcc; ac_word=$2
4244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4246 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if test -n "$ac_ct_CC"; then
4250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_ac_ct_CC="gcc"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4272 echo "${ECHO_T}$ac_ct_CC" >&6; }
4274 { echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6; }
4278 if test "x$ac_ct_CC" = x; then
4281 case $cross_compiling:$ac_tool_warned in
4283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4284 whose name does not start with the host triplet. If you think this
4285 configuration is useful to you, please write to autoconf@gnu.org." >&5
4286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4287 whose name does not start with the host triplet. If you think this
4288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4289 ac_tool_warned=yes ;;
4297 if test -z "$CC"; then
4298 if test -n "$ac_tool_prefix"; then
4299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4300 set dummy ${ac_tool_prefix}cc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$CC"; then
4307 ac_cv_prog_CC="$CC" # Let the user override the test.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_CC="${ac_tool_prefix}cc"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 if test -n "$CC"; then
4328 { echo "$as_me:$LINENO: result: $CC" >&5
4329 echo "${ECHO_T}$CC" >&6; }
4331 { echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6; }
4338 if test -z "$CC"; then
4339 # Extract the first word of "cc", so it can be a program name with args.
4340 set dummy cc; ac_word=$2
4341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4343 if test "${ac_cv_prog_CC+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 if test -n "$CC"; then
4347 ac_cv_prog_CC="$CC" # Let the user override the test.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4358 ac_prog_rejected=yes
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 if test $ac_prog_rejected = yes; then
4370 # We found a bogon in the path, so make sure we never use it.
4371 set dummy $ac_cv_prog_CC
4373 if test $# != 0; then
4374 # We chose a different compiler from the bogus one.
4375 # However, it has the same basename, so the bogon will be chosen
4376 # first if we set CC to just the basename; use the full file name.
4378 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4384 if test -n "$CC"; then
4385 { echo "$as_me:$LINENO: result: $CC" >&5
4386 echo "${ECHO_T}$CC" >&6; }
4388 { echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6; }
4394 if test -z "$CC"; then
4395 if test -n "$ac_tool_prefix"; then
4396 for ac_prog in cl.exe
4398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4402 if test "${ac_cv_prog_CC+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 if test -n "$CC"; then
4406 ac_cv_prog_CC="$CC" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 if test -n "$CC"; then
4427 { echo "$as_me:$LINENO: result: $CC" >&5
4428 echo "${ECHO_T}$CC" >&6; }
4430 { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4435 test -n "$CC" && break
4438 if test -z "$CC"; then
4440 for ac_prog in cl.exe
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy $ac_prog; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 if test -n "$ac_ct_CC"; then
4450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_ac_ct_CC="$ac_prog"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4470 if test -n "$ac_ct_CC"; then
4471 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4472 echo "${ECHO_T}$ac_ct_CC" >&6; }
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4479 test -n "$ac_ct_CC" && break
4482 if test "x$ac_ct_CC" = x; then
4485 case $cross_compiling:$ac_tool_warned in
4487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4488 whose name does not start with the host triplet. If you think this
4489 configuration is useful to you, please write to autoconf@gnu.org." >&5
4490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4491 whose name does not start with the host triplet. If you think this
4492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4493 ac_tool_warned=yes ;;
4502 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4503 See \`config.log' for more details." >&5
4504 echo "$as_me: error: no acceptable C compiler found in \$PATH
4505 See \`config.log' for more details." >&2;}
4506 { (exit 1); exit 1; }; }
4508 # Provide some information about the compiler.
4509 echo "$as_me:$LINENO: checking for C compiler version" >&5
4510 ac_compiler=`set X $ac_compile; echo $2`
4511 { (ac_try="$ac_compiler --version >&5"
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_compiler --version >&5") 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }
4521 { (ac_try="$ac_compiler -v >&5"
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_compiler -v >&5") 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }
4531 { (ac_try="$ac_compiler -V >&5"
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537 (eval "$ac_compiler -V >&5") 2>&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4557 ac_clean_files_save=$ac_clean_files
4558 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4559 # Try to create an executable without -o first, disregard a.out.
4560 # It will help us diagnose broken compilers, and finding out an intuition
4562 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4563 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4564 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4566 # List of possible output files, starting from the most likely.
4567 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4568 # only as a last resort. b.out is created by i960 compilers.
4569 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4571 # The IRIX 6 linker writes into existing files which may not be
4572 # executable, retaining their permissions. Remove them first so a
4573 # subsequent execution test works.
4575 for ac_file in $ac_files
4578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4579 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4584 if { (ac_try="$ac_link_default"
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590 (eval "$ac_link_default") 2>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; then
4594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4595 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4596 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4597 # so that the user can short-circuit this test for compilers unknown to
4599 for ac_file in $ac_files ''
4601 test -f "$ac_file" || continue
4603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4606 # We found the default executable, but exeext='' is most
4610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4612 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4614 # We set ac_cv_exeext here because the later test for it is not
4615 # safe: cross compilers may not add the suffix if given an `-o'
4616 # argument, so we may need to know it at that point already.
4617 # Even if this section looks crufty: it has the advantage of
4624 test "$ac_cv_exeext" = no && ac_cv_exeext=
4630 { echo "$as_me:$LINENO: result: $ac_file" >&5
4631 echo "${ECHO_T}$ac_file" >&6; }
4632 if test -z "$ac_file"; then
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4637 See \`config.log' for more details." >&5
4638 echo "$as_me: error: C compiler cannot create executables
4639 See \`config.log' for more details." >&2;}
4640 { (exit 77); exit 77; }; }
4643 ac_exeext=$ac_cv_exeext
4645 # Check that the compiler produces executables we can run. If not, either
4646 # the compiler is broken, or we cross compile.
4647 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4648 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4649 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4650 # If not cross compiling, check that we can run a simple program.
4651 if test "$cross_compiling" != yes; then
4652 if { ac_try='./$ac_file'
4653 { (case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_try") 2>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4664 if test "$cross_compiling" = maybe; then
4667 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4668 If you meant to cross compile, use \`--host'.
4669 See \`config.log' for more details." >&5
4670 echo "$as_me: error: cannot run C compiled programs.
4671 If you meant to cross compile, use \`--host'.
4672 See \`config.log' for more details." >&2;}
4673 { (exit 1); exit 1; }; }
4677 { echo "$as_me:$LINENO: result: yes" >&5
4678 echo "${ECHO_T}yes" >&6; }
4680 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4681 ac_clean_files=$ac_clean_files_save
4682 # Check that the compiler produces executables we can run. If not, either
4683 # the compiler is broken, or we cross compile.
4684 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4685 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4686 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4687 echo "${ECHO_T}$cross_compiling" >&6; }
4689 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4690 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4691 if { (ac_try="$ac_link"
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697 (eval "$ac_link") 2>&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; then
4701 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4702 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4703 # work properly (i.e., refer to `conftest.exe'), while it won't with
4705 for ac_file in conftest.exe conftest conftest.*; do
4706 test -f "$ac_file" || continue
4708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4709 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4715 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4716 See \`config.log' for more details." >&5
4717 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4718 See \`config.log' for more details." >&2;}
4719 { (exit 1); exit 1; }; }
4722 rm -f conftest$ac_cv_exeext
4723 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4724 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4726 rm -f conftest.$ac_ext
4727 EXEEXT=$ac_cv_exeext
4729 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4730 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4731 if test "${ac_cv_objext+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 cat >conftest.$ac_ext <<_ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4749 rm -f conftest.o conftest.obj
4750 if { (ac_try="$ac_compile"
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756 (eval "$ac_compile") 2>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; then
4760 for ac_file in conftest.o conftest.obj conftest.*; do
4761 test -f "$ac_file" || continue;
4763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4764 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4773 See \`config.log' for more details." >&5
4774 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4775 See \`config.log' for more details." >&2;}
4776 { (exit 1); exit 1; }; }
4779 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4781 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4782 echo "${ECHO_T}$ac_cv_objext" >&6; }
4783 OBJEXT=$ac_cv_objext
4785 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4786 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4787 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 cat >conftest.$ac_ext <<_ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4808 rm -f conftest.$ac_objext
4809 if { (ac_try="$ac_compile"
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_compile") 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } && {
4822 test -z "$ac_c_werror_flag" ||
4823 test ! -s conftest.err
4824 } && test -s conftest.$ac_objext; then
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4837 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4838 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4839 GCC=`test $ac_compiler_gnu = yes && echo yes`
4840 ac_test_CFLAGS=${CFLAGS+set}
4841 ac_save_CFLAGS=$CFLAGS
4842 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4843 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4844 if test "${ac_cv_prog_cc_g+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 ac_save_c_werror_flag=$ac_c_werror_flag
4848 ac_c_werror_flag=yes
4851 cat >conftest.$ac_ext <<_ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4866 rm -f conftest.$ac_objext
4867 if { (ac_try="$ac_compile"
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_compile") 2>conftest.er1
4875 grep -v '^ *+' conftest.er1 >conftest.err
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } && {
4880 test -z "$ac_c_werror_flag" ||
4881 test ! -s conftest.err
4882 } && test -s conftest.$ac_objext; then
4885 echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4889 cat >conftest.$ac_ext <<_ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4904 rm -f conftest.$ac_objext
4905 if { (ac_try="$ac_compile"
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911 (eval "$ac_compile") 2>conftest.er1
4913 grep -v '^ *+' conftest.er1 >conftest.err
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } && {
4918 test -z "$ac_c_werror_flag" ||
4919 test ! -s conftest.err
4920 } && test -s conftest.$ac_objext; then
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4926 ac_c_werror_flag=$ac_save_c_werror_flag
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4943 rm -f conftest.$ac_objext
4944 if { (ac_try="$ac_compile"
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950 (eval "$ac_compile") 2>conftest.er1
4952 grep -v '^ *+' conftest.er1 >conftest.err
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } && {
4957 test -z "$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 } && test -s conftest.$ac_objext; then
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 ac_c_werror_flag=$ac_save_c_werror_flag
4977 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4978 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4979 if test "$ac_test_CFLAGS" = set; then
4980 CFLAGS=$ac_save_CFLAGS
4981 elif test $ac_cv_prog_cc_g = yes; then
4982 if test "$GCC" = yes; then
4988 if test "$GCC" = yes; then
4994 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4995 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4996 if test "${ac_cv_prog_cc_c89+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 ac_cv_prog_cc_c89=no
5001 cat >conftest.$ac_ext <<_ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5009 #include <sys/types.h>
5010 #include <sys/stat.h>
5011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5012 struct buf { int x; };
5013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5014 static char *e (p, i)
5020 static char *f (char * (*g) (char **, int), char **p, ...)
5025 s = g (p, va_arg (v,int));
5030 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5031 function prototypes and stuff, but not '\xHH' hex character constants.
5032 These don't provoke an error unfortunately, instead are silently treated
5033 as 'x'. The following induces an error, until -std is added to get
5034 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5035 array size at least. It's necessary to write '\x00'==0 to get something
5036 that's true only with -std. */
5037 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5039 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5040 inside strings and character constants. */
5042 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5044 int test (int i, double x);
5045 struct s1 {int (*f) (int a);};
5046 struct s2 {int (*f) (double a);};
5047 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5053 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5058 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5059 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5061 CC="$ac_save_CC $ac_arg"
5062 rm -f conftest.$ac_objext
5063 if { (ac_try="$ac_compile"
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_compile") 2>conftest.er1
5071 grep -v '^ *+' conftest.er1 >conftest.err
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } && {
5076 test -z "$ac_c_werror_flag" ||
5077 test ! -s conftest.err
5078 } && test -s conftest.$ac_objext; then
5079 ac_cv_prog_cc_c89=$ac_arg
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5087 rm -f core conftest.err conftest.$ac_objext
5088 test "x$ac_cv_prog_cc_c89" != "xno" && break
5090 rm -f conftest.$ac_ext
5095 case "x$ac_cv_prog_cc_c89" in
5097 { echo "$as_me:$LINENO: result: none needed" >&5
5098 echo "${ECHO_T}none needed" >&6; } ;;
5100 { echo "$as_me:$LINENO: result: unsupported" >&5
5101 echo "${ECHO_T}unsupported" >&6; } ;;
5103 CC="$CC $ac_cv_prog_cc_c89"
5104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5105 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5110 ac_cpp='$CPP $CPPFLAGS'
5111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5116 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5117 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5118 if test "${ac_cv_search_strerror+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 ac_func_search_save_LIBS=$LIBS
5122 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5129 /* Override any GCC internal prototype to avoid an error.
5130 Use char because int might match the return type of a GCC
5131 builtin and then its argument prototype would still apply. */
5144 for ac_lib in '' cposix; do
5145 if test -z "$ac_lib"; then
5146 ac_res="none required"
5149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5151 rm -f conftest.$ac_objext conftest$ac_exeext
5152 if { (ac_try="$ac_link"
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_link") 2>conftest.er1
5160 grep -v '^ *+' conftest.er1 >conftest.err
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } && {
5165 test -z "$ac_c_werror_flag" ||
5166 test ! -s conftest.err
5167 } && test -s conftest$ac_exeext &&
5168 $as_test_x conftest$ac_exeext; then
5169 ac_cv_search_strerror=$ac_res
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5179 if test "${ac_cv_search_strerror+set}" = set; then
5183 if test "${ac_cv_search_strerror+set}" = set; then
5186 ac_cv_search_strerror=no
5189 LIBS=$ac_func_search_save_LIBS
5191 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5192 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5193 ac_res=$ac_cv_search_strerror
5194 if test "$ac_res" != no; then
5195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5205 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5206 # On Suns, sometimes $CPP names a directory.
5207 if test -n "$CPP" && test -d "$CPP"; then
5210 if test -z "$CPP"; then
5211 if test "${ac_cv_prog_CPP+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 # Double quotes because CPP needs to be expanded
5215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5218 for ac_c_preproc_warn_flag in '' yes
5220 # Use a header file that comes with gcc, so configuring glibc
5221 # with a fresh cross-compiler works.
5222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223 # <limits.h> exists even on freestanding compilers.
5224 # On the NeXT, cc -E runs the code through the compiler's parser,
5225 # not just through cpp. "Syntax error" is here to catch this case.
5226 cat >conftest.$ac_ext <<_ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5233 # include <limits.h>
5235 # include <assert.h>
5239 if { (ac_try="$ac_cpp conftest.$ac_ext"
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5247 grep -v '^ *+' conftest.er1 >conftest.err
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } >/dev/null && {
5252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 # Broken: fails on valid input.
5264 rm -f conftest.err conftest.$ac_ext
5266 # OK, works on sane cases. Now check whether nonexistent headers
5267 # can be detected and how.
5268 cat >conftest.$ac_ext <<_ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5274 #include <ac_nonexistent.h>
5276 if { (ac_try="$ac_cpp conftest.$ac_ext"
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5284 grep -v '^ *+' conftest.er1 >conftest.err
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } >/dev/null && {
5289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5290 test ! -s conftest.err
5292 # Broken: success on invalid input.
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 # Passes both tests.
5303 rm -f conftest.err conftest.$ac_ext
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then
5320 { echo "$as_me:$LINENO: result: $CPP" >&5
5321 echo "${ECHO_T}$CPP" >&6; }
5323 for ac_c_preproc_warn_flag in '' yes
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5338 # include <limits.h>
5340 # include <assert.h>
5344 if { (ac_try="$ac_cpp conftest.$ac_ext"
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5352 grep -v '^ *+' conftest.er1 >conftest.err
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } >/dev/null && {
5357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5358 test ! -s conftest.err
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5365 # Broken: fails on valid input.
5369 rm -f conftest.err conftest.$ac_ext
5371 # OK, works on sane cases. Now check whether nonexistent headers
5372 # can be detected and how.
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <ac_nonexistent.h>
5381 if { (ac_try="$ac_cpp conftest.$ac_ext"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5389 grep -v '^ *+' conftest.er1 >conftest.err
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } >/dev/null && {
5394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5397 # Broken: success on invalid input.
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 # Passes both tests.
5408 rm -f conftest.err conftest.$ac_ext
5411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5412 rm -f conftest.err conftest.$ac_ext
5413 if $ac_preproc_ok; then
5416 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5417 See \`config.log' for more details." >&5
5418 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5419 See \`config.log' for more details." >&2;}
5420 { (exit 1); exit 1; }; }
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5432 if test -f "$ac_dir/install-sh"; then
5434 ac_install_sh="$ac_aux_dir/install-sh -c"
5436 elif test -f "$ac_dir/install.sh"; then
5438 ac_install_sh="$ac_aux_dir/install.sh -c"
5440 elif test -f "$ac_dir/shtool"; then
5442 ac_install_sh="$ac_aux_dir/shtool install -c"
5446 if test -z "$ac_aux_dir"; then
5447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5448 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5449 { (exit 1); exit 1; }; }
5452 # These three variables are undocumented and unsupported,
5453 # and are intended to be withdrawn in a future Autoconf release.
5454 # They can cause serious problems if a builder's source tree is in a directory
5455 # whose full name contains unusual characters.
5456 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5457 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5458 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5461 # Make sure we can run config.sub.
5462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5463 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5464 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5465 { (exit 1); exit 1; }; }
5467 { echo "$as_me:$LINENO: checking build system type" >&5
5468 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5469 if test "${ac_cv_build+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 ac_build_alias=$build_alias
5473 test "x$ac_build_alias" = x &&
5474 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5475 test "x$ac_build_alias" = x &&
5476 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5477 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5478 { (exit 1); exit 1; }; }
5479 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5480 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5481 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5482 { (exit 1); exit 1; }; }
5485 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5486 echo "${ECHO_T}$ac_cv_build" >&6; }
5487 case $ac_cv_build in
5489 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5490 echo "$as_me: error: invalid value of canonical build" >&2;}
5491 { (exit 1); exit 1; }; };;
5494 ac_save_IFS=$IFS; IFS='-'
5500 # Remember, the first character of IFS is used to create $*,
5501 # except with old shells:
5504 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5507 { echo "$as_me:$LINENO: checking host system type" >&5
5508 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5509 if test "${ac_cv_host+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 if test "x$host_alias" = x; then
5513 ac_cv_host=$ac_cv_build
5515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5516 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5517 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5518 { (exit 1); exit 1; }; }
5522 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5523 echo "${ECHO_T}$ac_cv_host" >&6; }
5526 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5527 echo "$as_me: error: invalid value of canonical host" >&2;}
5528 { (exit 1); exit 1; }; };;
5531 ac_save_IFS=$IFS; IFS='-'
5537 # Remember, the first character of IFS is used to create $*,
5538 # except with old shells:
5541 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5544 # Check whether --enable-static was given.
5545 if test "${enable_static+set}" = set; then
5546 enableval=$enable_static; p=${PACKAGE-default}
5548 yes) enable_static=yes ;;
5549 no) enable_static=no ;;
5552 # Look at the argument we got. We use all the common list separators.
5553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5554 for pkg in $enableval; do
5556 if test "X$pkg" = "X$p"; then
5571 # Check whether --enable-shared was given.
5572 if test "${enable_shared+set}" = set; then
5573 enableval=$enable_shared; p=${PACKAGE-default}
5575 yes) enable_shared=yes ;;
5576 no) enable_shared=no ;;
5579 # Look at the argument we got. We use all the common list separators.
5580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5581 for pkg in $enableval; do
5583 if test "X$pkg" = "X$p"; then
5595 # Check whether --enable-fast-install was given.
5596 if test "${enable_fast_install+set}" = set; then
5597 enableval=$enable_fast_install; p=${PACKAGE-default}
5599 yes) enable_fast_install=yes ;;
5600 no) enable_fast_install=no ;;
5602 enable_fast_install=no
5603 # Look at the argument we got. We use all the common list separators.
5604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5605 for pkg in $enableval; do
5607 if test "X$pkg" = "X$p"; then
5608 enable_fast_install=yes
5615 enable_fast_install=yes
5619 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5620 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5621 if test "${lt_cv_path_SED+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 # Loop through the user's path and test for sed and gsed.
5625 # Then use that list of sed's as ones to test for truncation.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir=.
5631 for lt_ac_prog in sed gsed; do
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5634 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5642 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5643 # along with /bin/sed that truncates output.
5644 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5645 test ! -f $lt_ac_sed && continue
5646 cat /dev/null > conftest.in
5648 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5649 # Check for GNU sed and select it if it is found.
5650 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5651 lt_cv_path_SED=$lt_ac_sed
5655 cat conftest.in conftest.in >conftest.tmp
5656 mv conftest.tmp conftest.in
5657 cp conftest.in conftest.nl
5659 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5660 cmp -s conftest.out conftest.nl || break
5661 # 10000 chars as input seems more than enough
5662 test $lt_ac_count -gt 10 && break
5663 lt_ac_count=`expr $lt_ac_count + 1`
5664 if test $lt_ac_count -gt $lt_ac_max; then
5665 lt_ac_max=$lt_ac_count
5666 lt_cv_path_SED=$lt_ac_sed
5675 { echo "$as_me:$LINENO: result: $SED" >&5
5676 echo "${ECHO_T}$SED" >&6; }
5678 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5679 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5680 if test "${ac_cv_path_GREP+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 # Extract the first word of "grep ggrep" to use in msg output
5684 if test -z "$GREP"; then
5685 set dummy grep ggrep; ac_prog_name=$2
5686 if test "${ac_cv_path_GREP+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 ac_path_GREP_found=false
5690 # Loop through the user's path and test for each of PROGNAME-LIST
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5695 test -z "$as_dir" && as_dir=.
5696 for ac_prog in grep ggrep; do
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5699 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5700 # Check for GNU ac_path_GREP and select it if it is found.
5701 # Check for GNU $ac_path_GREP
5702 case `"$ac_path_GREP" --version 2>&1` in
5704 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5707 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5710 cat "conftest.in" "conftest.in" >"conftest.tmp"
5711 mv "conftest.tmp" "conftest.in"
5712 cp "conftest.in" "conftest.nl"
5713 echo 'GREP' >> "conftest.nl"
5714 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5716 ac_count=`expr $ac_count + 1`
5717 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5718 # Best one so far, save it but keep looking for a better one
5719 ac_cv_path_GREP="$ac_path_GREP"
5720 ac_path_GREP_max=$ac_count
5722 # 10*(2^10) chars as input seems more than enough
5723 test $ac_count -gt 10 && break
5725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5729 $ac_path_GREP_found && break 3
5739 GREP="$ac_cv_path_GREP"
5740 if test -z "$GREP"; then
5741 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5742 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5743 { (exit 1); exit 1; }; }
5747 ac_cv_path_GREP=$GREP
5752 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5753 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5754 GREP="$ac_cv_path_GREP"
5757 { echo "$as_me:$LINENO: checking for egrep" >&5
5758 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5759 if test "${ac_cv_path_EGREP+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5763 then ac_cv_path_EGREP="$GREP -E"
5765 # Extract the first word of "egrep" to use in msg output
5766 if test -z "$EGREP"; then
5767 set dummy egrep; ac_prog_name=$2
5768 if test "${ac_cv_path_EGREP+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 ac_path_EGREP_found=false
5772 # Loop through the user's path and test for each of PROGNAME-LIST
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5777 test -z "$as_dir" && as_dir=.
5778 for ac_prog in egrep; do
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5781 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5782 # Check for GNU ac_path_EGREP and select it if it is found.
5783 # Check for GNU $ac_path_EGREP
5784 case `"$ac_path_EGREP" --version 2>&1` in
5786 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5789 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5792 cat "conftest.in" "conftest.in" >"conftest.tmp"
5793 mv "conftest.tmp" "conftest.in"
5794 cp "conftest.in" "conftest.nl"
5795 echo 'EGREP' >> "conftest.nl"
5796 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5798 ac_count=`expr $ac_count + 1`
5799 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5800 # Best one so far, save it but keep looking for a better one
5801 ac_cv_path_EGREP="$ac_path_EGREP"
5802 ac_path_EGREP_max=$ac_count
5804 # 10*(2^10) chars as input seems more than enough
5805 test $ac_count -gt 10 && break
5807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5811 $ac_path_EGREP_found && break 3
5821 EGREP="$ac_cv_path_EGREP"
5822 if test -z "$EGREP"; then
5823 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5824 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5825 { (exit 1); exit 1; }; }
5829 ac_cv_path_EGREP=$EGREP
5835 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5836 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5837 EGREP="$ac_cv_path_EGREP"
5841 # Check whether --with-gnu-ld was given.
5842 if test "${with_gnu_ld+set}" = set; then
5843 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5849 if test "$GCC" = yes; then
5850 # Check if gcc -print-prog-name=ld gives a path.
5851 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5852 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5855 # gcc leaves a trailing carriage return which upsets mingw
5856 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5858 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5861 # Accept absolute paths.
5863 re_direlt='/[^/][^/]*/\.\./'
5864 # Canonicalize the pathname of ld
5865 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5866 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5867 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5869 test -z "$LD" && LD="$ac_prog"
5872 # If it fails, then pretend we aren't using GCC.
5876 # If it is relative, then search for the first ld in PATH.
5880 elif test "$with_gnu_ld" = yes; then
5881 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5882 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5884 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5885 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5887 if test "${lt_cv_path_LD+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 if test -z "$LD"; then
5891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5892 for ac_dir in $PATH; do
5894 test -z "$ac_dir" && ac_dir=.
5895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5896 lt_cv_path_LD="$ac_dir/$ac_prog"
5897 # Check to see if the program is GNU ld. I'd rather use --version,
5898 # but apparently some variants of GNU ld only accept -v.
5899 # Break only if it was the GNU/non-GNU ld that we prefer.
5900 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5901 *GNU* | *'with BFD'*)
5902 test "$with_gnu_ld" != no && break
5905 test "$with_gnu_ld" != yes && break
5912 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5917 if test -n "$LD"; then
5918 { echo "$as_me:$LINENO: result: $LD" >&5
5919 echo "${ECHO_T}$LD" >&6; }
5921 { echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6; }
5924 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5925 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5926 { (exit 1); exit 1; }; }
5927 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5928 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5929 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5933 case `$LD -v 2>&1 </dev/null` in
5934 *GNU* | *'with BFD'*)
5935 lt_cv_prog_gnu_ld=yes
5938 lt_cv_prog_gnu_ld=no
5942 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5943 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5944 with_gnu_ld=$lt_cv_prog_gnu_ld
5947 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5948 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5949 if test "${lt_cv_ld_reload_flag+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 lt_cv_ld_reload_flag='-r'
5954 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5955 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5956 reload_flag=$lt_cv_ld_reload_flag
5957 case $reload_flag in
5959 *) reload_flag=" $reload_flag" ;;
5961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5964 if test "$GCC" = yes; then
5965 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5967 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5972 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5973 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5974 if test "${lt_cv_path_NM+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 if test -n "$NM"; then
5978 # Let the user override the test.
5981 lt_nm_to_check="${ac_tool_prefix}nm"
5982 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5983 lt_nm_to_check="$lt_nm_to_check nm"
5985 for lt_tmp_nm in $lt_nm_to_check; do
5986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5987 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5989 test -z "$ac_dir" && ac_dir=.
5990 tmp_nm="$ac_dir/$lt_tmp_nm"
5991 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5992 # Check to see if the nm accepts a BSD-compat flag.
5993 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5994 # nm: unknown option "B" ignored
5995 # Tru64's nm complains that /dev/null is an invalid object file
5996 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5997 */dev/null* | *'Invalid file or object type'*)
5998 lt_cv_path_NM="$tmp_nm -B"
6002 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6004 lt_cv_path_NM="$tmp_nm -p"
6008 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6009 continue # so that we can try to find one that supports BSD flags
6018 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6021 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6022 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6025 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6026 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6028 if test "$LN_S" = "ln -s"; then
6029 { echo "$as_me:$LINENO: result: yes" >&5
6030 echo "${ECHO_T}yes" >&6; }
6032 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6033 echo "${ECHO_T}no, using $LN_S" >&6; }
6036 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6037 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6038 if test "${lt_cv_deplibs_check_method+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 lt_cv_file_magic_cmd='$MAGIC_CMD'
6042 lt_cv_file_magic_test_file=
6043 lt_cv_deplibs_check_method='unknown'
6044 # Need to set the preceding variable on all platforms that support
6045 # interlibrary dependencies.
6046 # 'none' -- dependencies not supported.
6047 # `unknown' -- same as none, but documents that we really don't know.
6048 # 'pass_all' -- all dependencies passed with no checks.
6049 # 'test_compile' -- check by making test program.
6050 # 'file_magic [[regex]]' -- check by looking for files in library path
6051 # which responds to the $file_magic_cmd with a given extended regex.
6052 # If you have `file' or equivalent on your system and you're not sure
6053 # whether `pass_all' will *always* work, you probably want this one.
6057 lt_cv_deplibs_check_method=pass_all
6061 lt_cv_deplibs_check_method=pass_all
6065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6066 lt_cv_file_magic_cmd='/usr/bin/file -L'
6067 lt_cv_file_magic_test_file=/shlib/libc.so
6071 # func_win32_libid is a shell function defined in ltmain.sh
6072 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6073 lt_cv_file_magic_cmd='func_win32_libid'
6077 # Base MSYS/MinGW do not provide the 'file' command needed by
6078 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6079 # unless we find 'file', for example because we are cross-compiling.
6080 if ( file / ) >/dev/null 2>&1; then
6081 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6082 lt_cv_file_magic_cmd='func_win32_libid'
6084 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6085 lt_cv_file_magic_cmd='$OBJDUMP -f'
6089 darwin* | rhapsody*)
6090 lt_cv_deplibs_check_method=pass_all
6093 freebsd* | dragonfly*)
6094 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6097 # Not sure whether the presence of OpenBSD here was a mistake.
6098 # Let's accept both of them until this is cleared up.
6099 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6100 lt_cv_file_magic_cmd=/usr/bin/file
6101 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6105 lt_cv_deplibs_check_method=pass_all
6110 lt_cv_deplibs_check_method=pass_all
6113 hpux10.20* | hpux11*)
6114 lt_cv_file_magic_cmd=/usr/bin/file
6117 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6118 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6121 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]'
6122 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6125 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6126 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6132 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6136 irix5* | irix6* | nonstopux*)
6138 *-32|*"-32 ") libmagic=32-bit;;
6139 *-n32|*"-n32 ") libmagic=N32;;
6140 *-64|*"-64 ") libmagic=64-bit;;
6141 *) libmagic=never-match;;
6143 lt_cv_deplibs_check_method=pass_all
6146 # This must be Linux ELF.
6147 linux* | k*bsd*-gnu)
6148 lt_cv_deplibs_check_method=pass_all
6152 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6161 lt_cv_file_magic_cmd=/usr/bin/file
6162 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6166 lt_cv_deplibs_check_method=unknown
6170 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6177 osf3* | osf4* | osf5*)
6178 lt_cv_deplibs_check_method=pass_all
6182 lt_cv_deplibs_check_method=pass_all
6186 lt_cv_deplibs_check_method=pass_all
6190 case $host_vendor in
6192 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]'
6193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6196 lt_cv_deplibs_check_method=pass_all
6199 lt_cv_file_magic_cmd='/bin/file'
6200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6203 lt_cv_file_magic_cmd='/bin/file'
6204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6205 lt_cv_file_magic_test_file=/lib/libc.so
6208 lt_cv_deplibs_check_method=pass_all
6211 lt_cv_deplibs_check_method=pass_all
6216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6217 lt_cv_deplibs_check_method=pass_all
6222 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6223 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6224 file_magic_cmd=$lt_cv_file_magic_cmd
6225 deplibs_check_method=$lt_cv_deplibs_check_method
6226 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6231 # If no C compiler was specified, use CC.
6234 # If no C compiler flags were specified, use CFLAGS.
6235 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6237 # Allow CC to be a program name with arguments.
6240 # Check whether --enable-libtool-lock was given.
6241 if test "${enable_libtool_lock+set}" = set; then
6242 enableval=$enable_libtool_lock;
6245 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6247 # Some flags need to be propagated to the compiler or linker for good
6251 # Find out which ABI we are using.
6252 echo 'int i;' > conftest.$ac_ext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; then
6258 case `/usr/bin/file conftest.$ac_objext` in
6270 # Find out which ABI we are using.
6271 echo '#line 6271 "configure"' > conftest.$ac_ext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; then
6277 if test "$lt_cv_prog_gnu_ld" = yes; then
6278 case `/usr/bin/file conftest.$ac_objext` in
6280 LD="${LD-ld} -melf32bsmip"
6283 LD="${LD-ld} -melf32bmipn32"
6286 LD="${LD-ld} -melf64bmip"
6290 case `/usr/bin/file conftest.$ac_objext` in
6306 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6307 s390*-*linux*|sparc*-*linux*)
6308 # Find out which ABI we are using.
6309 echo 'int i;' > conftest.$ac_ext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6311 (eval $ac_compile) 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; then
6315 case `/usr/bin/file conftest.o` in
6318 x86_64-*kfreebsd*-gnu)
6319 LD="${LD-ld} -m elf_i386_fbsd"
6322 LD="${LD-ld} -m elf_i386"
6324 ppc64-*linux*|powerpc64-*linux*)
6325 LD="${LD-ld} -m elf32ppclinux"
6328 LD="${LD-ld} -m elf_s390"
6331 LD="${LD-ld} -m elf32_sparc"
6337 x86_64-*kfreebsd*-gnu)
6338 LD="${LD-ld} -m elf_x86_64_fbsd"
6341 LD="${LD-ld} -m elf_x86_64"
6343 ppc*-*linux*|powerpc*-*linux*)
6344 LD="${LD-ld} -m elf64ppc"
6347 LD="${LD-ld} -m elf64_s390"
6350 LD="${LD-ld} -m elf64_sparc"
6360 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6361 SAVE_CFLAGS="$CFLAGS"
6362 CFLAGS="$CFLAGS -belf"
6363 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6364 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6365 if test "${lt_cv_cc_needs_belf+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_cpp='$CPP $CPPFLAGS'
6370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6389 rm -f conftest.$ac_objext conftest$ac_exeext
6390 if { (ac_try="$ac_link"
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_link") 2>conftest.er1
6398 grep -v '^ *+' conftest.er1 >conftest.err
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && {
6403 test -z "$ac_c_werror_flag" ||
6404 test ! -s conftest.err
6405 } && test -s conftest$ac_exeext &&
6406 $as_test_x conftest$ac_exeext; then
6407 lt_cv_cc_needs_belf=yes
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 lt_cv_cc_needs_belf=no
6415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6416 conftest$ac_exeext conftest.$ac_ext
6418 ac_cpp='$CPP $CPPFLAGS'
6419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6424 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6425 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6426 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6427 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6428 CFLAGS="$SAVE_CFLAGS"
6432 # Find out which ABI we are using.
6433 echo 'int i;' > conftest.$ac_ext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435 (eval $ac_compile) 2>&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; then
6439 case `/usr/bin/file conftest.o` in
6441 case $lt_cv_prog_gnu_ld in
6442 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6444 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6458 need_locks="$enable_libtool_lock"
6462 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6463 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6464 if test "${ac_cv_header_stdc+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 cat >conftest.$ac_ext <<_ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6486 rm -f conftest.$ac_objext
6487 if { (ac_try="$ac_compile"
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_compile") 2>conftest.er1
6495 grep -v '^ *+' conftest.er1 >conftest.err
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } && {
6500 test -z "$ac_c_werror_flag" ||
6501 test ! -s conftest.err
6502 } && test -s conftest.$ac_objext; then
6503 ac_cv_header_stdc=yes
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_cv_header_stdc=no
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 if test $ac_cv_header_stdc = yes; then
6514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 $EGREP "memchr" >/dev/null 2>&1; then
6528 ac_cv_header_stdc=no
6534 if test $ac_cv_header_stdc = yes; then
6535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6536 cat >conftest.$ac_ext <<_ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6546 $EGREP "free" >/dev/null 2>&1; then
6549 ac_cv_header_stdc=no
6555 if test $ac_cv_header_stdc = yes; then
6556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6557 if test "$cross_compiling" = yes; then
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6568 #if ((' ' & 0x0FF) == 0x020)
6569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6572 # define ISLOWER(c) \
6573 (('a' <= (c) && (c) <= 'i') \
6574 || ('j' <= (c) && (c) <= 'r') \
6575 || ('s' <= (c) && (c) <= 'z'))
6576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6584 for (i = 0; i < 256; i++)
6585 if (XOR (islower (i), ISLOWER (i))
6586 || toupper (i) != TOUPPER (i))
6591 rm -f conftest$ac_exeext
6592 if { (ac_try="$ac_link"
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_link") 2>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6602 { (case "(($ac_try" in
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_try") 2>&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6613 echo "$as_me: program exited with status $ac_status" >&5
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6618 ac_cv_header_stdc=no
6620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6627 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6628 if test $ac_cv_header_stdc = yes; then
6630 cat >>confdefs.h <<\_ACEOF
6631 #define STDC_HEADERS 1
6636 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6646 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6647 inttypes.h stdint.h unistd.h
6649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 $ac_includes_default
6663 #include <$ac_header>
6665 rm -f conftest.$ac_objext
6666 if { (ac_try="$ac_compile"
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_compile") 2>conftest.er1
6674 grep -v '^ *+' conftest.er1 >conftest.err
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } && {
6679 test -z "$ac_c_werror_flag" ||
6680 test ! -s conftest.err
6681 } && test -s conftest.$ac_objext; then
6682 eval "$as_ac_Header=yes"
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6687 eval "$as_ac_Header=no"
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 ac_res=`eval echo '${'$as_ac_Header'}'`
6693 { echo "$as_me:$LINENO: result: $ac_res" >&5
6694 echo "${ECHO_T}$ac_res" >&6; }
6695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6706 for ac_header in dlfcn.h
6708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_res=`eval echo '${'$as_ac_Header'}'`
6716 { echo "$as_me:$LINENO: result: $ac_res" >&5
6717 echo "${ECHO_T}$ac_res" >&6; }
6719 # Is the header compilable?
6720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6722 cat >conftest.$ac_ext <<_ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 $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 ac_header_compiler=yes
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 ac_header_compiler=no
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6758 echo "${ECHO_T}$ac_header_compiler" >&6; }
6760 # Is the header present?
6761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6763 cat >conftest.$ac_ext <<_ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <$ac_header>
6771 if { (ac_try="$ac_cpp conftest.$ac_ext"
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6779 grep -v '^ *+' conftest.er1 >conftest.err
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } >/dev/null && {
6784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6787 ac_header_preproc=yes
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 ac_header_preproc=no
6795 rm -f conftest.err conftest.$ac_ext
6796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6797 echo "${ECHO_T}$ac_header_preproc" >&6; }
6799 # So? What about this header?
6800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6806 ac_header_preproc=yes
6809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6822 ## --------------------------------------- ##
6823 ## Report this to http://www.sudo.ws/bugs/ ##
6824 ## --------------------------------------- ##
6826 ) | sed "s/^/$as_me: WARNING: /" >&2
6829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 eval "$as_ac_Header=\$ac_header_preproc"
6836 ac_res=`eval echo '${'$as_ac_Header'}'`
6837 { echo "$as_me:$LINENO: result: $ac_res" >&5
6838 echo "${ECHO_T}$ac_res" >&6; }
6841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6842 cat >>confdefs.h <<_ACEOF
6843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6851 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6852 # find the maximum length of command line arguments
6853 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6854 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6855 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 # On DJGPP, this test can blow up pretty badly due to problems in libc
6864 # (any single argument exceeding 2000 bytes causes a buffer overrun
6865 # during glob expansion). Even if it were fixed, the result of this
6866 # check would be larger than it should be.
6867 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6871 # Under GNU Hurd, this test is not required because there is
6872 # no limit to the length of command line arguments.
6873 # Libtool will interpret -1 as no limit whatsoever
6874 lt_cv_sys_max_cmd_len=-1;
6878 # On Win9x/ME, this test blows up -- it succeeds, but takes
6879 # about 5 minutes as the teststring grows exponentially.
6880 # Worse, since 9x/ME are not pre-emptively multitasking,
6881 # you end up with a "frozen" computer, even though with patience
6882 # the test eventually succeeds (with a max line length of 256k).
6883 # Instead, let's just punt: use the minimum linelength reported by
6884 # all of the supported platforms: 8192 (on NT/2K/XP).
6885 lt_cv_sys_max_cmd_len=8192;
6889 # On AmigaOS with pdksh, this test takes hours, literally.
6890 # So we just punt and use a minimum line length of 8192.
6891 lt_cv_sys_max_cmd_len=8192;
6894 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6895 # This has been around since 386BSD, at least. Likely further.
6896 if test -x /sbin/sysctl; then
6897 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6898 elif test -x /usr/sbin/sysctl; then
6899 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6901 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6903 # And add a safety zone
6904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6909 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6910 lt_cv_sys_max_cmd_len=196608
6914 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6915 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6916 # nice to cause kernel panics so lets avoid the loop below.
6917 # First set a reasonable default.
6918 lt_cv_sys_max_cmd_len=16384
6920 if test -x /sbin/sysconfig; then
6921 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6922 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6927 lt_cv_sys_max_cmd_len=102400
6929 sysv5* | sco5v6* | sysv4.2uw2*)
6930 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6931 if test -n "$kargmax"; then
6932 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6934 lt_cv_sys_max_cmd_len=32768
6938 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6939 if test -n "$lt_cv_sys_max_cmd_len"; then
6940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6943 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6944 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6945 = "XX$teststring") >/dev/null 2>&1 &&
6946 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6947 lt_cv_sys_max_cmd_len=$new_result &&
6948 test $i != 17 # 1/2 MB should be enough
6951 teststring=$teststring$teststring
6954 # Add a significant safety factor because C++ compilers can tack on massive
6955 # amounts of additional arguments before passing them to the linker.
6956 # It appears as though 1/2 is a usable value.
6957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6964 if test -n $lt_cv_sys_max_cmd_len ; then
6965 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6966 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6968 { echo "$as_me:$LINENO: result: none" >&5
6969 echo "${ECHO_T}none" >&6; }
6976 # Check for command to grab the raw symbol name followed by C symbol from nm.
6977 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6978 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6979 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 # These are sane defaults that work on at least a few old systems.
6984 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6986 # Character class describing NM global symbol codes.
6987 symcode='[BCDEGRST]'
6989 # Regexp to match symbols that can be accessed directly from C.
6990 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6992 # Transform an extracted symbol line into a proper C declaration
6993 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6995 # Transform an extracted symbol line into symbol name and symbol address
6996 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'"
6998 # Define system-specific variables.
7003 cygwin* | mingw* | pw32*)
7004 symcode='[ABCDGISTW]'
7006 hpux*) # Its linker distinguishes data from code symbols
7007 if test "$host_cpu" = ia64; then
7008 symcode='[ABCDEGRST]'
7010 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7011 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'"
7013 linux* | k*bsd*-gnu)
7014 if test "$host_cpu" = ia64; then
7015 symcode='[ABCDGIRSTW]'
7016 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7017 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'"
7021 symcode='[BCDEGRST]'
7024 symcode='[BCDEGQRST]'
7035 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7043 # Handle CRLF in mingw tool chain
7047 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7051 # If we're using GNU nm, then use its standard symbol codes.
7052 case `$NM -V 2>&1` in
7053 *GNU* | *'with BFD'*)
7054 symcode='[ABCDGIRSTW]' ;;
7057 # Try without a prefix undercore, then with it.
7058 for ac_symprfx in "" "_"; do
7060 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7061 symxfrm="\\1 $ac_symprfx\\2 \\2"
7063 # Write the raw and C identifiers.
7064 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7066 # Check to see that the pipe works correctly.
7070 cat > conftest.$ac_ext <<EOF
7075 void nm_test_func(){}
7079 int main(){nm_test_var='a';nm_test_func();return(0);}
7082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083 (eval $ac_compile) 2>&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; then
7087 # Now try to grab the symbols.
7089 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7090 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && test -s "$nlist"; then
7094 # Try sorting and uniquifying the output.
7095 if sort "$nlist" | uniq > "$nlist"T; then
7096 mv -f "$nlist"T "$nlist"
7101 # Make sure that we snagged all the symbols we need.
7102 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7103 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7104 cat <<EOF > conftest.$ac_ext
7110 # Now generate the symbol file.
7111 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7113 cat <<EOF >> conftest.$ac_ext
7114 #if defined (__STDC__) && __STDC__
7115 # define lt_ptr_t void *
7117 # define lt_ptr_t char *
7121 /* The mapping between symbol names and symbols. */
7126 lt_preloaded_symbols[] =
7129 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7130 cat <<\EOF >> conftest.$ac_ext
7138 # Now try linking the two files.
7139 mv conftest.$ac_objext conftstm.$ac_objext
7140 lt_save_LIBS="$LIBS"
7141 lt_save_CFLAGS="$CFLAGS"
7142 LIBS="conftstm.$ac_objext"
7143 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7145 (eval $ac_link) 2>&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7151 LIBS="$lt_save_LIBS"
7152 CFLAGS="$lt_save_CFLAGS"
7154 echo "cannot find nm_test_func in $nlist" >&5
7157 echo "cannot find nm_test_var in $nlist" >&5
7160 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7163 echo "$progname: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7166 rm -rf conftest* conftst*
7168 # Do not use the global_symbol_pipe unless it works.
7169 if test "$pipe_works" = yes; then
7172 lt_cv_sys_global_symbol_pipe=
7178 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7179 lt_cv_sys_global_symbol_to_cdecl=
7181 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7182 { echo "$as_me:$LINENO: result: failed" >&5
7183 echo "${ECHO_T}failed" >&6; }
7185 { echo "$as_me:$LINENO: result: ok" >&5
7186 echo "${ECHO_T}ok" >&6; }
7189 { echo "$as_me:$LINENO: checking for objdir" >&5
7190 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7191 if test "${lt_cv_objdir+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 rm -f .libs 2>/dev/null
7195 mkdir .libs 2>/dev/null
7196 if test -d .libs; then
7199 # MS-DOS does not allow filenames that begin with a dot.
7202 rmdir .libs 2>/dev/null
7204 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7205 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7206 objdir=$lt_cv_objdir
7214 # AIX sometimes has problems with the GCC collect2 program. For some
7215 # reason, if we set the COLLECT_NAMES environment variable, the problems
7216 # vanish in a puff of smoke.
7217 if test "X${COLLECT_NAMES+set}" != Xset; then
7219 export COLLECT_NAMES
7224 # Sed substitution that helps us do robust quoting. It backslashifies
7225 # metacharacters that are still active within double-quoted strings.
7226 Xsed='sed -e 1s/^X//'
7227 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7229 # Same as above, but do not quote variable references.
7230 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7232 # Sed substitution to delay expansion of an escaped shell variable in a
7233 # double_quote_subst'ed string.
7234 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7236 # Sed substitution to avoid accidental globbing in evaled expressions
7237 no_glob_subst='s/\*/\\\*/g'
7243 default_ofile=libtool
7244 can_build_shared=yes
7246 # All known linkers require a `.a' archive for static linking (except MSVC,
7247 # which needs '.lib').
7249 ltmain="$ac_aux_dir/ltmain.sh"
7250 ofile="$default_ofile"
7251 with_gnu_ld="$lt_cv_prog_gnu_ld"
7253 if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}ar; ac_word=$2
7256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7258 if test "${ac_cv_prog_AR+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 if test -n "$AR"; then
7262 ac_cv_prog_AR="$AR" # Let the user override the test.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_prog_AR="${ac_tool_prefix}ar"
7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 if test -n "$AR"; then
7283 { echo "$as_me:$LINENO: result: $AR" >&5
7284 echo "${ECHO_T}$AR" >&6; }
7286 { echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6; }
7292 if test -z "$ac_cv_prog_AR"; then
7294 # Extract the first word of "ar", so it can be a program name with args.
7295 set dummy ar; ac_word=$2
7296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 if test -n "$ac_ct_AR"; then
7302 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_prog_ac_ct_AR="ar"
7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7322 if test -n "$ac_ct_AR"; then
7323 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7324 echo "${ECHO_T}$ac_ct_AR" >&6; }
7326 { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7330 if test "x$ac_ct_AR" = x; then
7333 case $cross_compiling:$ac_tool_warned in
7335 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7336 whose name does not start with the host triplet. If you think this
7337 configuration is useful to you, please write to autoconf@gnu.org." >&5
7338 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7339 whose name does not start with the host triplet. If you think this
7340 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7341 ac_tool_warned=yes ;;
7349 if test -n "$ac_tool_prefix"; then
7350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7354 if test "${ac_cv_prog_RANLIB+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 if test -n "$RANLIB"; then
7358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 RANLIB=$ac_cv_prog_RANLIB
7378 if test -n "$RANLIB"; then
7379 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7380 echo "${ECHO_T}$RANLIB" >&6; }
7382 { echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6; }
7388 if test -z "$ac_cv_prog_RANLIB"; then
7389 ac_ct_RANLIB=$RANLIB
7390 # Extract the first word of "ranlib", so it can be a program name with args.
7391 set dummy ranlib; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 if test -n "$ac_ct_RANLIB"; then
7398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_prog_ac_ct_RANLIB="ranlib"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7418 if test -n "$ac_ct_RANLIB"; then
7419 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7420 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7422 { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7426 if test "x$ac_ct_RANLIB" = x; then
7429 case $cross_compiling:$ac_tool_warned in
7431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7432 whose name does not start with the host triplet. If you think this
7433 configuration is useful to you, please write to autoconf@gnu.org." >&5
7434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7435 whose name does not start with the host triplet. If you think this
7436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7437 ac_tool_warned=yes ;;
7439 RANLIB=$ac_ct_RANLIB
7442 RANLIB="$ac_cv_prog_RANLIB"
7445 if test -n "$ac_tool_prefix"; then
7446 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7447 set dummy ${ac_tool_prefix}strip; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_prog_STRIP+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 if test -n "$STRIP"; then
7454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 STRIP=$ac_cv_prog_STRIP
7474 if test -n "$STRIP"; then
7475 { echo "$as_me:$LINENO: result: $STRIP" >&5
7476 echo "${ECHO_T}$STRIP" >&6; }
7478 { echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6; }
7484 if test -z "$ac_cv_prog_STRIP"; then
7486 # Extract the first word of "strip", so it can be a program name with args.
7487 set dummy strip; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 if test -n "$ac_ct_STRIP"; then
7494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7503 ac_cv_prog_ac_ct_STRIP="strip"
7504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7514 if test -n "$ac_ct_STRIP"; then
7515 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7516 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7518 { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7522 if test "x$ac_ct_STRIP" = x; then
7525 case $cross_compiling:$ac_tool_warned in
7527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7528 whose name does not start with the host triplet. If you think this
7529 configuration is useful to you, please write to autoconf@gnu.org." >&5
7530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7531 whose name does not start with the host triplet. If you think this
7532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7533 ac_tool_warned=yes ;;
7538 STRIP="$ac_cv_prog_STRIP"
7543 old_CFLAGS="$CFLAGS"
7545 # Set sane defaults for various variables
7546 test -z "$AR" && AR=ar
7547 test -z "$AR_FLAGS" && AR_FLAGS=cru
7548 test -z "$AS" && AS=as
7549 test -z "$CC" && CC=cc
7550 test -z "$LTCC" && LTCC=$CC
7551 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7552 test -z "$DLLTOOL" && DLLTOOL=dlltool
7553 test -z "$LD" && LD=ld
7554 test -z "$LN_S" && LN_S="ln -s"
7555 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7556 test -z "$NM" && NM=nm
7557 test -z "$SED" && SED=sed
7558 test -z "$OBJDUMP" && OBJDUMP=objdump
7559 test -z "$RANLIB" && RANLIB=:
7560 test -z "$STRIP" && STRIP=:
7561 test -z "$ac_objext" && ac_objext=o
7563 # Determine commands to create old-style static archives.
7564 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7565 old_postinstall_cmds='chmod 644 $oldlib'
7566 old_postuninstall_cmds=
7568 if test -n "$RANLIB"; then
7571 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7574 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7577 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7580 for cc_temp in $compiler""; do
7582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7588 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7591 # Only perform the check for file, if the check method requires it
7592 case $deplibs_check_method in
7594 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7595 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7596 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7597 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7605 lt_save_MAGIC_CMD="$MAGIC_CMD"
7606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7607 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7608 for ac_dir in $ac_dummy; do
7610 test -z "$ac_dir" && ac_dir=.
7611 if test -f $ac_dir/${ac_tool_prefix}file; then
7612 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7613 if test -n "$file_magic_test_file"; then
7614 case $deplibs_check_method in
7616 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7618 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7619 $EGREP "$file_magic_regex" > /dev/null; then
7624 *** Warning: the command libtool uses to detect shared libraries,
7625 *** $file_magic_cmd, produces output that libtool cannot recognize.
7626 *** The result is that libtool may fail to recognize shared libraries
7627 *** as such. This will affect the creation of libtool libraries that
7628 *** depend on shared libraries, but programs linked with such libtool
7629 *** libraries will work regardless of this problem. Nevertheless, you
7630 *** may want to report the problem to your system manager and/or to
7631 *** bug-libtool@gnu.org
7641 MAGIC_CMD="$lt_save_MAGIC_CMD"
7646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7647 if test -n "$MAGIC_CMD"; then
7648 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7649 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7651 { echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6; }
7655 if test -z "$lt_cv_path_MAGIC_CMD"; then
7656 if test -n "$ac_tool_prefix"; then
7657 { echo "$as_me:$LINENO: checking for file" >&5
7658 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7659 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7667 lt_save_MAGIC_CMD="$MAGIC_CMD"
7668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7669 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7670 for ac_dir in $ac_dummy; do
7672 test -z "$ac_dir" && ac_dir=.
7673 if test -f $ac_dir/file; then
7674 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7675 if test -n "$file_magic_test_file"; then
7676 case $deplibs_check_method in
7678 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7679 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7680 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7681 $EGREP "$file_magic_regex" > /dev/null; then
7686 *** Warning: the command libtool uses to detect shared libraries,
7687 *** $file_magic_cmd, produces output that libtool cannot recognize.
7688 *** The result is that libtool may fail to recognize shared libraries
7689 *** as such. This will affect the creation of libtool libraries that
7690 *** depend on shared libraries, but programs linked with such libtool
7691 *** libraries will work regardless of this problem. Nevertheless, you
7692 *** may want to report the problem to your system manager and/or to
7693 *** bug-libtool@gnu.org
7703 MAGIC_CMD="$lt_save_MAGIC_CMD"
7708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7709 if test -n "$MAGIC_CMD"; then
7710 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7711 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7713 { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7728 rhapsody* | darwin*)
7729 if test -n "$ac_tool_prefix"; then
7730 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7731 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7734 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 if test -n "$DSYMUTIL"; then
7738 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7758 if test -n "$DSYMUTIL"; then
7759 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7760 echo "${ECHO_T}$DSYMUTIL" >&6; }
7762 { echo "$as_me:$LINENO: result: no" >&5
7763 echo "${ECHO_T}no" >&6; }
7768 if test -z "$ac_cv_prog_DSYMUTIL"; then
7769 ac_ct_DSYMUTIL=$DSYMUTIL
7770 # Extract the first word of "dsymutil", so it can be a program name with args.
7771 set dummy dsymutil; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 if test -n "$ac_ct_DSYMUTIL"; then
7778 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7798 if test -n "$ac_ct_DSYMUTIL"; then
7799 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7800 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7802 { echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6; }
7806 if test "x$ac_ct_DSYMUTIL" = x; then
7809 case $cross_compiling:$ac_tool_warned in
7811 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7812 whose name does not start with the host triplet. If you think this
7813 configuration is useful to you, please write to autoconf@gnu.org." >&5
7814 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7815 whose name does not start with the host triplet. If you think this
7816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7817 ac_tool_warned=yes ;;
7819 DSYMUTIL=$ac_ct_DSYMUTIL
7822 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7825 if test -n "$ac_tool_prefix"; then
7826 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7827 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 if test -n "$NMEDIT"; then
7834 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 NMEDIT=$ac_cv_prog_NMEDIT
7854 if test -n "$NMEDIT"; then
7855 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7856 echo "${ECHO_T}$NMEDIT" >&6; }
7858 { echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6; }
7864 if test -z "$ac_cv_prog_NMEDIT"; then
7865 ac_ct_NMEDIT=$NMEDIT
7866 # Extract the first word of "nmedit", so it can be a program name with args.
7867 set dummy nmedit; ac_word=$2
7868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 if test -n "$ac_ct_NMEDIT"; then
7874 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7894 if test -n "$ac_ct_NMEDIT"; then
7895 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7896 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7898 { echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6; }
7902 if test "x$ac_ct_NMEDIT" = x; then
7905 case $cross_compiling:$ac_tool_warned in
7907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7908 whose name does not start with the host triplet. If you think this
7909 configuration is useful to you, please write to autoconf@gnu.org." >&5
7910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7911 whose name does not start with the host triplet. If you think this
7912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7913 ac_tool_warned=yes ;;
7915 NMEDIT=$ac_ct_NMEDIT
7918 NMEDIT="$ac_cv_prog_NMEDIT"
7922 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7923 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7924 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 lt_cv_apple_cc_single_mod=no
7928 if test -z "${LT_MULTI_MODULE}"; then
7929 # By default we will add the -single_module flag. You can override
7930 # by either setting the environment variable LT_MULTI_MODULE
7931 # non-empty at configure time, or by adding -multi_module to the
7933 echo "int foo(void){return 1;}" > conftest.c
7934 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7935 -dynamiclib ${wl}-single_module conftest.c
7936 if test -f libconftest.dylib; then
7937 lt_cv_apple_cc_single_mod=yes
7938 rm -rf libconftest.dylib*
7943 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7944 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7945 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7946 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7947 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 lt_cv_ld_exported_symbols_list=no
7951 save_LDFLAGS=$LDFLAGS
7952 echo "_main" > conftest.sym
7953 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (ac_try="$ac_link"
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_link") 2>conftest.er1
7978 grep -v '^ *+' conftest.er1 >conftest.err
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } && {
7983 test -z "$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7985 } && test -s conftest$ac_exeext &&
7986 $as_test_x conftest$ac_exeext; then
7987 lt_cv_ld_exported_symbols_list=yes
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7992 lt_cv_ld_exported_symbols_list=no
7995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7996 conftest$ac_exeext conftest.$ac_ext
7997 LDFLAGS="$save_LDFLAGS"
8000 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8001 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8003 rhapsody* | darwin1.[0123])
8004 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8006 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8008 # if running on 10.5 or later, the deployment target defaults
8009 # to the OS version, if on x86, and 10.4, the deployment
8010 # target defaults to 10.4. Don't you love it?
8011 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8012 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8013 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8015 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8017 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8021 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8022 _lt_dar_single_mod='$single_module'
8024 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8025 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8027 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8029 if test "$DSYMUTIL" != ":"; then
8030 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8041 # Check whether --enable-libtool-lock was given.
8042 if test "${enable_libtool_lock+set}" = set; then
8043 enableval=$enable_libtool_lock;
8046 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8049 # Check whether --with-pic was given.
8050 if test "${with_pic+set}" = set; then
8051 withval=$with_pic; pic_mode="$withval"
8056 test -z "$pic_mode" && pic_mode=default
8058 # Use C for the default configuration in the libtool script
8062 ac_cpp='$CPP $CPPFLAGS'
8063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068 # Source file extension for C test sources.
8071 # Object file extension for compiled C test sources.
8075 # Code to be used in simple compile tests
8076 lt_simple_compile_test_code="int some_variable = 0;"
8078 # Code to be used in simple link tests
8079 lt_simple_link_test_code='int main(){return(0);}'
8082 # If no C compiler was specified, use CC.
8085 # If no C compiler flags were specified, use CFLAGS.
8086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8088 # Allow CC to be a program name with arguments.
8092 # save warnings/boilerplate of simple test code
8093 ac_outfile=conftest.$ac_objext
8094 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8096 _lt_compiler_boilerplate=`cat conftest.err`
8099 ac_outfile=conftest.$ac_objext
8100 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8102 _lt_linker_boilerplate=`cat conftest.err`
8107 ## There is no encapsulation within the following macros, do not change
8108 ## the running order or otherwise move them around unless you know exactly
8109 ## what you are doing...
8111 lt_prog_compiler_no_builtin_flag=
8113 if test "$GCC" = yes; then
8114 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8117 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8118 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8119 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 lt_cv_prog_compiler_rtti_exceptions=no
8123 ac_outfile=conftest.$ac_objext
8124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8125 lt_compiler_flag="-fno-rtti -fno-exceptions"
8126 # Insert the option either (1) after the last *FLAGS variable, or
8127 # (2) before a word containing "conftest.", or (3) at the end.
8128 # Note that $ac_compile itself does not contain backslashes and begins
8129 # with a dollar sign (not a hyphen), so the echo should work correctly.
8130 # The option is referenced via a variable to avoid confusing sed.
8131 lt_compile=`echo "$ac_compile" | $SED \
8132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8134 -e 's:$: $lt_compiler_flag:'`
8135 (eval echo "\"\$as_me:8135: $lt_compile\"" >&5)
8136 (eval "$lt_compile" 2>conftest.err)
8138 cat conftest.err >&5
8139 echo "$as_me:8139: \$? = $ac_status" >&5
8140 if (exit $ac_status) && test -s "$ac_outfile"; then
8141 # The compiler can only warn and ignore the option if not recognized
8142 # So say no if there are warnings other than the usual output.
8143 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8146 lt_cv_prog_compiler_rtti_exceptions=yes
8152 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8153 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8156 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8163 lt_prog_compiler_wl=
8164 lt_prog_compiler_pic=
8165 lt_prog_compiler_static=
8167 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8168 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8170 if test "$GCC" = yes; then
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_static='-static'
8176 # All AIX code is PIC.
8177 if test "$host_cpu" = ia64; then
8178 # AIX 5 now supports IA64 processor
8179 lt_prog_compiler_static='-Bstatic'
8184 # FIXME: we need at least 68020 code to build shared libraries, but
8185 # adding the `-m68020' flag to GCC prevents building anything better,
8187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8190 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8191 # PIC is the default for these OSes.
8194 mingw* | cygwin* | pw32* | os2*)
8195 # This hack is so that the source file can tell whether it is being
8196 # built for inclusion in a dll (and should export symbols for example).
8197 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8198 # (--disable-auto-import) libraries
8199 lt_prog_compiler_pic='-DDLL_EXPORT'
8202 darwin* | rhapsody*)
8203 # PIC is the default on this platform
8204 # Common symbols not allowed in MH_DYLIB files
8205 lt_prog_compiler_pic='-fno-common'
8209 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8210 # Instead, we relocate shared libraries at runtime.
8214 # Just because we use GCC doesn't mean we suddenly get shared libraries
8215 # on systems that don't support them.
8216 lt_prog_compiler_can_build_shared=no
8221 if test -d /usr/nec; then
8222 lt_prog_compiler_pic=-Kconform_pic
8227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8234 lt_prog_compiler_pic='-fPIC'
8240 lt_prog_compiler_pic='-fPIC'
8244 # PORTME Check for flag to pass linker flags through the system compiler.
8247 lt_prog_compiler_wl='-Wl,'
8248 if test "$host_cpu" = ia64; then
8249 # AIX 5 now supports IA64 processor
8250 lt_prog_compiler_static='-Bstatic'
8252 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8256 # PIC is the default on this platform
8257 # Common symbols not allowed in MH_DYLIB files
8258 case $cc_basename in
8260 lt_prog_compiler_pic='-qnocommon'
8261 lt_prog_compiler_wl='-Wl,'
8266 mingw* | cygwin* | pw32* | os2*)
8267 # This hack is so that the source file can tell whether it is being
8268 # built for inclusion in a dll (and should export symbols for example).
8269 lt_prog_compiler_pic='-DDLL_EXPORT'
8272 hpux9* | hpux10* | hpux11*)
8273 lt_prog_compiler_wl='-Wl,'
8274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8281 lt_prog_compiler_pic='+Z'
8284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8285 lt_prog_compiler_static='${wl}-a ${wl}archive'
8288 irix5* | irix6* | nonstopux*)
8289 lt_prog_compiler_wl='-Wl,'
8290 # PIC (with -KPIC) is the default.
8291 lt_prog_compiler_static='-non_shared'
8295 lt_prog_compiler_pic='-KPIC'
8296 lt_prog_compiler_static='-Bstatic'
8299 linux* | k*bsd*-gnu)
8300 case $cc_basename in
8302 lt_prog_compiler_wl='-Wl,'
8303 lt_prog_compiler_pic='-KPIC'
8304 lt_prog_compiler_static='-static'
8306 pgcc* | pgf77* | pgf90* | pgf95*)
8307 # Portland Group compilers (*not* the Pentium gcc compiler,
8308 # which looks to be a dead project)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='-fpic'
8311 lt_prog_compiler_static='-Bstatic'
8314 lt_prog_compiler_wl='-Wl,'
8315 # All Alpha code is PIC.
8316 lt_prog_compiler_static='-non_shared'
8319 case `$CC -V 2>&1 | sed 5q` in
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-Bstatic'
8324 lt_prog_compiler_wl='-Wl,'
8327 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8328 lt_prog_compiler_pic='-KPIC'
8329 lt_prog_compiler_static='-Bstatic'
8330 lt_prog_compiler_wl=''
8337 osf3* | osf4* | osf5*)
8338 lt_prog_compiler_wl='-Wl,'
8339 # All OSF/1 code is PIC.
8340 lt_prog_compiler_static='-non_shared'
8344 lt_prog_compiler_static='-non_shared'
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-Bstatic'
8350 case $cc_basename in
8352 lt_prog_compiler_wl='-Qoption ld ';;
8354 lt_prog_compiler_wl='-Wl,';;
8359 lt_prog_compiler_wl='-Qoption ld '
8360 lt_prog_compiler_pic='-PIC'
8361 lt_prog_compiler_static='-Bstatic'
8364 sysv4 | sysv4.2uw2* | sysv4.3*)
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_pic='-KPIC'
8367 lt_prog_compiler_static='-Bstatic'
8371 if test -d /usr/nec ;then
8372 lt_prog_compiler_pic='-Kconform_pic'
8373 lt_prog_compiler_static='-Bstatic'
8377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8384 lt_prog_compiler_wl='-Wl,'
8385 lt_prog_compiler_can_build_shared=no
8389 lt_prog_compiler_pic='-pic'
8390 lt_prog_compiler_static='-Bstatic'
8394 lt_prog_compiler_can_build_shared=no
8399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8400 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8403 # Check to make sure the PIC flag actually works.
8405 if test -n "$lt_prog_compiler_pic"; then
8407 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8409 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 lt_cv_prog_compiler_pic_works=no
8413 ac_outfile=conftest.$ac_objext
8414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8415 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8416 # Insert the option either (1) after the last *FLAGS variable, or
8417 # (2) before a word containing "conftest.", or (3) at the end.
8418 # Note that $ac_compile itself does not contain backslashes and begins
8419 # with a dollar sign (not a hyphen), so the echo should work correctly.
8420 # The option is referenced via a variable to avoid confusing sed.
8421 lt_compile=`echo "$ac_compile" | $SED \
8422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8424 -e 's:$: $lt_compiler_flag:'`
8425 (eval echo "\"\$as_me:8425: $lt_compile\"" >&5)
8426 (eval "$lt_compile" 2>conftest.err)
8428 cat conftest.err >&5
8429 echo "$as_me:8429: \$? = $ac_status" >&5
8430 if (exit $ac_status) && test -s "$ac_outfile"; then
8431 # The compiler can only warn and ignore the option if not recognized
8432 # So say no if there are warnings other than the usual output.
8433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8436 lt_cv_prog_compiler_pic_works=yes
8442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8443 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8445 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8446 case $lt_prog_compiler_pic in
8448 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8451 lt_prog_compiler_pic=
8452 lt_prog_compiler_can_build_shared=no
8457 # For platforms which do not support PIC, -DPIC is meaningless:
8459 lt_prog_compiler_pic=
8462 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8467 # Check to make sure the static flag actually works.
8469 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8471 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8472 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 lt_cv_prog_compiler_static_works=no
8476 save_LDFLAGS="$LDFLAGS"
8477 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8480 # The linker can only warn and ignore the option if not recognized
8481 # So say no if there are warnings
8482 if test -s conftest.err; then
8483 # Append any errors to the config.log.
8484 cat conftest.err 1>&5
8485 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8487 if diff conftest.exp conftest.er2 >/dev/null; then
8488 lt_cv_prog_compiler_static_works=yes
8491 lt_cv_prog_compiler_static_works=yes
8495 LDFLAGS="$save_LDFLAGS"
8498 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8499 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8501 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8504 lt_prog_compiler_static=
8508 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8509 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8510 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 lt_cv_prog_compiler_c_o=no
8514 $rm -r conftest 2>/dev/null
8518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8520 lt_compiler_flag="-o out/conftest2.$ac_objext"
8521 # Insert the option either (1) after the last *FLAGS variable, or
8522 # (2) before a word containing "conftest.", or (3) at the end.
8523 # Note that $ac_compile itself does not contain backslashes and begins
8524 # with a dollar sign (not a hyphen), so the echo should work correctly.
8525 lt_compile=`echo "$ac_compile" | $SED \
8526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8528 -e 's:$: $lt_compiler_flag:'`
8529 (eval echo "\"\$as_me:8529: $lt_compile\"" >&5)
8530 (eval "$lt_compile" 2>out/conftest.err)
8532 cat out/conftest.err >&5
8533 echo "$as_me:8533: \$? = $ac_status" >&5
8534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8536 # The compiler can only warn and ignore the option if not recognized
8537 # So say no if there are warnings
8538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8541 lt_cv_prog_compiler_c_o=yes
8546 # SGI C++ compiler will create directory out/ii_files/ for
8547 # template instantiation
8548 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8549 $rm out/* && rmdir out
8555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8556 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8559 hard_links="nottested"
8560 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8561 # do not overwrite the value of need_locks provided by the user
8562 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8563 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8568 ln conftest.a conftest.b 2>&5 || hard_links=no
8569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8570 { echo "$as_me:$LINENO: result: $hard_links" >&5
8571 echo "${ECHO_T}$hard_links" >&6; }
8572 if test "$hard_links" = no; then
8573 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8574 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8581 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8582 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8585 allow_undefined_flag=
8586 enable_shared_with_static_runtimes=no
8588 archive_expsym_cmds=
8589 old_archive_From_new_cmds=
8590 old_archive_from_expsyms_cmds=
8591 export_dynamic_flag_spec=
8592 whole_archive_flag_spec=
8593 thread_safe_flag_spec=
8594 hardcode_libdir_flag_spec=
8595 hardcode_libdir_flag_spec_ld=
8596 hardcode_libdir_separator=
8599 hardcode_shlibpath_var=unsupported
8600 link_all_deplibs=unknown
8601 hardcode_automatic=no
8604 always_export_symbols=no
8605 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8606 # include_expsyms should be a list of space-separated symbols to be *always*
8607 # included in the symbol list
8609 # exclude_expsyms can be an extended regexp of symbols to exclude
8610 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8611 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8612 # as well as any symbol that contains `d'.
8613 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8614 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8615 # platforms (ab)use it in PIC code, but their linkers get confused if
8616 # the symbol is explicitly referenced. Since portable code cannot
8617 # rely on this symbol name, it's probably fine to never include it in
8618 # preloaded symbol tables.
8619 # Exclude shared library initialization/finalization symbols.
8620 extract_expsyms_cmds=
8621 # Just being paranoid about ensuring that cc_basename is set.
8622 for cc_temp in $compiler""; do
8624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8630 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8633 cygwin* | mingw* | pw32*)
8634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8635 # When not using gcc, we currently assume that we are using
8636 # Microsoft Visual C++.
8637 if test "$GCC" != yes; then
8642 # we just hope/assume this is gcc and not c89 (= MSVC++)
8651 if test "$with_gnu_ld" = yes; then
8652 # If archive_cmds runs LD, not CC, wlarc should be empty
8655 # Set some defaults for GNU ld with shared library support. These
8656 # are reset later if shared libraries are not supported. Putting them
8657 # here allows them to be overridden if necessary.
8658 runpath_var=LD_RUN_PATH
8659 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8660 export_dynamic_flag_spec='${wl}--export-dynamic'
8661 # ancient GNU ld didn't support --whole-archive et. al.
8662 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8663 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8665 whole_archive_flag_spec=
8667 supports_anon_versioning=no
8668 case `$LD -v 2>/dev/null` in
8669 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8670 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8671 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8672 *\ 2.11.*) ;; # other 2.11 versions
8673 *) supports_anon_versioning=yes ;;
8676 # See if GNU ld supports shared libraries.
8679 # On AIX/PPC, the GNU linker is very broken
8680 if test "$host_cpu" != ia64; then
8684 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8685 *** to be unable to reliably create shared libraries on AIX.
8686 *** Therefore, libtool is disabling shared libraries support. If you
8687 *** really care for shared libraries, you may want to modify your PATH
8688 *** so that a non-GNU linker is found, and then restart.
8695 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)'
8696 hardcode_libdir_flag_spec='-L$libdir'
8697 hardcode_minus_L=yes
8699 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8700 # that the semantics of dynamic libraries on AmigaOS, at least up
8701 # to version 4, is to share data among multiple programs linked
8702 # with the same dynamic library. Since this doesn't match the
8703 # behavior of shared libraries on other platforms, we can't use
8709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8710 allow_undefined_flag=unsupported
8711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8712 # support --undefined. This deserves some investigation. FIXME
8713 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719 cygwin* | mingw* | pw32*)
8720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8721 # as there is no search path for DLLs.
8722 hardcode_libdir_flag_spec='-L$libdir'
8723 allow_undefined_flag=unsupported
8724 always_export_symbols=no
8725 enable_shared_with_static_runtimes=yes
8726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8728 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8730 # If the export-symbols file already is a .def file (1st line
8731 # is EXPORTS), use it as is; otherwise, prepend...
8732 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8733 cp $export_symbols $output_objdir/$soname.def;
8735 echo EXPORTS > $output_objdir/$soname.def;
8736 cat $export_symbols >> $output_objdir/$soname.def;
8738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8746 hardcode_shlibpath_var=no
8747 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8748 export_dynamic_flag_spec='${wl}-E'
8749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8750 # Instead, shared libraries are loaded at an image base (0x10000000 by
8751 # default) and relocated if they conflict, which is a slow very memory
8752 # consuming and fragmenting process. To avoid this, we pick a random,
8753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8755 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8756 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'
8759 gnu* | linux* | k*bsd*-gnu)
8760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8762 case $cc_basename,$host_cpu in
8763 pgcc*) # Portland Group C compiler
8764 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'
8765 tmp_addflag=' $pic_flag'
8767 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8768 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'
8769 tmp_addflag=' $pic_flag -Mnomain' ;;
8770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8771 tmp_addflag=' -i_dynamic' ;;
8772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8773 tmp_addflag=' -i_dynamic -nofor_main' ;;
8774 ifc* | ifort*) # Intel Fortran compiler
8775 tmp_addflag=' -nofor_main' ;;
8777 case `$CC -V 2>&1 | sed 5q` in
8778 *Sun\ C*) # Sun C 5.9
8779 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'
8780 tmp_sharedflag='-G' ;;
8781 *Sun\ F*) # Sun Fortran 8.3
8782 tmp_sharedflag='-G' ;;
8784 tmp_sharedflag='-shared' ;;
8786 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788 if test $supports_anon_versioning = yes; then
8789 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8791 $echo "local: *; };" >> $output_objdir/$libname.ver~
8792 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8801 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8810 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8814 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8815 *** create shared libraries on Solaris systems. Therefore, libtool
8816 *** is disabling shared libraries support. We urge you to upgrade GNU
8817 *** binutils to release 2.9.1 or newer. Another option is to modify
8818 *** your PATH or compiler configuration so that the native linker is
8819 *** used, and then restart.
8822 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8831 case `$LD -v 2>&1` in
8832 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8836 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8837 *** reliably create shared libraries on SCO systems. Therefore, libtool
8838 *** is disabling shared libraries support. We urge you to upgrade GNU
8839 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8840 *** your PATH or compiler configuration so that the native linker is
8841 *** used, and then restart.
8846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8847 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8858 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8861 hardcode_shlibpath_var=no
8865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8874 if test "$ld_shlibs" = no; then
8876 hardcode_libdir_flag_spec=
8877 export_dynamic_flag_spec=
8878 whole_archive_flag_spec=
8881 # PORTME fill in a description of your system's linker (not GNU ld)
8884 allow_undefined_flag=unsupported
8885 always_export_symbols=yes
8886 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'
8887 # Note: this linker hardcodes the directories in LIBPATH if there
8888 # are no directories specified by -L.
8889 hardcode_minus_L=yes
8890 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8891 # Neither direct hardcoding nor static linking is supported with a
8893 hardcode_direct=unsupported
8898 if test "$host_cpu" = ia64; then
8899 # On IA64, the linker does run time linking by default, so we don't
8900 # have to do anything special.
8901 aix_use_runtimelinking=no
8902 exp_sym_flag='-Bexport'
8905 # If we're using GNU nm, then we don't want the "-C" option.
8906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8907 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8908 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'
8910 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'
8912 aix_use_runtimelinking=no
8914 # Test if we are trying to use run time linking or normal
8915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8916 # need to do runtime linking.
8917 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8918 for ld_flag in $LDFLAGS; do
8919 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8920 aix_use_runtimelinking=yes
8927 exp_sym_flag='-bexport'
8928 no_entry_flag='-bnoentry'
8931 # When large executables or shared objects are built, AIX ld can
8932 # have problems creating the table of contents. If linking a library
8933 # or program results in "error TOC overflow" add -mminimal-toc to
8934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8939 hardcode_libdir_separator=':'
8940 link_all_deplibs=yes
8942 if test "$GCC" = yes; then
8943 case $host_os in aix4.[012]|aix4.[012].*)
8944 # We only want to do this on AIX 4.2 and lower, the check
8945 # below for broken collect2 doesn't work under 4.3+
8946 collect2name=`${CC} -print-prog-name=collect2`
8947 if test -f "$collect2name" && \
8948 strings "$collect2name" | grep resolve_lib_name >/dev/null
8950 # We have reworked collect2
8953 # We have old collect2
8954 hardcode_direct=unsupported
8955 # It fails to find uninstalled libraries when the uninstalled
8956 # path is not listed in the libpath. Setting hardcode_minus_L
8957 # to unsupported forces relinking
8958 hardcode_minus_L=yes
8959 hardcode_libdir_flag_spec='-L$libdir'
8960 hardcode_libdir_separator=
8964 shared_flag='-shared'
8965 if test "$aix_use_runtimelinking" = yes; then
8966 shared_flag="$shared_flag "'${wl}-G'
8970 if test "$host_cpu" = ia64; then
8971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8972 # chokes on -Wl,-G. The following line is correct:
8975 if test "$aix_use_runtimelinking" = yes; then
8976 shared_flag='${wl}-G'
8978 shared_flag='${wl}-bM:SRE'
8983 # It seems that -bexpall does not export symbols beginning with
8984 # underscore (_), so it is better to generate a list of symbols to export.
8985 always_export_symbols=yes
8986 if test "$aix_use_runtimelinking" = yes; then
8987 # Warning - without using the other runtime loading flags (-brtl),
8988 # -berok will link without error, but may produce a broken library.
8989 allow_undefined_flag='-berok'
8990 # Determine the default libpath from the value encoded in an empty executable.
8991 cat >conftest.$ac_ext <<_ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (ac_try="$ac_link"
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_link") 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest$ac_exeext &&
9023 $as_test_x conftest$ac_exeext; then
9025 lt_aix_libpath_sed='
9026 /Import File Strings/,/^$/ {
9032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9033 # Check for a 64-bit object if we didn't find anything.
9034 if test -z "$aix_libpath"; then
9035 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9038 echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9045 conftest$ac_exeext conftest.$ac_ext
9046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9048 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9049 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"
9051 if test "$host_cpu" = ia64; then
9052 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9053 allow_undefined_flag="-z nodefs"
9054 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"
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 # Warning - without using the other run time loading flags,
9116 # -berok will link without error, but may produce a broken library.
9117 no_undefined_flag=' ${wl}-bernotok'
9118 allow_undefined_flag=' ${wl}-berok'
9119 # Exported symbols can be pulled into shared objects from archives
9120 whole_archive_flag_spec='$convenience'
9121 archive_cmds_need_lc=yes
9122 # This is similar to how AIX traditionally builds its shared libraries.
9123 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'
9129 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)'
9130 hardcode_libdir_flag_spec='-L$libdir'
9131 hardcode_minus_L=yes
9132 # see comment about different semantics on the GNU ld section
9137 export_dynamic_flag_spec=-rdynamic
9140 cygwin* | mingw* | pw32*)
9141 # When not using gcc, we currently assume that we are using
9142 # Microsoft Visual C++.
9143 # hardcode_libdir_flag_spec is actually meaningless, as there is
9144 # no search path for DLLs.
9145 hardcode_libdir_flag_spec=' '
9146 allow_undefined_flag=unsupported
9147 # Tell ltmain to make .lib files, not .a files.
9149 # Tell ltmain to make .dll files, not .so files.
9151 # FIXME: Setting linknames here is a bad hack.
9152 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9153 # The linker will automatically build a .lib file if we build a DLL.
9154 old_archive_From_new_cmds='true'
9155 # FIXME: Should let the user specify the lib program.
9156 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9157 fix_srcfile_path='`cygpath -w "$srcfile"`'
9158 enable_shared_with_static_runtimes=yes
9161 darwin* | rhapsody*)
9163 rhapsody* | darwin1.[012])
9164 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9167 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9168 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9170 case ${MACOSX_DEPLOYMENT_TARGET} in
9172 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9175 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9181 archive_cmds_need_lc=no
9183 hardcode_automatic=yes
9184 hardcode_shlibpath_var=unsupported
9185 whole_archive_flag_spec=''
9186 link_all_deplibs=yes
9187 if test "$GCC" = yes ; then
9188 output_verbose_link_cmd='echo'
9189 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9190 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9191 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}"
9192 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}"
9194 case $cc_basename in
9196 output_verbose_link_cmd='echo'
9197 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9198 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9200 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}'
9201 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}'
9211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_libdir_flag_spec='-L$libdir'
9213 hardcode_shlibpath_var=no
9220 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9221 # support. Future versions do this automatically, but an explicit c++rt0.o
9222 # does not break anything, and helps significantly (at the cost of a little
9225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9226 hardcode_libdir_flag_spec='-R$libdir'
9228 hardcode_shlibpath_var=no
9231 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9235 hardcode_minus_L=yes
9236 hardcode_shlibpath_var=no
9239 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9240 freebsd* | dragonfly*)
9241 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9242 hardcode_libdir_flag_spec='-R$libdir'
9244 hardcode_shlibpath_var=no
9248 if test "$GCC" = yes; then
9249 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'
9251 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'
9253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254 hardcode_libdir_separator=:
9257 # hardcode_minus_L: Not really in the search PATH,
9258 # but as the default location of the library.
9259 hardcode_minus_L=yes
9260 export_dynamic_flag_spec='${wl}-E'
9264 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9265 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9269 if test "$with_gnu_ld" = no; then
9270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9271 hardcode_libdir_separator=:
9274 export_dynamic_flag_spec='${wl}-E'
9276 # hardcode_minus_L: Not really in the search PATH,
9277 # but as the default location of the library.
9278 hardcode_minus_L=yes
9283 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9286 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9289 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9292 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9301 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9304 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9308 if test "$with_gnu_ld" = no; then
9309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9310 hardcode_libdir_separator=:
9314 hardcode_libdir_flag_spec_ld='+b $libdir'
9316 hardcode_shlibpath_var=no
9320 export_dynamic_flag_spec='${wl}-E'
9322 # hardcode_minus_L: Not really in the search PATH,
9323 # but as the default location of the library.
9324 hardcode_minus_L=yes
9330 irix5* | irix6* | nonstopux*)
9331 if test "$GCC" = yes; then
9332 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'
9334 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'
9335 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338 hardcode_libdir_separator=:
9339 link_all_deplibs=yes
9343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9346 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9348 hardcode_libdir_flag_spec='-R$libdir'
9350 hardcode_shlibpath_var=no
9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9357 hardcode_libdir_separator=:
9358 hardcode_shlibpath_var=no
9362 if test -f /usr/libexec/ld.so; then
9364 hardcode_shlibpath_var=no
9365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9368 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9369 export_dynamic_flag_spec='${wl}-E'
9372 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_libdir_flag_spec='-R$libdir'
9377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9378 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9388 hardcode_libdir_flag_spec='-L$libdir'
9389 hardcode_minus_L=yes
9390 allow_undefined_flag=unsupported
9391 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'
9392 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9396 if test "$GCC" = yes; then
9397 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9398 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'
9400 allow_undefined_flag=' -expect_unresolved \*'
9401 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'
9403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9404 hardcode_libdir_separator=:
9407 osf4* | osf5*) # as osf3* with the addition of -msym flag
9408 if test "$GCC" = yes; then
9409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9410 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'
9411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9413 allow_undefined_flag=' -expect_unresolved \*'
9414 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'
9415 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9416 $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'
9418 # Both c and cxx compiler support -rpath directly
9419 hardcode_libdir_flag_spec='-rpath $libdir'
9421 hardcode_libdir_separator=:
9425 no_undefined_flag=' -z text'
9426 if test "$GCC" = yes; then
9428 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9430 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9433 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9434 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9437 hardcode_libdir_flag_spec='-R$libdir'
9438 hardcode_shlibpath_var=no
9440 solaris2.[0-5] | solaris2.[0-5].*) ;;
9442 # The compiler driver will combine and reorder linker options,
9443 # but understands `-z linker_flag'. GCC discards it without `$wl',
9444 # but is careful enough not to reorder.
9445 # Supported since Solaris 2.6 (maybe 2.5.1?)
9446 if test "$GCC" = yes; then
9447 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9449 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9453 link_all_deplibs=yes
9457 if test "x$host_vendor" = xsequent; then
9458 # Use $CC to link under sequent, because it throws in some extra .o
9459 # files that make .init and .fini sections work.
9460 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9462 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_minus_L=yes
9467 hardcode_shlibpath_var=no
9471 case $host_vendor in
9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_direct=yes # is this really true???
9477 ## LD is ld it makes a PLAMLIB
9478 ## CC just makes a GrossModule.
9479 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9480 reload_cmds='$CC -r -o $output$reload_objs'
9484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9488 runpath_var='LD_RUN_PATH'
9489 hardcode_shlibpath_var=no
9493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494 hardcode_shlibpath_var=no
9495 export_dynamic_flag_spec='-Bexport'
9499 if test -d /usr/nec; then
9500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501 hardcode_shlibpath_var=no
9502 runpath_var=LD_RUN_PATH
9503 hardcode_runpath_var=yes
9508 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9509 no_undefined_flag='${wl}-z,text'
9510 archive_cmds_need_lc=no
9511 hardcode_shlibpath_var=no
9512 runpath_var='LD_RUN_PATH'
9514 if test "$GCC" = yes; then
9515 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523 sysv5* | sco3.2v5* | sco5v6*)
9524 # Note: We can NOT use -z defs as we might desire, because we do not
9525 # link with -lc, and that would cause any symbols used from libc to
9526 # always be unresolved, which means just about no library would
9527 # ever link correctly. If we're not using GNU ld we use -z text
9528 # though, which does catch some bad symbols but isn't as heavy-handed
9530 no_undefined_flag='${wl}-z,text'
9531 allow_undefined_flag='${wl}-z,nodefs'
9532 archive_cmds_need_lc=no
9533 hardcode_shlibpath_var=no
9534 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9535 hardcode_libdir_separator=':'
9536 link_all_deplibs=yes
9537 export_dynamic_flag_spec='${wl}-Bexport'
9538 runpath_var='LD_RUN_PATH'
9540 if test "$GCC" = yes; then
9541 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9542 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9544 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_libdir_flag_spec='-L$libdir'
9552 hardcode_shlibpath_var=no
9561 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9562 echo "${ECHO_T}$ld_shlibs" >&6; }
9563 test "$ld_shlibs" = no && can_build_shared=no
9566 # Do we need to explicitly link libc?
9568 case "x$archive_cmds_need_lc" in
9570 # Assume -lc should be added
9571 archive_cmds_need_lc=yes
9573 if test "$enable_shared" = yes && test "$GCC" = yes; then
9574 case $archive_cmds in
9576 # FIXME: we may have to deal with multi-command sequences.
9579 # Test whether the compiler implicitly links with -lc since on some
9580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9581 # to ld, don't add -lc before -lgcc.
9582 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9583 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } 2>conftest.err; then
9594 libobjs=conftest.$ac_objext
9596 wl=$lt_prog_compiler_wl
9597 pic_flag=$lt_prog_compiler_pic
9603 lt_save_allow_undefined_flag=$allow_undefined_flag
9604 allow_undefined_flag=
9605 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9606 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }
9611 archive_cmds_need_lc=no
9613 archive_cmds_need_lc=yes
9615 allow_undefined_flag=$lt_save_allow_undefined_flag
9617 cat conftest.err 1>&5
9620 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9621 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9628 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9629 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9631 libname_spec='lib$name'
9639 shlibpath_overrides_runpath=unknown
9641 dynamic_linker="$host_os ld.so"
9642 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9644 if test "$GCC" = yes; then
9646 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9647 *) lt_awk_arg="/^libraries:/" ;;
9649 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9650 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9651 # if the path contains ";" then we assume it to be the separator
9652 # otherwise default to the standard path separator (i.e. ":") - it is
9653 # assumed that no part of a normal pathname contains ";" but that should
9654 # okay in the real world where ";" in dirpaths is itself problematic.
9655 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9657 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9659 # Ok, now we have the path, separated by spaces, we can step through it
9660 # and add multilib dir if necessary.
9661 lt_tmp_lt_search_path_spec=
9662 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9663 for lt_sys_path in $lt_search_path_spec; do
9664 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9665 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9667 test -d "$lt_sys_path" && \
9668 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9671 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9672 BEGIN {RS=" "; FS="/|\n";} {
9675 for (lt_i = NF; lt_i > 0; lt_i--) {
9676 if ($lt_i != "" && $lt_i != ".") {
9677 if ($lt_i == "..") {
9680 if (lt_count == 0) {
9681 lt_foo="/" $lt_i lt_foo;
9688 if (lt_foo != "") { lt_freq[lt_foo]++; }
9689 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9691 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9696 hardcode_into_libs=no
9698 # when you set need_version to no, make sure it does not cause -set_version
9699 # flags to be left without arguments
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9706 shlibpath_var=LIBPATH
9708 # AIX 3 has no versioning support, so we append a major version to the name.
9709 soname_spec='${libname}${release}${shared_ext}$major'
9716 hardcode_into_libs=yes
9717 if test "$host_cpu" = ia64; then
9718 # AIX 5 supports IA64
9719 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9720 shlibpath_var=LD_LIBRARY_PATH
9722 # With GCC up to 2.95.x, collect2 would create an import file
9723 # for dependence libraries. The import file would start with
9724 # the line `#! .'. This would cause the generated library to
9725 # depend on `.', always an invalid library. This was fixed in
9726 # development snapshots of GCC prior to 3.0.
9728 aix4 | aix4.[01] | aix4.[01].*)
9729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9731 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9738 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9739 # soname into executable. Probably we can add versioning support to
9740 # collect2, so additional links can be useful in future.
9741 if test "$aix_use_runtimelinking" = yes; then
9742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9743 # instead of lib<name>.a to let people know that these are not
9744 # typical AIX shared libraries.
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747 # We preserve .a as extension for shared libraries through AIX4.2
9748 # and later when we are not doing run time linking.
9749 library_names_spec='${libname}${release}.a $libname.a'
9750 soname_spec='${libname}${release}${shared_ext}$major'
9752 shlibpath_var=LIBPATH
9757 library_names_spec='$libname.ixlibrary $libname.a'
9758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9759 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'
9763 library_names_spec='${libname}${shared_ext}'
9764 dynamic_linker="$host_os ld.so"
9765 shlibpath_var=LIBRARY_PATH
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9777 # the default ld.so.conf also contains /usr/contrib/lib and
9778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9779 # libtool to hard-code these into programs
9782 cygwin* | mingw* | pw32*)
9783 version_type=windows
9788 case $GCC,$host_os in
9789 yes,cygwin* | yes,mingw* | yes,pw32*)
9790 library_names_spec='$libname.dll.a'
9791 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9792 postinstall_cmds='base_file=`basename \${file}`~
9793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9794 dldir=$destdir/`dirname \$dlpath`~
9795 test -d \$dldir || mkdir -p \$dldir~
9796 $install_prog $dir/$dlname \$dldir/$dlname~
9797 chmod a+x \$dldir/$dlname'
9798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9799 dlpath=$dir/\$dldll~
9801 shlibpath_overrides_runpath=yes
9805 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9806 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9807 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9810 # MinGW DLLs use traditional 'lib' prefix
9811 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9812 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9813 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9814 # It is most probably a Windows format PATH printed by
9815 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9816 # path with ; separators, and with drive letters. We can handle the
9817 # drive letters (cygwin fileutils understands them), so leave them,
9818 # especially as we might pass files found there to a mingw objdump,
9819 # which wouldn't understand a cygwinified path. Ahh.
9820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9826 # pw32 DLLs use 'pw' prefix rather than 'lib'
9827 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9833 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9836 dynamic_linker='Win32 ld.exe'
9837 # FIXME: first we should search . and the directory the executable is in
9841 darwin* | rhapsody*)
9842 dynamic_linker="$host_os dyld"
9846 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9847 soname_spec='${libname}${release}${major}$shared_ext'
9848 shlibpath_overrides_runpath=yes
9849 shlibpath_var=DYLD_LIBRARY_PATH
9850 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9852 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9853 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 shlibpath_var=LD_LIBRARY_PATH
9869 freebsd* | dragonfly*)
9870 # DragonFly does not have aout. When/if they implement a new
9871 # versioning mechanism, adjust this.
9872 if test -x /usr/bin/objformat; then
9873 objformat=`/usr/bin/objformat`
9876 freebsd[123]*) objformat=aout ;;
9880 version_type=freebsd-$objformat
9881 case $version_type in
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9892 shlibpath_var=LD_LIBRARY_PATH
9895 shlibpath_overrides_runpath=yes
9897 freebsd3.[01]* | freebsdelf3.[01]*)
9898 shlibpath_overrides_runpath=yes
9899 hardcode_into_libs=yes
9901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9903 shlibpath_overrides_runpath=no
9904 hardcode_into_libs=yes
9906 *) # from 4.6 on, and DragonFly
9907 shlibpath_overrides_runpath=yes
9908 hardcode_into_libs=yes
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 hardcode_into_libs=yes
9923 hpux9* | hpux10* | hpux11*)
9924 # Give a soname corresponding to the major version so that dld.sl refuses to
9925 # link against other versions.
9932 hardcode_into_libs=yes
9933 dynamic_linker="$host_os dld.so"
9934 shlibpath_var=LD_LIBRARY_PATH
9935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 if test "X$HPUX_IA64_MODE" = X32; then
9939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9947 hardcode_into_libs=yes
9948 dynamic_linker="$host_os dld.sl"
9949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9958 dynamic_linker="$host_os dld.sl"
9959 shlibpath_var=SHLIB_PATH
9960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9965 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9966 postinstall_cmds='chmod 555 $lib'
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=no
9978 hardcode_into_libs=yes
9981 irix5* | irix6* | nonstopux*)
9983 nonstopux*) version_type=nonstopux ;;
9985 if test "$lt_cv_prog_gnu_ld" = yes; then
9993 soname_spec='${libname}${release}${shared_ext}$major'
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9996 irix5* | nonstopux*)
10000 case $LD in # libtool.m4 will add one of these switches to LD
10001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10002 libsuff= shlibsuff= libmagic=32-bit;;
10003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10004 libsuff=32 shlibsuff=N32 libmagic=N32;;
10005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10007 *) libsuff= shlibsuff= libmagic=never-match;;
10011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10012 shlibpath_overrides_runpath=no
10013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10015 hardcode_into_libs=yes
10018 # No shared lib support for Linux oldld, aout, or coff.
10019 linux*oldld* | linux*aout* | linux*coff*)
10023 # This must be Linux ELF.
10024 linux* | k*bsd*-gnu)
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 shlibpath_overrides_runpath=no
10033 # This implies no fast_install, which is unacceptable.
10034 # Some rework will be needed to allow for fast_install
10035 # before this can be enabled.
10036 hardcode_into_libs=yes
10038 # Append ld.so.conf contents to the search path
10039 if test -f /etc/ld.so.conf; then
10040 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' ' '`
10041 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10044 # We used to test for /lib/ld.so.1 and disable shared libraries on
10045 # powerpc, because MkLinux only supported shared libraries with the
10046 # GNU dynamic linker. Since this was broken with cross compilers,
10047 # most powerpc-linux boxes support dynamic linking these days and
10048 # people can always --disable-shared, the test was removed, and we
10049 # assume the GNU/Linux dynamic linker is in use.
10050 dynamic_linker='GNU/Linux ld.so'
10057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10060 dynamic_linker='NetBSD (a.out) ld.so'
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 dynamic_linker='NetBSD ld.elf_so'
10066 shlibpath_var=LD_LIBRARY_PATH
10067 shlibpath_overrides_runpath=yes
10068 hardcode_into_libs=yes
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 shlibpath_var=LD_LIBRARY_PATH
10075 shlibpath_overrides_runpath=yes
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 shlibpath_overrides_runpath=yes
10090 sys_lib_dlsearch_path_spec="/usr/lib"
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10098 openbsd2.[89] | openbsd2.[89].*)
10099 shlibpath_overrides_runpath=no
10102 shlibpath_overrides_runpath=yes
10106 shlibpath_overrides_runpath=yes
10111 libname_spec='$name'
10114 library_names_spec='$libname${shared_ext} $libname.a'
10115 dynamic_linker='OS/2 ld.exe'
10116 shlibpath_var=LIBPATH
10119 osf3* | osf4* | osf5*)
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 shlibpath_var=LD_LIBRARY_PATH
10141 shlibpath_overrides_runpath=yes
10142 hardcode_into_libs=yes
10143 # ldd complains unless libraries are executable
10144 postinstall_cmds='chmod +x $lib'
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10151 shlibpath_var=LD_LIBRARY_PATH
10152 shlibpath_overrides_runpath=yes
10153 if test "$with_gnu_ld" = yes; then
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 case $host_vendor in
10166 shlibpath_overrides_runpath=no
10168 export_dynamic_flag_spec='${wl}-Blargedynsym'
10169 runpath_var=LD_RUN_PATH
10177 shlibpath_overrides_runpath=no
10178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10184 if test -d /usr/nec ;then
10186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10187 soname_spec='$libname${shared_ext}.$major'
10188 shlibpath_var=LD_LIBRARY_PATH
10192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10193 version_type=freebsd-elf
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 hardcode_into_libs=yes
10200 if test "$with_gnu_ld" = yes; then
10201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10202 shlibpath_overrides_runpath=no
10204 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10205 shlibpath_overrides_runpath=yes
10208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10212 sys_lib_dlsearch_path_spec='/usr/lib'
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 shlibpath_var=LD_LIBRARY_PATH
10226 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10227 echo "${ECHO_T}$dynamic_linker" >&6; }
10228 test "$dynamic_linker" = no && can_build_shared=no
10230 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10236 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10237 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10243 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10245 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10246 if test "$GCC" = yes; then
10247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10250 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10251 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10253 if test -n "$hardcode_libdir_flag_spec" || \
10254 test -n "$runpath_var" || \
10255 test "X$hardcode_automatic" = "Xyes" ; then
10257 # We can hardcode non-existent directories.
10258 if test "$hardcode_direct" != no &&
10259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10260 # have to relink, otherwise we might link with an installed library
10261 # when we should be linking with a yet-to-be-installed one
10262 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10263 test "$hardcode_minus_L" != no; then
10264 # Linking always hardcodes the temporary library directory.
10265 hardcode_action=relink
10267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10268 hardcode_action=immediate
10271 # We cannot hardcode anything, or else we can only hardcode existing
10273 hardcode_action=unsupported
10275 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10276 echo "${ECHO_T}$hardcode_action" >&6; }
10278 if test "$hardcode_action" = relink; then
10279 # Fast installation is not supported
10280 enable_fast_install=no
10281 elif test "$shlibpath_overrides_runpath" = yes ||
10282 test "$enable_shared" = no; then
10283 # Fast installation is not necessary
10284 enable_fast_install=needless
10289 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10290 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10291 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10292 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10293 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10294 { echo "$as_me:$LINENO: result: yes" >&5
10295 echo "${ECHO_T}yes" >&6; }
10297 # FIXME - insert some real tests, host_os isn't really good enough
10300 if test -n "$STRIP" ; then
10301 striplib="$STRIP -x"
10302 old_striplib="$STRIP -S"
10303 { echo "$as_me:$LINENO: result: yes" >&5
10304 echo "${ECHO_T}yes" >&6; }
10306 { echo "$as_me:$LINENO: result: no" >&5
10307 echo "${ECHO_T}no" >&6; }
10311 { echo "$as_me:$LINENO: result: no" >&5
10312 echo "${ECHO_T}no" >&6; }
10317 if test "x$enable_dlopen" != xyes; then
10318 enable_dlopen=unknown
10319 enable_dlopen_self=unknown
10320 enable_dlopen_self_static=unknown
10327 lt_cv_dlopen="load_add_on"
10329 lt_cv_dlopen_self=yes
10333 lt_cv_dlopen="LoadLibrary"
10338 lt_cv_dlopen="dlopen"
10343 # if libdl is installed we need to link against it
10344 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10345 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 ac_check_lib_save_LIBS=$LIBS
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10358 /* Override any GCC internal prototype to avoid an error.
10359 Use char because int might match the return type of a GCC
10360 builtin and then its argument prototype would still apply. */
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (ac_try="$ac_link"
10375 case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_link") 2>conftest.er1
10382 grep -v '^ *+' conftest.er1 >conftest.err
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } && {
10387 test -z "$ac_c_werror_flag" ||
10388 test ! -s conftest.err
10389 } && test -s conftest$ac_exeext &&
10390 $as_test_x conftest$ac_exeext; then
10391 ac_cv_lib_dl_dlopen=yes
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 ac_cv_lib_dl_dlopen=no
10399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10400 conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_lib_save_LIBS
10403 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10404 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10405 if test $ac_cv_lib_dl_dlopen = yes; then
10406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10409 lt_cv_dlopen="dyld"
10411 lt_cv_dlopen_self=yes
10418 { echo "$as_me:$LINENO: checking for shl_load" >&5
10419 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10420 if test "${ac_cv_func_shl_load+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10431 #define shl_load innocuous_shl_load
10433 /* System header to define __stub macros and hopefully few prototypes,
10434 which can conflict with char shl_load (); below.
10435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10436 <limits.h> exists even on freestanding compilers. */
10439 # include <limits.h>
10441 # include <assert.h>
10446 /* Override any GCC internal prototype to avoid an error.
10447 Use char because int might match the return type of a GCC
10448 builtin and then its argument prototype would still apply. */
10453 /* The GNU C library defines this for functions which it implements
10454 to always fail with ENOSYS. Some functions are actually named
10455 something starting with __ and the normal name is an alias. */
10456 #if defined __stub_shl_load || defined __stub___shl_load
10463 return shl_load ();
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (ac_try="$ac_link"
10470 case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_link") 2>conftest.er1
10477 grep -v '^ *+' conftest.er1 >conftest.err
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } && {
10482 test -z "$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10484 } && test -s conftest$ac_exeext &&
10485 $as_test_x conftest$ac_exeext; then
10486 ac_cv_func_shl_load=yes
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_cv_func_shl_load=no
10494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10495 conftest$ac_exeext conftest.$ac_ext
10497 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10498 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10499 if test $ac_cv_func_shl_load = yes; then
10500 lt_cv_dlopen="shl_load"
10502 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10503 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10504 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 ac_check_lib_save_LIBS=$LIBS
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10516 /* Override any GCC internal prototype to avoid an error.
10517 Use char because int might match the return type of a GCC
10518 builtin and then its argument prototype would still apply. */
10526 return shl_load ();
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_link") 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest$ac_exeext &&
10548 $as_test_x conftest$ac_exeext; then
10549 ac_cv_lib_dld_shl_load=yes
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 ac_cv_lib_dld_shl_load=no
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10561 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10562 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10563 if test $ac_cv_lib_dld_shl_load = yes; then
10564 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10566 { echo "$as_me:$LINENO: checking for dlopen" >&5
10567 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10568 if test "${ac_cv_func_dlopen+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 cat >conftest.$ac_ext <<_ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10579 #define dlopen innocuous_dlopen
10581 /* System header to define __stub macros and hopefully few prototypes,
10582 which can conflict with char dlopen (); below.
10583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10584 <limits.h> exists even on freestanding compilers. */
10587 # include <limits.h>
10589 # include <assert.h>
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10601 /* The GNU C library defines this for functions which it implements
10602 to always fail with ENOSYS. Some functions are actually named
10603 something starting with __ and the normal name is an alias. */
10604 #if defined __stub_dlopen || defined __stub___dlopen
10616 rm -f conftest.$ac_objext conftest$ac_exeext
10617 if { (ac_try="$ac_link"
10618 case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_link") 2>conftest.er1
10625 grep -v '^ *+' conftest.er1 >conftest.err
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } && {
10630 test -z "$ac_c_werror_flag" ||
10631 test ! -s conftest.err
10632 } && test -s conftest$ac_exeext &&
10633 $as_test_x conftest$ac_exeext; then
10634 ac_cv_func_dlopen=yes
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10639 ac_cv_func_dlopen=no
10642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10643 conftest$ac_exeext conftest.$ac_ext
10645 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10646 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10647 if test $ac_cv_func_dlopen = yes; then
10648 lt_cv_dlopen="dlopen"
10650 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10651 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 ac_check_lib_save_LIBS=$LIBS
10657 cat >conftest.$ac_ext <<_ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_link") 2>conftest.er1
10688 grep -v '^ *+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } && {
10693 test -z "$ac_c_werror_flag" ||
10694 test ! -s conftest.err
10695 } && test -s conftest$ac_exeext &&
10696 $as_test_x conftest$ac_exeext; then
10697 ac_cv_lib_dl_dlopen=yes
10699 echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10702 ac_cv_lib_dl_dlopen=no
10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10709 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10710 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10711 if test $ac_cv_lib_dl_dlopen = yes; then
10712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10714 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10715 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10716 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-lsvld $LIBS"
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (ac_try="$ac_link"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_link") 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext &&
10760 $as_test_x conftest$ac_exeext; then
10761 ac_cv_lib_svld_dlopen=yes
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10766 ac_cv_lib_svld_dlopen=no
10769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10770 conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10773 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10774 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10775 if test $ac_cv_lib_svld_dlopen = yes; then
10776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10778 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10779 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10780 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 ac_check_lib_save_LIBS=$LIBS
10785 cat >conftest.$ac_ext <<_ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10802 return dld_link ();
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (ac_try="$ac_link"
10809 case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_link") 2>conftest.er1
10816 grep -v '^ *+' conftest.er1 >conftest.err
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest$ac_exeext &&
10824 $as_test_x conftest$ac_exeext; then
10825 ac_cv_lib_dld_dld_link=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_cv_lib_dld_dld_link=no
10833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10834 conftest$ac_exeext conftest.$ac_ext
10835 LIBS=$ac_check_lib_save_LIBS
10837 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10838 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10839 if test $ac_cv_lib_dld_dld_link = yes; then
10840 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10861 if test "x$lt_cv_dlopen" != xno; then
10867 case $lt_cv_dlopen in
10869 save_CPPFLAGS="$CPPFLAGS"
10870 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10872 save_LDFLAGS="$LDFLAGS"
10873 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10876 LIBS="$lt_cv_dlopen_libs $LIBS"
10878 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10879 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10880 if test "${lt_cv_dlopen_self+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 if test "$cross_compiling" = yes; then :
10884 lt_cv_dlopen_self=cross
10886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10887 lt_status=$lt_dlunknown
10888 cat > conftest.$ac_ext <<EOF
10889 #line 10889 "configure"
10890 #include "confdefs.h"
10899 # define LT_DLGLOBAL RTLD_GLOBAL
10902 # define LT_DLGLOBAL DL_GLOBAL
10904 # define LT_DLGLOBAL 0
10908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10909 find out it does not work in some platform. */
10910 #ifndef LT_DLLAZY_OR_NOW
10912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10915 # define LT_DLLAZY_OR_NOW DL_LAZY
10918 # define LT_DLLAZY_OR_NOW RTLD_NOW
10921 # define LT_DLLAZY_OR_NOW DL_NOW
10923 # define LT_DLLAZY_OR_NOW 0
10931 extern "C" void exit (int);
10934 void fnord() { int i=42;}
10937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10938 int status = $lt_dlunknown;
10942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10943 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10944 /* dlclose (self); */
10952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10953 (eval $ac_link) 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10957 (./conftest; exit; ) >&5 2>/dev/null
10959 case x$lt_status in
10960 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10961 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10962 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10965 # compilation failed
10966 lt_cv_dlopen_self=no
10973 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10974 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10976 if test "x$lt_cv_dlopen_self" = xyes; then
10977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10978 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10979 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10980 if test "${lt_cv_dlopen_self_static+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 if test "$cross_compiling" = yes; then :
10984 lt_cv_dlopen_self_static=cross
10986 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10987 lt_status=$lt_dlunknown
10988 cat > conftest.$ac_ext <<EOF
10989 #line 10989 "configure"
10990 #include "confdefs.h"
10999 # define LT_DLGLOBAL RTLD_GLOBAL
11002 # define LT_DLGLOBAL DL_GLOBAL
11004 # define LT_DLGLOBAL 0
11008 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11009 find out it does not work in some platform. */
11010 #ifndef LT_DLLAZY_OR_NOW
11012 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11015 # define LT_DLLAZY_OR_NOW DL_LAZY
11018 # define LT_DLLAZY_OR_NOW RTLD_NOW
11021 # define LT_DLLAZY_OR_NOW DL_NOW
11023 # define LT_DLLAZY_OR_NOW 0
11031 extern "C" void exit (int);
11034 void fnord() { int i=42;}
11037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11038 int status = $lt_dlunknown;
11042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11043 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11044 /* dlclose (self); */
11052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11053 (eval $ac_link) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11057 (./conftest; exit; ) >&5 2>/dev/null
11059 case x$lt_status in
11060 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11061 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11062 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11065 # compilation failed
11066 lt_cv_dlopen_self_static=no
11073 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11074 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11077 CPPFLAGS="$save_CPPFLAGS"
11078 LDFLAGS="$save_LDFLAGS"
11083 case $lt_cv_dlopen_self in
11084 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11085 *) enable_dlopen_self=unknown ;;
11088 case $lt_cv_dlopen_self_static in
11089 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11090 *) enable_dlopen_self_static=unknown ;;
11095 # Report which library types will actually be built
11096 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11097 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11098 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11099 echo "${ECHO_T}$can_build_shared" >&6; }
11101 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11102 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11103 test "$can_build_shared" = "no" && enable_shared=no
11105 # On AIX, shared libraries and static libraries use the same namespace, and
11106 # are all built from PIC.
11109 test "$enable_shared" = yes && enable_static=no
11110 if test -n "$RANLIB"; then
11111 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11112 postinstall_cmds='$RANLIB $lib'
11117 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11118 test "$enable_shared" = yes && enable_static=no
11122 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11123 echo "${ECHO_T}$enable_shared" >&6; }
11125 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11126 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11127 # Make sure either enable_shared or enable_static is yes.
11128 test "$enable_shared" = yes || enable_static=yes
11129 { echo "$as_me:$LINENO: result: $enable_static" >&5
11130 echo "${ECHO_T}$enable_static" >&6; }
11132 # The else clause should only fire when bootstrapping the
11133 # libtool distribution, otherwise you forgot to ship ltmain.sh
11134 # with your package, and you will get complaints that there are
11135 # no rules to generate ltmain.sh.
11136 if test -f "$ltmain"; then
11137 # See if we are running on zsh, and set the options which allow our commands through
11138 # without removal of \ escapes.
11139 if test -n "${ZSH_VERSION+set}" ; then
11140 setopt NO_GLOB_SUBST
11142 # Now quote all the things that may contain metacharacters while being
11143 # careful not to overquote the AC_SUBSTed values. We take copies of the
11144 # variables and quote the copies for generation of the libtool script.
11145 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11147 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11148 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11149 deplibs_check_method reload_flag reload_cmds need_locks \
11150 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11151 lt_cv_sys_global_symbol_to_c_name_address \
11152 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11153 old_postinstall_cmds old_postuninstall_cmds \
11157 lt_prog_compiler_wl \
11158 lt_prog_compiler_pic \
11159 lt_prog_compiler_static \
11160 lt_prog_compiler_no_builtin_flag \
11161 export_dynamic_flag_spec \
11162 thread_safe_flag_spec \
11163 whole_archive_flag_spec \
11164 enable_shared_with_static_runtimes \
11166 old_archive_from_new_cmds \
11171 compiler_lib_search_path \
11172 compiler_lib_search_dirs \
11174 archive_expsym_cmds \
11176 postuninstall_cmds \
11177 old_archive_from_expsyms_cmds \
11178 allow_undefined_flag \
11179 no_undefined_flag \
11180 export_symbols_cmds \
11181 hardcode_libdir_flag_spec \
11182 hardcode_libdir_flag_spec_ld \
11183 hardcode_libdir_separator \
11184 hardcode_automatic \
11186 module_expsym_cmds \
11187 lt_cv_prog_compiler_c_o \
11190 include_expsyms; do
11193 old_archive_cmds | \
11194 old_archive_from_new_cmds | \
11196 archive_expsym_cmds | \
11198 module_expsym_cmds | \
11199 old_archive_from_expsyms_cmds | \
11200 export_symbols_cmds | \
11201 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11202 postinstall_cmds | postuninstall_cmds | \
11203 old_postinstall_cmds | old_postuninstall_cmds | \
11204 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11205 # Double-quote double-evaled strings.
11206 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11215 *'\$0 --fallback-echo"')
11216 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11220 cfgfile="${ofile}T"
11221 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11223 { echo "$as_me:$LINENO: creating $ofile" >&5
11224 echo "$as_me: creating $ofile" >&6;}
11226 cat <<__EOF__ >> "$cfgfile"
11229 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11230 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11231 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11233 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11234 # Free Software Foundation, Inc.
11236 # This file is part of GNU Libtool:
11237 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11239 # This program is free software; you can redistribute it and/or modify
11240 # it under the terms of the GNU General Public License as published by
11241 # the Free Software Foundation; either version 2 of the License, or
11242 # (at your option) any later version.
11244 # This program is distributed in the hope that it will be useful, but
11245 # WITHOUT ANY WARRANTY; without even the implied warranty of
11246 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11247 # General Public License for more details.
11249 # You should have received a copy of the GNU General Public License
11250 # along with this program; if not, write to the Free Software
11251 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11253 # As a special exception to the GNU General Public License, if you
11254 # distribute this file as part of a program that contains a
11255 # configuration script generated by Autoconf, you may include it under
11256 # the same distribution terms that you use for the rest of that program.
11258 # A sed program that does not truncate output.
11261 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11262 Xsed="$SED -e 1s/^X//"
11264 # The HP-UX ksh and POSIX shell print the target directory to stdout
11265 # if CDPATH is set.
11266 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11268 # The names of the tagged configurations supported by this script.
11271 # ### BEGIN LIBTOOL CONFIG
11273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11275 # Shell to use when invoking shell scripts.
11278 # Whether or not to build shared libraries.
11279 build_libtool_libs=$enable_shared
11281 # Whether or not to build static libraries.
11282 build_old_libs=$enable_static
11284 # Whether or not to add -lc for building shared libraries.
11285 build_libtool_need_lc=$archive_cmds_need_lc
11287 # Whether or not to disallow shared libs when runtime libs are static
11288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11290 # Whether or not to optimize for fast installation.
11291 fast_install=$enable_fast_install
11294 host_alias=$host_alias
11298 # The build system.
11299 build_alias=$build_alias
11303 # An echo program that does not interpret backslashes.
11308 AR_FLAGS=$lt_AR_FLAGS
11313 # LTCC compiler flags.
11314 LTCFLAGS=$lt_LTCFLAGS
11316 # A language-specific compiler.
11319 # Is the compiler the GNU C compiler?
11325 # The linker used to build libraries.
11328 # Whether we need hard or soft links.
11331 # A BSD-compatible nm program.
11334 # A symbol stripping program
11337 # Used to examine libraries when file_magic_cmd begins "file"
11338 MAGIC_CMD=$MAGIC_CMD
11340 # Used on cygwin: DLL creation program.
11343 # Used on cygwin: object dumper.
11346 # Used on cygwin: assembler.
11349 # The name of the directory that contains temporary libtool files.
11352 # How to create reloadable object files.
11353 reload_flag=$lt_reload_flag
11354 reload_cmds=$lt_reload_cmds
11356 # How to pass a linker flag through the compiler.
11357 wl=$lt_lt_prog_compiler_wl
11359 # Object file suffix (normally "o").
11360 objext="$ac_objext"
11362 # Old archive suffix (normally "a").
11365 # Shared library suffix (normally ".so").
11366 shrext_cmds='$shrext_cmds'
11368 # Executable file suffix (normally "").
11371 # Additional compiler flags for building library objects.
11372 pic_flag=$lt_lt_prog_compiler_pic
11375 # What is the maximum length of a command?
11376 max_cmd_len=$lt_cv_sys_max_cmd_len
11378 # Does compiler simultaneously support -c and -o options?
11379 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11381 # Must we lock files when doing compilation?
11382 need_locks=$lt_need_locks
11384 # Do we need the lib prefix for modules?
11385 need_lib_prefix=$need_lib_prefix
11387 # Do we need a version for libraries?
11388 need_version=$need_version
11390 # Whether dlopen is supported.
11391 dlopen_support=$enable_dlopen
11393 # Whether dlopen of programs is supported.
11394 dlopen_self=$enable_dlopen_self
11396 # Whether dlopen of statically linked programs is supported.
11397 dlopen_self_static=$enable_dlopen_self_static
11399 # Compiler flag to prevent dynamic linking.
11400 link_static_flag=$lt_lt_prog_compiler_static
11402 # Compiler flag to turn off builtin functions.
11403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11405 # Compiler flag to allow reflexive dlopens.
11406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11408 # Compiler flag to generate shared objects directly from archives.
11409 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11411 # Compiler flag to generate thread-safe objects.
11412 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11414 # Library versioning type.
11415 version_type=$version_type
11417 # Format of library name prefix.
11418 libname_spec=$lt_libname_spec
11420 # List of archive names. First name is the real one, the rest are links.
11421 # The last name is the one that the linker finds with -lNAME.
11422 library_names_spec=$lt_library_names_spec
11424 # The coded name of the library, if different from the real name.
11425 soname_spec=$lt_soname_spec
11427 # Commands used to build and install an old-style archive.
11429 old_archive_cmds=$lt_old_archive_cmds
11430 old_postinstall_cmds=$lt_old_postinstall_cmds
11431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11433 # Create an old-style archive from a shared archive.
11434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11436 # Create a temporary old-style archive to link instead of a shared archive.
11437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11439 # Commands used to build and install a shared archive.
11440 archive_cmds=$lt_archive_cmds
11441 archive_expsym_cmds=$lt_archive_expsym_cmds
11442 postinstall_cmds=$lt_postinstall_cmds
11443 postuninstall_cmds=$lt_postuninstall_cmds
11445 # Commands used to build a loadable module (assumed same as above if empty)
11446 module_cmds=$lt_module_cmds
11447 module_expsym_cmds=$lt_module_expsym_cmds
11449 # Commands to strip libraries.
11450 old_striplib=$lt_old_striplib
11451 striplib=$lt_striplib
11453 # Dependencies to place before the objects being linked to create a
11455 predep_objects=$lt_predep_objects
11457 # Dependencies to place after the objects being linked to create a
11459 postdep_objects=$lt_postdep_objects
11461 # Dependencies to place before the objects being linked to create a
11463 predeps=$lt_predeps
11465 # Dependencies to place after the objects being linked to create a
11467 postdeps=$lt_postdeps
11469 # The directories searched by this compiler when creating a shared
11471 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11473 # The library search path used internally by the compiler when linking
11474 # a shared library.
11475 compiler_lib_search_path=$lt_compiler_lib_search_path
11477 # Method to check whether dependent libraries are shared objects.
11478 deplibs_check_method=$lt_deplibs_check_method
11480 # Command to use when deplibs_check_method == file_magic.
11481 file_magic_cmd=$lt_file_magic_cmd
11483 # Flag that allows shared libraries with undefined symbols to be built.
11484 allow_undefined_flag=$lt_allow_undefined_flag
11486 # Flag that forces no undefined symbols.
11487 no_undefined_flag=$lt_no_undefined_flag
11489 # Commands used to finish a libtool library installation in a directory.
11490 finish_cmds=$lt_finish_cmds
11492 # Same as above, but a single script fragment to be evaled but not shown.
11493 finish_eval=$lt_finish_eval
11495 # Take the output of nm and produce a listing of raw symbols and C names.
11496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11498 # Transform the output of nm in a proper C declaration
11499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11501 # Transform the output of nm in a C name address pair
11502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11504 # This is the shared library runtime path variable.
11505 runpath_var=$runpath_var
11507 # This is the shared library path variable.
11508 shlibpath_var=$shlibpath_var
11510 # Is shlibpath searched before the hard-coded library search path?
11511 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11513 # How to hardcode a shared library path into an executable.
11514 hardcode_action=$hardcode_action
11516 # Whether we should hardcode library paths into libraries.
11517 hardcode_into_libs=$hardcode_into_libs
11519 # Flag to hardcode \$libdir into a binary during linking.
11520 # This must work even if \$libdir does not exist.
11521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11523 # If ld is used when linking, flag to hardcode \$libdir into
11524 # a binary during linking. This must work even if \$libdir does
11526 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11528 # Whether we need a single -rpath flag with a separated argument.
11529 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11531 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11532 # resulting binary.
11533 hardcode_direct=$hardcode_direct
11535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11536 # resulting binary.
11537 hardcode_minus_L=$hardcode_minus_L
11539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11540 # the resulting binary.
11541 hardcode_shlibpath_var=$hardcode_shlibpath_var
11543 # Set to yes if building a shared library automatically hardcodes DIR into the library
11544 # and all subsequent libraries and executables linked against it.
11545 hardcode_automatic=$hardcode_automatic
11547 # Variables whose values should be saved in libtool wrapper scripts and
11548 # restored at relink time.
11549 variables_saved_for_relink="$variables_saved_for_relink"
11551 # Whether libtool must link a program against all its dependency libraries.
11552 link_all_deplibs=$link_all_deplibs
11554 # Compile-time system search path for libraries
11555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11557 # Run-time system search path for libraries
11558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11560 # Fix the shell variable \$srcfile for the compiler.
11561 fix_srcfile_path=$lt_fix_srcfile_path
11563 # Set to yes if exported symbols are required.
11564 always_export_symbols=$always_export_symbols
11566 # The commands to list exported symbols.
11567 export_symbols_cmds=$lt_export_symbols_cmds
11569 # The commands to extract the exported symbol list from a shared archive.
11570 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11572 # Symbols that should not be listed in the preloaded symbols.
11573 exclude_expsyms=$lt_exclude_expsyms
11575 # Symbols that must always be exported.
11576 include_expsyms=$lt_include_expsyms
11578 # ### END LIBTOOL CONFIG
11585 cat <<\EOF >> "$cfgfile"
11587 # AIX sometimes has problems with the GCC collect2 program. For some
11588 # reason, if we set the COLLECT_NAMES environment variable, the problems
11589 # vanish in a puff of smoke.
11590 if test "X${COLLECT_NAMES+set}" != Xset; then
11592 export COLLECT_NAMES
11598 # We use sed instead of cat because bash on DJGPP gets confused if
11599 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11600 # text mode, it properly converts lines to CR/LF. This bash problem
11601 # is reportedly fixed, but why not run on old versions too?
11602 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11604 mv -f "$cfgfile" "$ofile" || \
11605 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11609 # If there is no Makefile yet, we rely on a make rule to execute
11610 # `config.status --recheck' to rerun these tests and create the
11611 # libtool script then.
11612 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11613 if test -f "$ltmain_in"; then
11614 test -f Makefile && make "$ltmain"
11620 ac_cpp='$CPP $CPPFLAGS'
11621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11629 # This can be used to rebuild libtool when needed
11630 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11632 # Always use our own libtool.
11633 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11635 # Prevent multiple expansion
11646 if test "$enable_shared" = "no"; then
11649 eval _shrext="$shrext_cmds"
11651 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11652 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11654 # Check whether --with-noexec was given.
11655 if test "${with_noexec+set}" = set; then
11656 withval=$with_noexec; case $with_noexec in
11657 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
11663 with_noexec="$libexecdir/sudo_noexec$_shrext"
11666 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11667 echo "${ECHO_T}$with_noexec" >&6; }
11668 NOEXECFILE="sudo_noexec$_shrext"
11669 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11671 if test "$with_devel" = "yes" -a -n "$GCC"; then
11672 CFLAGS="${CFLAGS} -Wall"
11675 # Extract the first word of "uname", so it can be a program name with args.
11676 set dummy uname; ac_word=$2
11677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11679 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 if test -n "$UNAMEPROG"; then
11683 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_prog_UNAMEPROG="uname"
11693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11703 if test -n "$UNAMEPROG"; then
11704 { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11705 echo "${ECHO_T}$UNAMEPROG" >&6; }
11707 { echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6; }
11712 # Extract the first word of "tr", so it can be a program name with args.
11713 set dummy tr; ac_word=$2
11714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11716 if test "${ac_cv_prog_TRPROG+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 if test -n "$TRPROG"; then
11720 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723 for as_dir in $PATH
11726 test -z "$as_dir" && as_dir=.
11727 for ac_exec_ext in '' $ac_executable_extensions; do
11728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11729 ac_cv_prog_TRPROG="tr"
11730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 TRPROG=$ac_cv_prog_TRPROG
11740 if test -n "$TRPROG"; then
11741 { echo "$as_me:$LINENO: result: $TRPROG" >&5
11742 echo "${ECHO_T}$TRPROG" >&6; }
11744 { echo "$as_me:$LINENO: result: no" >&5
11745 echo "${ECHO_T}no" >&6; }
11749 # Extract the first word of "nroff", so it can be a program name with args.
11750 set dummy nroff; ac_word=$2
11751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11753 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 if test -n "$NROFFPROG"; then
11757 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11766 ac_cv_prog_NROFFPROG="nroff"
11767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11776 NROFFPROG=$ac_cv_prog_NROFFPROG
11777 if test -n "$NROFFPROG"; then
11778 { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11779 echo "${ECHO_T}$NROFFPROG" >&6; }
11781 { echo "$as_me:$LINENO: result: no" >&5
11782 echo "${ECHO_T}no" >&6; }
11786 if test -z "$NROFFPROG"; then
11788 mansrcdir='$(srcdir)'
11791 if test -n "$sudo_cv_prev_host"; then
11792 if test "$sudo_cv_prev_host" != "$host"; then
11793 { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11794 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11795 { (exit 1); exit 1; }; }
11797 { echo "$as_me:$LINENO: checking previous host type" >&5
11798 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11799 if test "${sudo_cv_prev_host+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 sudo_cv_prev_host="$host"
11805 { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11806 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11809 # this will produce no output since there is no cached value
11810 if test "${sudo_cv_prev_host+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 sudo_cv_prev_host="$host"
11818 if test -n "$host_os"; then
11819 OS=`echo $host_os | sed 's/[0-9].*//'`
11820 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11821 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11830 # getcwd(3) opens a pipe to getpwd(1)!?!
11833 # system headers lack prototypes but gcc helps...
11834 if test -n "$GCC"; then
11835 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11838 shadow_funcs="getpwanam issecure"
11841 # To get the crypt(3) prototype (so we pass -Wall)
11842 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11843 # AFS support needs -lucb
11844 if test "$with_AFS" = "yes"; then
11845 AFS_LIBS="-lc -lucb"
11847 : ${mansectsu='1m'}
11848 : ${mansectform='4'}
11849 : ${with_rpath='yes'}
11850 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11853 # To get all prototypes (so we pass -Wall)
11854 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11855 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11856 if test X"$with_blibpath" != X"no"; then
11857 { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11858 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11859 O_LDFLAGS="$LDFLAGS"
11860 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (ac_try="$ac_link"
11878 case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_link") 2>conftest.er1
11885 grep -v '^ *+' conftest.er1 >conftest.err
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } && {
11890 test -z "$ac_c_werror_flag" ||
11891 test ! -s conftest.err
11892 } && test -s conftest$ac_exeext &&
11893 $as_test_x conftest$ac_exeext; then
11895 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11896 blibpath="$with_blibpath"
11897 elif test -n "$GCC"; then
11898 blibpath="/usr/lib:/lib:/usr/local/lib"
11900 blibpath="/usr/lib:/lib"
11902 { echo "$as_me:$LINENO: result: yes" >&5
11903 echo "${ECHO_T}yes" >&6; }
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11909 { echo "$as_me:$LINENO: result: no" >&5
11910 echo "${ECHO_T}no" >&6; }
11913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11914 conftest$ac_exeext conftest.$ac_ext
11916 LDFLAGS="$O_LDFLAGS"
11918 # Use authenticate(3) as the default authentication method
11919 if test X"$with_aixauth" = X""; then
11921 for ac_func in authenticate
11923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 cat >conftest.$ac_ext <<_ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11937 #define $ac_func innocuous_$ac_func
11939 /* System header to define __stub macros and hopefully few prototypes,
11940 which can conflict with char $ac_func (); below.
11941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11942 <limits.h> exists even on freestanding compilers. */
11945 # include <limits.h>
11947 # include <assert.h>
11952 /* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
11959 /* The GNU C library defines this for functions which it implements
11960 to always fail with ENOSYS. Some functions are actually named
11961 something starting with __ and the normal name is an alias. */
11962 #if defined __stub_$ac_func || defined __stub___$ac_func
11969 return $ac_func ();
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (ac_try="$ac_link"
11976 case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_link") 2>conftest.er1
11983 grep -v '^ *+' conftest.er1 >conftest.err
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest$ac_exeext &&
11991 $as_test_x conftest$ac_exeext; then
11992 eval "$as_ac_var=yes"
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 eval "$as_ac_var=no"
12000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12001 conftest$ac_exeext conftest.$ac_ext
12003 ac_res=`eval echo '${'$as_ac_var'}'`
12004 { echo "$as_me:$LINENO: result: $ac_res" >&5
12005 echo "${ECHO_T}$ac_res" >&6; }
12006 if test `eval echo '${'$as_ac_var'}'` = yes; then
12007 cat >>confdefs.h <<_ACEOF
12008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12010 AUTH_EXCL_DEF="AIX_AUTH"
12016 # AIX analog of nsswitch.conf, enabled by default
12018 # Check whether --with-netsvc was given.
12019 if test "${with_netsvc+set}" = set; then
12020 withval=$with_netsvc; case $with_netsvc in
12022 yes) with_netsvc="/etc/netsvc.conf"
12028 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12029 with_netsvc="/etc/netsvc.conf"
12032 # AIX-specific functions
12034 for ac_func in getuserattr
12036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 cat >conftest.$ac_ext <<_ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12050 #define $ac_func innocuous_$ac_func
12052 /* System header to define __stub macros and hopefully few prototypes,
12053 which can conflict with char $ac_func (); below.
12054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055 <limits.h> exists even on freestanding compilers. */
12058 # include <limits.h>
12060 # include <assert.h>
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12072 /* The GNU C library defines this for functions which it implements
12073 to always fail with ENOSYS. Some functions are actually named
12074 something starting with __ and the normal name is an alias. */
12075 #if defined __stub_$ac_func || defined __stub___$ac_func
12082 return $ac_func ();
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (ac_try="$ac_link"
12089 case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_link") 2>conftest.er1
12096 grep -v '^ *+' conftest.er1 >conftest.err
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } && {
12101 test -z "$ac_c_werror_flag" ||
12102 test ! -s conftest.err
12103 } && test -s conftest$ac_exeext &&
12104 $as_test_x conftest$ac_exeext; then
12105 eval "$as_ac_var=yes"
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 eval "$as_ac_var=no"
12113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12114 conftest$ac_exeext conftest.$ac_ext
12116 ac_res=`eval echo '${'$as_ac_var'}'`
12117 { echo "$as_me:$LINENO: result: $ac_res" >&5
12118 echo "${ECHO_T}$ac_res" >&6; }
12119 if test `eval echo '${'$as_ac_var'}'` = yes; then
12120 cat >>confdefs.h <<_ACEOF
12121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127 SUDO_OBJS="$SUDO_OBJS aix.o"
12130 : ${mansectsu='1m'}
12131 : ${mansectform='4'}
12134 # AFS support needs -lBSD
12135 if test "$with_AFS" = "yes"; then
12136 AFS_LIBS="-lc -lBSD"
12138 : ${mansectsu='1m'}
12139 : ${mansectform='4'}
12141 # HP-UX bundled compiler can't generate shared objects
12142 if test "x$ac_cv_prog_cc_c89" = "xno"; then
12146 # Use the +DAportable flag if it is supported
12148 CFLAGS="$CFLAGS +DAportable"
12149 { echo "$as_me:$LINENO: checking whether $CC understands +DAportable" >&5
12150 echo $ECHO_N "checking whether $CC understands +DAportable... $ECHO_C" >&6; }
12151 if test "${sudo_cv_var_daportable+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (ac_try="$ac_link"
12171 case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_link") 2>conftest.er1
12178 grep -v '^ *+' conftest.er1 >conftest.err
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } && {
12183 test -z "$ac_c_werror_flag" ||
12184 test ! -s conftest.err
12185 } && test -s conftest$ac_exeext &&
12186 $as_test_x conftest$ac_exeext; then
12187 sudo_cv_var_daportable=yes
12189 echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12192 sudo_cv_var_daportable=no
12195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12196 conftest$ac_exeext conftest.$ac_ext
12199 { echo "$as_me:$LINENO: result: $sudo_cv_var_daportable" >&5
12200 echo "${ECHO_T}$sudo_cv_var_daportable" >&6; }
12201 if test X"$sudo_cv_var_daportable" != X"yes"; then
12207 cat >>confdefs.h <<\_ACEOF
12208 #define BROKEN_SYSLOG 1
12212 # Not sure if setuid binaries are safe in < 9.x
12213 if test -n "$GCC"; then
12214 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12216 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12220 cat >>confdefs.h <<\_ACEOF
12221 #define BROKEN_SYSLOG 1
12225 shadow_funcs="getspwuid"
12227 # DCE support (requires ANSI C compiler)
12228 if test "$with_DCE" = "yes"; then
12229 # order of libs in 9.X is important. -lc_r must be last
12230 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12231 LIBS="${LIBS} -ldce -lM -lc_r"
12232 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12236 shadow_funcs="getprpwnam iscomsec"
12237 shadow_libs="-lsec"
12240 shadow_funcs="getspnam iscomsec"
12241 shadow_libs="-lsec"
12242 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12247 # ignore envariables wrt dynamic lib path
12248 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12250 : ${CHECKSIA='true'}
12251 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
12252 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
12253 # Check whether --enable-sia was given.
12254 if test "${enable_sia+set}" = set; then
12255 enableval=$enable_sia; case "$enableval" in
12256 yes) { echo "$as_me:$LINENO: result: no" >&5
12257 echo "${ECHO_T}no" >&6; }
12260 no) { echo "$as_me:$LINENO: result: yes" >&5
12261 echo "${ECHO_T}yes" >&6; }
12264 *) { echo "$as_me:$LINENO: result: no" >&5
12265 echo "${ECHO_T}no" >&6; }
12266 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12267 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12272 { echo "$as_me:$LINENO: result: no" >&5
12273 echo "${ECHO_T}no" >&6; }
12277 shadow_funcs="getprpwnam dispcrypt"
12278 # OSF/1 4.x and higher need -ldb too
12279 if test $OSMAJOR -lt 4; then
12280 shadow_libs="-lsecurity -laud -lm"
12282 shadow_libs="-lsecurity -ldb -laud -lm"
12285 # use SIA by default, if we have it
12286 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12289 # Some versions of Digital Unix ship with a broken
12290 # copy of prot.h, which we need for shadow passwords.
12291 # XXX - make should remove this as part of distclean
12293 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
12294 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
12295 cat >conftest.$ac_ext <<_ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12302 #include <sys/types.h>
12303 #include <sys/security.h>
12314 rm -f conftest.$ac_objext
12315 if { (ac_try="$ac_compile"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_compile") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest.$ac_objext; then
12331 { echo "$as_me:$LINENO: result: no" >&5
12332 echo "${ECHO_T}no" >&6; }
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12337 { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
12338 echo "${ECHO_T}yes, fixing locally" >&6; }
12339 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 : ${mansectform='4'}
12348 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12349 if test -z "$NROFFPROG"; then
12350 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)'
12351 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12352 if test -d /usr/share/catman/local; then
12353 mandir="/usr/share/catman/local"
12355 mandir="/usr/catman/local"
12359 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12360 if test -d "/usr/share/man/local"; then
12361 mandir="/usr/share/man/local"
12363 mandir="/usr/man/local"
12367 # IRIX <= 4 needs -lsun
12368 if test "$OSMAJOR" -le 4; then
12369 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
12370 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
12371 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 ac_check_lib_save_LIBS=$LIBS
12376 cat >conftest.$ac_ext <<_ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12393 return getpwnam ();
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>conftest.er1
12407 grep -v '^ *+' conftest.er1 >conftest.err
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } && {
12412 test -z "$ac_c_werror_flag" ||
12413 test ! -s conftest.err
12414 } && test -s conftest$ac_exeext &&
12415 $as_test_x conftest$ac_exeext; then
12416 ac_cv_lib_sun_getpwnam=yes
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12421 ac_cv_lib_sun_getpwnam=no
12424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12425 conftest$ac_exeext conftest.$ac_ext
12426 LIBS=$ac_check_lib_save_LIBS
12428 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
12429 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
12430 if test $ac_cv_lib_sun_getpwnam = yes; then
12431 LIBS="${LIBS} -lsun"
12435 : ${mansectsu='1m'}
12436 : ${mansectform='4'}
12438 *-*-linux*|*-*-k*bsd*-gnu)
12439 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12440 # Some Linux versions need to link with -lshadow
12441 shadow_funcs="getspnam"
12442 shadow_libs_optional="-lshadow"
12443 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12446 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12447 if test -z "$GCC"; then
12448 CFLAGS="${CFLAGS} -D__STDC__"
12451 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12452 shadow_funcs="getprpwnam"
12453 shadow_libs="-lprot"
12457 shadow_funcs="getauthuid"
12458 shadow_libs="-lauth"
12461 LIBS="${LIBS} -lsun -lbsd"
12462 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12463 OSDEFS="${OSDEFS} -D_MIPS"
12464 : ${mansectsu='1m'}
12465 : ${mansectform='4'}
12468 OSDEFS="${OSDEFS} -D_ISC"
12470 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12471 LIBS="${LIBS} -lcrypt"
12473 shadow_funcs="getspnam"
12474 shadow_libs="-lsec"
12476 : ${mansectsu='1m'}
12477 : ${mansectform='4'}
12480 shadow_funcs="getprpwnam"
12481 shadow_libs="-lprot -lx"
12482 : ${mansectsu='1m'}
12483 : ${mansectform='4'}
12485 m88k-motorola-sysv*)
12486 # motorolla's cc (a variant of gcc) does -O but not -O2
12487 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12488 : ${mansectsu='1m'}
12489 : ${mansectform='4'}
12492 shadow_funcs="getspnam"
12493 shadow_libs="-lsec"
12494 : ${mansectsu='1m'}
12495 : ${mansectform='4'}
12496 : ${with_rpath='yes'}
12498 *-ncr-sysv4*|*-ncr-sysvr4*)
12499 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
12500 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
12501 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 ac_check_lib_save_LIBS=$LIBS
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12513 /* Override any GCC internal prototype to avoid an error.
12514 Use char because int might match the return type of a GCC
12515 builtin and then its argument prototype would still apply. */
12519 char strcasecmp ();
12523 return strcasecmp ();
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (ac_try="$ac_link"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_link") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } && {
12542 test -z "$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12544 } && test -s conftest$ac_exeext &&
12545 $as_test_x conftest$ac_exeext; then
12546 ac_cv_lib_c89_strcasecmp=yes
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 ac_cv_lib_c89_strcasecmp=no
12554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12555 conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12558 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
12559 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
12560 if test $ac_cv_lib_c89_strcasecmp = yes; then
12561 cat >>confdefs.h <<\_ACEOF
12562 #define HAVE_STRCASECMP 1
12564 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
12567 : ${mansectsu='1m'}
12568 : ${mansectform='4'}
12569 : ${with_rpath='yes'}
12571 *-ccur-sysv4*|*-ccur-sysvr4*)
12572 LIBS="${LIBS} -lgen"
12573 SUDO_LIBS="${SUDO_LIBS} -lgen"
12574 : ${mansectsu='1m'}
12575 : ${mansectform='4'}
12576 : ${with_rpath='yes'}
12580 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
12581 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
12583 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
12584 echo "$as_me: using shlicc as CC" >&6;}
12585 ac_cv_prog_CC=shlicc
12586 CC="$ac_cv_prog_CC"
12590 # Check for newer BSD auth API (just check for >= 3.0?)
12591 if test -z "$with_bsdauth"; then
12593 for ac_func in auth_challenge
12595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 cat >conftest.$ac_ext <<_ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12609 #define $ac_func innocuous_$ac_func
12611 /* System header to define __stub macros and hopefully few prototypes,
12612 which can conflict with char $ac_func (); below.
12613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12614 <limits.h> exists even on freestanding compilers. */
12617 # include <limits.h>
12619 # include <assert.h>
12624 /* Override any GCC internal prototype to avoid an error.
12625 Use char because int might match the return type of a GCC
12626 builtin and then its argument prototype would still apply. */
12631 /* The GNU C library defines this for functions which it implements
12632 to always fail with ENOSYS. Some functions are actually named
12633 something starting with __ and the normal name is an alias. */
12634 #if defined __stub_$ac_func || defined __stub___$ac_func
12641 return $ac_func ();
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (ac_try="$ac_link"
12648 case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_link") 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest$ac_exeext &&
12663 $as_test_x conftest$ac_exeext; then
12664 eval "$as_ac_var=yes"
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12669 eval "$as_ac_var=no"
12672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12673 conftest$ac_exeext conftest.$ac_ext
12675 ac_res=`eval echo '${'$as_ac_var'}'`
12676 { echo "$as_me:$LINENO: result: $ac_res" >&5
12677 echo "${ECHO_T}$ac_res" >&6; }
12678 if test `eval echo '${'$as_ac_var'}'` = yes; then
12679 cat >>confdefs.h <<_ACEOF
12680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12682 AUTH_EXCL_DEF="BSD_AUTH"
12689 # FreeBSD has a real setreuid(2) starting with 2.1 and
12690 # backported to 2.0.5. We just take 2.1 and above...
12696 if test "$with_skey" = "yes"; then
12697 SUDO_LIBS="${SUDO_LIBS} -lmd"
12699 CHECKSHADOW="false"
12700 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12701 : ${with_logincap='maybe'}
12704 # OpenBSD has a real setreuid(2) starting with 3.3 but
12705 # we will use setreuid(2) instead.
12707 CHECKSHADOW="false"
12708 # OpenBSD >= 3.0 supports BSD auth
12709 if test -z "$with_bsdauth"; then
12714 AUTH_EXCL_DEF="BSD_AUTH"
12718 : ${with_logincap='maybe'}
12721 # NetBSD has a real setreuid(2) starting with 1.3.2
12723 0.9*|1.012*|1.3|1.3.1)
12727 CHECKSHADOW="false"
12728 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12729 : ${with_logincap='maybe'}
12732 if test "$with_skey" = "yes"; then
12733 SUDO_LIBS="${SUDO_LIBS} -lmd"
12735 CHECKSHADOW="false"
12736 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12737 : ${with_logincap='yes'}
12740 CHECKSHADOW="false"
12744 CHECKSHADOW="false"
12745 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12746 : ${with_logincap='yes'}
12749 # lockf() on is broken on the NeXT -- use flock instead
12750 ac_cv_func_lockf=no
12751 ac_cv_func_flock=yes
12754 : ${mansectsu='1m'}
12755 : ${mansectform='4'}
12756 : ${with_rpath='yes'}
12759 : ${mansectsu='1m'}
12760 : ${mansectform='4'}
12763 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12767 AUTH_REG=${AUTH_REG# }
12768 AUTH_EXCL=${AUTH_EXCL# }
12769 if test -n "$AUTH_EXCL"; then
12771 if test $# != 1; then
12772 { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12773 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12774 { (exit 1); exit 1; }; }
12776 if test -n "$AUTH_REG"; then
12777 { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12778 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12779 { (exit 1); exit 1; }; }
12782 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12783 { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12784 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12785 { (exit 1); exit 1; }; }
12789 : ${mansectform='5'}
12791 if test -n "$with_libpath"; then
12792 for i in ${with_libpath}; do
12794 if test X"$with_rpath" = X"yes"; then
12795 LDFLAGS="${LDFLAGS} -L$i -R$i"
12797 LDFLAGS="${LDFLAGS} -L$i"
12799 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12800 blibpath_add="${blibpath_add}:$i"
12805 if test -n "$with_libraries"; then
12806 for i in ${with_libraries}; do
12813 LIBS="${LIBS} ${i}"
12817 if test $ac_cv_c_compiler_gnu = yes; then
12818 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12819 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12820 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 ac_pattern="Autoconf.*'x'"
12824 cat >conftest.$ac_ext <<_ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12834 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12835 ac_cv_prog_gcc_traditional=yes
12837 ac_cv_prog_gcc_traditional=no
12842 if test $ac_cv_prog_gcc_traditional = no; then
12843 cat >conftest.$ac_ext <<_ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12849 #include <termio.h>
12852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12853 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12854 ac_cv_prog_gcc_traditional=yes
12860 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12861 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12862 if test $ac_cv_prog_gcc_traditional = yes; then
12863 CC="$CC -traditional"
12867 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12868 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12869 if test "${ac_cv_c_const+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12882 /* FIXME: Include the comments suggested by Paul. */
12883 #ifndef __cplusplus
12884 /* Ultrix mips cc rejects this. */
12885 typedef int charset[2];
12887 /* SunOS 4.1.1 cc rejects this. */
12888 char const *const *pcpcc;
12890 /* NEC SVR4.0.2 mips cc rejects this. */
12891 struct point {int x, y;};
12892 static struct point const zero = {0,0};
12893 /* AIX XL C 1.02.0.0 rejects this.
12894 It does not let you subtract one const X* pointer from another in
12895 an arm of an if-expression whose if-part is not a constant
12897 const char *g = "string";
12898 pcpcc = &g + (g ? g-g : 0);
12899 /* HPUX 7.0 cc rejects these. */
12901 ppc = (char**) pcpcc;
12902 pcpcc = (char const *const *) ppc;
12903 { /* SCO 3.2v4 cc rejects this. */
12905 char const *s = 0 ? (char *) 0 : (char const *) 0;
12910 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12911 int x[] = {25, 17};
12912 const int *foo = &x[0];
12915 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12916 typedef const int *iptr;
12920 { /* AIX XL C 1.02.0.0 rejects this saying
12921 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12922 struct s { int j; const int *ap[3]; };
12923 struct s *b; b->j = 5;
12925 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12926 const int foo = 10;
12927 if (!foo) return 0;
12929 return !cs[0] && !zero.x;
12936 rm -f conftest.$ac_objext
12937 if { (ac_try="$ac_compile"
12938 case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_compile") 2>conftest.er1
12945 grep -v '^ *+' conftest.er1 >conftest.err
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } && {
12950 test -z "$ac_c_werror_flag" ||
12951 test ! -s conftest.err
12952 } && test -s conftest.$ac_objext; then
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12963 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12964 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12965 if test $ac_cv_c_const = no; then
12967 cat >>confdefs.h <<\_ACEOF
12973 { echo "$as_me:$LINENO: checking for working volatile" >&5
12974 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12975 if test "${ac_cv_c_volatile+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 cat >conftest.$ac_ext <<_ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12990 int * volatile y = (int *) 0;
12996 rm -f conftest.$ac_objext
12997 if { (ac_try="$ac_compile"
12998 case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_compile") 2>conftest.er1
13005 grep -v '^ *+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } && {
13010 test -z "$ac_c_werror_flag" ||
13011 test ! -s conftest.err
13012 } && test -s conftest.$ac_objext; then
13013 ac_cv_c_volatile=yes
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13018 ac_cv_c_volatile=no
13021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13024 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13025 if test $ac_cv_c_volatile = no; then
13027 cat >>confdefs.h <<\_ACEOF
13033 for ac_prog in 'bison -y' byacc
13035 # Extract the first word of "$ac_prog", so it can be a program name with args.
13036 set dummy $ac_prog; ac_word=$2
13037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13039 if test "${ac_cv_prog_YACC+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13042 if test -n "$YACC"; then
13043 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13049 test -z "$as_dir" && as_dir=.
13050 for ac_exec_ext in '' $ac_executable_extensions; do
13051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13052 ac_cv_prog_YACC="$ac_prog"
13053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 YACC=$ac_cv_prog_YACC
13063 if test -n "$YACC"; then
13064 { echo "$as_me:$LINENO: result: $YACC" >&5
13065 echo "${ECHO_T}$YACC" >&6; }
13067 { echo "$as_me:$LINENO: result: no" >&5
13068 echo "${ECHO_T}no" >&6; }
13072 test -n "$YACC" && break
13074 test -n "$YACC" || YACC="yacc"
13076 # Extract the first word of "flex", so it can be a program name with args.
13077 set dummy flex; ac_word=$2
13078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13080 if test "${ac_cv_path_FLEX+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13107 FLEX=$ac_cv_path_FLEX
13108 if test -n "$FLEX"; then
13109 { echo "$as_me:$LINENO: result: $FLEX" >&5
13110 echo "${ECHO_T}$FLEX" >&6; }
13112 { echo "$as_me:$LINENO: result: no" >&5
13113 echo "${ECHO_T}no" >&6; }
13117 { echo "$as_me:$LINENO: checking for mv" >&5
13118 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
13119 if test -f "/usr/bin/mv"; then
13120 { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
13121 echo "${ECHO_T}/usr/bin/mv" >&6; }
13122 cat >>confdefs.h <<\EOF
13123 #define _PATH_MV "/usr/bin/mv"
13126 elif test -f "/bin/mv"; then
13127 { echo "$as_me:$LINENO: result: /bin/mv" >&5
13128 echo "${ECHO_T}/bin/mv" >&6; }
13129 cat >>confdefs.h <<\EOF
13130 #define _PATH_MV "/bin/mv"
13133 elif test -f "/usr/ucb/mv"; then
13134 { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
13135 echo "${ECHO_T}/usr/ucb/mv" >&6; }
13136 cat >>confdefs.h <<\EOF
13137 #define _PATH_MV "/usr/ucb/mv"
13140 elif test -f "/usr/sbin/mv"; then
13141 { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
13142 echo "${ECHO_T}/usr/sbin/mv" >&6; }
13143 cat >>confdefs.h <<\EOF
13144 #define _PATH_MV "/usr/sbin/mv"
13148 { echo "$as_me:$LINENO: result: not found" >&5
13149 echo "${ECHO_T}not found" >&6; }
13152 { echo "$as_me:$LINENO: checking for bourne shell" >&5
13153 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
13154 if test -f "/bin/sh"; then
13155 { echo "$as_me:$LINENO: result: /bin/sh" >&5
13156 echo "${ECHO_T}/bin/sh" >&6; }
13157 cat >>confdefs.h <<\EOF
13158 #define _PATH_BSHELL "/bin/sh"
13161 elif test -f "/usr/bin/sh"; then
13162 { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
13163 echo "${ECHO_T}/usr/bin/sh" >&6; }
13164 cat >>confdefs.h <<\EOF
13165 #define _PATH_BSHELL "/usr/bin/sh"
13168 elif test -f "/sbin/sh"; then
13169 { echo "$as_me:$LINENO: result: /sbin/sh" >&5
13170 echo "${ECHO_T}/sbin/sh" >&6; }
13171 cat >>confdefs.h <<\EOF
13172 #define _PATH_BSHELL "/sbin/sh"
13175 elif test -f "/usr/sbin/sh"; then
13176 { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
13177 echo "${ECHO_T}/usr/sbin/sh" >&6; }
13178 cat >>confdefs.h <<\EOF
13179 #define _PATH_BSHELL "/usr/sbin/sh"
13182 elif test -f "/bin/ksh"; then
13183 { echo "$as_me:$LINENO: result: /bin/ksh" >&5
13184 echo "${ECHO_T}/bin/ksh" >&6; }
13185 cat >>confdefs.h <<\EOF
13186 #define _PATH_BSHELL "/bin/ksh"
13189 elif test -f "/usr/bin/ksh"; then
13190 { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
13191 echo "${ECHO_T}/usr/bin/ksh" >&6; }
13192 cat >>confdefs.h <<\EOF
13193 #define _PATH_BSHELL "/usr/bin/ksh"
13196 elif test -f "/bin/bash"; then
13197 { echo "$as_me:$LINENO: result: /bin/bash" >&5
13198 echo "${ECHO_T}/bin/bash" >&6; }
13199 cat >>confdefs.h <<\EOF
13200 #define _PATH_BSHELL "/bin/bash"
13203 elif test -f "/usr/bin/bash"; then
13204 { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
13205 echo "${ECHO_T}/usr/bin/bash" >&6; }
13206 cat >>confdefs.h <<\EOF
13207 #define _PATH_BSHELL "/usr/bin/bash"
13211 { echo "$as_me:$LINENO: result: not found" >&5
13212 echo "${ECHO_T}not found" >&6; }
13215 if test -z "$with_sendmail"; then
13216 { echo "$as_me:$LINENO: checking for sendmail" >&5
13217 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
13218 if test -f "/usr/sbin/sendmail"; then
13219 { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
13220 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
13221 cat >>confdefs.h <<\EOF
13222 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
13225 elif test -f "/usr/lib/sendmail"; then
13226 { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
13227 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
13228 cat >>confdefs.h <<\EOF
13229 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
13232 elif test -f "/usr/etc/sendmail"; then
13233 { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
13234 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
13235 cat >>confdefs.h <<\EOF
13236 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
13239 elif test -f "/usr/ucblib/sendmail"; then
13240 { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
13241 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
13242 cat >>confdefs.h <<\EOF
13243 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
13246 elif test -f "/usr/local/lib/sendmail"; then
13247 { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
13248 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
13249 cat >>confdefs.h <<\EOF
13250 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
13253 elif test -f "/usr/local/bin/sendmail"; then
13254 { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
13255 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
13256 cat >>confdefs.h <<\EOF
13257 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
13261 { echo "$as_me:$LINENO: result: not found" >&5
13262 echo "${ECHO_T}not found" >&6; }
13266 if test -z "$with_editor"; then
13267 { echo "$as_me:$LINENO: checking for vi" >&5
13268 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
13269 if test -f "/usr/bin/vi"; then
13270 { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
13271 echo "${ECHO_T}/usr/bin/vi" >&6; }
13272 cat >>confdefs.h <<\EOF
13273 #define _PATH_VI "/usr/bin/vi"
13276 elif test -f "/usr/ucb/vi"; then
13277 { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
13278 echo "${ECHO_T}/usr/ucb/vi" >&6; }
13279 cat >>confdefs.h <<\EOF
13280 #define _PATH_VI "/usr/ucb/vi"
13283 elif test -f "/usr/bsd/vi"; then
13284 { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
13285 echo "${ECHO_T}/usr/bsd/vi" >&6; }
13286 cat >>confdefs.h <<\EOF
13287 #define _PATH_VI "/usr/bsd/vi"
13290 elif test -f "/bin/vi"; then
13291 { echo "$as_me:$LINENO: result: /bin/vi" >&5
13292 echo "${ECHO_T}/bin/vi" >&6; }
13293 cat >>confdefs.h <<\EOF
13294 #define _PATH_VI "/bin/vi"
13297 elif test -f "/usr/local/bin/vi"; then
13298 { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
13299 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
13300 cat >>confdefs.h <<\EOF
13301 #define _PATH_VI "/usr/local/bin/vi"
13305 { echo "$as_me:$LINENO: result: not found" >&5
13306 echo "${ECHO_T}not found" >&6; }
13310 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13311 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
13312 if test "${ac_cv_header_stdc+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 cat >conftest.$ac_ext <<_ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 #include <stdlib.h>
13322 #include <stdarg.h>
13323 #include <string.h>
13334 rm -f conftest.$ac_objext
13335 if { (ac_try="$ac_compile"
13336 case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_compile") 2>conftest.er1
13343 grep -v '^ *+' conftest.er1 >conftest.err
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } && {
13348 test -z "$ac_c_werror_flag" ||
13349 test ! -s conftest.err
13350 } && test -s conftest.$ac_objext; then
13351 ac_cv_header_stdc=yes
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 ac_cv_header_stdc=no
13359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361 if test $ac_cv_header_stdc = yes; then
13362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 #include <string.h>
13372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13373 $EGREP "memchr" >/dev/null 2>&1; then
13376 ac_cv_header_stdc=no
13382 if test $ac_cv_header_stdc = yes; then
13383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13384 cat >conftest.$ac_ext <<_ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13390 #include <stdlib.h>
13393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13394 $EGREP "free" >/dev/null 2>&1; then
13397 ac_cv_header_stdc=no
13403 if test $ac_cv_header_stdc = yes; then
13404 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13405 if test "$cross_compiling" = yes; then
13408 cat >conftest.$ac_ext <<_ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13415 #include <stdlib.h>
13416 #if ((' ' & 0x0FF) == 0x020)
13417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13420 # define ISLOWER(c) \
13421 (('a' <= (c) && (c) <= 'i') \
13422 || ('j' <= (c) && (c) <= 'r') \
13423 || ('s' <= (c) && (c) <= 'z'))
13424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13432 for (i = 0; i < 256; i++)
13433 if (XOR (islower (i), ISLOWER (i))
13434 || toupper (i) != TOUPPER (i))
13439 rm -f conftest$ac_exeext
13440 if { (ac_try="$ac_link"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_link") 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13450 { (case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455 (eval "$ac_try") 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13461 echo "$as_me: program exited with status $ac_status" >&5
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 ( exit $ac_status )
13466 ac_cv_header_stdc=no
13468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13474 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13475 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13476 if test $ac_cv_header_stdc = yes; then
13478 cat >>confdefs.h <<\_ACEOF
13479 #define STDC_HEADERS 1
13489 ac_header_dirent=no
13490 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13491 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13492 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13493 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 cat >conftest.$ac_ext <<_ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 #include <sys/types.h>
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_compile") 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest.$ac_objext; then
13532 eval "$as_ac_Header=yes"
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 eval "$as_ac_Header=no"
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542 ac_res=`eval echo '${'$as_ac_Header'}'`
13543 { echo "$as_me:$LINENO: result: $ac_res" >&5
13544 echo "${ECHO_T}$ac_res" >&6; }
13545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13546 cat >>confdefs.h <<_ACEOF
13547 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13550 ac_header_dirent=$ac_hdr; break
13554 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13555 if test $ac_header_dirent = dirent.h; then
13556 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13557 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13558 if test "${ac_cv_search_opendir+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 ac_func_search_save_LIBS=$LIBS
13562 cat >conftest.$ac_ext <<_ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13569 /* Override any GCC internal prototype to avoid an error.
13570 Use char because int might match the return type of a GCC
13571 builtin and then its argument prototype would still apply. */
13584 for ac_lib in '' dir; do
13585 if test -z "$ac_lib"; then
13586 ac_res="none required"
13589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13591 rm -f conftest.$ac_objext conftest$ac_exeext
13592 if { (ac_try="$ac_link"
13593 case "(($ac_try" in
13594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595 *) ac_try_echo=$ac_try;;
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598 (eval "$ac_link") 2>conftest.er1
13600 grep -v '^ *+' conftest.er1 >conftest.err
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } && {
13605 test -z "$ac_c_werror_flag" ||
13606 test ! -s conftest.err
13607 } && test -s conftest$ac_exeext &&
13608 $as_test_x conftest$ac_exeext; then
13609 ac_cv_search_opendir=$ac_res
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13619 if test "${ac_cv_search_opendir+set}" = set; then
13623 if test "${ac_cv_search_opendir+set}" = set; then
13626 ac_cv_search_opendir=no
13628 rm conftest.$ac_ext
13629 LIBS=$ac_func_search_save_LIBS
13631 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13632 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13633 ac_res=$ac_cv_search_opendir
13634 if test "$ac_res" != no; then
13635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13640 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13641 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13642 if test "${ac_cv_search_opendir+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 ac_func_search_save_LIBS=$LIBS
13646 cat >conftest.$ac_ext <<_ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13653 /* Override any GCC internal prototype to avoid an error.
13654 Use char because int might match the return type of a GCC
13655 builtin and then its argument prototype would still apply. */
13668 for ac_lib in '' x; do
13669 if test -z "$ac_lib"; then
13670 ac_res="none required"
13673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13675 rm -f conftest.$ac_objext conftest$ac_exeext
13676 if { (ac_try="$ac_link"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_link") 2>conftest.er1
13684 grep -v '^ *+' conftest.er1 >conftest.err
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest$ac_exeext &&
13692 $as_test_x conftest$ac_exeext; then
13693 ac_cv_search_opendir=$ac_res
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13703 if test "${ac_cv_search_opendir+set}" = set; then
13707 if test "${ac_cv_search_opendir+set}" = set; then
13710 ac_cv_search_opendir=no
13712 rm conftest.$ac_ext
13713 LIBS=$ac_func_search_save_LIBS
13715 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13716 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13717 ac_res=$ac_cv_search_opendir
13718 if test "$ac_res" != no; then
13719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13725 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13727 if test "${ac_cv_header_time+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <sys/types.h>
13737 #include <sys/time.h>
13743 if ((struct tm *) 0)
13749 rm -f conftest.$ac_objext
13750 if { (ac_try="$ac_compile"
13751 case "(($ac_try" in
13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_compile") 2>conftest.er1
13758 grep -v '^ *+' conftest.er1 >conftest.err
13760 cat conftest.err >&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } && {
13763 test -z "$ac_c_werror_flag" ||
13764 test ! -s conftest.err
13765 } && test -s conftest.$ac_objext; then
13766 ac_cv_header_time=yes
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ac_cv_header_time=no
13774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13776 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13777 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13778 if test $ac_cv_header_time = yes; then
13780 cat >>confdefs.h <<\_ACEOF
13781 #define TIME_WITH_SYS_TIME 1
13793 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 ac_res=`eval echo '${'$as_ac_Header'}'`
13803 { echo "$as_me:$LINENO: result: $ac_res" >&5
13804 echo "${ECHO_T}$ac_res" >&6; }
13806 # Is the header compilable?
13807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 $ac_includes_default
13816 #include <$ac_header>
13818 rm -f conftest.$ac_objext
13819 if { (ac_try="$ac_compile"
13820 case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_compile") 2>conftest.er1
13827 grep -v '^ *+' conftest.er1 >conftest.err
13829 cat conftest.err >&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } && {
13832 test -z "$ac_c_werror_flag" ||
13833 test ! -s conftest.err
13834 } && test -s conftest.$ac_objext; then
13835 ac_header_compiler=yes
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 ac_header_compiler=no
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13845 echo "${ECHO_T}$ac_header_compiler" >&6; }
13847 # Is the header present?
13848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13850 cat >conftest.$ac_ext <<_ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13856 #include <$ac_header>
13858 if { (ac_try="$ac_cpp conftest.$ac_ext"
13859 case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } >/dev/null && {
13871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13874 ac_header_preproc=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_header_preproc=no
13882 rm -f conftest.err conftest.$ac_ext
13883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884 echo "${ECHO_T}$ac_header_preproc" >&6; }
13886 # So? What about this header?
13887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13893 ac_header_preproc=yes
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13909 ## --------------------------------------- ##
13910 ## Report this to http://www.sudo.ws/bugs/ ##
13911 ## --------------------------------------- ##
13913 ) | sed "s/^/$as_me: WARNING: /" >&2
13916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 eval "$as_ac_Header=\$ac_header_preproc"
13923 ac_res=`eval echo '${'$as_ac_Header'}'`
13924 { echo "$as_me:$LINENO: result: $ac_res" >&5
13925 echo "${ECHO_T}$ac_res" >&6; }
13928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13929 cat >>confdefs.h <<_ACEOF
13930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13937 if test "$OS" != "ultrix"; then
13938 { echo "$as_me:$LINENO: checking POSIX termios" >&5
13939 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13940 if test "${ac_cv_sys_posix_termios+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 cat >conftest.$ac_ext <<_ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 #include <sys/types.h>
13950 #include <unistd.h>
13951 #include <termios.h>
13956 /* SunOS 4.0.3 has termios.h but not the library calls. */
13962 rm -f conftest.$ac_objext conftest$ac_exeext
13963 if { (ac_try="$ac_link"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_link") 2>conftest.er1
13971 grep -v '^ *+' conftest.er1 >conftest.err
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } && {
13976 test -z "$ac_c_werror_flag" ||
13977 test ! -s conftest.err
13978 } && test -s conftest$ac_exeext &&
13979 $as_test_x conftest$ac_exeext; then
13980 ac_cv_sys_posix_termios=yes
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ac_cv_sys_posix_termios=no
13988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13989 conftest$ac_exeext conftest.$ac_ext
13991 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13992 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13994 if test "$ac_cv_sys_posix_termios" = "yes"; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_TERMIOS_H 1
14001 for ac_header in termio.h
14003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 ac_res=`eval echo '${'$as_ac_Header'}'`
14011 { echo "$as_me:$LINENO: result: $ac_res" >&5
14012 echo "${ECHO_T}$ac_res" >&6; }
14014 # Is the header compilable?
14015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14017 cat >conftest.$ac_ext <<_ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 $ac_includes_default
14024 #include <$ac_header>
14026 rm -f conftest.$ac_objext
14027 if { (ac_try="$ac_compile"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_compile") 2>conftest.er1
14035 grep -v '^ *+' conftest.er1 >conftest.err
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } && {
14040 test -z "$ac_c_werror_flag" ||
14041 test ! -s conftest.err
14042 } && test -s conftest.$ac_objext; then
14043 ac_header_compiler=yes
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_header_compiler=no
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14053 echo "${ECHO_T}$ac_header_compiler" >&6; }
14055 # Is the header present?
14056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14058 cat >conftest.$ac_ext <<_ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 #include <$ac_header>
14066 if { (ac_try="$ac_cpp conftest.$ac_ext"
14067 case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14074 grep -v '^ *+' conftest.er1 >conftest.err
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } >/dev/null && {
14079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14080 test ! -s conftest.err
14082 ac_header_preproc=yes
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14087 ac_header_preproc=no
14090 rm -f conftest.err conftest.$ac_ext
14091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14092 echo "${ECHO_T}$ac_header_preproc" >&6; }
14094 # So? What about this header?
14095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14101 ac_header_preproc=yes
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14117 ## --------------------------------------- ##
14118 ## Report this to http://www.sudo.ws/bugs/ ##
14119 ## --------------------------------------- ##
14121 ) | sed "s/^/$as_me: WARNING: /" >&2
14124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 eval "$as_ac_Header=\$ac_header_preproc"
14131 ac_res=`eval echo '${'$as_ac_Header'}'`
14132 { echo "$as_me:$LINENO: result: $ac_res" >&5
14133 echo "${ECHO_T}$ac_res" >&6; }
14136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14137 cat >>confdefs.h <<_ACEOF
14138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14147 if test ${with_logincap-'no'} != "no"; then
14149 for ac_header in login_cap.h
14151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 ac_res=`eval echo '${'$as_ac_Header'}'`
14159 { echo "$as_me:$LINENO: result: $ac_res" >&5
14160 echo "${ECHO_T}$ac_res" >&6; }
14162 # Is the header compilable?
14163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14165 cat >conftest.$ac_ext <<_ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 $ac_includes_default
14172 #include <$ac_header>
14174 rm -f conftest.$ac_objext
14175 if { (ac_try="$ac_compile"
14176 case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_compile") 2>conftest.er1
14183 grep -v '^ *+' conftest.er1 >conftest.err
14185 cat conftest.err >&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); } && {
14188 test -z "$ac_c_werror_flag" ||
14189 test ! -s conftest.err
14190 } && test -s conftest.$ac_objext; then
14191 ac_header_compiler=yes
14193 echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14196 ac_header_compiler=no
14199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14201 echo "${ECHO_T}$ac_header_compiler" >&6; }
14203 # Is the header present?
14204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14206 cat >conftest.$ac_ext <<_ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 #include <$ac_header>
14214 if { (ac_try="$ac_cpp conftest.$ac_ext"
14215 case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14222 grep -v '^ *+' conftest.er1 >conftest.err
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } >/dev/null && {
14227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14228 test ! -s conftest.err
14230 ac_header_preproc=yes
14232 echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14235 ac_header_preproc=no
14238 rm -f conftest.err conftest.$ac_ext
14239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14240 echo "${ECHO_T}$ac_header_preproc" >&6; }
14242 # So? What about this header?
14243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14249 ac_header_preproc=yes
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14265 ## --------------------------------------- ##
14266 ## Report this to http://www.sudo.ws/bugs/ ##
14267 ## --------------------------------------- ##
14269 ) | sed "s/^/$as_me: WARNING: /" >&2
14272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 eval "$as_ac_Header=\$ac_header_preproc"
14279 ac_res=`eval echo '${'$as_ac_Header'}'`
14280 { echo "$as_me:$LINENO: result: $ac_res" >&5
14281 echo "${ECHO_T}$ac_res" >&6; }
14284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14285 cat >>confdefs.h <<_ACEOF
14286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14288 LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
14290 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
14299 if test ${with_project-'no'} != "no"; then
14300 if test "${ac_cv_header_project_h+set}" = set; then
14301 { echo "$as_me:$LINENO: checking for project.h" >&5
14302 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14303 if test "${ac_cv_header_project_h+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14307 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14309 # Is the header compilable?
14310 { echo "$as_me:$LINENO: checking project.h usability" >&5
14311 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
14312 cat >conftest.$ac_ext <<_ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 $ac_includes_default
14319 #include <project.h>
14321 rm -f conftest.$ac_objext
14322 if { (ac_try="$ac_compile"
14323 case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_compile") 2>conftest.er1
14330 grep -v '^ *+' conftest.er1 >conftest.err
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && {
14335 test -z "$ac_c_werror_flag" ||
14336 test ! -s conftest.err
14337 } && test -s conftest.$ac_objext; then
14338 ac_header_compiler=yes
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 ac_header_compiler=no
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14348 echo "${ECHO_T}$ac_header_compiler" >&6; }
14350 # Is the header present?
14351 { echo "$as_me:$LINENO: checking project.h presence" >&5
14352 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
14353 cat >conftest.$ac_ext <<_ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14359 #include <project.h>
14361 if { (ac_try="$ac_cpp conftest.$ac_ext"
14362 case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14369 grep -v '^ *+' conftest.er1 >conftest.err
14371 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } >/dev/null && {
14374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14375 test ! -s conftest.err
14377 ac_header_preproc=yes
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_header_preproc=no
14385 rm -f conftest.err conftest.$ac_ext
14386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14387 echo "${ECHO_T}$ac_header_preproc" >&6; }
14389 # So? What about this header?
14390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14392 { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
14393 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14394 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
14395 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
14396 ac_header_preproc=yes
14399 { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
14400 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
14402 echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
14404 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
14406 echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
14407 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
14408 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
14409 { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
14410 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
14412 ## --------------------------------------- ##
14413 ## Report this to http://www.sudo.ws/bugs/ ##
14414 ## --------------------------------------- ##
14416 ) | sed "s/^/$as_me: WARNING: /" >&2
14419 { echo "$as_me:$LINENO: checking for project.h" >&5
14420 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14421 if test "${ac_cv_header_project_h+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 ac_cv_header_project_h=$ac_header_preproc
14426 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14427 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14430 if test $ac_cv_header_project_h = yes; then
14431 cat >>confdefs.h <<\_ACEOF
14432 #define HAVE_PROJECT_H 1
14435 SUDO_LIBS="${SUDO_LIBS} -lproject"
14442 { echo "$as_me:$LINENO: checking for mode_t" >&5
14443 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
14444 if test "${ac_cv_type_mode_t+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 cat >conftest.$ac_ext <<_ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 $ac_includes_default
14454 typedef mode_t ac__type_new_;
14458 if ((ac__type_new_ *) 0)
14460 if (sizeof (ac__type_new_))
14466 rm -f conftest.$ac_objext
14467 if { (ac_try="$ac_compile"
14468 case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_compile") 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } && {
14480 test -z "$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14482 } && test -s conftest.$ac_objext; then
14483 ac_cv_type_mode_t=yes
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14488 ac_cv_type_mode_t=no
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14494 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
14495 if test $ac_cv_type_mode_t = yes; then
14499 cat >>confdefs.h <<_ACEOF
14505 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14506 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
14507 if test "${ac_cv_type_uid_t+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <sys/types.h>
14519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14520 $EGREP "uid_t" >/dev/null 2>&1; then
14521 ac_cv_type_uid_t=yes
14523 ac_cv_type_uid_t=no
14528 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14529 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
14530 if test $ac_cv_type_uid_t = no; then
14532 cat >>confdefs.h <<\_ACEOF
14537 cat >>confdefs.h <<\_ACEOF
14543 { echo "$as_me:$LINENO: checking for __signed char" >&5
14544 echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
14545 if test "${ac_cv_type___signed_char+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 cat >conftest.$ac_ext <<_ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 $ac_includes_default
14555 typedef __signed char ac__type_new_;
14559 if ((ac__type_new_ *) 0)
14561 if (sizeof (ac__type_new_))
14567 rm -f conftest.$ac_objext
14568 if { (ac_try="$ac_compile"
14569 case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_compile") 2>conftest.er1
14576 grep -v '^ *+' conftest.er1 >conftest.err
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest.$ac_objext; then
14584 ac_cv_type___signed_char=yes
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14589 ac_cv_type___signed_char=no
14592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594 { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
14595 echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
14596 if test $ac_cv_type___signed_char = yes; then
14599 { echo "$as_me:$LINENO: checking for signed char" >&5
14600 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
14601 if test "${ac_cv_type_signed_char+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 cat >conftest.$ac_ext <<_ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 $ac_includes_default
14611 typedef signed char ac__type_new_;
14615 if ((ac__type_new_ *) 0)
14617 if (sizeof (ac__type_new_))
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14632 grep -v '^ *+' conftest.er1 >conftest.err
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } && {
14637 test -z "$ac_c_werror_flag" ||
14638 test ! -s conftest.err
14639 } && test -s conftest.$ac_objext; then
14640 ac_cv_type_signed_char=yes
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14645 ac_cv_type_signed_char=no
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
14651 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
14652 if test $ac_cv_type_signed_char = yes; then
14653 cat >>confdefs.h <<\_ACEOF
14654 #define __signed signed
14658 cat >>confdefs.h <<\_ACEOF
14666 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14667 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14668 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 cat >conftest.$ac_ext <<_ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 #include <sys/types.h>
14678 #include <signal.h>
14680 typedef sig_atomic_t ac__type_new_;
14684 if ((ac__type_new_ *) 0)
14686 if (sizeof (ac__type_new_))
14692 rm -f conftest.$ac_objext
14693 if { (ac_try="$ac_compile"
14694 case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_compile") 2>conftest.er1
14701 grep -v '^ *+' conftest.er1 >conftest.err
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } && {
14706 test -z "$ac_c_werror_flag" ||
14707 test ! -s conftest.err
14708 } && test -s conftest.$ac_objext; then
14709 ac_cv_type_sig_atomic_t=yes
14711 echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.$ac_ext >&5
14714 ac_cv_type_sig_atomic_t=no
14717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14720 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14721 if test $ac_cv_type_sig_atomic_t = yes; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define sig_atomic_t int
14730 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14731 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14732 if test "${ac_cv_type_sigaction_t+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 cat >conftest.$ac_ext <<_ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 #include <sys/types.h>
14742 #include <signal.h>
14744 typedef sigaction_t ac__type_new_;
14748 if ((ac__type_new_ *) 0)
14750 if (sizeof (ac__type_new_))
14756 rm -f conftest.$ac_objext
14757 if { (ac_try="$ac_compile"
14758 case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_compile") 2>conftest.er1
14765 grep -v '^ *+' conftest.er1 >conftest.err
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } && {
14770 test -z "$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14772 } && test -s conftest.$ac_objext; then
14773 ac_cv_type_sigaction_t=yes
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ac_cv_type_sigaction_t=no
14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14784 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14785 if test $ac_cv_type_sigaction_t = yes; then
14787 cat >>confdefs.h <<_ACEOF
14788 #define HAVE_SIGACTION_T 1
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_SIGACTION_T 1
14797 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14798 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14799 if test "${ac_cv_type_struct_timespec+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 cat >conftest.$ac_ext <<_ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 #include <sys/types.h>
14809 #if TIME_WITH_SYS_TIME
14810 # include <sys/time.h>
14814 typedef struct timespec ac__type_new_;
14818 if ((ac__type_new_ *) 0)
14820 if (sizeof (ac__type_new_))
14826 rm -f conftest.$ac_objext
14827 if { (ac_try="$ac_compile"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_compile") 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest.$ac_objext; then
14843 ac_cv_type_struct_timespec=yes
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_cv_type_struct_timespec=no
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14854 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14855 if test $ac_cv_type_struct_timespec = yes; then
14856 cat >>confdefs.h <<\_ACEOF
14857 #define HAVE_TIMESPEC 1
14862 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14863 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14864 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <sys/types.h>
14874 #include <netinet/in.h>
14876 typedef struct in6_addr ac__type_new_;
14880 if ((ac__type_new_ *) 0)
14882 if (sizeof (ac__type_new_))
14888 rm -f conftest.$ac_objext
14889 if { (ac_try="$ac_compile"
14890 case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_compile") 2>conftest.er1
14897 grep -v '^ *+' conftest.er1 >conftest.err
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } && {
14902 test -z "$ac_c_werror_flag" ||
14903 test ! -s conftest.err
14904 } && test -s conftest.$ac_objext; then
14905 ac_cv_type_struct_in6_addr=yes
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 ac_cv_type_struct_in6_addr=no
14913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14915 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14916 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14917 if test $ac_cv_type_struct_in6_addr = yes; then
14919 cat >>confdefs.h <<_ACEOF
14920 #define HAVE_STRUCT_IN6_ADDR 1
14923 cat >>confdefs.h <<\_ACEOF
14924 #define HAVE_IN6_ADDR 1
14929 { echo "$as_me:$LINENO: checking for size_t" >&5
14930 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14931 if test "${sudo_cv_type_size_t+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 cat >conftest.$ac_ext <<_ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #include <sys/types.h>
14943 #include <stdlib.h>
14946 #include <unistd.h>
14949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14950 $EGREP "size_t" >/dev/null 2>&1; then
14951 sudo_cv_type_size_t=yes
14953 sudo_cv_type_size_t=no
14958 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14959 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14960 if test $sudo_cv_type_size_t = no; then
14962 cat >>confdefs.h <<\_ACEOF
14968 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14969 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14970 if test "${sudo_cv_type_ssize_t+set}" = set; then
14971 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 cat >conftest.$ac_ext <<_ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h. */
14979 #include <sys/types.h>
14982 #include <stdlib.h>
14985 #include <unistd.h>
14988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14989 $EGREP "ssize_t" >/dev/null 2>&1; then
14990 sudo_cv_type_ssize_t=yes
14992 sudo_cv_type_ssize_t=no
14997 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14998 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14999 if test $sudo_cv_type_ssize_t = no; then
15001 cat >>confdefs.h <<\_ACEOF
15002 #define ssize_t int
15007 { echo "$as_me:$LINENO: checking for dev_t" >&5
15008 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
15009 if test "${sudo_cv_type_dev_t+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 cat >conftest.$ac_ext <<_ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h. */
15018 #include <sys/types.h>
15021 #include <stdlib.h>
15024 #include <unistd.h>
15027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15028 $EGREP "dev_t" >/dev/null 2>&1; then
15029 sudo_cv_type_dev_t=yes
15031 sudo_cv_type_dev_t=no
15036 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
15037 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
15038 if test $sudo_cv_type_dev_t = no; then
15040 cat >>confdefs.h <<\_ACEOF
15046 { echo "$as_me:$LINENO: checking for ino_t" >&5
15047 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
15048 if test "${sudo_cv_type_ino_t+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
15051 cat >conftest.$ac_ext <<_ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 #include <sys/types.h>
15060 #include <stdlib.h>
15063 #include <unistd.h>
15066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15067 $EGREP "ino_t" >/dev/null 2>&1; then
15068 sudo_cv_type_ino_t=yes
15070 sudo_cv_type_ino_t=no
15075 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
15076 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
15077 if test $sudo_cv_type_ino_t = no; then
15079 cat >>confdefs.h <<\_ACEOF
15080 #define ino_t unsigned int
15086 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
15087 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
15088 if test "${sudo_cv_uid_t_len+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 if test "$cross_compiling" = yes; then
15093 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15094 See \`config.log' for more details." >&5
15095 echo "$as_me: error: cannot run test program while cross compiling
15096 See \`config.log' for more details." >&2;}
15097 { (exit 1); exit 1; }; }
15099 cat >conftest.$ac_ext <<_ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15107 #include <limits.h>
15108 #include <sys/types.h>
15109 #include <sys/param.h>
15113 uid_t u = (uid_t) -1;
15115 if ((f = fopen("conftestdata", "w")) == NULL)
15118 (void) sprintf(b, "%lu", (unsigned long) u);
15119 (void) fprintf(f, "%d\n", strlen(b));
15124 rm -f conftest$ac_exeext
15125 if { (ac_try="$ac_link"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_link") 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15135 { (case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_try") 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15144 sudo_cv_uid_t_len=`cat conftestdata`
15146 echo "$as_me: program exited with status $ac_status" >&5
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ( exit $ac_status )
15151 sudo_cv_uid_t_len=10
15153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15161 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
15162 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
15164 cat >>confdefs.h <<_ACEOF
15165 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15169 { echo "$as_me:$LINENO: checking for long long" >&5
15170 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
15171 if test "${ac_cv_type_long_long+set}" = set; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 cat >conftest.$ac_ext <<_ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15180 $ac_includes_default
15181 typedef long long ac__type_new_;
15185 if ((ac__type_new_ *) 0)
15187 if (sizeof (ac__type_new_))
15193 rm -f conftest.$ac_objext
15194 if { (ac_try="$ac_compile"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1 >conftest.err
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest.$ac_objext; then
15210 ac_cv_type_long_long=yes
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_cv_type_long_long=no
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15221 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15222 if test $ac_cv_type_long_long = yes; then
15224 cat >>confdefs.h <<_ACEOF
15225 #define HAVE_LONG_LONG 1
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_LONG_LONG 1
15233 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
15234 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
15235 if test "${sudo_cv_type_long_is_quad+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 if test "$cross_compiling" = yes; then
15239 sudo_cv_type_long_is_quad=no
15241 cat >conftest.$ac_ext <<_ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15249 if (sizeof(long long) == sizeof(long)) exit(0);
15253 rm -f conftest$ac_exeext
15254 if { (ac_try="$ac_link"
15255 case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_link") 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15264 { (case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_try") 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; }; then
15273 sudo_cv_type_long_is_quad=yes
15275 echo "$as_me: program exited with status $ac_status" >&5
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ( exit $ac_status )
15280 sudo_cv_type_long_is_quad=no
15282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15286 rm -f core core.* *.core
15288 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
15289 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
15290 if test $sudo_cv_type_long_is_quad = yes; then
15292 cat >>confdefs.h <<\_ACEOF
15293 #define LONG_IS_QUAD 1
15300 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
15301 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
15302 if test "${sudo_cv_sock_sa_len+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 if test "$cross_compiling" = yes; then
15306 sudo_cv_sock_sa_len=no
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 #include <sys/types.h>
15315 #include <sys/socket.h>
15322 rm -f conftest$ac_exeext
15323 if { (ac_try="$ac_link"
15324 case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_link") 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15333 { (case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_try") 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 sudo_cv_sock_sa_len=yes
15344 echo "$as_me: program exited with status $ac_status" >&5
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15348 ( exit $ac_status )
15349 sudo_cv_sock_sa_len=no
15351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15355 rm -f core core.* *.core
15357 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
15358 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
15359 if test $sudo_cv_sock_sa_len = yes; then
15361 cat >>confdefs.h <<\_ACEOF
15362 #define HAVE_SA_LEN 1
15369 *) { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15370 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15371 if test "${ac_cv_type_signal+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 cat >conftest.$ac_ext <<_ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15380 #include <sys/types.h>
15381 #include <signal.h>
15386 return *(signal (0, 0)) (0) == 1;
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_compile") 2>conftest.er1
15400 grep -v '^ *+' conftest.er1 >conftest.err
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } && {
15405 test -z "$ac_c_werror_flag" ||
15406 test ! -s conftest.err
15407 } && test -s conftest.$ac_objext; then
15408 ac_cv_type_signal=int
15410 echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_cv_type_signal=void
15416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15419 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15421 cat >>confdefs.h <<_ACEOF
15422 #define RETSIGTYPE $ac_cv_type_signal
15427 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15428 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
15429 if test "${ac_cv_type_getgroups+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 if test "$cross_compiling" = yes; then
15433 ac_cv_type_getgroups=cross
15435 cat >conftest.$ac_ext <<_ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 /* Thanks to Mike Rendell for this test. */
15442 $ac_includes_default
15445 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15450 gid_t gidset[NGID];
15452 union { gid_t gval; long int lval; } val;
15455 for (i = 0; i < NGID; i++)
15456 gidset[i] = val.gval;
15457 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15459 /* Exit non-zero if getgroups seems to require an array of ints. This
15460 happens when gid_t is short int but getgroups modifies an array
15462 return n > 0 && gidset[n] != val.gval;
15465 rm -f conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_link") 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15476 { (case "(($ac_try" in
15477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478 *) ac_try_echo=$ac_try;;
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481 (eval "$ac_try") 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15485 ac_cv_type_getgroups=gid_t
15487 echo "$as_me: program exited with status $ac_status" >&5
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 ( exit $ac_status )
15492 ac_cv_type_getgroups=int
15494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15498 if test $ac_cv_type_getgroups = cross; then
15499 cat >conftest.$ac_ext <<_ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15505 #include <unistd.h>
15508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15509 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15510 ac_cv_type_getgroups=gid_t
15512 ac_cv_type_getgroups=int
15518 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15519 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
15521 cat >>confdefs.h <<_ACEOF
15522 #define GETGROUPS_T $ac_cv_type_getgroups
15526 { echo "$as_me:$LINENO: checking for size_t" >&5
15527 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15528 if test "${ac_cv_type_size_t+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 $ac_includes_default
15538 typedef size_t ac__type_new_;
15542 if ((ac__type_new_ *) 0)
15544 if (sizeof (ac__type_new_))
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15559 grep -v '^ *+' conftest.er1 >conftest.err
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest.$ac_objext; then
15567 ac_cv_type_size_t=yes
15569 echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15572 ac_cv_type_size_t=no
15575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15577 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15578 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15579 if test $ac_cv_type_size_t = yes; then
15583 cat >>confdefs.h <<_ACEOF
15584 #define size_t unsigned int
15589 { echo "$as_me:$LINENO: checking for getgroups" >&5
15590 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
15591 if test "${ac_cv_func_getgroups+set}" = set; then
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 cat >conftest.$ac_ext <<_ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15602 #define getgroups innocuous_getgroups
15604 /* System header to define __stub macros and hopefully few prototypes,
15605 which can conflict with char getgroups (); below.
15606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15607 <limits.h> exists even on freestanding compilers. */
15610 # include <limits.h>
15612 # include <assert.h>
15617 /* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15624 /* The GNU C library defines this for functions which it implements
15625 to always fail with ENOSYS. Some functions are actually named
15626 something starting with __ and the normal name is an alias. */
15627 #if defined __stub_getgroups || defined __stub___getgroups
15634 return getgroups ();
15639 rm -f conftest.$ac_objext conftest$ac_exeext
15640 if { (ac_try="$ac_link"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_link") 2>conftest.er1
15648 grep -v '^ *+' conftest.er1 >conftest.err
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } && {
15653 test -z "$ac_c_werror_flag" ||
15654 test ! -s conftest.err
15655 } && test -s conftest$ac_exeext &&
15656 $as_test_x conftest$ac_exeext; then
15657 ac_cv_func_getgroups=yes
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_cv_func_getgroups=no
15665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15666 conftest$ac_exeext conftest.$ac_ext
15668 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15669 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15672 # If we don't yet have getgroups, see if it's in -lbsd.
15673 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15675 if test $ac_cv_func_getgroups = no; then
15676 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15677 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15678 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15681 ac_check_lib_save_LIBS=$LIBS
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15690 /* Override any GCC internal prototype to avoid an error.
15691 Use char because int might match the return type of a GCC
15692 builtin and then its argument prototype would still apply. */
15700 return getgroups ();
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (ac_try="$ac_link"
15707 case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_link") 2>conftest.er1
15714 grep -v '^ *+' conftest.er1 >conftest.err
15716 cat conftest.err >&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } && {
15719 test -z "$ac_c_werror_flag" ||
15720 test ! -s conftest.err
15721 } && test -s conftest$ac_exeext &&
15722 $as_test_x conftest$ac_exeext; then
15723 ac_cv_lib_bsd_getgroups=yes
15725 echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15728 ac_cv_lib_bsd_getgroups=no
15731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15732 conftest$ac_exeext conftest.$ac_ext
15733 LIBS=$ac_check_lib_save_LIBS
15735 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15736 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15737 if test $ac_cv_lib_bsd_getgroups = yes; then
15738 GETGROUPS_LIB=-lbsd
15743 # Run the program to test the functionality of the system-supplied
15744 # getgroups function only if there is such a function.
15745 if test $ac_cv_func_getgroups = yes; then
15746 { echo "$as_me:$LINENO: checking for working getgroups" >&5
15747 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15748 if test "${ac_cv_func_getgroups_works+set}" = set; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 if test "$cross_compiling" = yes; then
15752 ac_cv_func_getgroups_works=no
15754 cat >conftest.$ac_ext <<_ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 $ac_includes_default
15764 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15765 return getgroups (0, 0) == -1;
15770 rm -f conftest$ac_exeext
15771 if { (ac_try="$ac_link"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_link") 2>&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_cv_func_getgroups_works=yes
15792 echo "$as_me: program exited with status $ac_status" >&5
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 ( exit $ac_status )
15797 ac_cv_func_getgroups_works=no
15799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15805 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15806 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15807 if test $ac_cv_func_getgroups_works = yes; then
15809 cat >>confdefs.h <<\_ACEOF
15810 #define HAVE_GETGROUPS 1
15834 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15835 strftime setrlimit initgroups getgroups fstat gettimeofday \
15836 setlocale getaddrinfo setsid setenv
15838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 cat >conftest.$ac_ext <<_ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15852 #define $ac_func innocuous_$ac_func
15854 /* System header to define __stub macros and hopefully few prototypes,
15855 which can conflict with char $ac_func (); below.
15856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15857 <limits.h> exists even on freestanding compilers. */
15860 # include <limits.h>
15862 # include <assert.h>
15867 /* Override any GCC internal prototype to avoid an error.
15868 Use char because int might match the return type of a GCC
15869 builtin and then its argument prototype would still apply. */
15874 /* The GNU C library defines this for functions which it implements
15875 to always fail with ENOSYS. Some functions are actually named
15876 something starting with __ and the normal name is an alias. */
15877 #if defined __stub_$ac_func || defined __stub___$ac_func
15884 return $ac_func ();
15889 rm -f conftest.$ac_objext conftest$ac_exeext
15890 if { (ac_try="$ac_link"
15891 case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_link") 2>conftest.er1
15898 grep -v '^ *+' conftest.er1 >conftest.err
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } && {
15903 test -z "$ac_c_werror_flag" ||
15904 test ! -s conftest.err
15905 } && test -s conftest$ac_exeext &&
15906 $as_test_x conftest$ac_exeext; then
15907 eval "$as_ac_var=yes"
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 eval "$as_ac_var=no"
15915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15916 conftest$ac_exeext conftest.$ac_ext
15918 ac_res=`eval echo '${'$as_ac_var'}'`
15919 { echo "$as_me:$LINENO: result: $ac_res" >&5
15920 echo "${ECHO_T}$ac_res" >&6; }
15921 if test `eval echo '${'$as_ac_var'}'` = yes; then
15922 cat >>confdefs.h <<_ACEOF
15923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15930 for ac_func in unsetenv
15932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15938 cat >conftest.$ac_ext <<_ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15946 #define $ac_func innocuous_$ac_func
15948 /* System header to define __stub macros and hopefully few prototypes,
15949 which can conflict with char $ac_func (); below.
15950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15951 <limits.h> exists even on freestanding compilers. */
15954 # include <limits.h>
15956 # include <assert.h>
15961 /* Override any GCC internal prototype to avoid an error.
15962 Use char because int might match the return type of a GCC
15963 builtin and then its argument prototype would still apply. */
15968 /* The GNU C library defines this for functions which it implements
15969 to always fail with ENOSYS. Some functions are actually named
15970 something starting with __ and the normal name is an alias. */
15971 #if defined __stub_$ac_func || defined __stub___$ac_func
15978 return $ac_func ();
15983 rm -f conftest.$ac_objext conftest$ac_exeext
15984 if { (ac_try="$ac_link"
15985 case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_link") 2>conftest.er1
15992 grep -v '^ *+' conftest.er1 >conftest.err
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } && {
15997 test -z "$ac_c_werror_flag" ||
15998 test ! -s conftest.err
15999 } && test -s conftest$ac_exeext &&
16000 $as_test_x conftest$ac_exeext; then
16001 eval "$as_ac_var=yes"
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 eval "$as_ac_var=no"
16009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16010 conftest$ac_exeext conftest.$ac_ext
16012 ac_res=`eval echo '${'$as_ac_var'}'`
16013 { echo "$as_me:$LINENO: result: $ac_res" >&5
16014 echo "${ECHO_T}$ac_res" >&6; }
16015 if test `eval echo '${'$as_ac_var'}'` = yes; then
16016 cat >>confdefs.h <<_ACEOF
16017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16019 { echo "$as_me:$LINENO: checking whether unsetenv returns void" >&5
16020 echo $ECHO_N "checking whether unsetenv returns void... $ECHO_C" >&6; }
16021 if test "${sudo_cv_func_unsetenv_void+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 if test "$cross_compiling" = yes; then
16025 sudo_cv_func_unsetenv_void=yes
16027 cat >conftest.$ac_ext <<_ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h. */
16033 $ac_includes_default
16040 return unsetenv("FOO") != 0;
16047 rm -f conftest$ac_exeext
16048 if { (ac_try="$ac_link"
16049 case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_link") 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16058 { (case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_try") 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 sudo_cv_func_unsetenv_void=no
16069 echo "$as_me: program exited with status $ac_status" >&5
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 ( exit $ac_status )
16074 sudo_cv_func_unsetenv_void=yes
16076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16081 { echo "$as_me:$LINENO: result: $sudo_cv_func_unsetenv_void" >&5
16082 echo "${ECHO_T}$sudo_cv_func_unsetenv_void" >&6; }
16083 if test $sudo_cv_func_unsetenv_void = yes; then
16085 cat >>confdefs.h <<\_ACEOF
16086 #define UNSETENV_VOID 1
16094 { echo "$as_me:$LINENO: checking whether putenv has a const argument" >&5
16095 echo $ECHO_N "checking whether putenv has a const argument... $ECHO_C" >&6; }
16096 if test "${sudo_cv_func_putenv_const+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
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
16106 int putenv(const char *string) {return 0;}
16115 rm -f conftest.$ac_objext
16116 if { (ac_try="$ac_compile"
16117 case "(($ac_try" in
16118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119 *) ac_try_echo=$ac_try;;
16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122 (eval "$ac_compile") 2>conftest.er1
16124 grep -v '^ *+' conftest.er1 >conftest.err
16126 cat conftest.err >&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } && {
16129 test -z "$ac_c_werror_flag" ||
16130 test ! -s conftest.err
16131 } && test -s conftest.$ac_objext; then
16132 sudo_cv_func_putenv_const=yes
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 sudo_cv_func_putenv_const=no
16140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16143 { echo "$as_me:$LINENO: result: $sudo_cv_func_putenv_const" >&5
16144 echo "${ECHO_T}$sudo_cv_func_putenv_const" >&6; }
16145 if test $sudo_cv_func_putenv_const = yes; then
16147 cat >>confdefs.h <<\_ACEOF
16148 #define PUTENV_CONST 1
16153 if test -z "$SKIP_SETRESUID"; then
16155 for ac_func in setresuid
16157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 cat >conftest.$ac_ext <<_ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16171 #define $ac_func innocuous_$ac_func
16173 /* System header to define __stub macros and hopefully few prototypes,
16174 which can conflict with char $ac_func (); below.
16175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16176 <limits.h> exists even on freestanding compilers. */
16179 # include <limits.h>
16181 # include <assert.h>
16186 /* Override any GCC internal prototype to avoid an error.
16187 Use char because int might match the return type of a GCC
16188 builtin and then its argument prototype would still apply. */
16193 /* The GNU C library defines this for functions which it implements
16194 to always fail with ENOSYS. Some functions are actually named
16195 something starting with __ and the normal name is an alias. */
16196 #if defined __stub_$ac_func || defined __stub___$ac_func
16203 return $ac_func ();
16208 rm -f conftest.$ac_objext conftest$ac_exeext
16209 if { (ac_try="$ac_link"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_link") 2>conftest.er1
16217 grep -v '^ *+' conftest.er1 >conftest.err
16219 cat conftest.err >&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } && {
16222 test -z "$ac_c_werror_flag" ||
16223 test ! -s conftest.err
16224 } && test -s conftest$ac_exeext &&
16225 $as_test_x conftest$ac_exeext; then
16226 eval "$as_ac_var=yes"
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 eval "$as_ac_var=no"
16234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16235 conftest$ac_exeext conftest.$ac_ext
16237 ac_res=`eval echo '${'$as_ac_var'}'`
16238 { echo "$as_me:$LINENO: result: $ac_res" >&5
16239 echo "${ECHO_T}$ac_res" >&6; }
16240 if test `eval echo '${'$as_ac_var'}'` = yes; then
16241 cat >>confdefs.h <<_ACEOF
16242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16249 if test -z "$SKIP_SETREUID"; then
16251 for ac_func in setreuid
16253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16257 echo $ECHO_N "(cached) $ECHO_C" >&6
16259 cat >conftest.$ac_ext <<_ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h. */
16265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16267 #define $ac_func innocuous_$ac_func
16269 /* System header to define __stub macros and hopefully few prototypes,
16270 which can conflict with char $ac_func (); below.
16271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16272 <limits.h> exists even on freestanding compilers. */
16275 # include <limits.h>
16277 # include <assert.h>
16282 /* Override any GCC internal prototype to avoid an error.
16283 Use char because int might match the return type of a GCC
16284 builtin and then its argument prototype would still apply. */
16289 /* The GNU C library defines this for functions which it implements
16290 to always fail with ENOSYS. Some functions are actually named
16291 something starting with __ and the normal name is an alias. */
16292 #if defined __stub_$ac_func || defined __stub___$ac_func
16299 return $ac_func ();
16304 rm -f conftest.$ac_objext conftest$ac_exeext
16305 if { (ac_try="$ac_link"
16306 case "(($ac_try" in
16307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308 *) ac_try_echo=$ac_try;;
16310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16311 (eval "$ac_link") 2>conftest.er1
16313 grep -v '^ *+' conftest.er1 >conftest.err
16315 cat conftest.err >&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } && {
16318 test -z "$ac_c_werror_flag" ||
16319 test ! -s conftest.err
16320 } && test -s conftest$ac_exeext &&
16321 $as_test_x conftest$ac_exeext; then
16322 eval "$as_ac_var=yes"
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16327 eval "$as_ac_var=no"
16330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16331 conftest$ac_exeext conftest.$ac_ext
16333 ac_res=`eval echo '${'$as_ac_var'}'`
16334 { echo "$as_me:$LINENO: result: $ac_res" >&5
16335 echo "${ECHO_T}$ac_res" >&6; }
16336 if test `eval echo '${'$as_ac_var'}'` = yes; then
16337 cat >>confdefs.h <<_ACEOF
16338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16345 if test -z "$SKIP_SETEUID"; then
16347 for ac_func in seteuid
16349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16355 cat >conftest.$ac_ext <<_ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16363 #define $ac_func innocuous_$ac_func
16365 /* System header to define __stub macros and hopefully few prototypes,
16366 which can conflict with char $ac_func (); below.
16367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16368 <limits.h> exists even on freestanding compilers. */
16371 # include <limits.h>
16373 # include <assert.h>
16378 /* Override any GCC internal prototype to avoid an error.
16379 Use char because int might match the return type of a GCC
16380 builtin and then its argument prototype would still apply. */
16385 /* The GNU C library defines this for functions which it implements
16386 to always fail with ENOSYS. Some functions are actually named
16387 something starting with __ and the normal name is an alias. */
16388 #if defined __stub_$ac_func || defined __stub___$ac_func
16395 return $ac_func ();
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (ac_try="$ac_link"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_link") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } && {
16414 test -z "$ac_c_werror_flag" ||
16415 test ! -s conftest.err
16416 } && test -s conftest$ac_exeext &&
16417 $as_test_x conftest$ac_exeext; then
16418 eval "$as_ac_var=yes"
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 eval "$as_ac_var=no"
16426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16427 conftest$ac_exeext conftest.$ac_ext
16429 ac_res=`eval echo '${'$as_ac_var'}'`
16430 { echo "$as_me:$LINENO: result: $ac_res" >&5
16431 echo "${ECHO_T}$ac_res" >&6; }
16432 if test `eval echo '${'$as_ac_var'}'` = yes; then
16433 cat >>confdefs.h <<_ACEOF
16434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16441 if test X"$with_interfaces" != X"no"; then
16443 for ac_func in getifaddrs
16445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 cat >conftest.$ac_ext <<_ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16459 #define $ac_func innocuous_$ac_func
16461 /* System header to define __stub macros and hopefully few prototypes,
16462 which can conflict with char $ac_func (); below.
16463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16464 <limits.h> exists even on freestanding compilers. */
16467 # include <limits.h>
16469 # include <assert.h>
16474 /* Override any GCC internal prototype to avoid an error.
16475 Use char because int might match the return type of a GCC
16476 builtin and then its argument prototype would still apply. */
16481 /* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
16484 #if defined __stub_$ac_func || defined __stub___$ac_func
16491 return $ac_func ();
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (ac_try="$ac_link"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_link") 2>conftest.er1
16505 grep -v '^ *+' conftest.er1 >conftest.err
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && {
16510 test -z "$ac_c_werror_flag" ||
16511 test ! -s conftest.err
16512 } && test -s conftest$ac_exeext &&
16513 $as_test_x conftest$ac_exeext; then
16514 eval "$as_ac_var=yes"
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 eval "$as_ac_var=no"
16522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16523 conftest$ac_exeext conftest.$ac_ext
16525 ac_res=`eval echo '${'$as_ac_var'}'`
16526 { echo "$as_me:$LINENO: result: $ac_res" >&5
16527 echo "${ECHO_T}$ac_res" >&6; }
16528 if test `eval echo '${'$as_ac_var'}'` = yes; then
16529 cat >>confdefs.h <<_ACEOF
16530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16533 for ac_func in freeifaddrs
16535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 cat >conftest.$ac_ext <<_ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16549 #define $ac_func innocuous_$ac_func
16551 /* System header to define __stub macros and hopefully few prototypes,
16552 which can conflict with char $ac_func (); below.
16553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16554 <limits.h> exists even on freestanding compilers. */
16557 # include <limits.h>
16559 # include <assert.h>
16564 /* Override any GCC internal prototype to avoid an error.
16565 Use char because int might match the return type of a GCC
16566 builtin and then its argument prototype would still apply. */
16571 /* The GNU C library defines this for functions which it implements
16572 to always fail with ENOSYS. Some functions are actually named
16573 something starting with __ and the normal name is an alias. */
16574 #if defined __stub_$ac_func || defined __stub___$ac_func
16581 return $ac_func ();
16586 rm -f conftest.$ac_objext conftest$ac_exeext
16587 if { (ac_try="$ac_link"
16588 case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_link") 2>conftest.er1
16595 grep -v '^ *+' conftest.er1 >conftest.err
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } && {
16600 test -z "$ac_c_werror_flag" ||
16601 test ! -s conftest.err
16602 } && test -s conftest$ac_exeext &&
16603 $as_test_x conftest$ac_exeext; then
16604 eval "$as_ac_var=yes"
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16609 eval "$as_ac_var=no"
16612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16613 conftest$ac_exeext conftest.$ac_ext
16615 ac_res=`eval echo '${'$as_ac_var'}'`
16616 { echo "$as_me:$LINENO: result: $ac_res" >&5
16617 echo "${ECHO_T}$ac_res" >&6; }
16618 if test `eval echo '${'$as_ac_var'}'` = yes; then
16619 cat >>confdefs.h <<_ACEOF
16620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16630 if test -z "$BROKEN_GETCWD"; then
16632 for ac_func in getcwd
16634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16648 #define $ac_func innocuous_$ac_func
16650 /* System header to define __stub macros and hopefully few prototypes,
16651 which can conflict with char $ac_func (); below.
16652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16653 <limits.h> exists even on freestanding compilers. */
16656 # include <limits.h>
16658 # include <assert.h>
16663 /* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply. */
16670 /* The GNU C library defines this for functions which it implements
16671 to always fail with ENOSYS. Some functions are actually named
16672 something starting with __ and the normal name is an alias. */
16673 #if defined __stub_$ac_func || defined __stub___$ac_func
16680 return $ac_func ();
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (ac_try="$ac_link"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_link") 2>conftest.er1
16694 grep -v '^ *+' conftest.er1 >conftest.err
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } && {
16699 test -z "$ac_c_werror_flag" ||
16700 test ! -s conftest.err
16701 } && test -s conftest$ac_exeext &&
16702 $as_test_x conftest$ac_exeext; then
16703 eval "$as_ac_var=yes"
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 eval "$as_ac_var=no"
16711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16712 conftest$ac_exeext conftest.$ac_ext
16714 ac_res=`eval echo '${'$as_ac_var'}'`
16715 { echo "$as_me:$LINENO: result: $ac_res" >&5
16716 echo "${ECHO_T}$ac_res" >&6; }
16717 if test `eval echo '${'$as_ac_var'}'` = yes; then
16718 cat >>confdefs.h <<_ACEOF
16719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16723 case " $LIBOBJS " in
16724 *" $ac_func.$ac_objext "* ) ;;
16725 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16735 for ac_func in glob
16737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 cat >conftest.$ac_ext <<_ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16751 #define $ac_func innocuous_$ac_func
16753 /* System header to define __stub macros and hopefully few prototypes,
16754 which can conflict with char $ac_func (); below.
16755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16756 <limits.h> exists even on freestanding compilers. */
16759 # include <limits.h>
16761 # include <assert.h>
16766 /* Override any GCC internal prototype to avoid an error.
16767 Use char because int might match the return type of a GCC
16768 builtin and then its argument prototype would still apply. */
16773 /* The GNU C library defines this for functions which it implements
16774 to always fail with ENOSYS. Some functions are actually named
16775 something starting with __ and the normal name is an alias. */
16776 #if defined __stub_$ac_func || defined __stub___$ac_func
16783 return $ac_func ();
16788 rm -f conftest.$ac_objext conftest$ac_exeext
16789 if { (ac_try="$ac_link"
16790 case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_link") 2>conftest.er1
16797 grep -v '^ *+' conftest.er1 >conftest.err
16799 cat conftest.err >&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } && {
16802 test -z "$ac_c_werror_flag" ||
16803 test ! -s conftest.err
16804 } && test -s conftest$ac_exeext &&
16805 $as_test_x conftest$ac_exeext; then
16806 eval "$as_ac_var=yes"
16808 echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 eval "$as_ac_var=no"
16814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16815 conftest$ac_exeext conftest.$ac_ext
16817 ac_res=`eval echo '${'$as_ac_var'}'`
16818 { echo "$as_me:$LINENO: result: $ac_res" >&5
16819 echo "${ECHO_T}$ac_res" >&6; }
16820 if test `eval echo '${'$as_ac_var'}'` = yes; then
16821 cat >>confdefs.h <<_ACEOF
16822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16824 { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16825 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16826 cat >conftest.$ac_ext <<_ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h. */
16836 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16841 rm -f conftest.$ac_objext
16842 if { (ac_try="$ac_compile"
16843 case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_compile") 2>conftest.er1
16850 grep -v '^ *+' conftest.er1 >conftest.err
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } && {
16855 test -z "$ac_c_werror_flag" ||
16856 test ! -s conftest.err
16857 } && test -s conftest.$ac_objext; then
16858 cat >>confdefs.h <<\_ACEOF
16859 #define HAVE_EXTENDED_GLOB 1
16862 { echo "$as_me:$LINENO: result: yes" >&5
16863 echo "${ECHO_T}yes" >&6; }
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16868 case " $LIBOBJS " in
16869 *" glob.$ac_objext "* ) ;;
16870 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16874 { echo "$as_me:$LINENO: result: no" >&5
16875 echo "${ECHO_T}no" >&6; }
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880 case " $LIBOBJS " in
16881 *" glob.$ac_objext "* ) ;;
16882 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16891 for ac_func in lockf flock
16893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 cat >conftest.$ac_ext <<_ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16907 #define $ac_func innocuous_$ac_func
16909 /* System header to define __stub macros and hopefully few prototypes,
16910 which can conflict with char $ac_func (); below.
16911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16912 <limits.h> exists even on freestanding compilers. */
16915 # include <limits.h>
16917 # include <assert.h>
16922 /* Override any GCC internal prototype to avoid an error.
16923 Use char because int might match the return type of a GCC
16924 builtin and then its argument prototype would still apply. */
16929 /* The GNU C library defines this for functions which it implements
16930 to always fail with ENOSYS. Some functions are actually named
16931 something starting with __ and the normal name is an alias. */
16932 #if defined __stub_$ac_func || defined __stub___$ac_func
16939 return $ac_func ();
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (ac_try="$ac_link"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_link") 2>conftest.er1
16953 grep -v '^ *+' conftest.er1 >conftest.err
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } && {
16958 test -z "$ac_c_werror_flag" ||
16959 test ! -s conftest.err
16960 } && test -s conftest$ac_exeext &&
16961 $as_test_x conftest$ac_exeext; then
16962 eval "$as_ac_var=yes"
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 eval "$as_ac_var=no"
16970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16971 conftest$ac_exeext conftest.$ac_ext
16973 ac_res=`eval echo '${'$as_ac_var'}'`
16974 { echo "$as_me:$LINENO: result: $ac_res" >&5
16975 echo "${ECHO_T}$ac_res" >&6; }
16976 if test `eval echo '${'$as_ac_var'}'` = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16986 for ac_func in waitpid wait3
16988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 cat >conftest.$ac_ext <<_ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17002 #define $ac_func innocuous_$ac_func
17004 /* System header to define __stub macros and hopefully few prototypes,
17005 which can conflict with char $ac_func (); below.
17006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17007 <limits.h> exists even on freestanding compilers. */
17010 # include <limits.h>
17012 # include <assert.h>
17017 /* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
17024 /* The GNU C library defines this for functions which it implements
17025 to always fail with ENOSYS. Some functions are actually named
17026 something starting with __ and the normal name is an alias. */
17027 #if defined __stub_$ac_func || defined __stub___$ac_func
17034 return $ac_func ();
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (ac_try="$ac_link"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_link") 2>conftest.er1
17048 grep -v '^ *+' conftest.er1 >conftest.err
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } && {
17053 test -z "$ac_c_werror_flag" ||
17054 test ! -s conftest.err
17055 } && test -s conftest$ac_exeext &&
17056 $as_test_x conftest$ac_exeext; then
17057 eval "$as_ac_var=yes"
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17062 eval "$as_ac_var=no"
17065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17066 conftest$ac_exeext conftest.$ac_ext
17068 ac_res=`eval echo '${'$as_ac_var'}'`
17069 { echo "$as_me:$LINENO: result: $ac_res" >&5
17070 echo "${ECHO_T}$ac_res" >&6; }
17071 if test `eval echo '${'$as_ac_var'}'` = yes; then
17072 cat >>confdefs.h <<_ACEOF
17073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17081 for ac_func in innetgr _innetgr
17083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 cat >conftest.$ac_ext <<_ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17097 #define $ac_func innocuous_$ac_func
17099 /* System header to define __stub macros and hopefully few prototypes,
17100 which can conflict with char $ac_func (); below.
17101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17102 <limits.h> exists even on freestanding compilers. */
17105 # include <limits.h>
17107 # include <assert.h>
17112 /* Override any GCC internal prototype to avoid an error.
17113 Use char because int might match the return type of a GCC
17114 builtin and then its argument prototype would still apply. */
17119 /* The GNU C library defines this for functions which it implements
17120 to always fail with ENOSYS. Some functions are actually named
17121 something starting with __ and the normal name is an alias. */
17122 #if defined __stub_$ac_func || defined __stub___$ac_func
17129 return $ac_func ();
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (ac_try="$ac_link"
17136 case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_link") 2>conftest.er1
17143 grep -v '^ *+' conftest.er1 >conftest.err
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } && {
17148 test -z "$ac_c_werror_flag" ||
17149 test ! -s conftest.err
17150 } && test -s conftest$ac_exeext &&
17151 $as_test_x conftest$ac_exeext; then
17152 eval "$as_ac_var=yes"
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17157 eval "$as_ac_var=no"
17160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17161 conftest$ac_exeext conftest.$ac_ext
17163 ac_res=`eval echo '${'$as_ac_var'}'`
17164 { echo "$as_me:$LINENO: result: $ac_res" >&5
17165 echo "${ECHO_T}$ac_res" >&6; }
17166 if test `eval echo '${'$as_ac_var'}'` = yes; then
17167 cat >>confdefs.h <<_ACEOF
17168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17171 for ac_func in getdomainname
17173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 cat >conftest.$ac_ext <<_ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17187 #define $ac_func innocuous_$ac_func
17189 /* System header to define __stub macros and hopefully few prototypes,
17190 which can conflict with char $ac_func (); below.
17191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17192 <limits.h> exists even on freestanding compilers. */
17195 # include <limits.h>
17197 # include <assert.h>
17202 /* Override any GCC internal prototype to avoid an error.
17203 Use char because int might match the return type of a GCC
17204 builtin and then its argument prototype would still apply. */
17209 /* The GNU C library defines this for functions which it implements
17210 to always fail with ENOSYS. Some functions are actually named
17211 something starting with __ and the normal name is an alias. */
17212 #if defined __stub_$ac_func || defined __stub___$ac_func
17219 return $ac_func ();
17224 rm -f conftest.$ac_objext conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>conftest.er1
17233 grep -v '^ *+' conftest.er1 >conftest.err
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } && {
17238 test -z "$ac_c_werror_flag" ||
17239 test ! -s conftest.err
17240 } && test -s conftest$ac_exeext &&
17241 $as_test_x conftest$ac_exeext; then
17242 eval "$as_ac_var=yes"
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 eval "$as_ac_var=no"
17250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17251 conftest$ac_exeext conftest.$ac_ext
17253 ac_res=`eval echo '${'$as_ac_var'}'`
17254 { echo "$as_me:$LINENO: result: $ac_res" >&5
17255 echo "${ECHO_T}$ac_res" >&6; }
17256 if test `eval echo '${'$as_ac_var'}'` = yes; then
17257 cat >>confdefs.h <<_ACEOF
17258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17268 for ac_func in utimes
17270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17284 #define $ac_func innocuous_$ac_func
17286 /* System header to define __stub macros and hopefully few prototypes,
17287 which can conflict with char $ac_func (); below.
17288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17289 <limits.h> exists even on freestanding compilers. */
17292 # include <limits.h>
17294 # include <assert.h>
17299 /* Override any GCC internal prototype to avoid an error.
17300 Use char because int might match the return type of a GCC
17301 builtin and then its argument prototype would still apply. */
17306 /* The GNU C library defines this for functions which it implements
17307 to always fail with ENOSYS. Some functions are actually named
17308 something starting with __ and the normal name is an alias. */
17309 #if defined __stub_$ac_func || defined __stub___$ac_func
17316 return $ac_func ();
17321 rm -f conftest.$ac_objext conftest$ac_exeext
17322 if { (ac_try="$ac_link"
17323 case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_link") 2>conftest.er1
17330 grep -v '^ *+' conftest.er1 >conftest.err
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } && {
17335 test -z "$ac_c_werror_flag" ||
17336 test ! -s conftest.err
17337 } && test -s conftest$ac_exeext &&
17338 $as_test_x conftest$ac_exeext; then
17339 eval "$as_ac_var=yes"
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17344 eval "$as_ac_var=no"
17347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17348 conftest$ac_exeext conftest.$ac_ext
17350 ac_res=`eval echo '${'$as_ac_var'}'`
17351 { echo "$as_me:$LINENO: result: $ac_res" >&5
17352 echo "${ECHO_T}$ac_res" >&6; }
17353 if test `eval echo '${'$as_ac_var'}'` = yes; then
17354 cat >>confdefs.h <<_ACEOF
17355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17359 for ac_func in futimes futimesat
17361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 cat >conftest.$ac_ext <<_ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17375 #define $ac_func innocuous_$ac_func
17377 /* System header to define __stub macros and hopefully few prototypes,
17378 which can conflict with char $ac_func (); below.
17379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17380 <limits.h> exists even on freestanding compilers. */
17383 # include <limits.h>
17385 # include <assert.h>
17390 /* Override any GCC internal prototype to avoid an error.
17391 Use char because int might match the return type of a GCC
17392 builtin and then its argument prototype would still apply. */
17397 /* The GNU C library defines this for functions which it implements
17398 to always fail with ENOSYS. Some functions are actually named
17399 something starting with __ and the normal name is an alias. */
17400 #if defined __stub_$ac_func || defined __stub___$ac_func
17407 return $ac_func ();
17412 rm -f conftest.$ac_objext conftest$ac_exeext
17413 if { (ac_try="$ac_link"
17414 case "(($ac_try" in
17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416 *) ac_try_echo=$ac_try;;
17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419 (eval "$ac_link") 2>conftest.er1
17421 grep -v '^ *+' conftest.er1 >conftest.err
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && {
17426 test -z "$ac_c_werror_flag" ||
17427 test ! -s conftest.err
17428 } && test -s conftest$ac_exeext &&
17429 $as_test_x conftest$ac_exeext; then
17430 eval "$as_ac_var=yes"
17432 echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.$ac_ext >&5
17435 eval "$as_ac_var=no"
17438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17439 conftest$ac_exeext conftest.$ac_ext
17441 ac_res=`eval echo '${'$as_ac_var'}'`
17442 { echo "$as_me:$LINENO: result: $ac_res" >&5
17443 echo "${ECHO_T}$ac_res" >&6; }
17444 if test `eval echo '${'$as_ac_var'}'` = yes; then
17445 cat >>confdefs.h <<_ACEOF
17446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17454 for ac_func in futime
17456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 cat >conftest.$ac_ext <<_ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17470 #define $ac_func innocuous_$ac_func
17472 /* System header to define __stub macros and hopefully few prototypes,
17473 which can conflict with char $ac_func (); below.
17474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17475 <limits.h> exists even on freestanding compilers. */
17478 # include <limits.h>
17480 # include <assert.h>
17485 /* Override any GCC internal prototype to avoid an error.
17486 Use char because int might match the return type of a GCC
17487 builtin and then its argument prototype would still apply. */
17492 /* The GNU C library defines this for functions which it implements
17493 to always fail with ENOSYS. Some functions are actually named
17494 something starting with __ and the normal name is an alias. */
17495 #if defined __stub_$ac_func || defined __stub___$ac_func
17502 return $ac_func ();
17507 rm -f conftest.$ac_objext conftest$ac_exeext
17508 if { (ac_try="$ac_link"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_link") 2>conftest.er1
17516 grep -v '^ *+' conftest.er1 >conftest.err
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } && {
17521 test -z "$ac_c_werror_flag" ||
17522 test ! -s conftest.err
17523 } && test -s conftest$ac_exeext &&
17524 $as_test_x conftest$ac_exeext; then
17525 eval "$as_ac_var=yes"
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 eval "$as_ac_var=no"
17533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17534 conftest$ac_exeext conftest.$ac_ext
17536 ac_res=`eval echo '${'$as_ac_var'}'`
17537 { echo "$as_me:$LINENO: result: $ac_res" >&5
17538 echo "${ECHO_T}$ac_res" >&6; }
17539 if test `eval echo '${'$as_ac_var'}'` = yes; then
17540 cat >>confdefs.h <<_ACEOF
17541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17546 case " $LIBOBJS " in
17547 *" utimes.$ac_objext "* ) ;;
17548 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17555 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17556 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17557 if test "${sudo_cv_func_fnmatch+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 rm -f conftestdata; > conftestdata
17561 if test "$cross_compiling" = yes; then
17562 sudo_cv_func_fnmatch=no
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <fnmatch.h>
17571 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17573 rm -f conftest$ac_exeext
17574 if { (ac_try="$ac_link"
17575 case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_link") 2>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 sudo_cv_func_fnmatch=yes
17595 echo "$as_me: program exited with status $ac_status" >&5
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17599 ( exit $ac_status )
17600 sudo_cv_func_fnmatch=no
17602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17606 rm -f core core.* *.core
17609 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17610 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17611 if test $sudo_cv_func_fnmatch = yes; then
17612 cat >>confdefs.h <<\_ACEOF
17613 #define HAVE_FNMATCH 1
17617 case " $LIBOBJS " in
17618 *" fnmatch.$ac_objext "* ) ;;
17619 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17625 { echo "$as_me:$LINENO: checking for isblank" >&5
17626 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17627 if test "${sudo_cv_func_isblank+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 cat >conftest.$ac_ext <<_ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17640 return (isblank('a'));
17645 rm -f conftest.$ac_objext 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>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && {
17659 test -z "$ac_c_werror_flag" ||
17660 test ! -s conftest.err
17661 } && test -s conftest$ac_exeext &&
17662 $as_test_x conftest$ac_exeext; then
17663 sudo_cv_func_isblank=yes
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 sudo_cv_func_isblank=no
17671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17672 conftest$ac_exeext conftest.$ac_ext
17674 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17675 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17677 if test "$sudo_cv_func_isblank" = "yes"; then
17679 cat >>confdefs.h <<\_ACEOF
17680 #define HAVE_ISBLANK 1
17684 case " $LIBOBJS " in
17685 *" isblank.$ac_objext "* ) ;;
17686 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17698 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17714 #define $ac_func innocuous_$ac_func
17716 /* System header to define __stub macros and hopefully few prototypes,
17717 which can conflict with char $ac_func (); below.
17718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17719 <limits.h> exists even on freestanding compilers. */
17722 # include <limits.h>
17724 # include <assert.h>
17729 /* Override any GCC internal prototype to avoid an error.
17730 Use char because int might match the return type of a GCC
17731 builtin and then its argument prototype would still apply. */
17736 /* The GNU C library defines this for functions which it implements
17737 to always fail with ENOSYS. Some functions are actually named
17738 something starting with __ and the normal name is an alias. */
17739 #if defined __stub_$ac_func || defined __stub___$ac_func
17746 return $ac_func ();
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (ac_try="$ac_link"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_link") 2>conftest.er1
17760 grep -v '^ *+' conftest.er1 >conftest.err
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && {
17765 test -z "$ac_c_werror_flag" ||
17766 test ! -s conftest.err
17767 } && test -s conftest$ac_exeext &&
17768 $as_test_x conftest$ac_exeext; then
17769 eval "$as_ac_var=yes"
17771 echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17774 eval "$as_ac_var=no"
17777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17778 conftest$ac_exeext conftest.$ac_ext
17780 ac_res=`eval echo '${'$as_ac_var'}'`
17781 { echo "$as_me:$LINENO: result: $ac_res" >&5
17782 echo "${ECHO_T}$ac_res" >&6; }
17783 if test `eval echo '${'$as_ac_var'}'` = yes; then
17784 cat >>confdefs.h <<_ACEOF
17785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17789 case " $LIBOBJS " in
17790 *" $ac_func.$ac_objext "* ) ;;
17791 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17800 for ac_func in closefrom
17802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17806 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 cat >conftest.$ac_ext <<_ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17816 #define $ac_func innocuous_$ac_func
17818 /* System header to define __stub macros and hopefully few prototypes,
17819 which can conflict with char $ac_func (); below.
17820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17821 <limits.h> exists even on freestanding compilers. */
17824 # include <limits.h>
17826 # include <assert.h>
17831 /* Override any GCC internal prototype to avoid an error.
17832 Use char because int might match the return type of a GCC
17833 builtin and then its argument prototype would still apply. */
17838 /* The GNU C library defines this for functions which it implements
17839 to always fail with ENOSYS. Some functions are actually named
17840 something starting with __ and the normal name is an alias. */
17841 #if defined __stub_$ac_func || defined __stub___$ac_func
17848 return $ac_func ();
17853 rm -f conftest.$ac_objext conftest$ac_exeext
17854 if { (ac_try="$ac_link"
17855 case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860 (eval "$ac_link") 2>conftest.er1
17862 grep -v '^ *+' conftest.er1 >conftest.err
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } && {
17867 test -z "$ac_c_werror_flag" ||
17868 test ! -s conftest.err
17869 } && test -s conftest$ac_exeext &&
17870 $as_test_x conftest$ac_exeext; then
17871 eval "$as_ac_var=yes"
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 eval "$as_ac_var=no"
17879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17880 conftest$ac_exeext conftest.$ac_ext
17882 ac_res=`eval echo '${'$as_ac_var'}'`
17883 { echo "$as_me:$LINENO: result: $ac_res" >&5
17884 echo "${ECHO_T}$ac_res" >&6; }
17885 if test `eval echo '${'$as_ac_var'}'` = yes; then
17886 cat >>confdefs.h <<_ACEOF
17887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17891 case " $LIBOBJS " in
17892 *" closefrom.$ac_objext "* ) ;;
17893 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17897 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17898 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17899 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 cat >conftest.$ac_ext <<_ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17908 #include <limits.h>
17922 rm -f conftest.$ac_objext
17923 if { (ac_try="$ac_compile"
17924 case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_compile") 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } && {
17936 test -z "$ac_c_werror_flag" ||
17937 test ! -s conftest.err
17938 } && test -s conftest.$ac_objext; then
17939 ac_cv_have_decl_F_CLOSEM=yes
17941 echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17944 ac_cv_have_decl_F_CLOSEM=no
17947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17950 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17951 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17952 cat >>confdefs.h <<\_ACEOF
17953 #define HAVE_FCNTL_CLOSEM 1
17963 for ac_func in mkstemp
17965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 cat >conftest.$ac_ext <<_ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17979 #define $ac_func innocuous_$ac_func
17981 /* System header to define __stub macros and hopefully few prototypes,
17982 which can conflict with char $ac_func (); below.
17983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984 <limits.h> exists even on freestanding compilers. */
17987 # include <limits.h>
17989 # include <assert.h>
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
18001 /* The GNU C library defines this for functions which it implements
18002 to always fail with ENOSYS. Some functions are actually named
18003 something starting with __ and the normal name is an alias. */
18004 #if defined __stub_$ac_func || defined __stub___$ac_func
18011 return $ac_func ();
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (ac_try="$ac_link"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18025 grep -v '^ *+' conftest.er1 >conftest.err
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest$ac_exeext &&
18033 $as_test_x conftest$ac_exeext; then
18034 eval "$as_ac_var=yes"
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 eval "$as_ac_var=no"
18042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18043 conftest$ac_exeext conftest.$ac_ext
18045 ac_res=`eval echo '${'$as_ac_var'}'`
18046 { echo "$as_me:$LINENO: result: $ac_res" >&5
18047 echo "${ECHO_T}$ac_res" >&6; }
18048 if test `eval echo '${'$as_ac_var'}'` = yes; then
18049 cat >>confdefs.h <<_ACEOF
18050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18054 SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
18057 for ac_func in random lrand48
18059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18073 #define $ac_func innocuous_$ac_func
18075 /* System header to define __stub macros and hopefully few prototypes,
18076 which can conflict with char $ac_func (); below.
18077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18078 <limits.h> exists even on freestanding compilers. */
18081 # include <limits.h>
18083 # include <assert.h>
18088 /* Override any GCC internal prototype to avoid an error.
18089 Use char because int might match the return type of a GCC
18090 builtin and then its argument prototype would still apply. */
18095 /* The GNU C library defines this for functions which it implements
18096 to always fail with ENOSYS. Some functions are actually named
18097 something starting with __ and the normal name is an alias. */
18098 #if defined __stub_$ac_func || defined __stub___$ac_func
18105 return $ac_func ();
18110 rm -f conftest.$ac_objext conftest$ac_exeext
18111 if { (ac_try="$ac_link"
18112 case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_link") 2>conftest.er1
18119 grep -v '^ *+' conftest.er1 >conftest.err
18121 cat conftest.err >&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } && {
18124 test -z "$ac_c_werror_flag" ||
18125 test ! -s conftest.err
18126 } && test -s conftest$ac_exeext &&
18127 $as_test_x conftest$ac_exeext; then
18128 eval "$as_ac_var=yes"
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18133 eval "$as_ac_var=no"
18136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18137 conftest$ac_exeext conftest.$ac_ext
18139 ac_res=`eval echo '${'$as_ac_var'}'`
18140 { echo "$as_me:$LINENO: result: $ac_res" >&5
18141 echo "${ECHO_T}$ac_res" >&6; }
18142 if test `eval echo '${'$as_ac_var'}'` = yes; then
18143 cat >>confdefs.h <<_ACEOF
18144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18158 for ac_func in snprintf vsnprintf asprintf vasprintf
18160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 cat >conftest.$ac_ext <<_ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18174 #define $ac_func innocuous_$ac_func
18176 /* System header to define __stub macros and hopefully few prototypes,
18177 which can conflict with char $ac_func (); below.
18178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18179 <limits.h> exists even on freestanding compilers. */
18182 # include <limits.h>
18184 # include <assert.h>
18189 /* Override any GCC internal prototype to avoid an error.
18190 Use char because int might match the return type of a GCC
18191 builtin and then its argument prototype would still apply. */
18196 /* The GNU C library defines this for functions which it implements
18197 to always fail with ENOSYS. Some functions are actually named
18198 something starting with __ and the normal name is an alias. */
18199 #if defined __stub_$ac_func || defined __stub___$ac_func
18206 return $ac_func ();
18211 rm -f conftest.$ac_objext conftest$ac_exeext
18212 if { (ac_try="$ac_link"
18213 case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_link") 2>conftest.er1
18220 grep -v '^ *+' conftest.er1 >conftest.err
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } && {
18225 test -z "$ac_c_werror_flag" ||
18226 test ! -s conftest.err
18227 } && test -s conftest$ac_exeext &&
18228 $as_test_x conftest$ac_exeext; then
18229 eval "$as_ac_var=yes"
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18234 eval "$as_ac_var=no"
18237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18238 conftest$ac_exeext conftest.$ac_ext
18240 ac_res=`eval echo '${'$as_ac_var'}'`
18241 { echo "$as_me:$LINENO: result: $ac_res" >&5
18242 echo "${ECHO_T}$ac_res" >&6; }
18243 if test `eval echo '${'$as_ac_var'}'` = yes; then
18244 cat >>confdefs.h <<_ACEOF
18245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18253 if test X"$ac_cv_type_struct_timespec" != X"no"; then
18254 { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
18255 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
18256 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18259 cat >conftest.$ac_ext <<_ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 $ac_includes_default
18269 static struct stat ac_aggr;
18270 if (ac_aggr.st_mtim)
18276 rm -f conftest.$ac_objext
18277 if { (ac_try="$ac_compile"
18278 case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_compile") 2>conftest.er1
18285 grep -v '^ *+' conftest.er1 >conftest.err
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } && {
18290 test -z "$ac_c_werror_flag" ||
18291 test ! -s conftest.err
18292 } && test -s conftest.$ac_objext; then
18293 ac_cv_member_struct_stat_st_mtim=yes
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18298 cat >conftest.$ac_ext <<_ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18304 $ac_includes_default
18308 static struct stat ac_aggr;
18309 if (sizeof ac_aggr.st_mtim)
18315 rm -f conftest.$ac_objext
18316 if { (ac_try="$ac_compile"
18317 case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_compile") 2>conftest.er1
18324 grep -v '^ *+' conftest.er1 >conftest.err
18326 cat conftest.err >&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } && {
18329 test -z "$ac_c_werror_flag" ||
18330 test ! -s conftest.err
18331 } && test -s conftest.$ac_objext; then
18332 ac_cv_member_struct_stat_st_mtim=yes
18334 echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18337 ac_cv_member_struct_stat_st_mtim=no
18340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
18346 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
18347 if test $ac_cv_member_struct_stat_st_mtim = yes; then
18348 cat >>confdefs.h <<\_ACEOF
18349 #define HAVE_ST_MTIM 1
18352 { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
18353 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
18354 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 cat >conftest.$ac_ext <<_ACEOF
18360 cat confdefs.h >>conftest.$ac_ext
18361 cat >>conftest.$ac_ext <<_ACEOF
18362 /* end confdefs.h. */
18363 $ac_includes_default
18367 static struct stat ac_aggr;
18368 if (ac_aggr.st_mtim.st__tim)
18374 rm -f conftest.$ac_objext
18375 if { (ac_try="$ac_compile"
18376 case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_compile") 2>conftest.er1
18383 grep -v '^ *+' conftest.er1 >conftest.err
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } && {
18388 test -z "$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18390 } && test -s conftest.$ac_objext; then
18391 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 cat >conftest.$ac_ext <<_ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h. */
18402 $ac_includes_default
18406 static struct stat ac_aggr;
18407 if (sizeof ac_aggr.st_mtim.st__tim)
18413 rm -f conftest.$ac_objext
18414 if { (ac_try="$ac_compile"
18415 case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_compile") 2>conftest.er1
18422 grep -v '^ *+' conftest.er1 >conftest.err
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } && {
18427 test -z "$ac_c_werror_flag" ||
18428 test ! -s conftest.err
18429 } && test -s conftest.$ac_objext; then
18430 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ac_cv_member_struct_stat_st_mtim_st__tim=no
18438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18443 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18444 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18445 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18446 cat >>confdefs.h <<\_ACEOF
18447 #define HAVE_ST__TIM 1
18453 { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18454 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18455 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 $ac_includes_default
18468 static struct stat ac_aggr;
18469 if (ac_aggr.st_mtimespec)
18475 rm -f conftest.$ac_objext
18476 if { (ac_try="$ac_compile"
18477 case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_compile") 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest.$ac_objext; then
18492 ac_cv_member_struct_stat_st_mtimespec=yes
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 cat >conftest.$ac_ext <<_ACEOF
18500 cat confdefs.h >>conftest.$ac_ext
18501 cat >>conftest.$ac_ext <<_ACEOF
18502 /* end confdefs.h. */
18503 $ac_includes_default
18507 static struct stat ac_aggr;
18508 if (sizeof ac_aggr.st_mtimespec)
18514 rm -f conftest.$ac_objext
18515 if { (ac_try="$ac_compile"
18516 case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_compile") 2>conftest.er1
18523 grep -v '^ *+' conftest.er1 >conftest.err
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } && {
18528 test -z "$ac_c_werror_flag" ||
18529 test ! -s conftest.err
18530 } && test -s conftest.$ac_objext; then
18531 ac_cv_member_struct_stat_st_mtimespec=yes
18533 echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18536 ac_cv_member_struct_stat_st_mtimespec=no
18539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18545 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18546 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18547 cat >>confdefs.h <<\_ACEOF
18548 #define HAVE_ST_MTIMESPEC 1
18555 { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18556 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18563 #include <sys/types.h>
18564 #include <sys/time.h>
18568 struct timespec ts1, ts2;
18569 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18570 #ifndef timespecsub
18571 #error missing timespecsub
18573 timespecsub(&ts1, &ts2);
18578 rm -f conftest.$ac_objext
18579 if { (ac_try="$ac_compile"
18580 case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_compile") 2>conftest.er1
18587 grep -v '^ *+' conftest.er1 >conftest.err
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } && {
18592 test -z "$ac_c_werror_flag" ||
18593 test ! -s conftest.err
18594 } && test -s conftest.$ac_objext; then
18595 cat >>confdefs.h <<\_ACEOF
18596 #define HAVE_TIMESPECSUB2 1
18599 { echo "$as_me:$LINENO: result: yes" >&5
18600 echo "${ECHO_T}yes" >&6; }
18602 echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18605 { echo "$as_me:$LINENO: result: no" >&5
18606 echo "${ECHO_T}no" >&6; }
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18611 cat >conftest.$ac_ext <<_ACEOF
18614 cat confdefs.h >>conftest.$ac_ext
18615 cat >>conftest.$ac_ext <<_ACEOF
18616 /* end confdefs.h. */
18617 #include <sys/types.h>
18618 #include <$ac_header_dirent>
18622 DIR *d; (void)dirfd(d);
18627 rm -f conftest.$ac_objext conftest$ac_exeext
18628 if { (ac_try="$ac_link"
18629 case "(($ac_try" in
18630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631 *) ac_try_echo=$ac_try;;
18633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634 (eval "$ac_link") 2>conftest.er1
18636 grep -v '^ *+' conftest.er1 >conftest.err
18638 cat conftest.err >&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); } && {
18641 test -z "$ac_c_werror_flag" ||
18642 test ! -s conftest.err
18643 } && test -s conftest$ac_exeext &&
18644 $as_test_x conftest$ac_exeext; then
18645 cat >>confdefs.h <<\_ACEOF
18646 #define HAVE_DIRFD 1
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 #include <sys/types.h>
18660 #include <$ac_header_dirent>
18664 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (ac_try="$ac_link"
18671 case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_link") 2>conftest.er1
18678 grep -v '^ *+' conftest.er1 >conftest.err
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } && {
18683 test -z "$ac_c_werror_flag" ||
18684 test ! -s conftest.err
18685 } && test -s conftest$ac_exeext &&
18686 $as_test_x conftest$ac_exeext; then
18687 cat >>confdefs.h <<\_ACEOF
18688 #define HAVE_DD_FD 1
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18699 conftest$ac_exeext conftest.$ac_ext
18702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18703 conftest$ac_exeext conftest.$ac_ext
18704 if test -n "$NEED_SNPRINTF"; then
18705 case " $LIBOBJS " in
18706 *" snprintf.$ac_objext "* ) ;;
18707 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18712 { echo "$as_me:$LINENO: checking for socket" >&5
18713 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18714 if test "${ac_cv_func_socket+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18717 cat >conftest.$ac_ext <<_ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18725 #define socket innocuous_socket
18727 /* System header to define __stub macros and hopefully few prototypes,
18728 which can conflict with char socket (); below.
18729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18730 <limits.h> exists even on freestanding compilers. */
18733 # include <limits.h>
18735 # include <assert.h>
18740 /* Override any GCC internal prototype to avoid an error.
18741 Use char because int might match the return type of a GCC
18742 builtin and then its argument prototype would still apply. */
18747 /* The GNU C library defines this for functions which it implements
18748 to always fail with ENOSYS. Some functions are actually named
18749 something starting with __ and the normal name is an alias. */
18750 #if defined __stub_socket || defined __stub___socket
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_link") 2>conftest.er1
18771 grep -v '^ *+' conftest.er1 >conftest.err
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } && {
18776 test -z "$ac_c_werror_flag" ||
18777 test ! -s conftest.err
18778 } && test -s conftest$ac_exeext &&
18779 $as_test_x conftest$ac_exeext; then
18780 ac_cv_func_socket=yes
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18785 ac_cv_func_socket=no
18788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18789 conftest$ac_exeext conftest.$ac_ext
18791 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18792 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18793 if test $ac_cv_func_socket = yes; then
18796 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18797 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18798 if test "${ac_cv_lib_socket_socket+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 ac_check_lib_save_LIBS=$LIBS
18802 LIBS="-lsocket $LIBS"
18803 cat >conftest.$ac_ext <<_ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18810 /* Override any GCC internal prototype to avoid an error.
18811 Use char because int might match the return type of a GCC
18812 builtin and then its argument prototype would still apply. */
18825 rm -f conftest.$ac_objext conftest$ac_exeext
18826 if { (ac_try="$ac_link"
18827 case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_link") 2>conftest.er1
18834 grep -v '^ *+' conftest.er1 >conftest.err
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } && {
18839 test -z "$ac_c_werror_flag" ||
18840 test ! -s conftest.err
18841 } && test -s conftest$ac_exeext &&
18842 $as_test_x conftest$ac_exeext; then
18843 ac_cv_lib_socket_socket=yes
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ac_cv_lib_socket_socket=no
18851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18852 conftest$ac_exeext conftest.$ac_ext
18853 LIBS=$ac_check_lib_save_LIBS
18855 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18856 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18857 if test $ac_cv_lib_socket_socket = yes; then
18858 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18860 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18861 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18862 if test "${ac_cv_lib_inet_socket+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18865 ac_check_lib_save_LIBS=$LIBS
18866 LIBS="-linet $LIBS"
18867 cat >conftest.$ac_ext <<_ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18874 /* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18898 grep -v '^ *+' conftest.er1 >conftest.err
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } && {
18903 test -z "$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 } && test -s conftest$ac_exeext &&
18906 $as_test_x conftest$ac_exeext; then
18907 ac_cv_lib_inet_socket=yes
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18912 ac_cv_lib_inet_socket=no
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916 conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18919 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18920 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18921 if test $ac_cv_lib_inet_socket = yes; then
18922 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18924 { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18925 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18926 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18927 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18928 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 ac_check_lib_save_LIBS=$LIBS
18932 LIBS="-lsocket -lnsl $LIBS"
18933 cat >conftest.$ac_ext <<_ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18940 /* Override any GCC internal prototype to avoid an error.
18941 Use char because int might match the return type of a GCC
18942 builtin and then its argument prototype would still apply. */
18955 rm -f conftest.$ac_objext conftest$ac_exeext
18956 if { (ac_try="$ac_link"
18957 case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_link") 2>conftest.er1
18964 grep -v '^ *+' conftest.er1 >conftest.err
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } && {
18969 test -z "$ac_c_werror_flag" ||
18970 test ! -s conftest.err
18971 } && test -s conftest$ac_exeext &&
18972 $as_test_x conftest$ac_exeext; then
18973 ac_cv_lib_socket_socket_lnsl=yes
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_cv_lib_socket_socket_lnsl=no
18981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18982 conftest$ac_exeext conftest.$ac_ext
18983 LIBS=$ac_check_lib_save_LIBS
18985 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18986 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18987 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18988 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18997 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18998 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18999 if test "${ac_cv_func_inet_addr+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 cat >conftest.$ac_ext <<_ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
19009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19010 #define inet_addr innocuous_inet_addr
19012 /* System header to define __stub macros and hopefully few prototypes,
19013 which can conflict with char inet_addr (); below.
19014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19015 <limits.h> exists even on freestanding compilers. */
19018 # include <limits.h>
19020 # include <assert.h>
19025 /* Override any GCC internal prototype to avoid an error.
19026 Use char because int might match the return type of a GCC
19027 builtin and then its argument prototype would still apply. */
19032 /* The GNU C library defines this for functions which it implements
19033 to always fail with ENOSYS. Some functions are actually named
19034 something starting with __ and the normal name is an alias. */
19035 #if defined __stub_inet_addr || defined __stub___inet_addr
19042 return inet_addr ();
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (ac_try="$ac_link"
19049 case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_link") 2>conftest.er1
19056 grep -v '^ *+' conftest.er1 >conftest.err
19058 cat conftest.err >&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } && {
19061 test -z "$ac_c_werror_flag" ||
19062 test ! -s conftest.err
19063 } && test -s conftest$ac_exeext &&
19064 $as_test_x conftest$ac_exeext; then
19065 ac_cv_func_inet_addr=yes
19067 echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19070 ac_cv_func_inet_addr=no
19073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19074 conftest$ac_exeext conftest.$ac_ext
19076 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
19077 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
19078 if test $ac_cv_func_inet_addr = yes; then
19081 { echo "$as_me:$LINENO: checking for __inet_addr" >&5
19082 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
19083 if test "${ac_cv_func___inet_addr+set}" = set; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19086 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19092 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
19093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19094 #define __inet_addr innocuous___inet_addr
19096 /* System header to define __stub macros and hopefully few prototypes,
19097 which can conflict with char __inet_addr (); below.
19098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19099 <limits.h> exists even on freestanding compilers. */
19102 # include <limits.h>
19104 # include <assert.h>
19109 /* Override any GCC internal prototype to avoid an error.
19110 Use char because int might match the return type of a GCC
19111 builtin and then its argument prototype would still apply. */
19115 char __inet_addr ();
19116 /* The GNU C library defines this for functions which it implements
19117 to always fail with ENOSYS. Some functions are actually named
19118 something starting with __ and the normal name is an alias. */
19119 #if defined __stub___inet_addr || defined __stub_____inet_addr
19126 return __inet_addr ();
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (ac_try="$ac_link"
19133 case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_link") 2>conftest.er1
19140 grep -v '^ *+' conftest.er1 >conftest.err
19142 cat conftest.err >&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } && {
19145 test -z "$ac_c_werror_flag" ||
19146 test ! -s conftest.err
19147 } && test -s conftest$ac_exeext &&
19148 $as_test_x conftest$ac_exeext; then
19149 ac_cv_func___inet_addr=yes
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_cv_func___inet_addr=no
19157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19158 conftest$ac_exeext conftest.$ac_ext
19160 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
19161 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
19162 if test $ac_cv_func___inet_addr = yes; then
19165 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
19166 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
19167 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19170 ac_check_lib_save_LIBS=$LIBS
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19179 /* Override any GCC internal prototype to avoid an error.
19180 Use char because int might match the return type of a GCC
19181 builtin and then its argument prototype would still apply. */
19189 return inet_addr ();
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (ac_try="$ac_link"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_link") 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest$ac_exeext &&
19211 $as_test_x conftest$ac_exeext; then
19212 ac_cv_lib_nsl_inet_addr=yes
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19217 ac_cv_lib_nsl_inet_addr=no
19220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19221 conftest$ac_exeext conftest.$ac_ext
19222 LIBS=$ac_check_lib_save_LIBS
19224 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
19225 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
19226 if test $ac_cv_lib_nsl_inet_addr = yes; then
19227 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19229 { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
19230 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
19231 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 ac_check_lib_save_LIBS=$LIBS
19235 LIBS="-linet $LIBS"
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19243 /* Override any GCC internal prototype to avoid an error.
19244 Use char because int might match the return type of a GCC
19245 builtin and then its argument prototype would still apply. */
19253 return inet_addr ();
19258 rm -f conftest.$ac_objext conftest$ac_exeext
19259 if { (ac_try="$ac_link"
19260 case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_link") 2>conftest.er1
19267 grep -v '^ *+' conftest.er1 >conftest.err
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } && {
19272 test -z "$ac_c_werror_flag" ||
19273 test ! -s conftest.err
19274 } && test -s conftest$ac_exeext &&
19275 $as_test_x conftest$ac_exeext; then
19276 ac_cv_lib_inet_inet_addr=yes
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 ac_cv_lib_inet_inet_addr=no
19284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19285 conftest$ac_exeext conftest.$ac_ext
19286 LIBS=$ac_check_lib_save_LIBS
19288 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
19289 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
19290 if test $ac_cv_lib_inet_inet_addr = yes; then
19291 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19293 { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
19294 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
19295 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
19296 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
19297 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 ac_check_lib_save_LIBS=$LIBS
19301 LIBS="-lsocket -lnsl $LIBS"
19302 cat >conftest.$ac_ext <<_ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19309 /* Override any GCC internal prototype to avoid an error.
19310 Use char because int might match the return type of a GCC
19311 builtin and then its argument prototype would still apply. */
19319 return inet_addr ();
19324 rm -f conftest.$ac_objext conftest$ac_exeext
19325 if { (ac_try="$ac_link"
19326 case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_link") 2>conftest.er1
19333 grep -v '^ *+' conftest.er1 >conftest.err
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } && {
19338 test -z "$ac_c_werror_flag" ||
19339 test ! -s conftest.err
19340 } && test -s conftest$ac_exeext &&
19341 $as_test_x conftest$ac_exeext; then
19342 ac_cv_lib_socket_inet_addr_lnsl=yes
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_cv_lib_socket_inet_addr_lnsl=no
19350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19351 conftest$ac_exeext conftest.$ac_ext
19352 LIBS=$ac_check_lib_save_LIBS
19354 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
19355 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
19356 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
19357 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
19368 { echo "$as_me:$LINENO: checking for syslog" >&5
19369 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
19370 if test "${ac_cv_func_syslog+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 cat >conftest.$ac_ext <<_ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19379 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19381 #define syslog innocuous_syslog
19383 /* System header to define __stub macros and hopefully few prototypes,
19384 which can conflict with char syslog (); below.
19385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19386 <limits.h> exists even on freestanding compilers. */
19389 # include <limits.h>
19391 # include <assert.h>
19396 /* Override any GCC internal prototype to avoid an error.
19397 Use char because int might match the return type of a GCC
19398 builtin and then its argument prototype would still apply. */
19403 /* The GNU C library defines this for functions which it implements
19404 to always fail with ENOSYS. Some functions are actually named
19405 something starting with __ and the normal name is an alias. */
19406 #if defined __stub_syslog || defined __stub___syslog
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (ac_try="$ac_link"
19420 case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_link") 2>conftest.er1
19427 grep -v '^ *+' conftest.er1 >conftest.err
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } && {
19432 test -z "$ac_c_werror_flag" ||
19433 test ! -s conftest.err
19434 } && test -s conftest$ac_exeext &&
19435 $as_test_x conftest$ac_exeext; then
19436 ac_cv_func_syslog=yes
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_func_syslog=no
19444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19445 conftest$ac_exeext conftest.$ac_ext
19447 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19448 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19449 if test $ac_cv_func_syslog = yes; then
19452 { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19453 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19454 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 ac_check_lib_save_LIBS=$LIBS
19458 LIBS="-lsocket $LIBS"
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19466 /* Override any GCC internal prototype to avoid an error.
19467 Use char because int might match the return type of a GCC
19468 builtin and then its argument prototype would still apply. */
19481 rm -f conftest.$ac_objext conftest$ac_exeext
19482 if { (ac_try="$ac_link"
19483 case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_link") 2>conftest.er1
19490 grep -v '^ *+' conftest.er1 >conftest.err
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } && {
19495 test -z "$ac_c_werror_flag" ||
19496 test ! -s conftest.err
19497 } && test -s conftest$ac_exeext &&
19498 $as_test_x conftest$ac_exeext; then
19499 ac_cv_lib_socket_syslog=yes
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19504 ac_cv_lib_socket_syslog=no
19507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19508 conftest$ac_exeext conftest.$ac_ext
19509 LIBS=$ac_check_lib_save_LIBS
19511 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19512 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19513 if test $ac_cv_lib_socket_syslog = yes; then
19514 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19516 { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19517 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19518 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 ac_check_lib_save_LIBS=$LIBS
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19530 /* Override any GCC internal prototype to avoid an error.
19531 Use char because int might match the return type of a GCC
19532 builtin and then its argument prototype would still apply. */
19545 rm -f conftest.$ac_objext conftest$ac_exeext
19546 if { (ac_try="$ac_link"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_link") 2>conftest.er1
19554 grep -v '^ *+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest$ac_exeext &&
19562 $as_test_x conftest$ac_exeext; then
19563 ac_cv_lib_nsl_syslog=yes
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19568 ac_cv_lib_nsl_syslog=no
19571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19572 conftest$ac_exeext conftest.$ac_ext
19573 LIBS=$ac_check_lib_save_LIBS
19575 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19576 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19577 if test $ac_cv_lib_nsl_syslog = yes; then
19578 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19580 { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19581 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19582 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 ac_check_lib_save_LIBS=$LIBS
19586 LIBS="-linet $LIBS"
19587 cat >conftest.$ac_ext <<_ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19594 /* Override any GCC internal prototype to avoid an error.
19595 Use char because int might match the return type of a GCC
19596 builtin and then its argument prototype would still apply. */
19609 rm -f conftest.$ac_objext conftest$ac_exeext
19610 if { (ac_try="$ac_link"
19611 case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_link") 2>conftest.er1
19618 grep -v '^ *+' conftest.er1 >conftest.err
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } && {
19623 test -z "$ac_c_werror_flag" ||
19624 test ! -s conftest.err
19625 } && test -s conftest$ac_exeext &&
19626 $as_test_x conftest$ac_exeext; then
19627 ac_cv_lib_inet_syslog=yes
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 ac_cv_lib_inet_syslog=no
19635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19636 conftest$ac_exeext conftest.$ac_ext
19637 LIBS=$ac_check_lib_save_LIBS
19639 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19640 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19641 if test $ac_cv_lib_inet_syslog = yes; then
19642 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19652 for ac_func in getprogname
19654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 cat >conftest.$ac_ext <<_ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19668 #define $ac_func innocuous_$ac_func
19670 /* System header to define __stub macros and hopefully few prototypes,
19671 which can conflict with char $ac_func (); below.
19672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19673 <limits.h> exists even on freestanding compilers. */
19676 # include <limits.h>
19678 # include <assert.h>
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19690 /* The GNU C library defines this for functions which it implements
19691 to always fail with ENOSYS. Some functions are actually named
19692 something starting with __ and the normal name is an alias. */
19693 #if defined __stub_$ac_func || defined __stub___$ac_func
19700 return $ac_func ();
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (ac_try="$ac_link"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_link") 2>conftest.er1
19714 grep -v '^ *+' conftest.er1 >conftest.err
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } && {
19719 test -z "$ac_c_werror_flag" ||
19720 test ! -s conftest.err
19721 } && test -s conftest$ac_exeext &&
19722 $as_test_x conftest$ac_exeext; then
19723 eval "$as_ac_var=yes"
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 eval "$as_ac_var=no"
19731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19732 conftest$ac_exeext conftest.$ac_ext
19734 ac_res=`eval echo '${'$as_ac_var'}'`
19735 { echo "$as_me:$LINENO: result: $ac_res" >&5
19736 echo "${ECHO_T}$ac_res" >&6; }
19737 if test `eval echo '${'$as_ac_var'}'` = yes; then
19738 cat >>confdefs.h <<_ACEOF
19739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19744 { echo "$as_me:$LINENO: checking for __progname" >&5
19745 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19746 if test "${sudo_cv___progname+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19750 cat >conftest.$ac_ext <<_ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19760 extern char *__progname; (void)puts(__progname);
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (ac_try="$ac_link"
19767 case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_link") 2>conftest.er1
19774 grep -v '^ *+' conftest.er1 >conftest.err
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest$ac_exeext &&
19782 $as_test_x conftest$ac_exeext; then
19783 sudo_cv___progname=yes
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 sudo_cv___progname=no
19791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19792 conftest$ac_exeext conftest.$ac_ext
19795 if test "$sudo_cv___progname" = "yes"; then
19796 cat >>confdefs.h <<\_ACEOF
19797 #define HAVE___PROGNAME 1
19801 case " $LIBOBJS " in
19802 *" getprogname.$ac_objext "* ) ;;
19803 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19808 { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19809 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19815 netsvc_conf='/etc/netsvc.conf'
19816 nsswitch_conf='/etc/nsswitch.conf'
19817 if test ${with_netsvc-"no"} != "no"; then
19818 cat >>confdefs.h <<EOF
19819 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
19822 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
19823 elif test ${with_nsswitch-"yes"} != "no"; then
19824 cat >>confdefs.h <<EOF
19825 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
19828 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
19832 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19833 for auth in $AUTH_EXCL_DEF; do
19835 AIX_AUTH) with_aixauth=maybe;;
19836 BSD_AUTH) with_bsdauth=maybe;;
19837 PAM) with_pam=maybe;;
19838 SIA) CHECKSIA=true;;
19843 if test ${with_pam-"no"} != "no"; then
19844 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19845 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19846 if test "${ac_cv_lib_dl_main+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 ac_check_lib_save_LIBS=$LIBS
19851 cat >conftest.$ac_ext <<_ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (ac_try="$ac_link"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_link") 2>conftest.er1
19876 grep -v '^ *+' conftest.er1 >conftest.err
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest$ac_exeext &&
19884 $as_test_x conftest$ac_exeext; then
19885 ac_cv_lib_dl_main=yes
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_lib_dl_main=no
19893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19894 conftest$ac_exeext conftest.$ac_ext
19895 LIBS=$ac_check_lib_save_LIBS
19897 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19898 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19899 if test $ac_cv_lib_dl_main = yes; then
19900 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19902 SUDO_LIBS="${SUDO_LIBS} -lpam"
19905 ac_cv_lib_dl=ac_cv_lib_dl_main
19909 for ac_header in security/pam_appl.h pam/pam_appl.h
19911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 ac_res=`eval echo '${'$as_ac_Header'}'`
19919 { echo "$as_me:$LINENO: result: $ac_res" >&5
19920 echo "${ECHO_T}$ac_res" >&6; }
19922 # Is the header compilable?
19923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 $ac_includes_default
19932 #include <$ac_header>
19934 rm -f conftest.$ac_objext
19935 if { (ac_try="$ac_compile"
19936 case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_compile") 2>conftest.er1
19943 grep -v '^ *+' conftest.er1 >conftest.err
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && {
19948 test -z "$ac_c_werror_flag" ||
19949 test ! -s conftest.err
19950 } && test -s conftest.$ac_objext; then
19951 ac_header_compiler=yes
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19956 ac_header_compiler=no
19959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19961 echo "${ECHO_T}$ac_header_compiler" >&6; }
19963 # Is the header present?
19964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19966 cat >conftest.$ac_ext <<_ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19972 #include <$ac_header>
19974 if { (ac_try="$ac_cpp conftest.$ac_ext"
19975 case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19982 grep -v '^ *+' conftest.er1 >conftest.err
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } >/dev/null && {
19987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19988 test ! -s conftest.err
19990 ac_header_preproc=yes
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_header_preproc=no
19998 rm -f conftest.err conftest.$ac_ext
19999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20000 echo "${ECHO_T}$ac_header_preproc" >&6; }
20002 # So? What about this header?
20003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20009 ac_header_preproc=yes
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20025 ## --------------------------------------- ##
20026 ## Report this to http://www.sudo.ws/bugs/ ##
20027 ## --------------------------------------- ##
20029 ) | sed "s/^/$as_me: WARNING: /" >&2
20032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20037 eval "$as_ac_Header=\$ac_header_preproc"
20039 ac_res=`eval echo '${'$as_ac_Header'}'`
20040 { echo "$as_me:$LINENO: result: $ac_res" >&5
20041 echo "${ECHO_T}$ac_res" >&6; }
20044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20045 cat >>confdefs.h <<_ACEOF
20046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20048 with_pam=yes; break
20053 if test "$with_pam" = "yes"; then
20054 cat >>confdefs.h <<\_ACEOF
20058 AUTH_OBJS="$AUTH_OBJS pam.o";
20060 { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
20061 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
20062 # Check whether --enable-pam_session was given.
20063 if test "${enable_pam_session+set}" = set; then
20064 enableval=$enable_pam_session; case "$enableval" in
20065 yes) { echo "$as_me:$LINENO: result: yes" >&5
20066 echo "${ECHO_T}yes" >&6; }
20068 no) { echo "$as_me:$LINENO: result: no" >&5
20069 echo "${ECHO_T}no" >&6; }
20071 cat >>confdefs.h <<\_ACEOF
20072 #define NO_PAM_SESSION
20076 *) { echo "$as_me:$LINENO: result: no" >&5
20077 echo "${ECHO_T}no" >&6; }
20078 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
20079 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
20083 { echo "$as_me:$LINENO: result: yes" >&5
20084 echo "${ECHO_T}yes" >&6; }
20088 *-*-linux*|*-*-solaris*)
20089 # dgettext() may be defined to dgettext_libintl in the
20090 # header file, so first check that it links w/ additional
20091 # libs, then try with -lintl
20092 cat >conftest.$ac_ext <<_ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 #include <libintl.h>
20102 (void)dgettext((char *)0, (char *)0);
20107 rm -f conftest.$ac_objext conftest$ac_exeext
20108 if { (ac_try="$ac_link"
20109 case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_link") 2>conftest.er1
20116 grep -v '^ *+' conftest.er1 >conftest.err
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } && {
20121 test -z "$ac_c_werror_flag" ||
20122 test ! -s conftest.err
20123 } && test -s conftest$ac_exeext &&
20124 $as_test_x conftest$ac_exeext; then
20125 cat >>confdefs.h <<\_ACEOF
20126 #define HAVE_DGETTEXT 1
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20134 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20135 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 ac_check_lib_save_LIBS=$LIBS
20139 LIBS="-lintl $LIBS"
20140 cat >conftest.$ac_ext <<_ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20147 /* Override any GCC internal prototype to avoid an error.
20148 Use char because int might match the return type of a GCC
20149 builtin and then its argument prototype would still apply. */
20157 return dgettext ();
20162 rm -f conftest.$ac_objext conftest$ac_exeext
20163 if { (ac_try="$ac_link"
20164 case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_link") 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest$ac_exeext &&
20179 $as_test_x conftest$ac_exeext; then
20180 ac_cv_lib_intl_dgettext=yes
20182 echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20185 ac_cv_lib_intl_dgettext=no
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189 conftest$ac_exeext conftest.$ac_ext
20190 LIBS=$ac_check_lib_save_LIBS
20192 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20193 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20194 if test $ac_cv_lib_intl_dgettext = yes; then
20195 LIBS="${LIBS} -lintl"
20196 cat >>confdefs.h <<\_ACEOF
20197 #define HAVE_DGETTEXT 1
20204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20205 conftest$ac_exeext conftest.$ac_ext
20211 if test ${with_aixauth-'no'} != "no"; then
20212 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
20213 { echo "$as_me:$LINENO: using AIX general authentication" >&5
20214 echo "$as_me: using AIX general authentication" >&6;}
20215 cat >>confdefs.h <<\_ACEOF
20216 #define HAVE_AIXAUTH 1
20219 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
20220 SUDO_LIBS="${SUDO_LIBS} -ls"
20225 if test ${with_bsdauth-'no'} != "no"; then
20226 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20227 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20228 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20229 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20232 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20233 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20235 # Is the header compilable?
20236 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
20237 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 $ac_includes_default
20245 #include <bsd_auth.h>
20247 rm -f conftest.$ac_objext
20248 if { (ac_try="$ac_compile"
20249 case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_compile") 2>conftest.er1
20256 grep -v '^ *+' conftest.er1 >conftest.err
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && {
20261 test -z "$ac_c_werror_flag" ||
20262 test ! -s conftest.err
20263 } && test -s conftest.$ac_objext; then
20264 ac_header_compiler=yes
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20269 ac_header_compiler=no
20272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20274 echo "${ECHO_T}$ac_header_compiler" >&6; }
20276 # Is the header present?
20277 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20278 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20279 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 #include <bsd_auth.h>
20287 if { (ac_try="$ac_cpp conftest.$ac_ext"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20295 grep -v '^ *+' conftest.er1 >conftest.err
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } >/dev/null && {
20300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20303 ac_header_preproc=yes
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20308 ac_header_preproc=no
20311 rm -f conftest.err conftest.$ac_ext
20312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20313 echo "${ECHO_T}$ac_header_preproc" >&6; }
20315 # So? What about this header?
20316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20318 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20319 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20321 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20322 ac_header_preproc=yes
20325 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20326 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20327 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
20328 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
20329 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20330 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20331 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
20332 echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20334 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20336 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20338 ## --------------------------------------- ##
20339 ## Report this to http://www.sudo.ws/bugs/ ##
20340 ## --------------------------------------- ##
20342 ) | sed "s/^/$as_me: WARNING: /" >&2
20345 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20346 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20347 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20350 ac_cv_header_bsd_auth_h=$ac_header_preproc
20352 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20353 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20356 if test $ac_cv_header_bsd_auth_h = yes; then
20357 cat >>confdefs.h <<\_ACEOF
20358 #define HAVE_BSD_AUTH_H 1
20361 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20362 BSDAUTH_USAGE='[-a auth_type] '
20363 AUTH_EXCL=BSD_AUTH; BAMAN=""
20365 { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20366 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20367 { (exit 1); exit 1; }; }
20373 if test ${CHECKSIA-'false'} = "true"; then
20375 for ac_func in sia_ses_init
20377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 cat >conftest.$ac_ext <<_ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20391 #define $ac_func innocuous_$ac_func
20393 /* System header to define __stub macros and hopefully few prototypes,
20394 which can conflict with char $ac_func (); below.
20395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20396 <limits.h> exists even on freestanding compilers. */
20399 # include <limits.h>
20401 # include <assert.h>
20406 /* Override any GCC internal prototype to avoid an error.
20407 Use char because int might match the return type of a GCC
20408 builtin and then its argument prototype would still apply. */
20413 /* The GNU C library defines this for functions which it implements
20414 to always fail with ENOSYS. Some functions are actually named
20415 something starting with __ and the normal name is an alias. */
20416 #if defined __stub_$ac_func || defined __stub___$ac_func
20423 return $ac_func ();
20428 rm -f conftest.$ac_objext conftest$ac_exeext
20429 if { (ac_try="$ac_link"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest$ac_exeext &&
20445 $as_test_x conftest$ac_exeext; then
20446 eval "$as_ac_var=yes"
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 eval "$as_ac_var=no"
20454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20455 conftest$ac_exeext conftest.$ac_ext
20457 ac_res=`eval echo '${'$as_ac_var'}'`
20458 { echo "$as_me:$LINENO: result: $ac_res" >&5
20459 echo "${ECHO_T}$ac_res" >&6; }
20460 if test `eval echo '${'$as_ac_var'}'` = yes; then
20461 cat >>confdefs.h <<_ACEOF
20462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20470 if test "$found" = "true"; then
20472 AUTH_OBJS="$AUTH_OBJS sia.o"
20476 if test ${with_fwtk-'no'} != "no"; then
20477 if test "$with_fwtk" != "yes"; then
20479 if test X"$with_rpath" = X"yes"; then
20480 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20482 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20484 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20485 blibpath_add="${blibpath_add}:${with_fwtk}"
20488 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20491 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20492 AUTH_OBJS="$AUTH_OBJS fwtk.o"
20495 if test ${with_SecurID-'no'} != "no"; then
20496 if test "$with_SecurID" != "yes"; then
20498 elif test -d /usr/ace/examples; then
20499 with_SecurID=/usr/ace/examples
20501 with_SecurID=/usr/ace
20503 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20504 _LDFLAGS="${LDFLAGS}"
20506 if test X"$with_rpath" = X"yes"; then
20507 LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20509 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20511 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20512 blibpath_add="${blibpath_add}:${with_SecurID}"
20516 # Determine whether to use the new or old SecurID API
20518 { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20519 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20520 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 ac_check_lib_save_LIBS=$LIBS
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20535 /* Override any GCC internal prototype to avoid an error.
20536 Use char because int might match the return type of a GCC
20537 builtin and then its argument prototype would still apply. */
20550 rm -f conftest.$ac_objext conftest$ac_exeext
20551 if { (ac_try="$ac_link"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_link") 2>conftest.er1
20559 grep -v '^ *+' conftest.er1 >conftest.err
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } && {
20564 test -z "$ac_c_werror_flag" ||
20565 test ! -s conftest.err
20566 } && test -s conftest$ac_exeext &&
20567 $as_test_x conftest$ac_exeext; then
20568 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20577 conftest$ac_exeext conftest.$ac_ext
20578 LIBS=$ac_check_lib_save_LIBS
20580 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20581 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20582 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20584 AUTH_OBJS="$AUTH_OBJS securid5.o";
20585 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20589 if test X"$with_rpath" = X"yes"; then
20590 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20592 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20594 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20595 blibpath_add="${blibpath_add}:${with_SecurID}"
20601 AUTH_OBJS="$AUTH_OBJS securid.o";
20602 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20606 LDFLAGS="${_LDFLAGS}"
20610 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20611 for auth in $AUTH_DEF; do
20613 passwd) : ${with_passwd='maybe'};;
20618 if test ${with_kerb4-'no'} != "no"; then
20619 cat >>confdefs.h <<\_ACEOF
20620 #define HAVE_KERB4 1
20623 O_LDFLAGS="$LDFLAGS"
20624 if test "$with_kerb4" = "yes"; then
20626 O_CPPFLAGS="$CPPFLAGS"
20627 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20628 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20629 cat >conftest.$ac_ext <<_ACEOF
20632 if { (ac_try="$ac_cpp conftest.$ac_ext"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } >/dev/null && {
20645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20656 rm -f conftest.err conftest.$ac_ext
20658 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20661 if test X"$with_rpath" = X"yes"; then
20662 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20664 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20666 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20667 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20671 if test X"$with_rpath" = X"yes"; then
20672 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20674 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20676 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20677 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20680 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20681 if test "${ac_cv_header_krb_h+set}" = set; then
20682 { echo "$as_me:$LINENO: checking for krb.h" >&5
20683 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20684 if test "${ac_cv_header_krb_h+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20688 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20690 # Is the header compilable?
20691 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20692 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20693 cat >conftest.$ac_ext <<_ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 $ac_includes_default
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_compile") 2>conftest.er1
20711 grep -v '^ *+' conftest.er1 >conftest.err
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest.$ac_objext; then
20719 ac_header_compiler=yes
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20724 ac_header_compiler=no
20727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20729 echo "${ECHO_T}$ac_header_compiler" >&6; }
20731 # Is the header present?
20732 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20733 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20734 cat >conftest.$ac_ext <<_ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20742 if { (ac_try="$ac_cpp conftest.$ac_ext"
20743 case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20750 grep -v '^ *+' conftest.er1 >conftest.err
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } >/dev/null && {
20755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20758 ac_header_preproc=yes
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ac_header_preproc=no
20766 rm -f conftest.err conftest.$ac_ext
20767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20768 echo "${ECHO_T}$ac_header_preproc" >&6; }
20770 # So? What about this header?
20771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20773 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20774 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20776 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20777 ac_header_preproc=yes
20780 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20781 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20782 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
20783 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20785 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
20787 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
20788 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20789 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20791 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20793 ## --------------------------------------- ##
20794 ## Report this to http://www.sudo.ws/bugs/ ##
20795 ## --------------------------------------- ##
20797 ) | sed "s/^/$as_me: WARNING: /" >&2
20800 { echo "$as_me:$LINENO: checking for krb.h" >&5
20801 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20802 if test "${ac_cv_header_krb_h+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 ac_cv_header_krb_h=$ac_header_preproc
20807 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20808 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20811 if test $ac_cv_header_krb_h = yes; then
20819 if test X"$found" = X"no"; then
20820 { 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
20821 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;}
20824 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20825 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20826 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20829 ac_check_lib_save_LIBS=$LIBS
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20838 /* Override any GCC internal prototype to avoid an error.
20839 Use char because int might match the return type of a GCC
20840 builtin and then its argument prototype would still apply. */
20844 char des_cbc_encrypt ();
20848 return des_cbc_encrypt ();
20853 rm -f conftest.$ac_objext conftest$ac_exeext
20854 if { (ac_try="$ac_link"
20855 case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860 (eval "$ac_link") 2>conftest.er1
20862 grep -v '^ *+' conftest.er1 >conftest.err
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && {
20867 test -z "$ac_c_werror_flag" ||
20868 test ! -s conftest.err
20869 } && test -s conftest$ac_exeext &&
20870 $as_test_x conftest$ac_exeext; then
20871 ac_cv_lib_des_des_cbc_encrypt=yes
20873 echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20876 ac_cv_lib_des_des_cbc_encrypt=no
20879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20880 conftest$ac_exeext conftest.$ac_ext
20881 LIBS=$ac_check_lib_save_LIBS
20883 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20884 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20885 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20889 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20890 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20891 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20894 ac_check_lib_save_LIBS=$LIBS
20895 LIBS="-ldes425 $LIBS"
20896 cat >conftest.$ac_ext <<_ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20903 /* Override any GCC internal prototype to avoid an error.
20904 Use char because int might match the return type of a GCC
20905 builtin and then its argument prototype would still apply. */
20909 char des_cbc_encrypt ();
20913 return des_cbc_encrypt ();
20918 rm -f conftest.$ac_objext conftest$ac_exeext
20919 if { (ac_try="$ac_link"
20920 case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_link") 2>conftest.er1
20927 grep -v '^ *+' conftest.er1 >conftest.err
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest$ac_exeext &&
20935 $as_test_x conftest$ac_exeext; then
20936 ac_cv_lib_des425_des_cbc_encrypt=yes
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20941 ac_cv_lib_des425_des_cbc_encrypt=no
20944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20945 conftest$ac_exeext conftest.$ac_ext
20946 LIBS=$ac_check_lib_save_LIBS
20948 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20949 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20950 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20959 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20960 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20961 cat >conftest.$ac_ext <<_ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20971 const char *tmp = krb4_version;
20976 rm -f conftest.$ac_objext
20977 if { (ac_try="$ac_compile"
20978 case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_compile") 2>conftest.er1
20985 grep -v '^ *+' conftest.er1 >conftest.err
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest.$ac_objext; then
20994 { echo "$as_me:$LINENO: result: yes" >&5
20995 echo "${ECHO_T}yes" >&6; }
20996 K4LIBS="${K4LIBS} -lcom_err"
20997 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20998 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20999 if test "${ac_cv_lib_roken_main+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 ac_check_lib_save_LIBS=$LIBS
21003 LIBS="-lroken $LIBS"
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
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_roken_main=yes
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21043 ac_cv_lib_roken_main=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_roken_main" >&5
21051 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21052 if test $ac_cv_lib_roken_main = yes; then
21053 K4LIBS="${K4LIBS} -lroken"
21058 echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21062 { echo "$as_me:$LINENO: result: no" >&5
21063 echo "${ECHO_T}no" >&6; }
21068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
21070 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
21071 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
21072 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21075 ac_check_lib_save_LIBS=$LIBS
21076 LIBS="-lkrb $K4LIBS $LIBS"
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_link") 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } && {
21107 test -z "$ac_c_werror_flag" ||
21108 test ! -s conftest.err
21109 } && test -s conftest$ac_exeext &&
21110 $as_test_x conftest$ac_exeext; then
21111 eval "$as_ac_Lib=yes"
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 eval "$as_ac_Lib=no"
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120 conftest$ac_exeext conftest.$ac_ext
21121 LIBS=$ac_check_lib_save_LIBS
21123 ac_res=`eval echo '${'$as_ac_Lib'}'`
21124 { echo "$as_me:$LINENO: result: $ac_res" >&5
21125 echo "${ECHO_T}$ac_res" >&6; }
21126 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21127 K4LIBS="-lkrb $K4LIBS"
21130 as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
21131 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
21132 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
21133 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21134 echo $ECHO_N "(cached) $ECHO_C" >&6
21136 ac_check_lib_save_LIBS=$LIBS
21137 LIBS="-lkrb4 $K4LIBS $LIBS"
21138 cat >conftest.$ac_ext <<_ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21154 rm -f conftest.$ac_objext conftest$ac_exeext
21155 if { (ac_try="$ac_link"
21156 case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161 (eval "$ac_link") 2>conftest.er1
21163 grep -v '^ *+' conftest.er1 >conftest.err
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } && {
21168 test -z "$ac_c_werror_flag" ||
21169 test ! -s conftest.err
21170 } && test -s conftest$ac_exeext &&
21171 $as_test_x conftest$ac_exeext; then
21172 eval "$as_ac_Lib=yes"
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 eval "$as_ac_Lib=no"
21180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21181 conftest$ac_exeext conftest.$ac_ext
21182 LIBS=$ac_check_lib_save_LIBS
21184 ac_res=`eval echo '${'$as_ac_Lib'}'`
21185 { echo "$as_me:$LINENO: result: $ac_res" >&5
21186 echo "${ECHO_T}$ac_res" >&6; }
21187 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21188 K4LIBS="-lkrb4 $K4LIBS"
21190 K4LIBS="-lkrb $K4LIBS"
21191 { 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
21192 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;}
21199 LDFLAGS="$O_LDFLAGS"
21200 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
21201 AUTH_OBJS="$AUTH_OBJS kerb4.o"
21204 if test ${with_kerb5-'no'} != "no"; then
21205 # Extract the first word of "krb5-config", so it can be a program name with args.
21206 set dummy krb5-config; ac_word=$2
21207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21209 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21212 if test -n "$KRB5CONFIG"; then
21213 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
21215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21216 for as_dir in $PATH
21219 test -z "$as_dir" && as_dir=.
21220 for ac_exec_ext in '' $ac_executable_extensions; do
21221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21222 ac_cv_prog_KRB5CONFIG="yes"
21223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21230 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
21233 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
21234 if test -n "$KRB5CONFIG"; then
21235 { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
21236 echo "${ECHO_T}$KRB5CONFIG" >&6; }
21238 { echo "$as_me:$LINENO: result: no" >&5
21239 echo "${ECHO_T}no" >&6; }
21243 if test -n "$KRB5CONFIG"; then
21244 cat >>confdefs.h <<\_ACEOF
21245 #define HAVE_KERB5 1
21248 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21249 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
21250 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
21251 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21252 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21253 cat >conftest.$ac_ext <<_ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h. */
21263 const char *tmp = heimdal_version;
21268 rm -f conftest.$ac_objext
21269 if { (ac_try="$ac_compile"
21270 case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_compile") 2>conftest.er1
21277 grep -v '^ *+' conftest.er1 >conftest.err
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } && {
21282 test -z "$ac_c_werror_flag" ||
21283 test ! -s conftest.err
21284 } && test -s conftest.$ac_objext; then
21286 { echo "$as_me:$LINENO: result: yes" >&5
21287 echo "${ECHO_T}yes" >&6; }
21288 cat >>confdefs.h <<\_ACEOF
21289 #define HAVE_HEIMDAL 1
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21298 { echo "$as_me:$LINENO: result: no" >&5
21299 echo "${ECHO_T}no" >&6; }
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21308 cat >>confdefs.h <<\_ACEOF
21309 #define HAVE_KERB5 1
21312 if test "$with_kerb5" = "yes"; then
21314 O_CPPFLAGS="$CPPFLAGS"
21315 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21316 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21317 cat >conftest.$ac_ext <<_ACEOF
21320 if { (ac_try="$ac_cpp conftest.$ac_ext"
21321 case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21328 grep -v '^ *+' conftest.er1 >conftest.err
21330 cat conftest.err >&5
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } >/dev/null && {
21333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21334 test ! -s conftest.err
21338 echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21344 rm -f conftest.err conftest.$ac_ext
21346 if test X"$found" = X"no"; then
21347 CPPFLAGS="$O_CPPFLAGS"
21348 { 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
21349 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;}
21353 if test X"$with_rpath" = X"yes"; then
21354 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21356 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21358 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21359 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21362 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21365 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21366 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21367 cat >conftest.$ac_ext <<_ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21377 const char *tmp = heimdal_version;
21382 rm -f conftest.$ac_objext
21383 if { (ac_try="$ac_compile"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21391 grep -v '^ *+' conftest.er1 >conftest.err
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21400 { echo "$as_me:$LINENO: result: yes" >&5
21401 echo "${ECHO_T}yes" >&6; }
21402 cat >>confdefs.h <<\_ACEOF
21403 #define HAVE_HEIMDAL 1
21406 # XXX - need to check whether -lcrypo is needed!
21407 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21408 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21409 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21410 if test "${ac_cv_lib_roken_main+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 ac_check_lib_save_LIBS=$LIBS
21414 LIBS="-lroken $LIBS"
21415 cat >conftest.$ac_ext <<_ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21431 rm -f conftest.$ac_objext conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_link") 2>conftest.er1
21440 grep -v '^ *+' conftest.er1 >conftest.err
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && {
21445 test -z "$ac_c_werror_flag" ||
21446 test ! -s conftest.err
21447 } && test -s conftest$ac_exeext &&
21448 $as_test_x conftest$ac_exeext; then
21449 ac_cv_lib_roken_main=yes
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ac_cv_lib_roken_main=no
21457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21458 conftest$ac_exeext conftest.$ac_ext
21459 LIBS=$ac_check_lib_save_LIBS
21461 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21462 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21463 if test $ac_cv_lib_roken_main = yes; then
21464 SUDO_LIBS="${SUDO_LIBS} -lroken"
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21473 { echo "$as_me:$LINENO: result: no" >&5
21474 echo "${ECHO_T}no" >&6; }
21475 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21476 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21477 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21478 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 ac_check_lib_save_LIBS=$LIBS
21482 LIBS="-lkrb5support $LIBS"
21483 cat >conftest.$ac_ext <<_ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h. */
21499 rm -f conftest.$ac_objext conftest$ac_exeext
21500 if { (ac_try="$ac_link"
21501 case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_link") 2>conftest.er1
21508 grep -v '^ *+' conftest.er1 >conftest.err
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } && {
21513 test -z "$ac_c_werror_flag" ||
21514 test ! -s conftest.err
21515 } && test -s conftest$ac_exeext &&
21516 $as_test_x conftest$ac_exeext; then
21517 ac_cv_lib_krb5support_main=yes
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21522 ac_cv_lib_krb5support_main=no
21525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21526 conftest$ac_exeext conftest.$ac_ext
21527 LIBS=$ac_check_lib_save_LIBS
21529 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21530 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21531 if test $ac_cv_lib_krb5support_main = yes; then
21532 SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
21538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21539 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21541 LIBS="${LIBS} ${SUDO_LIBS}"
21544 for ac_func in krb5_verify_user krb5_init_secure_context
21546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21547 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 cat >conftest.$ac_ext <<_ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21560 #define $ac_func innocuous_$ac_func
21562 /* System header to define __stub macros and hopefully few prototypes,
21563 which can conflict with char $ac_func (); below.
21564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21565 <limits.h> exists even on freestanding compilers. */
21568 # include <limits.h>
21570 # include <assert.h>
21575 /* Override any GCC internal prototype to avoid an error.
21576 Use char because int might match the return type of a GCC
21577 builtin and then its argument prototype would still apply. */
21582 /* The GNU C library defines this for functions which it implements
21583 to always fail with ENOSYS. Some functions are actually named
21584 something starting with __ and the normal name is an alias. */
21585 #if defined __stub_$ac_func || defined __stub___$ac_func
21592 return $ac_func ();
21597 rm -f conftest.$ac_objext conftest$ac_exeext
21598 if { (ac_try="$ac_link"
21599 case "(($ac_try" in
21600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_link") 2>conftest.er1
21606 grep -v '^ *+' conftest.er1 >conftest.err
21608 cat conftest.err >&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } && {
21611 test -z "$ac_c_werror_flag" ||
21612 test ! -s conftest.err
21613 } && test -s conftest$ac_exeext &&
21614 $as_test_x conftest$ac_exeext; then
21615 eval "$as_ac_var=yes"
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21620 eval "$as_ac_var=no"
21623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21624 conftest$ac_exeext conftest.$ac_ext
21626 ac_res=`eval echo '${'$as_ac_var'}'`
21627 { echo "$as_me:$LINENO: result: $ac_res" >&5
21628 echo "${ECHO_T}$ac_res" >&6; }
21629 if test `eval echo '${'$as_ac_var'}'` = yes; then
21630 cat >>confdefs.h <<_ACEOF
21631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21638 for ac_func in krb5_get_init_creds_opt_alloc
21640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 cat >conftest.$ac_ext <<_ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h. */
21652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21654 #define $ac_func innocuous_$ac_func
21656 /* System header to define __stub macros and hopefully few prototypes,
21657 which can conflict with char $ac_func (); below.
21658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21659 <limits.h> exists even on freestanding compilers. */
21662 # include <limits.h>
21664 # include <assert.h>
21669 /* Override any GCC internal prototype to avoid an error.
21670 Use char because int might match the return type of a GCC
21671 builtin and then its argument prototype would still apply. */
21676 /* The GNU C library defines this for functions which it implements
21677 to always fail with ENOSYS. Some functions are actually named
21678 something starting with __ and the normal name is an alias. */
21679 #if defined __stub_$ac_func || defined __stub___$ac_func
21686 return $ac_func ();
21691 rm -f conftest.$ac_objext conftest$ac_exeext
21692 if { (ac_try="$ac_link"
21693 case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_link") 2>conftest.er1
21700 grep -v '^ *+' conftest.er1 >conftest.err
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } && {
21705 test -z "$ac_c_werror_flag" ||
21706 test ! -s conftest.err
21707 } && test -s conftest$ac_exeext &&
21708 $as_test_x conftest$ac_exeext; then
21709 eval "$as_ac_var=yes"
21711 echo "$as_me: failed program was:" >&5
21712 sed 's/^/| /' conftest.$ac_ext >&5
21714 eval "$as_ac_var=no"
21717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21718 conftest$ac_exeext conftest.$ac_ext
21720 ac_res=`eval echo '${'$as_ac_var'}'`
21721 { echo "$as_me:$LINENO: result: $ac_res" >&5
21722 echo "${ECHO_T}$ac_res" >&6; }
21723 if test `eval echo '${'$as_ac_var'}'` = yes; then
21724 cat >>confdefs.h <<_ACEOF
21725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21728 { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a context" >&5
21729 echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a context... $ECHO_C" >&6; }
21730 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
21731 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 cat >conftest.$ac_ext <<_ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21744 krb5_get_init_creds_opt_free(NULL, NULL);
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_compile") 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } && {
21763 test -z "$ac_c_werror_flag" ||
21764 test ! -s conftest.err
21765 } && test -s conftest.$ac_objext; then
21766 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
21775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21779 { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
21780 echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
21785 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
21786 cat >>confdefs.h <<\_ACEOF
21787 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
21794 if test ${with_AFS-'no'} = "yes"; then
21796 # looks like the "standard" place for AFS libs is /usr/afsws/lib
21797 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21798 for i in $AFSLIBDIRS; do
21799 if test -d ${i}; then
21801 if test X"$with_rpath" = X"yes"; then
21802 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21804 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21806 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21807 blibpath_add="${blibpath_add}:$i"
21810 FOUND_AFSLIBDIR=true
21813 if test -z "$FOUND_AFSLIBDIR"; then
21814 { 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
21815 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;}
21818 # Order is important here. Note that we build AFS_LIBS from right to left
21819 # since AFS_LIBS may be initialized with BSD compat libs that must go last
21820 AFS_LIBS="-laudit ${AFS_LIBS}"
21821 for i in $AFSLIBDIRS; do
21822 if test -f ${i}/util.a; then
21823 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21828 if test -z "$FOUND_UTIL_A"; then
21829 AFS_LIBS="-lutil ${AFS_LIBS}"
21831 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21833 # AFS includes may live in /usr/include on some machines...
21834 for i in /usr/afsws/include; do
21835 if test -d ${i}; then
21836 CPPFLAGS="${CPPFLAGS} -I${i}"
21837 FOUND_AFSINCDIR=true
21841 if test -z "$FOUND_AFSLIBDIR"; then
21842 { 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
21843 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;}
21846 AUTH_OBJS="$AUTH_OBJS afs.o"
21849 if test ${with_DCE-'no'} = "yes"; then
21850 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21851 SUDO_LIBS="${SUDO_LIBS} -ldce"
21852 AUTH_OBJS="$AUTH_OBJS dce.o"
21855 if test ${with_skey-'no'} = "yes"; then
21856 O_LDFLAGS="$LDFLAGS"
21857 if test "$with_skey" != "yes"; then
21858 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21860 if test X"$with_rpath" = X"yes"; then
21861 LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21863 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21865 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21866 blibpath_add="${blibpath_add}:${with_skey}/lib"
21870 if test X"$with_rpath" = X"yes"; then
21871 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21873 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21875 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21876 blibpath_add="${blibpath_add}:${with_skey}/lib"
21879 cat >conftest.$ac_ext <<_ACEOF
21882 if { (ac_try="$ac_cpp conftest.$ac_ext"
21883 case "(($ac_try" in
21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21890 grep -v '^ *+' conftest.er1 >conftest.err
21892 cat conftest.err >&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } >/dev/null && {
21895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21896 test ! -s conftest.err
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21906 rm -f conftest.err conftest.$ac_ext
21909 O_CPPFLAGS="$CPPFLAGS"
21910 for dir in "" "/usr/local" "/usr/contrib"; do
21911 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21912 cat >conftest.$ac_ext <<_ACEOF
21915 if { (ac_try="$ac_cpp conftest.$ac_ext"
21916 case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21923 grep -v '^ *+' conftest.er1 >conftest.err
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } >/dev/null && {
21928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21929 test ! -s conftest.err
21933 echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.$ac_ext >&5
21939 rm -f conftest.err conftest.$ac_ext
21941 if test "$found" = "no" -o -z "$dir"; then
21942 CPPFLAGS="$O_CPPFLAGS"
21945 if test X"$with_rpath" = X"yes"; then
21946 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21948 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21950 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21951 blibpath_add="${blibpath_add}:${dir}/lib"
21955 if test X"$with_rpath" = X"yes"; then
21956 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21958 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21960 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21961 blibpath_add="${blibpath_add}:${dir}/lib"
21966 if test "$found" = "no"; then
21967 { 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
21968 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;}
21970 { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21971 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21972 if test "${ac_cv_lib_skey_main+set}" = set; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21975 ac_check_lib_save_LIBS=$LIBS
21976 LIBS="-lskey $LIBS"
21977 cat >conftest.$ac_ext <<_ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h. */
21993 rm -f conftest.$ac_objext conftest$ac_exeext
21994 if { (ac_try="$ac_link"
21995 case "(($ac_try" in
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997 *) ac_try_echo=$ac_try;;
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_link") 2>conftest.er1
22002 grep -v '^ *+' conftest.er1 >conftest.err
22004 cat conftest.err >&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } && {
22007 test -z "$ac_c_werror_flag" ||
22008 test ! -s conftest.err
22009 } && test -s conftest$ac_exeext &&
22010 $as_test_x conftest$ac_exeext; then
22011 ac_cv_lib_skey_main=yes
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22016 ac_cv_lib_skey_main=no
22019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22020 conftest$ac_exeext conftest.$ac_ext
22021 LIBS=$ac_check_lib_save_LIBS
22023 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
22024 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
22025 if test $ac_cv_lib_skey_main = yes; then
22028 { 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
22029 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;}
22032 { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
22033 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
22034 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
22035 echo $ECHO_N "(cached) $ECHO_C" >&6
22037 ac_check_lib_save_LIBS=$LIBS
22038 LIBS="-lskey $LIBS"
22039 cat >conftest.$ac_ext <<_ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22046 /* Override any GCC internal prototype to avoid an error.
22047 Use char because int might match the return type of a GCC
22048 builtin and then its argument prototype would still apply. */
22052 char skeyaccess ();
22056 return skeyaccess ();
22061 rm -f conftest.$ac_objext conftest$ac_exeext
22062 if { (ac_try="$ac_link"
22063 case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068 (eval "$ac_link") 2>conftest.er1
22070 grep -v '^ *+' conftest.er1 >conftest.err
22072 cat conftest.err >&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } && {
22075 test -z "$ac_c_werror_flag" ||
22076 test ! -s conftest.err
22077 } && test -s conftest$ac_exeext &&
22078 $as_test_x conftest$ac_exeext; then
22079 ac_cv_lib_skey_skeyaccess=yes
22081 echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22084 ac_cv_lib_skey_skeyaccess=no
22087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22088 conftest$ac_exeext conftest.$ac_ext
22089 LIBS=$ac_check_lib_save_LIBS
22091 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
22092 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
22093 if test $ac_cv_lib_skey_skeyaccess = yes; then
22094 cat >>confdefs.h <<\_ACEOF
22095 #define HAVE_SKEYACCESS 1
22100 LDFLAGS="$O_LDFLAGS"
22101 SUDO_LIBS="${SUDO_LIBS} -lskey"
22102 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22105 if test ${with_opie-'no'} = "yes"; then
22106 O_LDFLAGS="$LDFLAGS"
22107 if test "$with_opie" != "yes"; then
22108 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
22110 if test X"$with_rpath" = X"yes"; then
22111 LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22113 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
22115 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22116 blibpath_add="${blibpath_add}:${with_opie}/lib"
22120 if test X"$with_rpath" = X"yes"; then
22121 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22123 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
22125 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22126 blibpath_add="${blibpath_add}:${with_opie}/lib"
22129 cat >conftest.$ac_ext <<_ACEOF
22132 if { (ac_try="$ac_cpp conftest.$ac_ext"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22140 grep -v '^ *+' conftest.er1 >conftest.err
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } >/dev/null && {
22145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22156 rm -f conftest.err conftest.$ac_ext
22159 O_CPPFLAGS="$CPPFLAGS"
22160 for dir in "" "/usr/local" "/usr/contrib"; do
22161 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
22162 cat >conftest.$ac_ext <<_ACEOF
22165 if { (ac_try="$ac_cpp conftest.$ac_ext"
22166 case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22173 grep -v '^ *+' conftest.er1 >conftest.err
22175 cat conftest.err >&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } >/dev/null && {
22178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22179 test ! -s conftest.err
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22189 rm -f conftest.err conftest.$ac_ext
22191 if test "$found" = "no" -o -z "$dir"; then
22192 CPPFLAGS="$O_CPPFLAGS"
22195 if test X"$with_rpath" = X"yes"; then
22196 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
22198 LDFLAGS="${LDFLAGS} -L${dir}/lib"
22200 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22201 blibpath_add="${blibpath_add}:${dir}/lib"
22205 if test X"$with_rpath" = X"yes"; then
22206 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
22208 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
22210 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22211 blibpath_add="${blibpath_add}:${dir}/lib"
22216 if test "$found" = "no"; then
22217 { 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
22218 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;}
22220 { echo "$as_me:$LINENO: checking for main in -lopie" >&5
22221 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
22222 if test "${ac_cv_lib_opie_main+set}" = set; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 ac_check_lib_save_LIBS=$LIBS
22226 LIBS="-lopie $LIBS"
22227 cat >conftest.$ac_ext <<_ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h. */
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (ac_try="$ac_link"
22245 case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_link") 2>conftest.er1
22252 grep -v '^ *+' conftest.er1 >conftest.err
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && {
22257 test -z "$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 } && test -s conftest$ac_exeext &&
22260 $as_test_x conftest$ac_exeext; then
22261 ac_cv_lib_opie_main=yes
22263 echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22266 ac_cv_lib_opie_main=no
22269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22270 conftest$ac_exeext conftest.$ac_ext
22271 LIBS=$ac_check_lib_save_LIBS
22273 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
22274 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
22275 if test $ac_cv_lib_opie_main = yes; then
22278 { 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
22279 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;}
22282 LDFLAGS="$O_LDFLAGS"
22283 SUDO_LIBS="${SUDO_LIBS} -lopie"
22284 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22287 if test ${with_passwd-'no'} != "no"; then
22288 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
22289 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22290 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22291 if test "${ac_cv_search_crypt+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22294 ac_func_search_save_LIBS=$LIBS
22295 cat >conftest.$ac_ext <<_ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22302 /* Override any GCC internal prototype to avoid an error.
22303 Use char because int might match the return type of a GCC
22304 builtin and then its argument prototype would still apply. */
22317 for ac_lib in '' crypt crypt_d ufc; do
22318 if test -z "$ac_lib"; then
22319 ac_res="none required"
22322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22324 rm -f conftest.$ac_objext conftest$ac_exeext
22325 if { (ac_try="$ac_link"
22326 case "(($ac_try" in
22327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331 (eval "$ac_link") 2>conftest.er1
22333 grep -v '^ *+' conftest.er1 >conftest.err
22335 cat conftest.err >&5
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); } && {
22338 test -z "$ac_c_werror_flag" ||
22339 test ! -s conftest.err
22340 } && test -s conftest$ac_exeext &&
22341 $as_test_x conftest$ac_exeext; then
22342 ac_cv_search_crypt=$ac_res
22344 echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22352 if test "${ac_cv_search_crypt+set}" = set; then
22356 if test "${ac_cv_search_crypt+set}" = set; then
22359 ac_cv_search_crypt=no
22361 rm conftest.$ac_ext
22362 LIBS=$ac_func_search_save_LIBS
22364 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22365 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22366 ac_res=$ac_cv_search_crypt
22367 if test "$ac_res" != no; then
22368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22369 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22374 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
22376 LIBS="$LIBS $shadow_libs"
22379 for ac_func in $shadow_funcs
22381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22387 cat >conftest.$ac_ext <<_ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h. */
22393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22395 #define $ac_func innocuous_$ac_func
22397 /* System header to define __stub macros and hopefully few prototypes,
22398 which can conflict with char $ac_func (); below.
22399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22400 <limits.h> exists even on freestanding compilers. */
22403 # include <limits.h>
22405 # include <assert.h>
22410 /* Override any GCC internal prototype to avoid an error.
22411 Use char because int might match the return type of a GCC
22412 builtin and then its argument prototype would still apply. */
22417 /* The GNU C library defines this for functions which it implements
22418 to always fail with ENOSYS. Some functions are actually named
22419 something starting with __ and the normal name is an alias. */
22420 #if defined __stub_$ac_func || defined __stub___$ac_func
22427 return $ac_func ();
22432 rm -f conftest.$ac_objext conftest$ac_exeext
22433 if { (ac_try="$ac_link"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_link") 2>conftest.er1
22441 grep -v '^ *+' conftest.er1 >conftest.err
22443 cat conftest.err >&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); } && {
22446 test -z "$ac_c_werror_flag" ||
22447 test ! -s conftest.err
22448 } && test -s conftest$ac_exeext &&
22449 $as_test_x conftest$ac_exeext; then
22450 eval "$as_ac_var=yes"
22452 echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22455 eval "$as_ac_var=no"
22458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22459 conftest$ac_exeext conftest.$ac_ext
22461 ac_res=`eval echo '${'$as_ac_var'}'`
22462 { echo "$as_me:$LINENO: result: $ac_res" >&5
22463 echo "${ECHO_T}$ac_res" >&6; }
22464 if test `eval echo '${'$as_ac_var'}'` = yes; then
22465 cat >>confdefs.h <<_ACEOF
22466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22472 if test "$found" = "yes"; then
22473 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22474 elif test -n "$shadow_libs_optional"; then
22475 LIBS="$LIBS $shadow_libs_optional"
22477 for ac_func in $shadow_funcs
22479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22483 echo $ECHO_N "(cached) $ECHO_C" >&6
22485 cat >conftest.$ac_ext <<_ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22493 #define $ac_func innocuous_$ac_func
22495 /* System header to define __stub macros and hopefully few prototypes,
22496 which can conflict with char $ac_func (); below.
22497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22498 <limits.h> exists even on freestanding compilers. */
22501 # include <limits.h>
22503 # include <assert.h>
22508 /* Override any GCC internal prototype to avoid an error.
22509 Use char because int might match the return type of a GCC
22510 builtin and then its argument prototype would still apply. */
22515 /* The GNU C library defines this for functions which it implements
22516 to always fail with ENOSYS. Some functions are actually named
22517 something starting with __ and the normal name is an alias. */
22518 #if defined __stub_$ac_func || defined __stub___$ac_func
22525 return $ac_func ();
22530 rm -f conftest.$ac_objext conftest$ac_exeext
22531 if { (ac_try="$ac_link"
22532 case "(($ac_try" in
22533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534 *) ac_try_echo=$ac_try;;
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537 (eval "$ac_link") 2>conftest.er1
22539 grep -v '^ *+' conftest.er1 >conftest.err
22541 cat conftest.err >&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } && {
22544 test -z "$ac_c_werror_flag" ||
22545 test ! -s conftest.err
22546 } && test -s conftest$ac_exeext &&
22547 $as_test_x conftest$ac_exeext; then
22548 eval "$as_ac_var=yes"
22550 echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22553 eval "$as_ac_var=no"
22556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22557 conftest$ac_exeext conftest.$ac_ext
22559 ac_res=`eval echo '${'$as_ac_var'}'`
22560 { echo "$as_me:$LINENO: result: $ac_res" >&5
22561 echo "${ECHO_T}$ac_res" >&6; }
22562 if test `eval echo '${'$as_ac_var'}'` = yes; then
22563 cat >>confdefs.h <<_ACEOF
22564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22570 if test "$found" = "yes"; then
22571 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22574 if test "$found" = "yes"; then
22575 case "$shadow_funcs" in
22576 *getprpwnam*) SECUREWARE=1;;
22578 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22584 if test "$CHECKSHADOW" = "true"; then
22585 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22586 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22587 if test "${ac_cv_search_getspnam+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22590 ac_func_search_save_LIBS=$LIBS
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22598 /* Override any GCC internal prototype to avoid an error.
22599 Use char because int might match the return type of a GCC
22600 builtin and then its argument prototype would still apply. */
22608 return getspnam ();
22613 for ac_lib in '' gen; do
22614 if test -z "$ac_lib"; then
22615 ac_res="none required"
22618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22620 rm -f conftest.$ac_objext conftest$ac_exeext
22621 if { (ac_try="$ac_link"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627 (eval "$ac_link") 2>conftest.er1
22629 grep -v '^ *+' conftest.er1 >conftest.err
22631 cat conftest.err >&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } && {
22634 test -z "$ac_c_werror_flag" ||
22635 test ! -s conftest.err
22636 } && test -s conftest$ac_exeext &&
22637 $as_test_x conftest$ac_exeext; then
22638 ac_cv_search_getspnam=$ac_res
22640 echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22648 if test "${ac_cv_search_getspnam+set}" = set; then
22652 if test "${ac_cv_search_getspnam+set}" = set; then
22655 ac_cv_search_getspnam=no
22657 rm conftest.$ac_ext
22658 LIBS=$ac_func_search_save_LIBS
22660 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22661 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22662 ac_res=$ac_cv_search_getspnam
22663 if test "$ac_res" != no; then
22664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22665 cat >>confdefs.h <<\_ACEOF
22666 #define HAVE_GETSPNAM 1
22668 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22672 if test "$CHECKSHADOW" = "true"; then
22673 { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22674 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22675 if test "${ac_cv_search_getprpwnam+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 ac_func_search_save_LIBS=$LIBS
22679 cat >conftest.$ac_ext <<_ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22686 /* Override any GCC internal prototype to avoid an error.
22687 Use char because int might match the return type of a GCC
22688 builtin and then its argument prototype would still apply. */
22692 char getprpwnam ();
22696 return getprpwnam ();
22701 for ac_lib in '' sec security prot; do
22702 if test -z "$ac_lib"; then
22703 ac_res="none required"
22706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22708 rm -f conftest.$ac_objext conftest$ac_exeext
22709 if { (ac_try="$ac_link"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_link") 2>conftest.er1
22717 grep -v '^ *+' conftest.er1 >conftest.err
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } && {
22722 test -z "$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22724 } && test -s conftest$ac_exeext &&
22725 $as_test_x conftest$ac_exeext; then
22726 ac_cv_search_getprpwnam=$ac_res
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22736 if test "${ac_cv_search_getprpwnam+set}" = set; then
22740 if test "${ac_cv_search_getprpwnam+set}" = set; then
22743 ac_cv_search_getprpwnam=no
22745 rm conftest.$ac_ext
22746 LIBS=$ac_func_search_save_LIBS
22748 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22749 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22750 ac_res=$ac_cv_search_getprpwnam
22751 if test "$ac_res" != no; then
22752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22753 cat >>confdefs.h <<\_ACEOF
22754 #define HAVE_GETPRPWNAM 1
22756 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22760 if test -n "$SECUREWARE"; then
22764 for ac_func in bigcrypt set_auth_parameters initprivs
22766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 cat >conftest.$ac_ext <<_ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22780 #define $ac_func innocuous_$ac_func
22782 /* System header to define __stub macros and hopefully few prototypes,
22783 which can conflict with char $ac_func (); below.
22784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22785 <limits.h> exists even on freestanding compilers. */
22788 # include <limits.h>
22790 # include <assert.h>
22795 /* Override any GCC internal prototype to avoid an error.
22796 Use char because int might match the return type of a GCC
22797 builtin and then its argument prototype would still apply. */
22802 /* The GNU C library defines this for functions which it implements
22803 to always fail with ENOSYS. Some functions are actually named
22804 something starting with __ and the normal name is an alias. */
22805 #if defined __stub_$ac_func || defined __stub___$ac_func
22812 return $ac_func ();
22817 rm -f conftest.$ac_objext conftest$ac_exeext
22818 if { (ac_try="$ac_link"
22819 case "(($ac_try" in
22820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22821 *) ac_try_echo=$ac_try;;
22823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22824 (eval "$ac_link") 2>conftest.er1
22826 grep -v '^ *+' conftest.er1 >conftest.err
22828 cat conftest.err >&5
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } && {
22831 test -z "$ac_c_werror_flag" ||
22832 test ! -s conftest.err
22833 } && test -s conftest$ac_exeext &&
22834 $as_test_x conftest$ac_exeext; then
22835 eval "$as_ac_var=yes"
22837 echo "$as_me: failed program was:" >&5
22838 sed 's/^/| /' conftest.$ac_ext >&5
22840 eval "$as_ac_var=no"
22843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22844 conftest$ac_exeext conftest.$ac_ext
22846 ac_res=`eval echo '${'$as_ac_var'}'`
22847 { echo "$as_me:$LINENO: result: $ac_res" >&5
22848 echo "${ECHO_T}$ac_res" >&6; }
22849 if test `eval echo '${'$as_ac_var'}'` = yes; then
22850 cat >>confdefs.h <<_ACEOF
22851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22857 AUTH_OBJS="$AUTH_OBJS secureware.o"
22861 if test ${with_ldap-'no'} != "no"; then
22862 _LDFLAGS="$LDFLAGS"
22863 if test "$with_ldap" != "yes"; then
22865 if test X"$with_rpath" = X"yes"; then
22866 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22868 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22870 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22871 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22875 if test X"$with_rpath" = X"yes"; then
22876 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22878 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22880 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22881 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22884 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22888 SUDO_OBJS="${SUDO_OBJS} ldap.o"
22890 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22891 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22895 for l in -lldap -llber '-lssl -lcrypto'; do
22897 LDAP_LIBS="${LDAP_LIBS} $l"
22898 cat >conftest.$ac_ext <<_ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h. */
22904 #include <sys/types.h>
22910 (void)ldap_init(0, 0)
22915 rm -f conftest.$ac_objext conftest$ac_exeext
22916 if { (ac_try="$ac_link"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_link") 2>conftest.er1
22924 grep -v '^ *+' conftest.er1 >conftest.err
22926 cat conftest.err >&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest$ac_exeext &&
22932 $as_test_x conftest$ac_exeext; then
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22942 conftest$ac_exeext conftest.$ac_ext
22944 if test "$found" = "no"; then
22945 LIBS="${_LIBS} -lldap"
22947 { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22948 echo "${ECHO_T}not found, using -lldap" >&6; }
22950 { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22951 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22954 { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22955 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22956 if test "${ac_cv_search_ber_set_option+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22959 ac_func_search_save_LIBS=$LIBS
22960 cat >conftest.$ac_ext <<_ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22967 /* Override any GCC internal prototype to avoid an error.
22968 Use char because int might match the return type of a GCC
22969 builtin and then its argument prototype would still apply. */
22973 char ber_set_option ();
22977 return ber_set_option ();
22982 for ac_lib in '' lber; do
22983 if test -z "$ac_lib"; then
22984 ac_res="none required"
22987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22989 rm -f conftest.$ac_objext conftest$ac_exeext
22990 if { (ac_try="$ac_link"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_link") 2>conftest.er1
22998 grep -v '^ *+' conftest.er1 >conftest.err
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest$ac_exeext &&
23006 $as_test_x conftest$ac_exeext; then
23007 ac_cv_search_ber_set_option=$ac_res
23009 echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23017 if test "${ac_cv_search_ber_set_option+set}" = set; then
23021 if test "${ac_cv_search_ber_set_option+set}" = set; then
23024 ac_cv_search_ber_set_option=no
23026 rm conftest.$ac_ext
23027 LIBS=$ac_func_search_save_LIBS
23029 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
23030 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
23031 ac_res=$ac_cv_search_ber_set_option
23032 if test "$ac_res" != no; then
23033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23039 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
23040 LDAP_LIBS="$LDAP_LIBS -llber"
23042 { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
23043 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 #include <sys/types.h>
23055 (void)ldap_init(0, 0)
23060 rm -f conftest.$ac_objext conftest$ac_exeext
23061 if { (ac_try="$ac_link"
23062 case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064 *) ac_try_echo=$ac_try;;
23066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067 (eval "$ac_link") 2>conftest.er1
23069 grep -v '^ *+' conftest.er1 >conftest.err
23071 cat conftest.err >&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } && {
23074 test -z "$ac_c_werror_flag" ||
23075 test ! -s conftest.err
23076 } && test -s conftest$ac_exeext &&
23077 $as_test_x conftest$ac_exeext; then
23078 { echo "$as_me:$LINENO: result: no" >&5
23079 echo "${ECHO_T}no" >&6; }
23081 echo "$as_me: failed program was:" >&5
23082 sed 's/^/| /' conftest.$ac_ext >&5
23085 { echo "$as_me:$LINENO: result: yes" >&5
23086 echo "${ECHO_T}yes" >&6; }
23087 cat >>confdefs.h <<\_ACEOF
23088 #define HAVE_LBER_H 1
23093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23094 conftest$ac_exeext conftest.$ac_ext
23098 for ac_header in sasl/sasl.h sasl.h
23100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23107 ac_res=`eval echo '${'$as_ac_Header'}'`
23108 { echo "$as_me:$LINENO: result: $ac_res" >&5
23109 echo "${ECHO_T}$ac_res" >&6; }
23111 # Is the header compilable?
23112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 $ac_includes_default
23121 #include <$ac_header>
23123 rm -f conftest.$ac_objext
23124 if { (ac_try="$ac_compile"
23125 case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_compile") 2>conftest.er1
23132 grep -v '^ *+' conftest.er1 >conftest.err
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && {
23137 test -z "$ac_c_werror_flag" ||
23138 test ! -s conftest.err
23139 } && test -s conftest.$ac_objext; then
23140 ac_header_compiler=yes
23142 echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23145 ac_header_compiler=no
23148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23150 echo "${ECHO_T}$ac_header_compiler" >&6; }
23152 # Is the header present?
23153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23155 cat >conftest.$ac_ext <<_ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23161 #include <$ac_header>
23163 if { (ac_try="$ac_cpp conftest.$ac_ext"
23164 case "(($ac_try" in
23165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23166 *) ac_try_echo=$ac_try;;
23168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23171 grep -v '^ *+' conftest.er1 >conftest.err
23173 cat conftest.err >&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); } >/dev/null && {
23176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23177 test ! -s conftest.err
23179 ac_header_preproc=yes
23181 echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23184 ac_header_preproc=no
23187 rm -f conftest.err conftest.$ac_ext
23188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23189 echo "${ECHO_T}$ac_header_preproc" >&6; }
23191 # So? What about this header?
23192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23198 ac_header_preproc=yes
23201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23214 ## --------------------------------------- ##
23215 ## Report this to http://www.sudo.ws/bugs/ ##
23216 ## --------------------------------------- ##
23218 ) | sed "s/^/$as_me: WARNING: /" >&2
23221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23224 echo $ECHO_N "(cached) $ECHO_C" >&6
23226 eval "$as_ac_Header=\$ac_header_preproc"
23228 ac_res=`eval echo '${'$as_ac_Header'}'`
23229 { echo "$as_me:$LINENO: result: $ac_res" >&5
23230 echo "${ECHO_T}$ac_res" >&6; }
23233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23234 cat >>confdefs.h <<_ACEOF
23235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23238 for ac_func in ldap_sasl_interactive_bind_s
23240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23244 echo $ECHO_N "(cached) $ECHO_C" >&6
23246 cat >conftest.$ac_ext <<_ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h. */
23252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23254 #define $ac_func innocuous_$ac_func
23256 /* System header to define __stub macros and hopefully few prototypes,
23257 which can conflict with char $ac_func (); below.
23258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23259 <limits.h> exists even on freestanding compilers. */
23262 # include <limits.h>
23264 # include <assert.h>
23269 /* Override any GCC internal prototype to avoid an error.
23270 Use char because int might match the return type of a GCC
23271 builtin and then its argument prototype would still apply. */
23276 /* The GNU C library defines this for functions which it implements
23277 to always fail with ENOSYS. Some functions are actually named
23278 something starting with __ and the normal name is an alias. */
23279 #if defined __stub_$ac_func || defined __stub___$ac_func
23286 return $ac_func ();
23291 rm -f conftest.$ac_objext conftest$ac_exeext
23292 if { (ac_try="$ac_link"
23293 case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298 (eval "$ac_link") 2>conftest.er1
23300 grep -v '^ *+' conftest.er1 >conftest.err
23302 cat conftest.err >&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); } && {
23305 test -z "$ac_c_werror_flag" ||
23306 test ! -s conftest.err
23307 } && test -s conftest$ac_exeext &&
23308 $as_test_x conftest$ac_exeext; then
23309 eval "$as_ac_var=yes"
23311 echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23314 eval "$as_ac_var=no"
23317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23318 conftest$ac_exeext conftest.$ac_ext
23320 ac_res=`eval echo '${'$as_ac_var'}'`
23321 { echo "$as_me:$LINENO: result: $ac_res" >&5
23322 echo "${ECHO_T}$ac_res" >&6; }
23323 if test `eval echo '${'$as_ac_var'}'` = yes; then
23324 cat >>confdefs.h <<_ACEOF
23325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23339 for ac_header in ldap_ssl.h mps/ldap_ssl.h
23341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 cat >conftest.$ac_ext <<_ACEOF
23350 cat confdefs.h >>conftest.$ac_ext
23351 cat >>conftest.$ac_ext <<_ACEOF
23352 /* end confdefs.h. */
23355 #include <$ac_header>
23357 rm -f conftest.$ac_objext
23358 if { (ac_try="$ac_compile"
23359 case "(($ac_try" in
23360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361 *) ac_try_echo=$ac_try;;
23363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23364 (eval "$ac_compile") 2>conftest.er1
23366 grep -v '^ *+' conftest.er1 >conftest.err
23368 cat conftest.err >&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } && {
23371 test -z "$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23373 } && test -s conftest.$ac_objext; then
23374 eval "$as_ac_Header=yes"
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 eval "$as_ac_Header=no"
23382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23384 ac_res=`eval echo '${'$as_ac_Header'}'`
23385 { echo "$as_me:$LINENO: result: $ac_res" >&5
23386 echo "${ECHO_T}$ac_res" >&6; }
23387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23388 cat >>confdefs.h <<_ACEOF
23389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23407 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
23409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23413 echo $ECHO_N "(cached) $ECHO_C" >&6
23415 cat >conftest.$ac_ext <<_ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h. */
23421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23423 #define $ac_func innocuous_$ac_func
23425 /* System header to define __stub macros and hopefully few prototypes,
23426 which can conflict with char $ac_func (); below.
23427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23428 <limits.h> exists even on freestanding compilers. */
23431 # include <limits.h>
23433 # include <assert.h>
23438 /* Override any GCC internal prototype to avoid an error.
23439 Use char because int might match the return type of a GCC
23440 builtin and then its argument prototype would still apply. */
23445 /* The GNU C library defines this for functions which it implements
23446 to always fail with ENOSYS. Some functions are actually named
23447 something starting with __ and the normal name is an alias. */
23448 #if defined __stub_$ac_func || defined __stub___$ac_func
23455 return $ac_func ();
23460 rm -f conftest.$ac_objext conftest$ac_exeext
23461 if { (ac_try="$ac_link"
23462 case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_link") 2>conftest.er1
23469 grep -v '^ *+' conftest.er1 >conftest.err
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && {
23474 test -z "$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 } && test -s conftest$ac_exeext &&
23477 $as_test_x conftest$ac_exeext; then
23478 eval "$as_ac_var=yes"
23480 echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23483 eval "$as_ac_var=no"
23486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23487 conftest$ac_exeext conftest.$ac_ext
23489 ac_res=`eval echo '${'$as_ac_var'}'`
23490 { echo "$as_me:$LINENO: result: $ac_res" >&5
23491 echo "${ECHO_T}$ac_res" >&6; }
23492 if test `eval echo '${'$as_ac_var'}'` = yes; then
23493 cat >>confdefs.h <<_ACEOF
23494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23501 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
23502 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
23503 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
23504 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23507 ac_check_lib_save_LIBS=$LIBS
23508 LIBS="-lgssapi $LIBS"
23509 cat >conftest.$ac_ext <<_ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h. */
23516 /* Override any GCC internal prototype to avoid an error.
23517 Use char because int might match the return type of a GCC
23518 builtin and then its argument prototype would still apply. */
23522 char gss_krb5_ccache_name ();
23526 return gss_krb5_ccache_name ();
23531 rm -f conftest.$ac_objext conftest$ac_exeext
23532 if { (ac_try="$ac_link"
23533 case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538 (eval "$ac_link") 2>conftest.er1
23540 grep -v '^ *+' conftest.er1 >conftest.err
23542 cat conftest.err >&5
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); } && {
23545 test -z "$ac_c_werror_flag" ||
23546 test ! -s conftest.err
23547 } && test -s conftest$ac_exeext &&
23548 $as_test_x conftest$ac_exeext; then
23549 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23554 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
23557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23558 conftest$ac_exeext conftest.$ac_ext
23559 LIBS=$ac_check_lib_save_LIBS
23561 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
23562 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
23563 if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
23564 cat >>confdefs.h <<\_ACEOF
23565 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23568 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
23570 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
23571 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
23572 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23575 ac_check_lib_save_LIBS=$LIBS
23576 LIBS="-lgssapi_krb5 $LIBS"
23577 cat >conftest.$ac_ext <<_ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23584 /* Override any GCC internal prototype to avoid an error.
23585 Use char because int might match the return type of a GCC
23586 builtin and then its argument prototype would still apply. */
23590 char gss_krb5_ccache_name ();
23594 return gss_krb5_ccache_name ();
23599 rm -f conftest.$ac_objext conftest$ac_exeext
23600 if { (ac_try="$ac_link"
23601 case "(($ac_try" in
23602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23603 *) ac_try_echo=$ac_try;;
23605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23606 (eval "$ac_link") 2>conftest.er1
23608 grep -v '^ *+' conftest.er1 >conftest.err
23610 cat conftest.err >&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); } && {
23613 test -z "$ac_c_werror_flag" ||
23614 test ! -s conftest.err
23615 } && test -s conftest$ac_exeext &&
23616 $as_test_x conftest$ac_exeext; then
23617 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
23619 echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23622 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
23625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23626 conftest$ac_exeext conftest.$ac_ext
23627 LIBS=$ac_check_lib_save_LIBS
23629 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
23630 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
23631 if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
23632 cat >>confdefs.h <<\_ACEOF
23633 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23636 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
23643 # gssapi headers may be separate or part of Kerberos V
23645 O_CPPFLAGS="$CPPFLAGS"
23646 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
23647 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
23648 cat >conftest.$ac_ext <<_ACEOF
23649 #include <gssapi/gssapi.h>
23651 if { (ac_try="$ac_cpp conftest.$ac_ext"
23652 case "(($ac_try" in
23653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654 *) ac_try_echo=$ac_try;;
23656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23659 grep -v '^ *+' conftest.er1 >conftest.err
23661 cat conftest.err >&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); } >/dev/null && {
23664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23665 test ! -s conftest.err
23667 found="gssapi/gssapi.h"; break
23669 echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23672 cat >conftest.$ac_ext <<_ACEOF
23673 #include <gssapi.h>
23675 if { (ac_try="$ac_cpp conftest.$ac_ext"
23676 case "(($ac_try" in
23677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678 *) ac_try_echo=$ac_try;;
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23683 grep -v '^ *+' conftest.er1 >conftest.err
23685 cat conftest.err >&5
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } >/dev/null && {
23688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23689 test ! -s conftest.err
23691 found="gssapi.h"; break
23693 echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23699 rm -f conftest.err conftest.$ac_ext
23702 rm -f conftest.err conftest.$ac_ext
23704 if test X"$found" != X"no"; then
23706 for ac_header in $found
23708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23713 echo $ECHO_N "(cached) $ECHO_C" >&6
23715 ac_res=`eval echo '${'$as_ac_Header'}'`
23716 { echo "$as_me:$LINENO: result: $ac_res" >&5
23717 echo "${ECHO_T}$ac_res" >&6; }
23719 # Is the header compilable?
23720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23722 cat >conftest.$ac_ext <<_ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23728 $ac_includes_default
23729 #include <$ac_header>
23731 rm -f conftest.$ac_objext
23732 if { (ac_try="$ac_compile"
23733 case "(($ac_try" in
23734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735 *) ac_try_echo=$ac_try;;
23737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23738 (eval "$ac_compile") 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } && {
23745 test -z "$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23747 } && test -s conftest.$ac_objext; then
23748 ac_header_compiler=yes
23750 echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 ac_header_compiler=no
23756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23758 echo "${ECHO_T}$ac_header_compiler" >&6; }
23760 # Is the header present?
23761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23763 cat >conftest.$ac_ext <<_ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 #include <$ac_header>
23771 if { (ac_try="$ac_cpp conftest.$ac_ext"
23772 case "(($ac_try" in
23773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774 *) ac_try_echo=$ac_try;;
23776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23779 grep -v '^ *+' conftest.er1 >conftest.err
23781 cat conftest.err >&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); } >/dev/null && {
23784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23785 test ! -s conftest.err
23787 ac_header_preproc=yes
23789 echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23792 ac_header_preproc=no
23795 rm -f conftest.err conftest.$ac_ext
23796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23797 echo "${ECHO_T}$ac_header_preproc" >&6; }
23799 # So? What about this header?
23800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23806 ac_header_preproc=yes
23809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23822 ## --------------------------------------- ##
23823 ## Report this to http://www.sudo.ws/bugs/ ##
23824 ## --------------------------------------- ##
23826 ) | sed "s/^/$as_me: WARNING: /" >&2
23829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 eval "$as_ac_Header=\$ac_header_preproc"
23836 ac_res=`eval echo '${'$as_ac_Header'}'`
23837 { echo "$as_me:$LINENO: result: $ac_res" >&5
23838 echo "${ECHO_T}$ac_res" >&6; }
23841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23842 cat >>confdefs.h <<_ACEOF
23843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23850 if test X"$found" = X"gssapi/gssapi.h"; then
23852 for ac_header in gssapi/gssapi_krb5.h
23854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23859 echo $ECHO_N "(cached) $ECHO_C" >&6
23861 ac_res=`eval echo '${'$as_ac_Header'}'`
23862 { echo "$as_me:$LINENO: result: $ac_res" >&5
23863 echo "${ECHO_T}$ac_res" >&6; }
23865 # Is the header compilable?
23866 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23868 cat >conftest.$ac_ext <<_ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h. */
23874 $ac_includes_default
23875 #include <$ac_header>
23877 rm -f conftest.$ac_objext
23878 if { (ac_try="$ac_compile"
23879 case "(($ac_try" in
23880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881 *) ac_try_echo=$ac_try;;
23883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23884 (eval "$ac_compile") 2>conftest.er1
23886 grep -v '^ *+' conftest.er1 >conftest.err
23888 cat conftest.err >&5
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } && {
23891 test -z "$ac_c_werror_flag" ||
23892 test ! -s conftest.err
23893 } && test -s conftest.$ac_objext; then
23894 ac_header_compiler=yes
23896 echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23899 ac_header_compiler=no
23902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23904 echo "${ECHO_T}$ac_header_compiler" >&6; }
23906 # Is the header present?
23907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23909 cat >conftest.$ac_ext <<_ACEOF
23912 cat confdefs.h >>conftest.$ac_ext
23913 cat >>conftest.$ac_ext <<_ACEOF
23914 /* end confdefs.h. */
23915 #include <$ac_header>
23917 if { (ac_try="$ac_cpp conftest.$ac_ext"
23918 case "(($ac_try" in
23919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23920 *) ac_try_echo=$ac_try;;
23922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23925 grep -v '^ *+' conftest.er1 >conftest.err
23927 cat conftest.err >&5
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); } >/dev/null && {
23930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23931 test ! -s conftest.err
23933 ac_header_preproc=yes
23935 echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 ac_header_preproc=no
23941 rm -f conftest.err conftest.$ac_ext
23942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23943 echo "${ECHO_T}$ac_header_preproc" >&6; }
23945 # So? What about this header?
23946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23952 ac_header_preproc=yes
23955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23968 ## --------------------------------------- ##
23969 ## Report this to http://www.sudo.ws/bugs/ ##
23970 ## --------------------------------------- ##
23972 ) | sed "s/^/$as_me: WARNING: /" >&2
23975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23978 echo $ECHO_N "(cached) $ECHO_C" >&6
23980 eval "$as_ac_Header=\$ac_header_preproc"
23982 ac_res=`eval echo '${'$as_ac_Header'}'`
23983 { echo "$as_me:$LINENO: result: $ac_res" >&5
23984 echo "${ECHO_T}$ac_res" >&6; }
23987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23988 cat >>confdefs.h <<_ACEOF
23989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23998 CPPFLAGS="$O_CPPFLAGS"
23999 { 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
24000 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;}
24004 SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
24006 LDFLAGS="$_LDFLAGS"
24009 if test X"$LIBVAS_RPATH" != X""; then
24010 if test -n "$blibpath"; then
24011 blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
24013 LDFLAGS="$LDFLAGS -R$LIBVAS_RPATH"
24017 if test -n "$blibpath"; then
24018 if test -n "$blibpath_add"; then
24019 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
24020 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
24021 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
24025 { echo "$as_me:$LINENO: checking for log file location" >&5
24026 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
24027 if test -n "$with_logpath"; then
24028 { echo "$as_me:$LINENO: result: $with_logpath" >&5
24029 echo "${ECHO_T}$with_logpath" >&6; }
24030 cat >>confdefs.h <<EOF
24031 #define _PATH_SUDO_LOGFILE "$with_logpath"
24034 elif test -d "/var/log"; then
24035 { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
24036 echo "${ECHO_T}/var/log/sudo.log" >&6; }
24037 cat >>confdefs.h <<\EOF
24038 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
24041 elif test -d "/var/adm"; then
24042 { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
24043 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
24044 cat >>confdefs.h <<\EOF
24045 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
24048 elif test -d "/usr/adm"; then
24049 { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
24050 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
24051 cat >>confdefs.h <<\EOF
24052 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
24056 { echo "$as_me:$LINENO: result: unknown" >&5
24057 echo "${ECHO_T}unknown" >&6; }
24060 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
24061 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
24062 if test -n "$with_timedir"; then
24063 { echo "$as_me:$LINENO: result: $with_timedir" >&5
24064 echo "${ECHO_T}$with_timedir" >&6; }
24065 cat >>confdefs.h <<EOF
24066 #define _PATH_SUDO_TIMEDIR "$with_timedir"
24069 timedir="$with_timedir"
24070 elif test -d "/var/run"; then
24071 { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
24072 echo "${ECHO_T}/var/run/sudo" >&6; }
24073 cat >>confdefs.h <<\EOF
24074 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
24077 timedir="/var/run/sudo"
24078 elif test -d "/var/adm"; then
24079 { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
24080 echo "${ECHO_T}/var/adm/sudo" >&6; }
24081 cat >>confdefs.h <<\EOF
24082 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
24085 timedir="/var/adm/sudo"
24087 { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
24088 echo "${ECHO_T}/usr/adm/sudo" >&6; }
24089 cat >>confdefs.h <<\EOF
24090 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
24093 timedir="/usr/adm/sudo"
24097 case "$with_passwd" in
24099 AUTH_OBJS="$AUTH_OBJS passwd.o"
24102 cat >>confdefs.h <<\_ACEOF
24103 #define WITHOUT_PASSWD 1
24106 if test -z "$AUTH_OBJS"; then
24107 { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
24108 echo "$as_me: error: no authentication methods defined." >&2;}
24109 { (exit 1); exit 1; }; }
24113 AUTH_OBJS=${AUTH_OBJS# }
24114 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
24115 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
24116 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
24118 if test -n "$LIBS"; then
24123 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
24124 test $l = $sl && dupe=1
24126 test $dupe = 0 && LIBS="${LIBS} $l"
24130 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
24132 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
24133 oexec_prefix="$exec_prefix"
24134 if test "$exec_prefix" = '$(prefix)'; then
24135 if test "$prefix" = "NONE"; then
24136 exec_prefix="$ac_default_prefix"
24138 exec_prefix="$prefix"
24141 if test X"$with_noexec" != X"no"; then
24142 PROGS="${PROGS} sudo_noexec.la"
24143 INSTALL_NOEXEC="install-noexec"
24145 eval noexec_file="$with_noexec"
24147 cat >>confdefs.h <<_ACEOF
24148 #define _PATH_SUDO_NOEXEC "$noexec_file"
24152 if test X"$with_selinux" != X"no"; then
24153 eval sesh_file="$libexecdir/sesh"
24155 cat >>confdefs.h <<_ACEOF
24156 #define _PATH_SUDO_SESH "$sesh_file"
24160 exec_prefix="$oexec_prefix"
24163 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
24165 cat >confcache <<\_ACEOF
24166 # This file is a shell script that caches the results of configure
24167 # tests run on this system so they can be shared between configure
24168 # scripts and configure runs, see configure's option --config-cache.
24169 # It is not useful on other systems. If it contains results you don't
24170 # want to keep, you may remove or edit it.
24172 # config.status only pays attention to the cache file if you give it
24173 # the --recheck option to rerun configure.
24175 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24176 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24177 # following values.
24181 # The following way of writing the cache mishandles newlines in values,
24182 # but we know of no workaround that is simple, portable, and efficient.
24183 # So, we kill variables containing newlines.
24184 # Ultrix sh set writes to stderr and can't be redirected directly,
24185 # and sets the high bit in the cache file unless we assign to the vars.
24187 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24188 eval ac_val=\$$ac_var
24192 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24193 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24196 _ | IFS | as_nl) ;; #(
24197 *) $as_unset $ac_var ;;
24203 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24204 *${as_nl}ac_space=\ *)
24205 # `set' does not quote correctly, so add quotes (double-quote
24206 # substitution turns \\\\ into \\, and sed turns \\ into \).
24209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24212 # `set' quotes correctly as required by POSIX, so do not add quotes.
24213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24222 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24224 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24226 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24227 if test -w "$cache_file"; then
24228 test "x$cache_file" != "x/dev/null" &&
24229 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24230 echo "$as_me: updating cache $cache_file" >&6;}
24231 cat confcache >$cache_file
24233 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24234 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24239 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24240 # Let make expand exec_prefix.
24241 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24243 DEFS=-DHAVE_CONFIG_H
24247 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24248 # 1. Remove the extension, and $U if already installed.
24249 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24250 ac_i=`echo "$ac_i" | sed "$ac_script"`
24251 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24252 # will be set to the directory where LIBOBJS objects are built.
24253 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24254 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24256 LIBOBJS=$ac_libobjs
24258 LTLIBOBJS=$ac_ltlibobjs
24262 : ${CONFIG_STATUS=./config.status}
24263 ac_clean_files_save=$ac_clean_files
24264 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24265 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24266 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24267 cat >$CONFIG_STATUS <<_ACEOF
24269 # Generated by $as_me.
24270 # Run this file to recreate the current configuration.
24271 # Compiler output produced by configure, useful for debugging
24272 # configure, is in config.log if it exists.
24275 ac_cs_recheck=false
24277 SHELL=\${CONFIG_SHELL-$SHELL}
24280 cat >>$CONFIG_STATUS <<\_ACEOF
24281 ## --------------------- ##
24282 ## M4sh Initialization. ##
24283 ## --------------------- ##
24285 # Be more Bourne compatible
24286 DUALCASE=1; export DUALCASE # for MKS sh
24287 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24290 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24291 # is contrary to our usage. Disable this feature.
24292 alias -g '${1+"$@"}'='"$@"'
24293 setopt NO_GLOB_SUBST
24295 case `(set -o) 2>/dev/null` in
24296 *posix*) set -o posix ;;
24305 # Avoid depending upon Character Ranges.
24306 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24307 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24308 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24309 as_cr_digits='0123456789'
24310 as_cr_alnum=$as_cr_Letters$as_cr_digits
24312 # The user is always right.
24313 if test "${PATH_SEPARATOR+set}" != set; then
24314 echo "#! /bin/sh" >conf$$.sh
24315 echo "exit 0" >>conf$$.sh
24317 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24325 # Support unset when possible.
24326 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24334 # We need space, tab and new line, in precisely that order. Quoting is
24335 # there to prevent editors from complaining about space-tab.
24336 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24337 # splitting by setting IFS to empty value.)
24342 # Find who we are. Look in the path if we contain no directory separator.
24344 *[\\/]* ) as_myself=$0 ;;
24345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24346 for as_dir in $PATH
24349 test -z "$as_dir" && as_dir=.
24350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24356 # We did not find ourselves, most probably we were run as `sh COMMAND'
24357 # in which case we are not to be found in the path.
24358 if test "x$as_myself" = x; then
24361 if test ! -f "$as_myself"; then
24362 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24363 { (exit 1); exit 1; }
24366 # Work around bugs in pre-3.0 UWIN ksh.
24367 for as_var in ENV MAIL MAILPATH
24368 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24376 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24377 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24378 LC_TELEPHONE LC_TIME
24380 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24381 eval $as_var=C; export $as_var
24383 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24387 # Required to use basename.
24388 if expr a : '\(a\)' >/dev/null 2>&1 &&
24389 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24396 as_basename=basename
24402 # Name of the executable.
24403 as_me=`$as_basename -- "$0" ||
24404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24405 X"$0" : 'X\(//\)$' \| \
24406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24408 sed '/^.*\/\([^/][^/]*\)\/*$/{
24427 as_lineno_1=$LINENO
24428 as_lineno_2=$LINENO
24429 test "x$as_lineno_1" != "x$as_lineno_2" &&
24430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24433 # uniformly replaced by the line number. The first 'sed' inserts a
24434 # line-number line after each line using $LINENO; the second 'sed'
24435 # does the real work. The second script uses 'N' to pair each
24436 # line-number line with the line containing $LINENO, and appends
24437 # trailing '-' during substitution so that $LINENO is not a special
24438 # case at line end.
24439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24440 # scripts with optimization help from Paolo Bonzini. Blame Lee
24441 # E. McMahon (1931-1989) for sed's syntax. :-)
24453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24456 ' >$as_me.lineno &&
24457 chmod +x "$as_me.lineno" ||
24458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24459 { (exit 1); exit 1; }; }
24461 # Don't try to exec as it changes $[0], causing all sort of problems
24462 # (the dirname of $[0] is not the place where we might find the
24463 # original and so on. Autoconf is especially sensitive to this).
24464 . "./$as_me.lineno"
24465 # Exit status is that of the last command.
24470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24476 ECHO_C= ECHO_N= ECHO_T=
24477 case `echo -n x` in
24479 case `echo 'x\c'` in
24480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24487 if expr a : '\(a\)' >/dev/null 2>&1 &&
24488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24494 rm -f conf$$ conf$$.exe conf$$.file
24495 if test -d conf$$.dir; then
24496 rm -f conf$$.dir/conf$$.file
24502 if ln -s conf$$.file conf$$ 2>/dev/null; then
24504 # ... but there are two gotchas:
24505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24507 # In both cases, we have to default to `cp -p'.
24508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24510 elif ln conf$$.file conf$$ 2>/dev/null; then
24515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24516 rmdir conf$$.dir 2>/dev/null
24518 if mkdir -p . 2>/dev/null; then
24521 test -d ./-p && rmdir ./-p
24525 if test -x / >/dev/null 2>&1; then
24526 as_test_x='test -x'
24528 if ls -dL / >/dev/null 2>&1; then
24535 if test -d "$1"; then
24541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24542 ???[sx]*):;;*)false;;esac;fi
24546 as_executable_p=$as_test_x
24548 # Sed expression to map a string onto a valid CPP name.
24549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24551 # Sed expression to map a string onto a valid variable name.
24552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24557 # Save the log message, to keep $[0] and so on meaningful, and to
24558 # report actual input values of CONFIG_FILES etc. instead of their
24559 # values after options handling.
24561 This file was extended by sudo $as_me 1.7.2p2, which was
24562 generated by GNU Autoconf 2.61. Invocation command line was
24564 CONFIG_FILES = $CONFIG_FILES
24565 CONFIG_HEADERS = $CONFIG_HEADERS
24566 CONFIG_LINKS = $CONFIG_LINKS
24567 CONFIG_COMMANDS = $CONFIG_COMMANDS
24570 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24575 cat >>$CONFIG_STATUS <<_ACEOF
24576 # Files that config.status was made for.
24577 config_files="$ac_config_files"
24578 config_headers="$ac_config_headers"
24582 cat >>$CONFIG_STATUS <<\_ACEOF
24584 \`$as_me' instantiates files from templates according to the
24585 current configuration.
24587 Usage: $0 [OPTIONS] [FILE]...
24589 -h, --help print this help, then exit
24590 -V, --version print version number and configuration settings, then exit
24591 -q, --quiet do not print progress messages
24592 -d, --debug don't remove temporary files
24593 --recheck update $as_me by reconfiguring in the same conditions
24594 --file=FILE[:TEMPLATE]
24595 instantiate the configuration file FILE
24596 --header=FILE[:TEMPLATE]
24597 instantiate the configuration header FILE
24599 Configuration files:
24602 Configuration headers:
24605 Report bugs to <bug-autoconf@gnu.org>."
24608 cat >>$CONFIG_STATUS <<_ACEOF
24610 sudo config.status 1.7.2p2
24611 configured by $0, generated by GNU Autoconf 2.61,
24612 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24614 Copyright (C) 2006 Free Software Foundation, Inc.
24615 This config.status script is free software; the Free Software Foundation
24616 gives unlimited permission to copy, distribute and modify it."
24622 cat >>$CONFIG_STATUS <<\_ACEOF
24623 # If no file are specified by the user, then we need to provide default
24624 # value. By we need to know if files were specified by the user.
24630 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24631 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24642 # Handling of the options.
24643 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24645 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24646 echo "$ac_cs_version"; exit ;;
24647 --debug | --debu | --deb | --de | --d | -d )
24649 --file | --fil | --fi | --f )
24651 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24652 ac_need_defaults=false;;
24653 --header | --heade | --head | --hea )
24655 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24656 ac_need_defaults=false;;
24658 # Conflict between --help and --header
24659 { echo "$as_me: error: ambiguous option: $1
24660 Try \`$0 --help' for more information." >&2
24661 { (exit 1); exit 1; }; };;
24662 --help | --hel | -h )
24663 echo "$ac_cs_usage"; exit ;;
24664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24665 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24668 # This is an error.
24669 -*) { echo "$as_me: error: unrecognized option: $1
24670 Try \`$0 --help' for more information." >&2
24671 { (exit 1); exit 1; }; } ;;
24673 *) ac_config_targets="$ac_config_targets $1"
24674 ac_need_defaults=false ;;
24680 ac_configure_extra_args=
24682 if $ac_cs_silent; then
24684 ac_configure_extra_args="$ac_configure_extra_args --silent"
24688 cat >>$CONFIG_STATUS <<_ACEOF
24689 if \$ac_cs_recheck; then
24690 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24691 CONFIG_SHELL=$SHELL
24692 export CONFIG_SHELL
24693 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24697 cat >>$CONFIG_STATUS <<\_ACEOF
24701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24702 ## Running $as_me. ##
24708 cat >>$CONFIG_STATUS <<_ACEOF
24711 cat >>$CONFIG_STATUS <<\_ACEOF
24713 # Handling of arguments.
24714 for ac_config_target in $ac_config_targets
24716 case $ac_config_target in
24717 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24718 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
24719 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24720 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
24721 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
24722 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
24723 "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
24724 "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
24726 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24727 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24728 { (exit 1); exit 1; }; };;
24733 # If the user did not use the arguments to specify the items to instantiate,
24734 # then the envvar interface is used. Set only those that are not.
24735 # We use the long form for the default assignment because of an extremely
24736 # bizarre bug on SunOS 4.1.3.
24737 if $ac_need_defaults; then
24738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24742 # Have a temporary directory for convenience. Make it in the build tree
24743 # simply because there is no reason against having it here, and in addition,
24744 # creating and moving files from /tmp can sometimes cause problems.
24745 # Hook for its removal unless debugging.
24746 # Note that there is a small window in which the directory will not be cleaned:
24747 # after its creation but before its name has been assigned to `$tmp'.
24751 trap 'exit_status=$?
24752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24754 trap '{ (exit 1); exit 1; }' 1 2 13 15
24756 # Create a (secure) tmp directory for tmp files.
24759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24760 test -n "$tmp" && test -d "$tmp"
24763 tmp=./conf$$-$RANDOM
24764 (umask 077 && mkdir "$tmp")
24767 echo "$me: cannot create a temporary directory in ." >&2
24768 { (exit 1); exit 1; }
24772 # Set up the sed scripts for CONFIG_FILES section.
24775 # No need to generate the scripts if there are no CONFIG_FILES.
24776 # This happens for instance when ./config.status config.h
24777 if test -n "$CONFIG_FILES"; then
24784 for ac_last_try in false false false false false :; do
24785 cat >conf$$subs.sed <<_ACEOF
24786 SHELL!$SHELL$ac_delim
24787 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24788 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24789 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24790 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24791 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24792 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24793 exec_prefix!$exec_prefix$ac_delim
24794 prefix!$prefix$ac_delim
24795 program_transform_name!$program_transform_name$ac_delim
24796 bindir!$bindir$ac_delim
24797 sbindir!$sbindir$ac_delim
24798 libexecdir!$libexecdir$ac_delim
24799 datarootdir!$datarootdir$ac_delim
24800 datadir!$datadir$ac_delim
24801 sysconfdir!$sysconfdir$ac_delim
24802 sharedstatedir!$sharedstatedir$ac_delim
24803 localstatedir!$localstatedir$ac_delim
24804 includedir!$includedir$ac_delim
24805 oldincludedir!$oldincludedir$ac_delim
24806 docdir!$docdir$ac_delim
24807 infodir!$infodir$ac_delim
24808 htmldir!$htmldir$ac_delim
24809 dvidir!$dvidir$ac_delim
24810 pdfdir!$pdfdir$ac_delim
24811 psdir!$psdir$ac_delim
24812 libdir!$libdir$ac_delim
24813 localedir!$localedir$ac_delim
24814 mandir!$mandir$ac_delim
24815 DEFS!$DEFS$ac_delim
24816 ECHO_C!$ECHO_C$ac_delim
24817 ECHO_N!$ECHO_N$ac_delim
24818 ECHO_T!$ECHO_T$ac_delim
24819 LIBS!$LIBS$ac_delim
24820 build_alias!$build_alias$ac_delim
24821 host_alias!$host_alias$ac_delim
24822 target_alias!$target_alias$ac_delim
24823 HAVE_BSM_AUDIT!$HAVE_BSM_AUDIT$ac_delim
24824 LIBTOOL!$LIBTOOL$ac_delim
24825 CFLAGS!$CFLAGS$ac_delim
24826 PROGS!$PROGS$ac_delim
24827 CPPFLAGS!$CPPFLAGS$ac_delim
24828 LDFLAGS!$LDFLAGS$ac_delim
24829 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
24830 SUDO_OBJS!$SUDO_OBJS$ac_delim
24831 SUDO_LIBS!$SUDO_LIBS$ac_delim
24832 NET_LIBS!$NET_LIBS$ac_delim
24833 AFS_LIBS!$AFS_LIBS$ac_delim
24834 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
24835 OSDEFS!$OSDEFS$ac_delim
24836 AUTH_OBJS!$AUTH_OBJS$ac_delim
24837 MANTYPE!$MANTYPE$ac_delim
24838 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
24839 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
24840 SUDOERS_UID!$SUDOERS_UID$ac_delim
24841 SUDOERS_GID!$SUDOERS_GID$ac_delim
24843 SELINUX!$SELINUX$ac_delim
24844 BAMAN!$BAMAN$ac_delim
24845 LCMAN!$LCMAN$ac_delim
24846 SEMAN!$SEMAN$ac_delim
24847 devdir!$devdir$ac_delim
24848 mansectsu!$mansectsu$ac_delim
24849 mansectform!$mansectform$ac_delim
24850 mansrcdir!$mansrcdir$ac_delim
24851 NOEXECFILE!$NOEXECFILE$ac_delim
24852 NOEXECDIR!$NOEXECDIR$ac_delim
24853 noexec_file!$noexec_file$ac_delim
24854 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
24855 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
24856 BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
24857 SELINUX_USAGE!$SELINUX_USAGE$ac_delim
24858 LDAP!$LDAP$ac_delim
24859 LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
24860 NONUNIX_GROUPS_IMPL!$NONUNIX_GROUPS_IMPL$ac_delim
24861 timedir!$timedir$ac_delim
24862 timeout!$timeout$ac_delim
24863 password_timeout!$password_timeout$ac_delim
24864 sudo_umask!$sudo_umask$ac_delim
24865 passprompt!$passprompt$ac_delim
24866 long_otp_prompt!$long_otp_prompt$ac_delim
24867 lecture!$lecture$ac_delim
24868 logfac!$logfac$ac_delim
24869 goodpri!$goodpri$ac_delim
24870 badpri!$badpri$ac_delim
24871 loglen!$loglen$ac_delim
24872 ignore_dot!$ignore_dot$ac_delim
24873 mail_no_user!$mail_no_user$ac_delim
24874 mail_no_host!$mail_no_host$ac_delim
24875 mail_no_perms!$mail_no_perms$ac_delim
24876 mailto!$mailto$ac_delim
24877 mailsub!$mailsub$ac_delim
24878 badpass_message!$badpass_message$ac_delim
24879 fqdn!$fqdn$ac_delim
24880 runas_default!$runas_default$ac_delim
24881 env_editor!$env_editor$ac_delim
24882 passwd_tries!$passwd_tries$ac_delim
24885 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24887 elif $ac_last_try; then
24888 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24889 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24890 { (exit 1); exit 1; }; }
24892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24896 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24897 if test -n "$ac_eof"; then
24898 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24899 ac_eof=`expr $ac_eof + 1`
24902 cat >>$CONFIG_STATUS <<_ACEOF
24903 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24907 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24908 s/^/s,@/; s/!/@,|#_!!_#|/
24911 s/'"$ac_delim"'$/,g/; t
24913 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24914 ' >>$CONFIG_STATUS <conf$$subs.sed
24915 rm -f conf$$subs.sed
24916 cat >>$CONFIG_STATUS <<_ACEOF
24922 for ac_last_try in false false false false false :; do
24923 cat >conf$$subs.sed <<_ACEOF
24924 tty_tickets!$tty_tickets$ac_delim
24925 insults!$insults$ac_delim
24926 root_sudo!$root_sudo$ac_delim
24927 path_info!$path_info$ac_delim
24928 ldap_conf!$ldap_conf$ac_delim
24929 ldap_secret!$ldap_secret$ac_delim
24930 nsswitch_conf!$nsswitch_conf$ac_delim
24931 netsvc_conf!$netsvc_conf$ac_delim
24932 secure_path!$secure_path$ac_delim
24933 EGREPPROG!$EGREPPROG$ac_delim
24935 ac_ct_CC!$ac_ct_CC$ac_delim
24936 EXEEXT!$EXEEXT$ac_delim
24937 OBJEXT!$OBJEXT$ac_delim
24939 build!$build$ac_delim
24940 build_cpu!$build_cpu$ac_delim
24941 build_vendor!$build_vendor$ac_delim
24942 build_os!$build_os$ac_delim
24943 host!$host$ac_delim
24944 host_cpu!$host_cpu$ac_delim
24945 host_vendor!$host_vendor$ac_delim
24946 host_os!$host_os$ac_delim
24948 GREP!$GREP$ac_delim
24949 EGREP!$EGREP$ac_delim
24950 LN_S!$LN_S$ac_delim
24951 ECHO!$ECHO$ac_delim
24953 RANLIB!$RANLIB$ac_delim
24954 STRIP!$STRIP$ac_delim
24955 DSYMUTIL!$DSYMUTIL$ac_delim
24956 NMEDIT!$NMEDIT$ac_delim
24957 UNAMEPROG!$UNAMEPROG$ac_delim
24958 TRPROG!$TRPROG$ac_delim
24959 NROFFPROG!$NROFFPROG$ac_delim
24960 YACC!$YACC$ac_delim
24961 YFLAGS!$YFLAGS$ac_delim
24962 FLEX!$FLEX$ac_delim
24963 LIBOBJS!$LIBOBJS$ac_delim
24964 KRB5CONFIG!$KRB5CONFIG$ac_delim
24965 LTLIBOBJS!$LTLIBOBJS$ac_delim
24968 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
24970 elif $ac_last_try; then
24971 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24972 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24973 { (exit 1); exit 1; }; }
24975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24979 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24980 if test -n "$ac_eof"; then
24981 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24982 ac_eof=`expr $ac_eof + 1`
24985 cat >>$CONFIG_STATUS <<_ACEOF
24986 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24990 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24991 s/^/s,@/; s/!/@,|#_!!_#|/
24994 s/'"$ac_delim"'$/,g/; t
24996 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24997 ' >>$CONFIG_STATUS <conf$$subs.sed
24998 rm -f conf$$subs.sed
24999 cat >>$CONFIG_STATUS <<_ACEOF
25006 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25007 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25008 # trailing colons and then remove the whole line if VPATH becomes empty
25009 # (actually we leave an empty line to preserve line numbers).
25010 if test "x$srcdir" = x.; then
25011 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25012 s/:*\$(srcdir):*/:/
25013 s/:*\${srcdir}:*/:/
25015 s/^\([^=]*=[ ]*\):*/\1/
25021 cat >>$CONFIG_STATUS <<\_ACEOF
25022 fi # test -n "$CONFIG_FILES"
25025 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25028 :[FHLC]) ac_mode=$ac_tag; continue;;
25030 case $ac_mode$ac_tag in
25032 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25033 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25034 { (exit 1); exit 1; }; };;
25035 :[FH]-) ac_tag=-:-;;
25036 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25053 -) ac_f="$tmp/stdin";;
25054 *) # Look for the file first in the build tree, then in the source tree
25055 # (if the path is not absolute). The absolute path cannot be DOS-style,
25056 # because $ac_f cannot contain `:'.
25060 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25062 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25063 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25064 { (exit 1); exit 1; }; };;
25066 ac_file_inputs="$ac_file_inputs $ac_f"
25069 # Let's still pretend it is `configure' which instantiates (i.e., don't
25070 # use $as_me), people would be surprised to read:
25071 # /* config.h. Generated by config.status. */
25072 configure_input="Generated from "`IFS=:
25073 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25074 if test x"$ac_file" != x-; then
25075 configure_input="$ac_file. $configure_input"
25076 { echo "$as_me:$LINENO: creating $ac_file" >&5
25077 echo "$as_me: creating $ac_file" >&6;}
25081 *:-:* | *:-) cat >"$tmp/stdin";;
25086 ac_dir=`$as_dirname -- "$ac_file" ||
25087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25088 X"$ac_file" : 'X\(//\)[^/]' \| \
25089 X"$ac_file" : 'X\(//\)$' \| \
25090 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25096 /^X\(\/\/\)[^/].*/{
25111 -*) as_dir=./$as_dir;;
25113 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25117 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25118 *) as_qdir=$as_dir;;
25120 as_dirs="'$as_qdir' $as_dirs"
25121 as_dir=`$as_dirname -- "$as_dir" ||
25122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25123 X"$as_dir" : 'X\(//\)[^/]' \| \
25124 X"$as_dir" : 'X\(//\)$' \| \
25125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25131 /^X\(\/\/\)[^/].*/{
25144 test -d "$as_dir" && break
25146 test -z "$as_dirs" || eval "mkdir $as_dirs"
25147 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25148 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25149 { (exit 1); exit 1; }; }; }
25153 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25155 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25156 # A ".." for each directory in $ac_dir_suffix.
25157 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25158 case $ac_top_builddir_sub in
25159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25163 ac_abs_top_builddir=$ac_pwd
25164 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25165 # for backward compatibility:
25166 ac_top_builddir=$ac_top_build_prefix
25169 .) # We are building in place.
25171 ac_top_srcdir=$ac_top_builddir_sub
25172 ac_abs_top_srcdir=$ac_pwd ;;
25173 [\\/]* | ?:[\\/]* ) # Absolute name.
25174 ac_srcdir=$srcdir$ac_dir_suffix;
25175 ac_top_srcdir=$srcdir
25176 ac_abs_top_srcdir=$srcdir ;;
25177 *) # Relative name.
25178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25179 ac_top_srcdir=$ac_top_build_prefix$srcdir
25180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25182 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25193 cat >>$CONFIG_STATUS <<\_ACEOF
25194 # If the template does not know about datarootdir, expand it.
25195 # FIXME: This hack should be removed a few years after 2.60.
25196 ac_datarootdir_hack=; ac_datarootdir_seen=
25198 case `sed -n '/datarootdir/ {
25207 ' $ac_file_inputs` in
25208 *datarootdir*) ac_datarootdir_seen=yes;;
25209 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25210 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25211 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25213 cat >>$CONFIG_STATUS <<_ACEOF
25214 ac_datarootdir_hack='
25215 s&@datadir@&$datadir&g
25216 s&@docdir@&$docdir&g
25217 s&@infodir@&$infodir&g
25218 s&@localedir@&$localedir&g
25219 s&@mandir@&$mandir&g
25220 s&\\\${datarootdir}&$datarootdir&g' ;;
25224 # Neutralize VPATH when `$srcdir' = `.'.
25225 # Shell code in configure.ac might set extrasub.
25226 # FIXME: do we really want to maintain this feature?
25227 cat >>$CONFIG_STATUS <<_ACEOF
25231 cat >>$CONFIG_STATUS <<\_ACEOF
25233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25234 s&@configure_input@&$configure_input&;t t
25235 s&@top_builddir@&$ac_top_builddir_sub&;t t
25236 s&@srcdir@&$ac_srcdir&;t t
25237 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25238 s&@top_srcdir@&$ac_top_srcdir&;t t
25239 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25240 s&@builddir@&$ac_builddir&;t t
25241 s&@abs_builddir@&$ac_abs_builddir&;t t
25242 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25243 $ac_datarootdir_hack
25244 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25246 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25247 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25248 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25249 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25250 which seems to be undefined. Please make sure it is defined." >&5
25251 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25252 which seems to be undefined. Please make sure it is defined." >&2;}
25256 -) cat "$tmp/out"; rm -f "$tmp/out";;
25257 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25266 # Transform confdefs.h into a sed script `conftest.defines', that
25267 # substitutes the proper values into config.h.in to produce config.h.
25268 rm -f conftest.defines conftest.tail
25269 # First, append a space to every undef/define line, to ease matching.
25270 echo 's/$/ /' >conftest.defines
25271 # Then, protect against being on the right side of a sed subst, or in
25272 # an unquoted here document, in config.status. If some macros were
25273 # called several times there might be several #defines for the same
25274 # symbol, which is useless. But do not sort them, since the last
25275 # AC_DEFINE must be honored.
25276 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25277 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25278 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25279 # PARAMS is the parameter list in the macro definition--in most cases, it's
25280 # just an empty string.
25281 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25282 ac_dB='\\)[ (].*,\\1define\\2'
25290 s/^[ ]*#[ ]*define[ ][ ]*//
25295 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25296 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25297 ' >>conftest.defines
25299 # Remove the space that was appended to ease matching.
25300 # Then replace #undef with comments. This is necessary, for
25301 # example, in the case of _POSIX_SOURCE, which is predefined and required
25302 # on some systems where configure will not decide to define it.
25303 # (The regexp can be short, since the line contains either #define or #undef.)
25305 s,^[ #]*u.*,/* & */,' >>conftest.defines
25307 # Break up conftest.defines:
25308 ac_max_sed_lines=50
25310 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25311 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25312 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25314 ac_in='$ac_file_inputs'
25315 ac_out='"$tmp/out1"'
25316 ac_nxt='"$tmp/out2"'
25320 # Write a here document:
25321 cat >>$CONFIG_STATUS <<_ACEOF
25322 # First, check the format of the line:
25323 cat >"\$tmp/defines.sed" <<\\CEOF
25324 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25325 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25329 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25331 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25332 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25333 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25334 grep . conftest.tail >/dev/null || break
25335 rm -f conftest.defines
25336 mv conftest.tail conftest.defines
25338 rm -f conftest.defines conftest.tail
25340 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25341 cat >>$CONFIG_STATUS <<\_ACEOF
25342 if test x"$ac_file" != x-; then
25343 echo "/* $configure_input */" >"$tmp/config.h"
25344 cat "$ac_result" >>"$tmp/config.h"
25345 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25346 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25347 echo "$as_me: $ac_file is unchanged" >&6;}
25350 mv "$tmp/config.h" $ac_file
25353 echo "/* $configure_input */"
25357 # Compute $ac_file's index in $config_headers.
25360 for _am_header in $config_headers :; do
25361 case $_am_header in
25362 $_am_arg | $_am_arg:* )
25365 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25368 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25369 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25370 X"$_am_arg" : 'X\(//\)[^/]' \| \
25371 X"$_am_arg" : 'X\(//\)$' \| \
25372 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25378 /^X\(\/\/\)[^/].*/{
25390 s/.*/./; q'`/stamp-h$_am_stamp_count
25399 { (exit 0); exit 0; }
25401 chmod +x $CONFIG_STATUS
25402 ac_clean_files=$ac_clean_files_save
25405 # configure is writing to config.log, and then calls config.status.
25406 # config.status does its own redirection, appending to config.log.
25407 # Unfortunately, on DOS this fails, as config.log is still kept open
25408 # by configure, so config.status won't be able to write to it; its
25409 # output is simply discarded. So we exec the FD to /dev/null,
25410 # effectively closing config.log, so it can be properly (re)opened and
25411 # appended to by config.status. When coming back to configure, we
25412 # need to make the FD available again.
25413 if test "$no_create" != yes; then
25415 ac_config_status_args=
25416 test "$silent" = yes &&
25417 ac_config_status_args="$ac_config_status_args --quiet"
25419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25422 # would make configure fail if this is the last instruction.
25423 $ac_cs_success || { (exit 1); exit 1; }
25427 if test "$with_pam" = "yes"; then
25430 { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
25431 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}