2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.7.2.
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.2'
728 PACKAGE_STRING='sudo 1.7.2'
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
906 ac_precious_vars='build_alias
919 # Initialize some variables set by options.
921 ac_init_version=false
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
931 program_transform_name=s,x,x,
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
969 # If the previous option needs an argument, assign it.
970 if test -n "$ac_prev"; then
971 eval $ac_prev=\$ac_option
977 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 # Accept the important Cygnus configure options, so we can diagnose typos.
983 case $ac_dashdash$ac_option in
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 -build | --build | --buil | --bui | --bu)
993 ac_prev=build_alias ;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias=$ac_optarg ;;
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file=$ac_optarg ;;
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
1007 -datadir | --datadir | --datadi | --datad)
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir=$ac_optarg ;;
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
1019 -disable-* | --disable-*)
1020 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1023 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1024 { (exit 1); exit 1; }; }
1025 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1026 eval enable_$ac_feature=no ;;
1028 -docdir | --docdir | --docdi | --doc | --do)
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
1038 -enable-* | --enable-*)
1039 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1045 eval enable_$ac_feature=\$ac_optarg ;;
1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049 | --exec | --exe | --ex)
1050 ac_prev=exec_prefix ;;
1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053 | --exec=* | --exe=* | --ex=*)
1054 exec_prefix=$ac_optarg ;;
1056 -gas | --gas | --ga | --g)
1057 # Obsolete; use --with-gas.
1060 -help | --help | --hel | --he | -h)
1061 ac_init_help=long ;;
1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063 ac_init_help=recursive ;;
1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065 ac_init_help=short ;;
1067 -host | --host | --hos | --ho)
1068 ac_prev=host_alias ;;
1069 -host=* | --host=* | --hos=* | --ho=*)
1070 host_alias=$ac_optarg ;;
1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 htmldir=$ac_optarg ;;
1078 -includedir | --includedir | --includedi | --included | --include \
1079 | --includ | --inclu | --incl | --inc)
1080 ac_prev=includedir ;;
1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082 | --includ=* | --inclu=* | --incl=* | --inc=*)
1083 includedir=$ac_optarg ;;
1085 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088 infodir=$ac_optarg ;;
1090 -libdir | --libdir | --libdi | --libd)
1092 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093 libdir=$ac_optarg ;;
1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096 | --libexe | --libex | --libe)
1097 ac_prev=libexecdir ;;
1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099 | --libexe=* | --libex=* | --libe=*)
1100 libexecdir=$ac_optarg ;;
1102 -localedir | --localedir | --localedi | --localed | --locale)
1103 ac_prev=localedir ;;
1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105 localedir=$ac_optarg ;;
1107 -localstatedir | --localstatedir | --localstatedi | --localstated \
1108 | --localstate | --localstat | --localsta | --localst | --locals)
1109 ac_prev=localstatedir ;;
1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112 localstatedir=$ac_optarg ;;
1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117 mandir=$ac_optarg ;;
1119 -nfp | --nfp | --nf)
1120 # Obsolete; use --without-fp.
1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124 | --no-cr | --no-c | -n)
1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 | --oldin | --oldi | --old | --ol | --o)
1134 ac_prev=oldincludedir ;;
1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138 oldincludedir=$ac_optarg ;;
1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143 prefix=$ac_optarg ;;
1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 | --program-pre | --program-pr | --program-p)
1147 ac_prev=program_prefix ;;
1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150 program_prefix=$ac_optarg ;;
1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 | --program-suf | --program-su | --program-s)
1154 ac_prev=program_suffix ;;
1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157 program_suffix=$ac_optarg ;;
1159 -program-transform-name | --program-transform-name \
1160 | --program-transform-nam | --program-transform-na \
1161 | --program-transform-n | --program-transform- \
1162 | --program-transform | --program-transfor \
1163 | --program-transfo | --program-transf \
1164 | --program-trans | --program-tran \
1165 | --progr-tra | --program-tr | --program-t)
1166 ac_prev=program_transform_name ;;
1167 -program-transform-name=* | --program-transform-name=* \
1168 | --program-transform-nam=* | --program-transform-na=* \
1169 | --program-transform-n=* | --program-transform-=* \
1170 | --program-transform=* | --program-transfor=* \
1171 | --program-transfo=* | --program-transf=* \
1172 | --program-trans=* | --program-tran=* \
1173 | --progr-tra=* | --program-tr=* | --program-t=*)
1174 program_transform_name=$ac_optarg ;;
1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179 pdfdir=$ac_optarg ;;
1181 -psdir | --psdir | --psdi | --psd | --ps)
1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187 | -silent | --silent | --silen | --sile | --sil)
1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 sbindir=$ac_optarg ;;
1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198 | --sharedst | --shareds | --shared | --share | --shar \
1200 ac_prev=sharedstatedir ;;
1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 sharedstatedir=$ac_optarg ;;
1207 -site | --site | --sit)
1209 -site=* | --site=* | --sit=*)
1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215 srcdir=$ac_optarg ;;
1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218 | --syscon | --sysco | --sysc | --sys | --sy)
1219 ac_prev=sysconfdir ;;
1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222 sysconfdir=$ac_optarg ;;
1224 -target | --target | --targe | --targ | --tar | --ta | --t)
1225 ac_prev=target_alias ;;
1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227 target_alias=$ac_optarg ;;
1229 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 -version | --version | --versio | --versi | --vers | -V)
1233 ac_init_version=: ;;
1236 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid package name: $ac_package" >&2
1240 { (exit 1); exit 1; }; }
1241 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242 eval with_$ac_package=\$ac_optarg ;;
1244 -without-* | --without-*)
1245 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 { echo "$as_me: error: invalid package name: $ac_package" >&2
1249 { (exit 1); exit 1; }; }
1250 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1251 eval with_$ac_package=no ;;
1254 # Obsolete; use --with-x.
1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 | --x-incl | --x-inc | --x-in | --x-i)
1259 ac_prev=x_includes ;;
1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262 x_includes=$ac_optarg ;;
1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 ac_prev=x_libraries ;;
1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269 x_libraries=$ac_optarg ;;
1271 -*) { echo "$as_me: error: unrecognized option: $ac_option
1272 Try \`$0 --help' for more information." >&2
1273 { (exit 1); exit 1; }; }
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1280 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1281 { (exit 1); exit 1; }; }
1282 eval $ac_envvar=\$ac_optarg
1283 export $ac_envvar ;;
1286 # FIXME: should be removed in autoconf 3.0.
1287 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296 if test -n "$ac_prev"; then
1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298 { echo "$as_me: error: missing argument to $ac_option" >&2
1299 { (exit 1); exit 1; }; }
1302 # Be sure to have absolute directory names.
1303 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1308 eval ac_val=\$$ac_var
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1314 { (exit 1); exit 1; }; }
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1329 If a cross compiler is detected then cross compile mode will be used." >&2
1330 elif test "x$build_alias" != "x$host_alias"; then
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338 test "$silent" = yes && exec 6>/dev/null
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 { echo "$as_me: error: Working directory cannot be determined" >&2
1345 { (exit 1); exit 1; }; }
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 { echo "$as_me: error: pwd does not report name of working directory" >&2
1348 { (exit 1); exit 1; }; }
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$0" ||
1356 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$0" : 'X\(//\)[^/]' \| \
1358 X"$0" : 'X\(//\)$' \| \
1359 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1383 ac_srcdir_defaulted=no
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1388 { (exit 1); exit 1; }; }
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1393 { (exit 1); exit 1; }; }
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 # Report the --help message.
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1419 \`configure' configures sudo 1.7.2 to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 if test -n "$ac_init_help"; then
1483 case $ac_init_help in
1484 short | recursive ) echo "Configuration of sudo 1.7.2:";;
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --disable-authentication
1492 Do not require authentication by default
1493 --disable-root-mailer Don't run the mailer as root, run as the user
1494 --disable-setreuid Don't try to use the setreuid() function
1495 --disable-setresuid Don't try to use the setresuid() function
1496 --disable-shadow Never use shadow passwords
1497 --disable-root-sudo Don't allow root to run sudo
1498 --enable-log-host Log the hostname in the log file
1499 --enable-noargs-shell If sudo is given no arguments run a shell
1500 --enable-shell-sets-home
1501 Set $HOME to target user in shell mode
1502 --disable-path-info Print 'command not allowed' not 'command not found'
1503 --enable-env-debug Whether to enable environment debugging.
1504 --enable-gss-krb5-ccache-name
1505 Use GSS-API to set the Kerberos V cred cache name
1506 --enable-static[=PKGS] build static libraries [default=no]
1507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-fast-install[=PKGS]
1509 optimize for fast installation [default=yes]
1510 --disable-libtool-lock avoid locking (might break parallel builds)
1511 --disable-sia Disable SIA on Digital UNIX
1512 --disable-pam-session Disable PAM session support
1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1517 --with-otp-only deprecated
1518 --with-alertmail deprecated
1519 --with-CC C compiler to use
1520 --with-rpath pass -R flag in addition to -L for lib paths
1521 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1522 --with-bsm-audit enable BSM audit support
1523 --with-incpath additional places to look for include files
1524 --with-libpath additional places to look for libraries
1525 --with-libraries additional libraries to link with
1526 --with-devel add development options
1527 --with-efence link with -lefence for malloc() debugging
1528 --with-csops add CSOps standard options
1529 --without-passwd don't use passwd/shadow file for authentication
1530 --with-skey=DIR enable S/Key support
1531 --with-opie=DIR enable OPIE support
1532 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1533 --with-SecurID=DIR enable SecurID support
1534 --with-fwtk=DIR enable FWTK AuthSRV support
1535 --with-kerb4=DIR enable Kerberos IV support
1536 --with-kerb5=DIR enable Kerberos V support
1537 --with-aixauth enable AIX general authentication support
1538 --with-pam enable PAM support
1539 --with-AFS enable AFS support
1540 --with-DCE enable DCE support
1541 --with-logincap enable BSD login class support
1542 --with-bsdauth enable BSD authentication support
1543 --with-project enable Solaris project support
1544 --without-lecture don't print lecture for first-time sudoer
1545 --with-logging log via syslog, file, or both
1546 --with-logfac syslog facility to log with (default is "local2")
1547 --with-goodpri syslog priority for commands (def is "notice")
1548 --with-badpri syslog priority for failures (def is "alert")
1549 --with-logpath path to the sudo log file
1550 --with-loglen maximum length of a log file line (default is 80)
1551 --with-ignore-dot ignore '.' in the PATH
1552 --without-mail-if-no-user
1553 do not send mail if user not in sudoers
1554 --with-mail-if-no-host send mail if user in sudoers but not for this host
1555 --with-mail-if-noperms send mail if user not allowed to run command
1556 --with-mailto who should get sudo mail (default is "root")
1557 --with-mailsubject subject of sudo mail
1558 --with-passprompt default password prompt
1559 --with-badpass-message message the user sees when the password is wrong
1560 --with-fqdn expect fully qualified hosts in sudoers
1561 --with-timedir path to the sudo timestamp dir
1562 --with-sendmail set path to sendmail
1563 --without-sendmail do not send mail at all
1564 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1565 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1566 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1567 --with-umask umask with which the prog should run (default is
1569 --without-umask Preserves the umask of the user invoking sudo.
1570 --with-runas-default User to run commands as (default is "root")
1571 --with-exempt=group no passwd needed for users in this group
1572 --with-editor=path Default editor for visudo (defaults to vi)
1573 --with-env-editor Use the environment variable EDITOR for visudo
1574 --with-passwd-tries number of tries to enter password (default is 3)
1575 --with-timeout minutes before sudo asks for passwd again (def is 5
1577 --with-password-timeout passwd prompt timeout in minutes (default is 5
1579 --with-tty-tickets use a different ticket file for each tty
1580 --with-insults insult the user for entering an incorrect password
1581 --with-all-insults include all the sudo insult sets
1582 --with-classic-insults include the insults from the "classic" sudo
1583 --with-csops-insults include CSOps insults
1584 --with-hal-insults include 2001-like insults
1585 --with-goons-insults include the insults from the "Goon Show"
1586 --with-nsswitch=PATH path to nsswitch.conf
1587 --with-ldap=DIR enable LDAP support
1588 --with-ldap-conf-file path to LDAP configuration file
1589 --with-ldap-secret-file path to LDAP secret password file
1590 --with-pc-insults replace politically incorrect insults with less
1592 --with-secure-path override the user's path with a built-in one
1593 --without-interfaces don't try to read the ip addr of ether interfaces
1594 --with-stow properly handle GNU stow packaging
1595 --with-askpass=PATH Fully qualified pathname of askpass helper
1596 --with-libvas=NAME Name of the libvas shared library
1598 --with-libvas-rpath=PATH
1599 Path to look for libvas in [default=/opt/quest/lib]
1600 --with-selinux enable SELinux support
1601 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1602 --with-pic try to use only PIC/non-PIC objects [default=use
1604 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1605 --with-netsvc=PATH path to netsvc.conf
1607 Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 LIBS libraries to pass to the linker, e.g. -l<library>
1613 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1614 you have headers in a nonstandard directory <include dir>
1616 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1617 the first program found out of: `bison -y', `byacc', `yacc'.
1618 YFLAGS The list of arguments that will be passed by default to $YACC.
1619 This script will default YFLAGS to the empty string to avoid a
1620 default value of `-d' given by some make applications.
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1625 Report bugs to <http://www.sudo.ws/bugs/>.
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" || continue
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1653 .) # We are building in place.
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
1658 ac_srcdir=$srcdir$ac_dir_suffix;
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for guested configure.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1675 $SHELL "$ac_srcdir/configure" --help=recursive
1677 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679 cd "$ac_pwd" || { ac_status=$?; break; }
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1686 sudo configure 1.7.2
1687 generated by GNU Autoconf 2.61
1689 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1690 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1691 This configure script is free software; the Free Software Foundation
1692 gives unlimited permission to copy, distribute and modify it.
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1700 It was created by sudo $as_me 1.7.2, which was
1701 generated by GNU Autoconf 2.61. Invocation command line was
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir=.
1737 echo "PATH: $as_dir"
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1761 ac_must_keep_next=false
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
1779 ac_must_keep_next=false # Got value, back to normal.
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1790 -* ) ac_must_keep_next=true ;;
1793 ac_configure_args="$ac_configure_args '$ac_arg'"
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log. We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1817 # The following way of writing the cache mishandles newlines in values,
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1854 for ac_var in $ac_subst_vars
1856 eval ac_val=\$$ac_var
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 echo "$ac_var='\''$ac_val'\''"
1864 if test -n "$ac_subst_files"; then
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1871 for ac_var in $ac_subst_files
1873 eval ac_val=\$$ac_var
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 echo "$ac_var='\''$ac_val'\''"
1882 if test -s confdefs.h; then
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1908 # Predefined preprocessor variables.
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938 set x "$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE; then
1940 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1942 set x "$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
1948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1973 # Check that the precious variables saved in the cache have kept the same
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
1981 case $ac_old_set,$ac_new_set in
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
1993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1996 echo "$as_me: former value: $ac_old_val" >&2;}
1997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1998 echo "$as_me: current value: $ac_new_val" >&2;}
1999 ac_cache_corrupted=:
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg=$ac_var=$ac_new_val ;;
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2014 if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053 ac_config_headers="$ac_config_headers config.h pathnames.h"
2055 { echo "$as_me:$LINENO: Configuring Sudo version $PACKAGE_VERSION" >&5
2056 echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2128 passprompt="Password:"
2140 mailsub='*** SECURITY information for %h ***'
2141 badpass_message='Sorry, try again.'
2155 : ${SUDOERS_MODE='0440'}
2156 : ${SUDOERS_UID='0'}
2157 : ${SUDOERS_GID='0'}
2174 shadow_libs_optional=
2176 if test X"$prefix" = X"NONE"; then
2177 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2179 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2181 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2182 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2183 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2187 # Check whether --with-otp-only was given.
2188 if test "${with_otp_only+set}" = set; then
2189 withval=$with_otp_only; case $with_otp_only in
2190 yes) with_passwd="no"
2191 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2192 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2199 # Check whether --with-alertmail was given.
2200 if test "${with_alertmail+set}" = set; then
2201 withval=$with_alertmail; case $with_alertmail in
2202 *) with_mailto="$with_alertmail"
2203 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2204 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2212 # Check whether --with-CC was given.
2213 if test "${with_CC+set}" = set; then
2214 withval=$with_CC; case $with_CC in
2215 yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2216 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2217 { (exit 1); exit 1; }; }
2219 no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2220 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2221 { (exit 1); exit 1; }; }
2230 # Check whether --with-rpath was given.
2231 if test "${with_rpath+set}" = set; then
2232 withval=$with_rpath; case $with_rpath in
2234 *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2235 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2236 { (exit 1); exit 1; }; }
2243 # Check whether --with-blibpath was given.
2244 if test "${with_blibpath+set}" = set; then
2245 withval=$with_blibpath; case $with_blibpath in
2247 *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2248 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2255 # Check whether --with-bsm-audit was given.
2256 if test "${with_bsm_audit+set}" = set; then
2257 withval=$with_bsm_audit; case $with_bsm_audit in
2258 yes) cat >>confdefs.h <<\_ACEOF
2259 #define HAVE_BSM_AUDIT 1
2262 SUDO_LIBS="${SUDO_LIBS} -lbsm"
2263 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
2266 *) { { echo "$as_me:$LINENO: error: \"--with-bsm-audit does not take an argument.\"" >&5
2267 echo "$as_me: error: \"--with-bsm-audit does not take an argument.\"" >&2;}
2268 { (exit 1); exit 1; }; }
2275 # Check whether --with-incpath was given.
2276 if test "${with_incpath+set}" = set; then
2277 withval=$with_incpath; case $with_incpath in
2278 yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2279 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2280 { (exit 1); exit 1; }; }
2282 no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2283 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2284 { (exit 1); exit 1; }; }
2286 *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2287 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2288 for i in ${with_incpath}; do
2289 CPPFLAGS="${CPPFLAGS} -I${i}"
2297 # Check whether --with-libpath was given.
2298 if test "${with_libpath+set}" = set; then
2299 withval=$with_libpath; case $with_libpath in
2300 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2301 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2302 { (exit 1); exit 1; }; }
2304 no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2305 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2306 { (exit 1); exit 1; }; }
2308 *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2309 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2316 # Check whether --with-libraries was given.
2317 if test "${with_libraries+set}" = set; then
2318 withval=$with_libraries; case $with_libraries in
2319 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2320 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2321 { (exit 1); exit 1; }; }
2323 no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2324 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2325 { (exit 1); exit 1; }; }
2327 *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2328 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2335 # Check whether --with-devel was given.
2336 if test "${with_devel+set}" = set; then
2337 withval=$with_devel; case $with_devel in
2338 yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2339 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2340 PROGS="${PROGS} testsudoers"
2341 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2346 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2347 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2354 # Check whether --with-efence was given.
2355 if test "${with_efence+set}" = set; then
2356 withval=$with_efence; case $with_efence in
2357 yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2358 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2359 LIBS="${LIBS} -lefence"
2360 if test -f /usr/local/lib/libefence.a; then
2361 with_libpath="${with_libpath} /usr/local/lib"
2365 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2366 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2373 # Check whether --with-csops was given.
2374 if test "${with_csops+set}" = set; then
2375 withval=$with_csops; case $with_csops in
2376 yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2377 echo "$as_me: Adding CSOps standard options" >&6;}
2381 with_classic_insults=yes
2382 with_csops_insults=yes
2385 : ${mansectform='5'}
2388 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2389 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2396 # Check whether --with-passwd was given.
2397 if test "${with_passwd+set}" = set; then
2398 withval=$with_passwd; case $with_passwd in
2399 yes|no) { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2400 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2401 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2402 echo "${ECHO_T}$with_passwd" >&6; }
2404 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2406 *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2407 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2408 { (exit 1); exit 1; }; }
2415 # Check whether --with-skey was given.
2416 if test "${with_skey+set}" = set; then
2417 withval=$with_skey; case $with_skey in
2420 *) cat >>confdefs.h <<\_ACEOF
2424 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2425 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2426 { echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6; }
2428 AUTH_REG="$AUTH_REG S/Key"
2435 # Check whether --with-opie was given.
2436 if test "${with_opie+set}" = set; then
2437 withval=$with_opie; case $with_opie in
2440 *) cat >>confdefs.h <<\_ACEOF
2444 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2445 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2446 { echo "$as_me:$LINENO: result: yes" >&5
2447 echo "${ECHO_T}yes" >&6; }
2448 AUTH_REG="$AUTH_REG NRL_OPIE"
2455 # Check whether --with-long-otp-prompt was given.
2456 if test "${with_long_otp_prompt+set}" = set; then
2457 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2458 yes) cat >>confdefs.h <<\_ACEOF
2459 #define LONG_OTP_PROMPT 1
2462 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2463 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2464 { echo "$as_me:$LINENO: result: yes" >&5
2465 echo "${ECHO_T}yes" >&6; }
2468 no) long_otp_prompt=off
2470 *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2471 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2472 { (exit 1); exit 1; }; }
2479 # Check whether --with-SecurID was given.
2480 if test "${with_SecurID+set}" = set; then
2481 withval=$with_SecurID; case $with_SecurID in
2482 no) with_SecurID="";;
2483 *) cat >>confdefs.h <<\_ACEOF
2484 #define HAVE_SECURID 1
2487 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2488 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2489 { echo "$as_me:$LINENO: result: yes" >&5
2490 echo "${ECHO_T}yes" >&6; }
2491 AUTH_EXCL="$AUTH_EXCL SecurID"
2498 # Check whether --with-fwtk was given.
2499 if test "${with_fwtk+set}" = set; then
2500 withval=$with_fwtk; case $with_fwtk in
2502 *) cat >>confdefs.h <<\_ACEOF
2506 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2507 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2508 { echo "$as_me:$LINENO: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6; }
2510 AUTH_EXCL="$AUTH_EXCL FWTK"
2517 # Check whether --with-kerb4 was given.
2518 if test "${with_kerb4+set}" = set; then
2519 withval=$with_kerb4; case $with_kerb4 in
2521 *) { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2522 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2523 { echo "$as_me:$LINENO: result: yes" >&5
2524 echo "${ECHO_T}yes" >&6; }
2525 AUTH_REG="$AUTH_REG kerb4"
2532 # Check whether --with-kerb5 was given.
2533 if test "${with_kerb5+set}" = set; then
2534 withval=$with_kerb5; case $with_kerb5 in
2536 *) { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2537 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2538 { echo "$as_me:$LINENO: result: yes" >&5
2539 echo "${ECHO_T}yes" >&6; }
2540 AUTH_REG="$AUTH_REG kerb5"
2547 # Check whether --with-aixauth was given.
2548 if test "${with_aixauth+set}" = set; then
2549 withval=$with_aixauth; case $with_aixauth in
2550 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2552 *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2553 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2554 { (exit 1); exit 1; }; }
2561 # Check whether --with-pam was given.
2562 if test "${with_pam+set}" = set; then
2563 withval=$with_pam; case $with_pam in
2564 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
2566 *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2567 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2568 { (exit 1); exit 1; }; }
2575 # Check whether --with-AFS was given.
2576 if test "${with_AFS+set}" = set; then
2577 withval=$with_AFS; case $with_AFS in
2578 yes) cat >>confdefs.h <<\_ACEOF
2582 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2583 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2584 { echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6; }
2586 AUTH_REG="$AUTH_REG AFS"
2589 *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2590 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2591 { (exit 1); exit 1; }; }
2598 # Check whether --with-DCE was given.
2599 if test "${with_DCE+set}" = set; then
2600 withval=$with_DCE; case $with_DCE in
2601 yes) cat >>confdefs.h <<\_ACEOF
2605 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2606 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2607 { echo "$as_me:$LINENO: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6; }
2609 AUTH_REG="$AUTH_REG DCE"
2612 *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2613 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2614 { (exit 1); exit 1; }; }
2621 # Check whether --with-logincap was given.
2622 if test "${with_logincap+set}" = set; then
2623 withval=$with_logincap; case $with_logincap in
2625 *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2626 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2627 { (exit 1); exit 1; }; }
2634 # Check whether --with-bsdauth was given.
2635 if test "${with_bsdauth+set}" = set; then
2636 withval=$with_bsdauth; case $with_bsdauth in
2637 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2639 *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2640 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2641 { (exit 1); exit 1; }; }
2648 # Check whether --with-project was given.
2649 if test "${with_project+set}" = set; then
2650 withval=$with_project; case $with_project in
2653 *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2654 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2655 { (exit 1); exit 1; }; }
2661 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2662 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2664 # Check whether --with-lecture was given.
2665 if test "${with_lecture+set}" = set; then
2666 withval=$with_lecture; case $with_lecture in
2667 yes|short|always) lecture=once
2669 no|none|never) lecture=never
2671 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2672 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2673 { (exit 1); exit 1; }; }
2678 if test "$lecture" = "once"; then
2679 { echo "$as_me:$LINENO: result: yes" >&5
2680 echo "${ECHO_T}yes" >&6; }
2682 cat >>confdefs.h <<\_ACEOF
2683 #define NO_LECTURE 1
2686 { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2690 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2691 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2693 # Check whether --with-logging was given.
2694 if test "${with_logging+set}" = set; then
2695 withval=$with_logging; case $with_logging in
2696 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2697 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2698 { (exit 1); exit 1; }; }
2700 no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2701 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2702 { (exit 1); exit 1; }; }
2704 syslog) cat >>confdefs.h <<\_ACEOF
2705 #define LOGGING SLOG_SYSLOG
2708 { echo "$as_me:$LINENO: result: syslog" >&5
2709 echo "${ECHO_T}syslog" >&6; }
2711 file) cat >>confdefs.h <<\_ACEOF
2712 #define LOGGING SLOG_FILE
2715 { echo "$as_me:$LINENO: result: file" >&5
2716 echo "${ECHO_T}file" >&6; }
2718 both) cat >>confdefs.h <<\_ACEOF
2719 #define LOGGING SLOG_BOTH
2722 { echo "$as_me:$LINENO: result: both" >&5
2723 echo "${ECHO_T}both" >&6; }
2725 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2726 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2727 { (exit 1); exit 1; }; }
2731 cat >>confdefs.h <<\_ACEOF
2732 #define LOGGING SLOG_SYSLOG
2734 { echo "$as_me:$LINENO: result: syslog" >&5
2735 echo "${ECHO_T}syslog" >&6; }
2739 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2740 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2742 # Check whether --with-logfac was given.
2743 if test "${with_logfac+set}" = set; then
2744 withval=$with_logfac; case $with_logfac in
2745 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2746 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2747 { (exit 1); exit 1; }; }
2749 no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2750 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2751 { (exit 1); exit 1; }; }
2753 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
2755 *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2756 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2757 { (exit 1); exit 1; }; }
2763 cat >>confdefs.h <<_ACEOF
2764 #define LOGFAC "$logfac"
2767 { echo "$as_me:$LINENO: result: $logfac" >&5
2768 echo "${ECHO_T}$logfac" >&6; }
2770 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2771 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2773 # Check whether --with-goodpri was given.
2774 if test "${with_goodpri+set}" = set; then
2775 withval=$with_goodpri; case $with_goodpri in
2776 yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2777 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2778 { (exit 1); exit 1; }; }
2780 no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2781 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2782 { (exit 1); exit 1; }; }
2784 alert|crit|debug|emerg|err|info|notice|warning)
2785 goodpri=$with_goodpri
2787 *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2788 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2789 { (exit 1); exit 1; }; }
2795 cat >>confdefs.h <<_ACEOF
2796 #define PRI_SUCCESS "$goodpri"
2799 { echo "$as_me:$LINENO: result: $goodpri" >&5
2800 echo "${ECHO_T}$goodpri" >&6; }
2802 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2803 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2805 # Check whether --with-badpri was given.
2806 if test "${with_badpri+set}" = set; then
2807 withval=$with_badpri; case $with_badpri in
2808 yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2809 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2810 { (exit 1); exit 1; }; }
2812 no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2813 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2814 { (exit 1); exit 1; }; }
2816 alert|crit|debug|emerg|err|info|notice|warning)
2819 *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2820 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2821 { (exit 1); exit 1; }; }
2827 cat >>confdefs.h <<_ACEOF
2828 #define PRI_FAILURE "$badpri"
2831 { echo "$as_me:$LINENO: result: $badpri" >&5
2832 echo "${ECHO_T}$badpri" >&6; }
2835 # Check whether --with-logpath was given.
2836 if test "${with_logpath+set}" = set; then
2837 withval=$with_logpath; case $with_logpath in
2838 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2839 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2840 { (exit 1); exit 1; }; }
2842 no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2843 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2844 { (exit 1); exit 1; }; }
2850 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2851 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2853 # Check whether --with-loglen was given.
2854 if test "${with_loglen+set}" = set; then
2855 withval=$with_loglen; case $with_loglen in
2856 yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2857 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2858 { (exit 1); exit 1; }; }
2860 no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2861 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2862 { (exit 1); exit 1; }; }
2864 [0-9]*) loglen=$with_loglen
2866 *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2867 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2868 { (exit 1); exit 1; }; }
2874 cat >>confdefs.h <<_ACEOF
2875 #define MAXLOGFILELEN $loglen
2878 { echo "$as_me:$LINENO: result: $loglen" >&5
2879 echo "${ECHO_T}$loglen" >&6; }
2881 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2882 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2884 # Check whether --with-ignore-dot was given.
2885 if test "${with_ignore_dot+set}" = set; then
2886 withval=$with_ignore_dot; case $with_ignore_dot in
2891 *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2892 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2893 { (exit 1); exit 1; }; }
2898 if test "$ignore_dot" = "on"; then
2899 cat >>confdefs.h <<\_ACEOF
2900 #define IGNORE_DOT_PATH 1
2903 { echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6; }
2906 { echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6; }
2910 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2911 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2913 # Check whether --with-mail-if-no-user was given.
2914 if test "${with_mail_if_no_user+set}" = set; then
2915 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2916 yes) mail_no_user=on
2918 no) mail_no_user=off
2920 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2921 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2922 { (exit 1); exit 1; }; }
2927 if test "$mail_no_user" = "on"; then
2928 cat >>confdefs.h <<\_ACEOF
2929 #define SEND_MAIL_WHEN_NO_USER 1
2932 { echo "$as_me:$LINENO: result: yes" >&5
2933 echo "${ECHO_T}yes" >&6; }
2935 { echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6; }
2939 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2940 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2942 # Check whether --with-mail-if-no-host was given.
2943 if test "${with_mail_if_no_host+set}" = set; then
2944 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2945 yes) mail_no_host=on
2947 no) mail_no_host=off
2949 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2950 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2951 { (exit 1); exit 1; }; }
2956 if test "$mail_no_host" = "on"; then
2957 cat >>confdefs.h <<\_ACEOF
2958 #define SEND_MAIL_WHEN_NO_HOST 1
2961 { echo "$as_me:$LINENO: result: yes" >&5
2962 echo "${ECHO_T}yes" >&6; }
2964 { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2968 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2969 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2971 # Check whether --with-mail-if-noperms was given.
2972 if test "${with_mail_if_noperms+set}" = set; then
2973 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2974 yes) mail_noperms=on
2976 no) mail_noperms=off
2978 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2979 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2980 { (exit 1); exit 1; }; }
2985 if test "$mail_noperms" = "on"; then
2986 cat >>confdefs.h <<\_ACEOF
2987 #define SEND_MAIL_WHEN_NOT_OK 1
2990 { echo "$as_me:$LINENO: result: yes" >&5
2991 echo "${ECHO_T}yes" >&6; }
2993 { echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6; }
2997 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2998 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
3000 # Check whether --with-mailto was given.
3001 if test "${with_mailto+set}" = set; then
3002 withval=$with_mailto; case $with_mailto in
3003 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
3004 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
3005 { (exit 1); exit 1; }; }
3007 no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
3008 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
3009 { (exit 1); exit 1; }; }
3011 *) mailto=$with_mailto
3017 cat >>confdefs.h <<_ACEOF
3018 #define MAILTO "$mailto"
3021 { echo "$as_me:$LINENO: result: $mailto" >&5
3022 echo "${ECHO_T}$mailto" >&6; }
3025 # Check whether --with-mailsubject was given.
3026 if test "${with_mailsubject+set}" = set; then
3027 withval=$with_mailsubject; case $with_mailsubject in
3028 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
3029 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
3030 { (exit 1); exit 1; }; }
3032 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
3033 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
3035 *) mailsub="$with_mailsubject"
3036 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
3037 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
3038 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
3039 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
3045 cat >>confdefs.h <<_ACEOF
3046 #define MAILSUBJECT "$mailsub"
3050 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
3051 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
3053 # Check whether --with-passprompt was given.
3054 if test "${with_passprompt+set}" = set; then
3055 withval=$with_passprompt; case $with_passprompt in
3056 yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
3057 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
3058 { (exit 1); exit 1; }; }
3060 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
3061 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
3063 *) passprompt="$with_passprompt"
3067 { echo "$as_me:$LINENO: result: $passprompt" >&5
3068 echo "${ECHO_T}$passprompt" >&6; }
3070 cat >>confdefs.h <<_ACEOF
3071 #define PASSPROMPT "$passprompt"
3075 { echo "$as_me:$LINENO: checking for bad password message" >&5
3076 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3078 # Check whether --with-badpass-message was given.
3079 if test "${with_badpass_message+set}" = set; then
3080 withval=$with_badpass_message; case $with_badpass_message in
3081 yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3082 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3083 { (exit 1); exit 1; }; }
3085 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3086 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3088 *) badpass_message="$with_badpass_message"
3094 cat >>confdefs.h <<_ACEOF
3095 #define INCORRECT_PASSWORD "$badpass_message"
3098 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3099 echo "${ECHO_T}$badpass_message" >&6; }
3101 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3102 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3104 # Check whether --with-fqdn was given.
3105 if test "${with_fqdn+set}" = set; then
3106 withval=$with_fqdn; case $with_fqdn in
3111 *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3112 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3113 { (exit 1); exit 1; }; }
3118 if test "$fqdn" = "on"; then
3119 cat >>confdefs.h <<\_ACEOF
3123 { echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6; }
3126 { echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6; }
3131 # Check whether --with-timedir was given.
3132 if test "${with_timedir+set}" = set; then
3133 withval=$with_timedir; case $with_timedir in
3134 yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3135 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3136 { (exit 1); exit 1; }; }
3138 no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3139 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3140 { (exit 1); exit 1; }; }
3147 # Check whether --with-sendmail was given.
3148 if test "${with_sendmail+set}" = set; then
3149 withval=$with_sendmail; case $with_sendmail in
3150 yes) with_sendmail=""
3153 *) cat >>confdefs.h <<EOF
3154 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3163 # Check whether --with-sudoers-mode was given.
3164 if test "${with_sudoers_mode+set}" = set; then
3165 withval=$with_sudoers_mode; case $with_sudoers_mode in
3166 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3167 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3168 { (exit 1); exit 1; }; }
3170 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3171 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3172 { (exit 1); exit 1; }; }
3174 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
3176 0*) SUDOERS_MODE=$with_sudoers_mode
3178 *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3179 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3180 { (exit 1); exit 1; }; }
3187 # Check whether --with-sudoers-uid was given.
3188 if test "${with_sudoers_uid+set}" = set; then
3189 withval=$with_sudoers_uid; case $with_sudoers_uid in
3190 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3191 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3192 { (exit 1); exit 1; }; }
3194 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3195 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3196 { (exit 1); exit 1; }; }
3198 [0-9]*) SUDOERS_UID=$with_sudoers_uid
3200 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3201 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3202 { (exit 1); exit 1; }; }
3209 # Check whether --with-sudoers-gid was given.
3210 if test "${with_sudoers_gid+set}" = set; then
3211 withval=$with_sudoers_gid; case $with_sudoers_gid in
3212 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3213 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3214 { (exit 1); exit 1; }; }
3216 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3217 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3218 { (exit 1); exit 1; }; }
3220 [0-9]*) SUDOERS_GID=$with_sudoers_gid
3222 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3223 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3224 { (exit 1); exit 1; }; }
3230 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3231 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3233 # Check whether --with-umask was given.
3234 if test "${with_umask+set}" = set; then
3235 withval=$with_umask; case $with_umask in
3236 yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3237 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3238 { (exit 1); exit 1; }; }
3242 [0-9]*) sudo_umask=$with_umask
3244 *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3245 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3246 { (exit 1); exit 1; }; }
3252 cat >>confdefs.h <<_ACEOF
3253 #define SUDO_UMASK $sudo_umask
3256 if test "$sudo_umask" = "0777"; then
3257 { echo "$as_me:$LINENO: result: user" >&5
3258 echo "${ECHO_T}user" >&6; }
3260 { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3261 echo "${ECHO_T}$sudo_umask" >&6; }
3264 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3265 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3267 # Check whether --with-runas-default was given.
3268 if test "${with_runas_default+set}" = set; then
3269 withval=$with_runas_default; case $with_runas_default in
3270 yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3271 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3272 { (exit 1); exit 1; }; }
3274 no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3275 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3276 { (exit 1); exit 1; }; }
3278 *) runas_default="$with_runas_default"
3284 cat >>confdefs.h <<_ACEOF
3285 #define RUNAS_DEFAULT "$runas_default"
3288 { echo "$as_me:$LINENO: result: $runas_default" >&5
3289 echo "${ECHO_T}$runas_default" >&6; }
3292 # Check whether --with-exempt was given.
3293 if test "${with_exempt+set}" = set; then
3294 withval=$with_exempt; case $with_exempt in
3295 yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3296 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3297 { (exit 1); exit 1; }; }
3299 no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3300 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3301 { (exit 1); exit 1; }; }
3304 cat >>confdefs.h <<_ACEOF
3305 #define EXEMPTGROUP "$with_exempt"
3308 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3309 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3310 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3311 echo "${ECHO_T}$with_exempt" >&6; }
3317 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3318 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3320 # Check whether --with-editor was given.
3321 if test "${with_editor+set}" = set; then
3322 withval=$with_editor; case $with_editor in
3323 yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3324 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3325 { (exit 1); exit 1; }; }
3327 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3328 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3329 { (exit 1); exit 1; }; }
3332 cat >>confdefs.h <<_ACEOF
3333 #define EDITOR "$with_editor"
3336 { echo "$as_me:$LINENO: result: $with_editor" >&5
3337 echo "${ECHO_T}$with_editor" >&6; }
3341 cat >>confdefs.h <<\_ACEOF
3342 #define EDITOR _PATH_VI
3344 { echo "$as_me:$LINENO: result: vi" >&5
3345 echo "${ECHO_T}vi" >&6; }
3349 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3350 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3352 # Check whether --with-env-editor was given.
3353 if test "${with_env_editor+set}" = set; then
3354 withval=$with_env_editor; case $with_env_editor in
3359 *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3360 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3361 { (exit 1); exit 1; }; }
3366 if test "$env_editor" = "on"; then
3367 cat >>confdefs.h <<\_ACEOF
3368 #define ENV_EDITOR 1
3371 { echo "$as_me:$LINENO: result: yes" >&5
3372 echo "${ECHO_T}yes" >&6; }
3374 { echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6; }
3378 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3379 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3381 # Check whether --with-passwd-tries was given.
3382 if test "${with_passwd_tries+set}" = set; then
3383 withval=$with_passwd_tries; case $with_passwd_tries in
3385 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3386 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3387 { (exit 1); exit 1; }; }
3389 [1-9]*) passwd_tries=$with_passwd_tries
3391 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3392 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3393 { (exit 1); exit 1; }; }
3399 cat >>confdefs.h <<_ACEOF
3400 #define TRIES_FOR_PASSWORD $passwd_tries
3403 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3404 echo "${ECHO_T}$passwd_tries" >&6; }
3406 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3407 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3409 # Check whether --with-timeout was given.
3410 if test "${with_timeout+set}" = set; then
3411 withval=$with_timeout; case $with_timeout in
3415 [0-9]*) timeout=$with_timeout
3417 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3418 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3419 { (exit 1); exit 1; }; }
3425 cat >>confdefs.h <<_ACEOF
3426 #define TIMEOUT $timeout
3429 { echo "$as_me:$LINENO: result: $timeout" >&5
3430 echo "${ECHO_T}$timeout" >&6; }
3432 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3433 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3435 # Check whether --with-password-timeout was given.
3436 if test "${with_password_timeout+set}" = set; then
3437 withval=$with_password_timeout; case $with_password_timeout in
3439 no) password_timeout=0
3441 [0-9]*) password_timeout=$with_password_timeout
3443 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3444 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3445 { (exit 1); exit 1; }; }
3451 cat >>confdefs.h <<_ACEOF
3452 #define PASSWORD_TIMEOUT $password_timeout
3455 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3456 echo "${ECHO_T}$password_timeout" >&6; }
3458 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3459 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3461 # Check whether --with-tty-tickets was given.
3462 if test "${with_tty_tickets+set}" = set; then
3463 withval=$with_tty_tickets; case $with_tty_tickets in
3468 *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3469 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3470 { (exit 1); exit 1; }; }
3475 if test "$tty_tickets" = "on"; then
3476 cat >>confdefs.h <<\_ACEOF
3477 #define USE_TTY_TICKETS 1
3480 { echo "$as_me:$LINENO: result: yes" >&5
3481 echo "${ECHO_T}yes" >&6; }
3483 { echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6; }
3487 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3488 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3490 # Check whether --with-insults was given.
3491 if test "${with_insults+set}" = set; then
3492 withval=$with_insults; case $with_insults in
3494 with_classic_insults=yes
3495 with_csops_insults=yes
3499 *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3500 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3501 { (exit 1); exit 1; }; }
3506 if test "$insults" = "on"; then
3507 cat >>confdefs.h <<\_ACEOF
3508 #define USE_INSULTS 1
3511 { echo "$as_me:$LINENO: result: yes" >&5
3512 echo "${ECHO_T}yes" >&6; }
3514 { echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6; }
3519 # Check whether --with-all-insults was given.
3520 if test "${with_all_insults+set}" = set; then
3521 withval=$with_all_insults; case $with_all_insults in
3522 yes) with_classic_insults=yes
3523 with_csops_insults=yes
3524 with_hal_insults=yes
3525 with_goons_insults=yes
3528 *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3529 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3530 { (exit 1); exit 1; }; }
3537 # Check whether --with-classic-insults was given.
3538 if test "${with_classic_insults+set}" = set; then
3539 withval=$with_classic_insults; case $with_classic_insults in
3540 yes) cat >>confdefs.h <<\_ACEOF
3541 #define CLASSIC_INSULTS 1
3546 *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3547 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3548 { (exit 1); exit 1; }; }
3555 # Check whether --with-csops-insults was given.
3556 if test "${with_csops_insults+set}" = set; then
3557 withval=$with_csops_insults; case $with_csops_insults in
3558 yes) cat >>confdefs.h <<\_ACEOF
3559 #define CSOPS_INSULTS 1
3564 *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3565 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3566 { (exit 1); exit 1; }; }
3573 # Check whether --with-hal-insults was given.
3574 if test "${with_hal_insults+set}" = set; then
3575 withval=$with_hal_insults; case $with_hal_insults in
3576 yes) cat >>confdefs.h <<\_ACEOF
3577 #define HAL_INSULTS 1
3582 *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3583 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3584 { (exit 1); exit 1; }; }
3591 # Check whether --with-goons-insults was given.
3592 if test "${with_goons_insults+set}" = set; then
3593 withval=$with_goons_insults; case $with_goons_insults in
3594 yes) cat >>confdefs.h <<\_ACEOF
3595 #define GOONS_INSULTS 1
3600 *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3601 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3602 { (exit 1); exit 1; }; }
3609 # Check whether --with-nsswitch was given.
3610 if test "${with_nsswitch+set}" = set; then
3611 withval=$with_nsswitch; case $with_nsswitch in
3613 yes) with_nsswitch="/etc/nsswitch.conf"
3621 # Check whether --with-ldap was given.
3622 if test "${with_ldap+set}" = set; then
3623 withval=$with_ldap; case $with_ldap in
3625 *) cat >>confdefs.h <<\_ACEOF
3629 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3630 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3631 { echo "$as_me:$LINENO: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6; }
3639 # Check whether --with-ldap-conf-file was given.
3640 if test "${with_ldap_conf_file+set}" = set; then
3641 withval=$with_ldap_conf_file;
3644 cat >>confdefs.h <<EOF
3645 #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
3648 ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
3651 # Check whether --with-ldap-secret-file was given.
3652 if test "${with_ldap_secret_file+set}" = set; then
3653 withval=$with_ldap_secret_file;
3656 cat >>confdefs.h <<EOF
3657 #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
3660 ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
3663 # Check whether --with-pc-insults was given.
3664 if test "${with_pc_insults+set}" = set; then
3665 withval=$with_pc_insults; case $with_pc_insults in
3666 yes) cat >>confdefs.h <<\_ACEOF
3667 #define PC_INSULTS 1
3672 *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3673 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3674 { (exit 1); exit 1; }; }
3680 if test "$insults" = "on"; then
3681 { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3682 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3684 test "$with_goons_insults" = "yes" && i="goons ${i}"
3685 test "$with_hal_insults" = "yes" && i="hal ${i}"
3686 test "$with_csops_insults" = "yes" && i="csops ${i}"
3687 test "$with_classic_insults" = "yes" && i="classic ${i}"
3688 { echo "$as_me:$LINENO: result: $i" >&5
3689 echo "${ECHO_T}$i" >&6; }
3692 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3693 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3695 # Check whether --with-secure-path was given.
3696 if test "${with_secure_path+set}" = set; then
3697 withval=$with_secure_path; case $with_secure_path in
3698 yes) cat >>confdefs.h <<_ACEOF
3699 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3702 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3703 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3705 no) { echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6; }
3708 *) cat >>confdefs.h <<_ACEOF
3709 #define SECURE_PATH "$with_secure_path"
3712 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3713 echo "${ECHO_T}$with_secure_path" >&6; }
3717 { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3722 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3723 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3725 # Check whether --with-interfaces was given.
3726 if test "${with_interfaces+set}" = set; then
3727 withval=$with_interfaces; case $with_interfaces in
3728 yes) { echo "$as_me:$LINENO: result: yes" >&5
3729 echo "${ECHO_T}yes" >&6; }
3731 no) cat >>confdefs.h <<\_ACEOF
3732 #define STUB_LOAD_INTERFACES 1
3735 { echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6; }
3738 *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3739 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3740 { (exit 1); exit 1; }; }
3744 { echo "$as_me:$LINENO: result: yes" >&5
3745 echo "${ECHO_T}yes" >&6; }
3749 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3750 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3752 # Check whether --with-stow was given.
3753 if test "${with_stow+set}" = set; then
3754 withval=$with_stow; case $with_stow in
3755 yes) { echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6; }
3757 cat >>confdefs.h <<\_ACEOF
3762 no) { echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6; }
3765 *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3766 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3767 { (exit 1); exit 1; }; }
3771 { echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6; }
3776 { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
3777 echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
3779 # Check whether --with-askpass was given.
3780 if test "${with_askpass+set}" = set; then
3781 withval=$with_askpass; case $with_askpass in
3782 yes) { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
3783 echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
3784 { (exit 1); exit 1; }; }
3788 cat >>confdefs.h <<_ACEOF
3789 #define _PATH_SUDO_ASKPASS "$with_askpass"
3795 { echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6; }
3801 # Check whether --with-libvas was given.
3802 if test "${with_libvas+set}" = set; then
3803 withval=$with_libvas; case $with_libvas in
3804 yes) with_libvas=libvas.so
3808 cat >>confdefs.h <<_ACEOF
3809 #define LIBVAS_SO "$with_with_libvas"
3814 if test X"$with_libvas" != X"no"; then
3816 cat >>confdefs.h <<_ACEOF
3817 #define LIBVAS_SO "$with_libvas"
3820 cat >>confdefs.h <<\_ACEOF
3821 #define USING_NONUNIX_GROUPS 1
3824 NONUNIX_GROUPS_IMPL="vasgroups.o"
3826 # Check whether --with-libvas-rpath was given.
3827 if test "${with_libvas_rpath+set}" = set; then
3828 withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
3830 LIBVAS_RPATH=/opt/quest/lib
3839 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3840 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3841 # Check whether --enable-authentication was given.
3842 if test "${enable_authentication+set}" = set; then
3843 enableval=$enable_authentication; case "$enableval" in
3844 yes) { echo "$as_me:$LINENO: result: yes" >&5
3845 echo "${ECHO_T}yes" >&6; }
3847 no) { echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6; }
3849 cat >>confdefs.h <<\_ACEOF
3850 #define NO_AUTHENTICATION 1
3854 *) { echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6; }
3856 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3857 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3862 { echo "$as_me:$LINENO: result: yes" >&5
3863 echo "${ECHO_T}yes" >&6; }
3867 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3868 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3869 # Check whether --enable-root-mailer was given.
3870 if test "${enable_root_mailer+set}" = set; then
3871 enableval=$enable_root_mailer; case "$enableval" in
3872 yes) { echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6; }
3875 no) { echo "$as_me:$LINENO: result: yes" >&5
3876 echo "${ECHO_T}yes" >&6; }
3877 cat >>confdefs.h <<\_ACEOF
3878 #define NO_ROOT_MAILER 1
3882 *) { echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6; }
3884 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3885 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3895 # Check whether --enable-setreuid was given.
3896 if test "${enable_setreuid+set}" = set; then
3897 enableval=$enable_setreuid; case "$enableval" in
3898 no) SKIP_SETREUID=yes
3906 # Check whether --enable-setresuid was given.
3907 if test "${enable_setresuid+set}" = set; then
3908 enableval=$enable_setresuid; case "$enableval" in
3909 no) SKIP_SETRESUID=yes
3917 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3918 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3919 # Check whether --enable-shadow was given.
3920 if test "${enable_shadow+set}" = set; then
3921 enableval=$enable_shadow; case "$enableval" in
3922 yes) { echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6; }
3925 no) { echo "$as_me:$LINENO: result: yes" >&5
3926 echo "${ECHO_T}yes" >&6; }
3929 *) { echo "$as_me:$LINENO: result: no" >&5
3930 echo "${ECHO_T}no" >&6; }
3931 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3932 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3937 { echo "$as_me:$LINENO: result: no" >&5
3938 echo "${ECHO_T}no" >&6; }
3942 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3943 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3944 # Check whether --enable-root-sudo was given.
3945 if test "${enable_root_sudo+set}" = set; then
3946 enableval=$enable_root_sudo; case "$enableval" in
3947 yes) { echo "$as_me:$LINENO: result: yes" >&5
3948 echo "${ECHO_T}yes" >&6; }
3950 no) cat >>confdefs.h <<\_ACEOF
3951 #define NO_ROOT_SUDO 1
3954 { echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6; }
3958 *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3959 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3960 { (exit 1); exit 1; }; }
3965 { echo "$as_me:$LINENO: result: yes" >&5
3966 echo "${ECHO_T}yes" >&6; }
3970 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3971 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3972 # Check whether --enable-log-host was given.
3973 if test "${enable_log_host+set}" = set; then
3974 enableval=$enable_log_host; case "$enableval" in
3975 yes) { echo "$as_me:$LINENO: result: yes" >&5
3976 echo "${ECHO_T}yes" >&6; }
3977 cat >>confdefs.h <<\_ACEOF
3978 #define HOST_IN_LOG 1
3982 no) { echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6; }
3985 *) { echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6; }
3987 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3988 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3993 { echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6; }
3998 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3999 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
4000 # Check whether --enable-noargs-shell was given.
4001 if test "${enable_noargs_shell+set}" = set; then
4002 enableval=$enable_noargs_shell; case "$enableval" in
4003 yes) { echo "$as_me:$LINENO: result: yes" >&5
4004 echo "${ECHO_T}yes" >&6; }
4005 cat >>confdefs.h <<\_ACEOF
4006 #define SHELL_IF_NO_ARGS 1
4010 no) { echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6; }
4013 *) { echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6; }
4015 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
4016 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
4021 { echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6; }
4026 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
4027 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
4028 # Check whether --enable-shell-sets-home was given.
4029 if test "${enable_shell_sets_home+set}" = set; then
4030 enableval=$enable_shell_sets_home; case "$enableval" in
4031 yes) { echo "$as_me:$LINENO: result: yes" >&5
4032 echo "${ECHO_T}yes" >&6; }
4033 cat >>confdefs.h <<\_ACEOF
4034 #define SHELL_SETS_HOME 1
4038 no) { echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6; }
4041 *) { echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6; }
4043 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
4044 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
4049 { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4054 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
4055 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
4056 # Check whether --enable-path_info was given.
4057 if test "${enable_path_info+set}" = set; then
4058 enableval=$enable_path_info; case "$enableval" in
4059 yes) { echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6; }
4062 no) { echo "$as_me:$LINENO: result: yes" >&5
4063 echo "${ECHO_T}yes" >&6; }
4064 cat >>confdefs.h <<\_ACEOF
4065 #define DONT_LEAK_PATH_INFO 1
4070 *) { echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6; }
4072 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
4073 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
4078 { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4083 { echo "$as_me:$LINENO: checking whether to enable environment debugging" >&5
4084 echo $ECHO_N "checking whether to enable environment debugging... $ECHO_C" >&6; }
4085 # Check whether --enable-env_debug was given.
4086 if test "${enable_env_debug+set}" = set; then
4087 enableval=$enable_env_debug; case "$enableval" in
4088 yes) { echo "$as_me:$LINENO: result: yes" >&5
4089 echo "${ECHO_T}yes" >&6; }
4090 cat >>confdefs.h <<\_ACEOF
4095 no) { echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6; }
4098 *) { echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6; }
4100 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
4101 echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
4106 { echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6; }
4112 # Check whether --with-selinux was given.
4113 if test "${with_selinux+set}" = set; then
4114 withval=$with_selinux; case $with_selinux in
4115 yes) SELINUX_USAGE="[-r role] [-t type] "
4116 cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_SELINUX 1
4120 SUDO_LIBS="${SUDO_LIBS} -lselinux"
4121 SUDO_OBJS="${SUDO_OBJS} selinux.o"
4122 PROGS="${PROGS} sesh"
4127 *) { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
4128 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
4129 { (exit 1); exit 1; }; }
4135 # Check whether --enable-gss_krb5_ccache_name was given.
4136 if test "${enable_gss_krb5_ccache_name+set}" = set; then
4137 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
4139 check_gss_krb5_ccache_name=no
4143 # Extract the first word of "egrep", so it can be a program name with args.
4144 set dummy egrep; ac_word=$2
4145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4147 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 if test -n "$EGREPPROG"; then
4151 ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160 ac_cv_prog_EGREPPROG="egrep"
4161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 EGREPPROG=$ac_cv_prog_EGREPPROG
4171 if test -n "$EGREPPROG"; then
4172 { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
4173 echo "${ECHO_T}$EGREPPROG" >&6; }
4175 { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4180 if test -z "$EGREPPROG"; then
4181 { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4182 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4183 { (exit 1); exit 1; }; }
4186 if test "$with_devel" != "yes"; then
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4200 if test "${ac_cv_prog_CC+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 if test -n "$CC"; then
4204 ac_cv_prog_CC="$CC" # Let the user override the test.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 if test -n "$CC"; then
4225 { echo "$as_me:$LINENO: result: $CC" >&5
4226 echo "${ECHO_T}$CC" >&6; }
4228 { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4234 if test -z "$ac_cv_prog_CC"; then
4236 # Extract the first word of "gcc", so it can be a program name with args.
4237 set dummy gcc; ac_word=$2
4238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 if test -n "$ac_ct_CC"; then
4244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_ac_ct_CC="gcc"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4264 if test -n "$ac_ct_CC"; then
4265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4266 echo "${ECHO_T}$ac_ct_CC" >&6; }
4268 { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4272 if test "x$ac_ct_CC" = x; then
4275 case $cross_compiling:$ac_tool_warned in
4277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4278 whose name does not start with the host triplet. If you think this
4279 configuration is useful to you, please write to autoconf@gnu.org." >&5
4280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4281 whose name does not start with the host triplet. If you think this
4282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4283 ac_tool_warned=yes ;;
4291 if test -z "$CC"; then
4292 if test -n "$ac_tool_prefix"; then
4293 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4294 set dummy ${ac_tool_prefix}cc; ac_word=$2
4295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297 if test "${ac_cv_prog_CC+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$CC"; then
4301 ac_cv_prog_CC="$CC" # Let the user override the test.
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310 ac_cv_prog_CC="${ac_tool_prefix}cc"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 if test -n "$CC"; then
4322 { echo "$as_me:$LINENO: result: $CC" >&5
4323 echo "${ECHO_T}$CC" >&6; }
4325 { echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6; }
4332 if test -z "$CC"; then
4333 # Extract the first word of "cc", so it can be a program name with args.
4334 set dummy cc; ac_word=$2
4335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4337 if test "${ac_cv_prog_CC+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4352 ac_prog_rejected=yes
4356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 if test $ac_prog_rejected = yes; then
4364 # We found a bogon in the path, so make sure we never use it.
4365 set dummy $ac_cv_prog_CC
4367 if test $# != 0; then
4368 # We chose a different compiler from the bogus one.
4369 # However, it has the same basename, so the bogon will be chosen
4370 # first if we set CC to just the basename; use the full file name.
4372 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4378 if test -n "$CC"; then
4379 { echo "$as_me:$LINENO: result: $CC" >&5
4380 echo "${ECHO_T}$CC" >&6; }
4382 { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4388 if test -z "$CC"; then
4389 if test -n "$ac_tool_prefix"; then
4390 for ac_prog in cl.exe
4392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_CC+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 if test -n "$CC"; then
4421 { echo "$as_me:$LINENO: result: $CC" >&5
4422 echo "${ECHO_T}$CC" >&6; }
4424 { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4429 test -n "$CC" && break
4432 if test -z "$CC"; then
4434 for ac_prog in cl.exe
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy $ac_prog; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$ac_ct_CC"; then
4444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_ac_ct_CC="$ac_prog"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4464 if test -n "$ac_ct_CC"; then
4465 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4466 echo "${ECHO_T}$ac_ct_CC" >&6; }
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4473 test -n "$ac_ct_CC" && break
4476 if test "x$ac_ct_CC" = x; then
4479 case $cross_compiling:$ac_tool_warned in
4481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4482 whose name does not start with the host triplet. If you think this
4483 configuration is useful to you, please write to autoconf@gnu.org." >&5
4484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4485 whose name does not start with the host triplet. If you think this
4486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4487 ac_tool_warned=yes ;;
4496 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4497 See \`config.log' for more details." >&5
4498 echo "$as_me: error: no acceptable C compiler found in \$PATH
4499 See \`config.log' for more details." >&2;}
4500 { (exit 1); exit 1; }; }
4502 # Provide some information about the compiler.
4503 echo "$as_me:$LINENO: checking for C compiler version" >&5
4504 ac_compiler=`set X $ac_compile; echo $2`
4505 { (ac_try="$ac_compiler --version >&5"
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_compiler --version >&5") 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }
4515 { (ac_try="$ac_compiler -v >&5"
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_compiler -v >&5") 2>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }
4525 { (ac_try="$ac_compiler -V >&5"
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_compiler -V >&5") 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }
4536 cat >conftest.$ac_ext <<_ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4551 ac_clean_files_save=$ac_clean_files
4552 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4553 # Try to create an executable without -o first, disregard a.out.
4554 # It will help us diagnose broken compilers, and finding out an intuition
4556 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4557 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4558 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4560 # List of possible output files, starting from the most likely.
4561 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4562 # only as a last resort. b.out is created by i960 compilers.
4563 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4565 # The IRIX 6 linker writes into existing files which may not be
4566 # executable, retaining their permissions. Remove them first so a
4567 # subsequent execution test works.
4569 for ac_file in $ac_files
4572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4573 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4578 if { (ac_try="$ac_link_default"
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link_default") 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; then
4588 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4589 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4590 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4591 # so that the user can short-circuit this test for compilers unknown to
4593 for ac_file in $ac_files ''
4595 test -f "$ac_file" || continue
4597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4600 # We found the default executable, but exeext='' is most
4604 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4606 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4608 # We set ac_cv_exeext here because the later test for it is not
4609 # safe: cross compilers may not add the suffix if given an `-o'
4610 # argument, so we may need to know it at that point already.
4611 # Even if this section looks crufty: it has the advantage of
4618 test "$ac_cv_exeext" = no && ac_cv_exeext=
4624 { echo "$as_me:$LINENO: result: $ac_file" >&5
4625 echo "${ECHO_T}$ac_file" >&6; }
4626 if test -z "$ac_file"; then
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4631 See \`config.log' for more details." >&5
4632 echo "$as_me: error: C compiler cannot create executables
4633 See \`config.log' for more details." >&2;}
4634 { (exit 77); exit 77; }; }
4637 ac_exeext=$ac_cv_exeext
4639 # Check that the compiler produces executables we can run. If not, either
4640 # the compiler is broken, or we cross compile.
4641 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4642 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4643 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4644 # If not cross compiling, check that we can run a simple program.
4645 if test "$cross_compiling" != yes; then
4646 if { ac_try='./$ac_file'
4647 { (case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_try") 2>&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4658 if test "$cross_compiling" = maybe; then
4661 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4662 If you meant to cross compile, use \`--host'.
4663 See \`config.log' for more details." >&5
4664 echo "$as_me: error: cannot run C compiled programs.
4665 If you meant to cross compile, use \`--host'.
4666 See \`config.log' for more details." >&2;}
4667 { (exit 1); exit 1; }; }
4671 { echo "$as_me:$LINENO: result: yes" >&5
4672 echo "${ECHO_T}yes" >&6; }
4674 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4675 ac_clean_files=$ac_clean_files_save
4676 # Check that the compiler produces executables we can run. If not, either
4677 # the compiler is broken, or we cross compile.
4678 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4679 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4680 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4681 echo "${ECHO_T}$cross_compiling" >&6; }
4683 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4684 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4685 if { (ac_try="$ac_link"
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_link") 2>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; then
4695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4696 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4697 # work properly (i.e., refer to `conftest.exe'), while it won't with
4699 for ac_file in conftest.exe conftest conftest.*; do
4700 test -f "$ac_file" || continue
4702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4703 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4709 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4710 See \`config.log' for more details." >&5
4711 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4712 See \`config.log' for more details." >&2;}
4713 { (exit 1); exit 1; }; }
4716 rm -f conftest$ac_cv_exeext
4717 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4718 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4720 rm -f conftest.$ac_ext
4721 EXEEXT=$ac_cv_exeext
4723 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4724 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4725 if test "${ac_cv_objext+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4743 rm -f conftest.o conftest.obj
4744 if { (ac_try="$ac_compile"
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750 (eval "$ac_compile") 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; then
4754 for ac_file in conftest.o conftest.obj conftest.*; do
4755 test -f "$ac_file" || continue;
4757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4767 See \`config.log' for more details." >&5
4768 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4769 See \`config.log' for more details." >&2;}
4770 { (exit 1); exit 1; }; }
4773 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4775 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4776 echo "${ECHO_T}$ac_cv_objext" >&6; }
4777 OBJEXT=$ac_cv_objext
4779 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4780 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4781 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 cat >conftest.$ac_ext <<_ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4802 rm -f conftest.$ac_objext
4803 if { (ac_try="$ac_compile"
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_compile") 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } && {
4816 test -z "$ac_c_werror_flag" ||
4817 test ! -s conftest.err
4818 } && test -s conftest.$ac_objext; then
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4831 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4832 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4833 GCC=`test $ac_compiler_gnu = yes && echo yes`
4834 ac_test_CFLAGS=${CFLAGS+set}
4835 ac_save_CFLAGS=$CFLAGS
4836 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4837 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4838 if test "${ac_cv_prog_cc_g+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 ac_save_c_werror_flag=$ac_c_werror_flag
4842 ac_c_werror_flag=yes
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.$ac_objext; then
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_compile") 2>conftest.er1
4907 grep -v '^ *+' conftest.er1 >conftest.err
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && {
4912 test -z "$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 } && test -s conftest.$ac_objext; then
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 ac_c_werror_flag=$ac_save_c_werror_flag
4922 cat >conftest.$ac_ext <<_ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4937 rm -f conftest.$ac_objext
4938 if { (ac_try="$ac_compile"
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944 (eval "$ac_compile") 2>conftest.er1
4946 grep -v '^ *+' conftest.er1 >conftest.err
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } && {
4951 test -z "$ac_c_werror_flag" ||
4952 test ! -s conftest.err
4953 } && test -s conftest.$ac_objext; then
4956 echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 ac_c_werror_flag=$ac_save_c_werror_flag
4971 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4972 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4973 if test "$ac_test_CFLAGS" = set; then
4974 CFLAGS=$ac_save_CFLAGS
4975 elif test $ac_cv_prog_cc_g = yes; then
4976 if test "$GCC" = yes; then
4982 if test "$GCC" = yes; then
4988 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4989 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4990 if test "${ac_cv_prog_cc_c89+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 ac_cv_prog_cc_c89=no
4995 cat >conftest.$ac_ext <<_ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5003 #include <sys/types.h>
5004 #include <sys/stat.h>
5005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5006 struct buf { int x; };
5007 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5008 static char *e (p, i)
5014 static char *f (char * (*g) (char **, int), char **p, ...)
5019 s = g (p, va_arg (v,int));
5024 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5025 function prototypes and stuff, but not '\xHH' hex character constants.
5026 These don't provoke an error unfortunately, instead are silently treated
5027 as 'x'. The following induces an error, until -std is added to get
5028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5029 array size at least. It's necessary to write '\x00'==0 to get something
5030 that's true only with -std. */
5031 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5033 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5034 inside strings and character constants. */
5036 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5038 int test (int i, double x);
5039 struct s1 {int (*f) (int a);};
5040 struct s2 {int (*f) (double a);};
5041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5047 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5052 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5055 CC="$ac_save_CC $ac_arg"
5056 rm -f conftest.$ac_objext
5057 if { (ac_try="$ac_compile"
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_compile") 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } && {
5070 test -z "$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5072 } && test -s conftest.$ac_objext; then
5073 ac_cv_prog_cc_c89=$ac_arg
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5081 rm -f core conftest.err conftest.$ac_objext
5082 test "x$ac_cv_prog_cc_c89" != "xno" && break
5084 rm -f conftest.$ac_ext
5089 case "x$ac_cv_prog_cc_c89" in
5091 { echo "$as_me:$LINENO: result: none needed" >&5
5092 echo "${ECHO_T}none needed" >&6; } ;;
5094 { echo "$as_me:$LINENO: result: unsupported" >&5
5095 echo "${ECHO_T}unsupported" >&6; } ;;
5097 CC="$CC $ac_cv_prog_cc_c89"
5098 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5099 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5104 ac_cpp='$CPP $CPPFLAGS'
5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5111 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5112 if test "${ac_cv_search_strerror+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 ac_func_search_save_LIBS=$LIBS
5116 cat >conftest.$ac_ext <<_ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5123 /* Override any GCC internal prototype to avoid an error.
5124 Use char because int might match the return type of a GCC
5125 builtin and then its argument prototype would still apply. */
5138 for ac_lib in '' cposix; do
5139 if test -z "$ac_lib"; then
5140 ac_res="none required"
5143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5145 rm -f conftest.$ac_objext conftest$ac_exeext
5146 if { (ac_try="$ac_link"
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_link") 2>conftest.er1
5154 grep -v '^ *+' conftest.er1 >conftest.err
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } && {
5159 test -z "$ac_c_werror_flag" ||
5160 test ! -s conftest.err
5161 } && test -s conftest$ac_exeext &&
5162 $as_test_x conftest$ac_exeext; then
5163 ac_cv_search_strerror=$ac_res
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5173 if test "${ac_cv_search_strerror+set}" = set; then
5177 if test "${ac_cv_search_strerror+set}" = set; then
5180 ac_cv_search_strerror=no
5183 LIBS=$ac_func_search_save_LIBS
5185 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5186 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5187 ac_res=$ac_cv_search_strerror
5188 if test "$ac_res" != no; then
5189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5199 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5200 # On Suns, sometimes $CPP names a directory.
5201 if test -n "$CPP" && test -d "$CPP"; then
5204 if test -z "$CPP"; then
5205 if test "${ac_cv_prog_CPP+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 # Double quotes because CPP needs to be expanded
5209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5212 for ac_c_preproc_warn_flag in '' yes
5214 # Use a header file that comes with gcc, so configuring glibc
5215 # with a fresh cross-compiler works.
5216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5217 # <limits.h> exists even on freestanding compilers.
5218 # On the NeXT, cc -E runs the code through the compiler's parser,
5219 # not just through cpp. "Syntax error" is here to catch this case.
5220 cat >conftest.$ac_ext <<_ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5227 # include <limits.h>
5229 # include <assert.h>
5233 if { (ac_try="$ac_cpp conftest.$ac_ext"
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5241 grep -v '^ *+' conftest.er1 >conftest.err
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } >/dev/null && {
5246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5247 test ! -s conftest.err
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 # Broken: fails on valid input.
5258 rm -f conftest.err conftest.$ac_ext
5260 # OK, works on sane cases. Now check whether nonexistent headers
5261 # can be detected and how.
5262 cat >conftest.$ac_ext <<_ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 #include <ac_nonexistent.h>
5270 if { (ac_try="$ac_cpp conftest.$ac_ext"
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5278 grep -v '^ *+' conftest.er1 >conftest.err
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } >/dev/null && {
5283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5284 test ! -s conftest.err
5286 # Broken: success on invalid input.
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 # Passes both tests.
5297 rm -f conftest.err conftest.$ac_ext
5300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301 rm -f conftest.err conftest.$ac_ext
5302 if $ac_preproc_ok; then
5314 { echo "$as_me:$LINENO: result: $CPP" >&5
5315 echo "${ECHO_T}$CPP" >&6; }
5317 for ac_c_preproc_warn_flag in '' yes
5319 # Use a header file that comes with gcc, so configuring glibc
5320 # with a fresh cross-compiler works.
5321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5322 # <limits.h> exists even on freestanding compilers.
5323 # On the NeXT, cc -E runs the code through the compiler's parser,
5324 # not just through cpp. "Syntax error" is here to catch this case.
5325 cat >conftest.$ac_ext <<_ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5332 # include <limits.h>
5334 # include <assert.h>
5338 if { (ac_try="$ac_cpp conftest.$ac_ext"
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5346 grep -v '^ *+' conftest.er1 >conftest.err
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } >/dev/null && {
5351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5352 test ! -s conftest.err
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 # Broken: fails on valid input.
5363 rm -f conftest.err conftest.$ac_ext
5365 # OK, works on sane cases. Now check whether nonexistent headers
5366 # can be detected and how.
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 #include <ac_nonexistent.h>
5375 if { (ac_try="$ac_cpp conftest.$ac_ext"
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5383 grep -v '^ *+' conftest.er1 >conftest.err
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } >/dev/null && {
5388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5391 # Broken: success on invalid input.
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 # Passes both tests.
5402 rm -f conftest.err conftest.$ac_ext
5405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5406 rm -f conftest.err conftest.$ac_ext
5407 if $ac_preproc_ok; then
5410 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5411 See \`config.log' for more details." >&5
5412 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5413 See \`config.log' for more details." >&2;}
5414 { (exit 1); exit 1; }; }
5418 ac_cpp='$CPP $CPPFLAGS'
5419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5426 if test -f "$ac_dir/install-sh"; then
5428 ac_install_sh="$ac_aux_dir/install-sh -c"
5430 elif test -f "$ac_dir/install.sh"; then
5432 ac_install_sh="$ac_aux_dir/install.sh -c"
5434 elif test -f "$ac_dir/shtool"; then
5436 ac_install_sh="$ac_aux_dir/shtool install -c"
5440 if test -z "$ac_aux_dir"; then
5441 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5442 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5443 { (exit 1); exit 1; }; }
5446 # These three variables are undocumented and unsupported,
5447 # and are intended to be withdrawn in a future Autoconf release.
5448 # They can cause serious problems if a builder's source tree is in a directory
5449 # whose full name contains unusual characters.
5450 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5451 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5452 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5455 # Make sure we can run config.sub.
5456 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5457 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5458 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5459 { (exit 1); exit 1; }; }
5461 { echo "$as_me:$LINENO: checking build system type" >&5
5462 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5463 if test "${ac_cv_build+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 ac_build_alias=$build_alias
5467 test "x$ac_build_alias" = x &&
5468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5469 test "x$ac_build_alias" = x &&
5470 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5471 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5472 { (exit 1); exit 1; }; }
5473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5474 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5475 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5476 { (exit 1); exit 1; }; }
5479 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5480 echo "${ECHO_T}$ac_cv_build" >&6; }
5481 case $ac_cv_build in
5483 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5484 echo "$as_me: error: invalid value of canonical build" >&2;}
5485 { (exit 1); exit 1; }; };;
5488 ac_save_IFS=$IFS; IFS='-'
5494 # Remember, the first character of IFS is used to create $*,
5495 # except with old shells:
5498 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5501 { echo "$as_me:$LINENO: checking host system type" >&5
5502 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5503 if test "${ac_cv_host+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 if test "x$host_alias" = x; then
5507 ac_cv_host=$ac_cv_build
5509 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5510 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5511 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5512 { (exit 1); exit 1; }; }
5516 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5517 echo "${ECHO_T}$ac_cv_host" >&6; }
5520 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5521 echo "$as_me: error: invalid value of canonical host" >&2;}
5522 { (exit 1); exit 1; }; };;
5525 ac_save_IFS=$IFS; IFS='-'
5531 # Remember, the first character of IFS is used to create $*,
5532 # except with old shells:
5535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5538 # Check whether --enable-static was given.
5539 if test "${enable_static+set}" = set; then
5540 enableval=$enable_static; p=${PACKAGE-default}
5542 yes) enable_static=yes ;;
5543 no) enable_static=no ;;
5546 # Look at the argument we got. We use all the common list separators.
5547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5548 for pkg in $enableval; do
5550 if test "X$pkg" = "X$p"; then
5565 # Check whether --enable-shared was given.
5566 if test "${enable_shared+set}" = set; then
5567 enableval=$enable_shared; p=${PACKAGE-default}
5569 yes) enable_shared=yes ;;
5570 no) enable_shared=no ;;
5573 # Look at the argument we got. We use all the common list separators.
5574 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5575 for pkg in $enableval; do
5577 if test "X$pkg" = "X$p"; then
5589 # Check whether --enable-fast-install was given.
5590 if test "${enable_fast_install+set}" = set; then
5591 enableval=$enable_fast_install; p=${PACKAGE-default}
5593 yes) enable_fast_install=yes ;;
5594 no) enable_fast_install=no ;;
5596 enable_fast_install=no
5597 # Look at the argument we got. We use all the common list separators.
5598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5599 for pkg in $enableval; do
5601 if test "X$pkg" = "X$p"; then
5602 enable_fast_install=yes
5609 enable_fast_install=yes
5613 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5614 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5615 if test "${lt_cv_path_SED+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 # Loop through the user's path and test for sed and gsed.
5619 # Then use that list of sed's as ones to test for truncation.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir=.
5625 for lt_ac_prog in sed gsed; do
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5628 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5636 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5637 # along with /bin/sed that truncates output.
5638 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5639 test ! -f $lt_ac_sed && continue
5640 cat /dev/null > conftest.in
5642 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5643 # Check for GNU sed and select it if it is found.
5644 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5645 lt_cv_path_SED=$lt_ac_sed
5649 cat conftest.in conftest.in >conftest.tmp
5650 mv conftest.tmp conftest.in
5651 cp conftest.in conftest.nl
5653 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5654 cmp -s conftest.out conftest.nl || break
5655 # 10000 chars as input seems more than enough
5656 test $lt_ac_count -gt 10 && break
5657 lt_ac_count=`expr $lt_ac_count + 1`
5658 if test $lt_ac_count -gt $lt_ac_max; then
5659 lt_ac_max=$lt_ac_count
5660 lt_cv_path_SED=$lt_ac_sed
5669 { echo "$as_me:$LINENO: result: $SED" >&5
5670 echo "${ECHO_T}$SED" >&6; }
5672 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5673 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5674 if test "${ac_cv_path_GREP+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 # Extract the first word of "grep ggrep" to use in msg output
5678 if test -z "$GREP"; then
5679 set dummy grep ggrep; ac_prog_name=$2
5680 if test "${ac_cv_path_GREP+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 ac_path_GREP_found=false
5684 # Loop through the user's path and test for each of PROGNAME-LIST
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5689 test -z "$as_dir" && as_dir=.
5690 for ac_prog in grep ggrep; do
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5693 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5694 # Check for GNU ac_path_GREP and select it if it is found.
5695 # Check for GNU $ac_path_GREP
5696 case `"$ac_path_GREP" --version 2>&1` in
5698 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5701 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5704 cat "conftest.in" "conftest.in" >"conftest.tmp"
5705 mv "conftest.tmp" "conftest.in"
5706 cp "conftest.in" "conftest.nl"
5707 echo 'GREP' >> "conftest.nl"
5708 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5710 ac_count=`expr $ac_count + 1`
5711 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5712 # Best one so far, save it but keep looking for a better one
5713 ac_cv_path_GREP="$ac_path_GREP"
5714 ac_path_GREP_max=$ac_count
5716 # 10*(2^10) chars as input seems more than enough
5717 test $ac_count -gt 10 && break
5719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5723 $ac_path_GREP_found && break 3
5733 GREP="$ac_cv_path_GREP"
5734 if test -z "$GREP"; then
5735 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5736 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5737 { (exit 1); exit 1; }; }
5741 ac_cv_path_GREP=$GREP
5746 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5747 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5748 GREP="$ac_cv_path_GREP"
5751 { echo "$as_me:$LINENO: checking for egrep" >&5
5752 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5753 if test "${ac_cv_path_EGREP+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5757 then ac_cv_path_EGREP="$GREP -E"
5759 # Extract the first word of "egrep" to use in msg output
5760 if test -z "$EGREP"; then
5761 set dummy egrep; ac_prog_name=$2
5762 if test "${ac_cv_path_EGREP+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 ac_path_EGREP_found=false
5766 # Loop through the user's path and test for each of PROGNAME-LIST
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5771 test -z "$as_dir" && as_dir=.
5772 for ac_prog in egrep; do
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5775 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5776 # Check for GNU ac_path_EGREP and select it if it is found.
5777 # Check for GNU $ac_path_EGREP
5778 case `"$ac_path_EGREP" --version 2>&1` in
5780 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5783 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5786 cat "conftest.in" "conftest.in" >"conftest.tmp"
5787 mv "conftest.tmp" "conftest.in"
5788 cp "conftest.in" "conftest.nl"
5789 echo 'EGREP' >> "conftest.nl"
5790 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5792 ac_count=`expr $ac_count + 1`
5793 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5794 # Best one so far, save it but keep looking for a better one
5795 ac_cv_path_EGREP="$ac_path_EGREP"
5796 ac_path_EGREP_max=$ac_count
5798 # 10*(2^10) chars as input seems more than enough
5799 test $ac_count -gt 10 && break
5801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5805 $ac_path_EGREP_found && break 3
5815 EGREP="$ac_cv_path_EGREP"
5816 if test -z "$EGREP"; then
5817 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5818 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5819 { (exit 1); exit 1; }; }
5823 ac_cv_path_EGREP=$EGREP
5829 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5830 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5831 EGREP="$ac_cv_path_EGREP"
5835 # Check whether --with-gnu-ld was given.
5836 if test "${with_gnu_ld+set}" = set; then
5837 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5843 if test "$GCC" = yes; then
5844 # Check if gcc -print-prog-name=ld gives a path.
5845 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5846 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5849 # gcc leaves a trailing carriage return which upsets mingw
5850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5855 # Accept absolute paths.
5857 re_direlt='/[^/][^/]*/\.\./'
5858 # Canonicalize the pathname of ld
5859 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5860 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5861 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5863 test -z "$LD" && LD="$ac_prog"
5866 # If it fails, then pretend we aren't using GCC.
5870 # If it is relative, then search for the first ld in PATH.
5874 elif test "$with_gnu_ld" = yes; then
5875 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5876 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5878 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5879 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5881 if test "${lt_cv_path_LD+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 if test -z "$LD"; then
5885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5886 for ac_dir in $PATH; do
5888 test -z "$ac_dir" && ac_dir=.
5889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5890 lt_cv_path_LD="$ac_dir/$ac_prog"
5891 # Check to see if the program is GNU ld. I'd rather use --version,
5892 # but apparently some variants of GNU ld only accept -v.
5893 # Break only if it was the GNU/non-GNU ld that we prefer.
5894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5895 *GNU* | *'with BFD'*)
5896 test "$with_gnu_ld" != no && break
5899 test "$with_gnu_ld" != yes && break
5906 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5911 if test -n "$LD"; then
5912 { echo "$as_me:$LINENO: result: $LD" >&5
5913 echo "${ECHO_T}$LD" >&6; }
5915 { echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6; }
5918 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5919 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5920 { (exit 1); exit 1; }; }
5921 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5922 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5923 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5927 case `$LD -v 2>&1 </dev/null` in
5928 *GNU* | *'with BFD'*)
5929 lt_cv_prog_gnu_ld=yes
5932 lt_cv_prog_gnu_ld=no
5936 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5937 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5938 with_gnu_ld=$lt_cv_prog_gnu_ld
5941 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5942 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5943 if test "${lt_cv_ld_reload_flag+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 lt_cv_ld_reload_flag='-r'
5948 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5949 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5950 reload_flag=$lt_cv_ld_reload_flag
5951 case $reload_flag in
5953 *) reload_flag=" $reload_flag" ;;
5955 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5958 if test "$GCC" = yes; then
5959 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5966 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5967 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5968 if test "${lt_cv_path_NM+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 if test -n "$NM"; then
5972 # Let the user override the test.
5975 lt_nm_to_check="${ac_tool_prefix}nm"
5976 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5977 lt_nm_to_check="$lt_nm_to_check nm"
5979 for lt_tmp_nm in $lt_nm_to_check; do
5980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5981 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5983 test -z "$ac_dir" && ac_dir=.
5984 tmp_nm="$ac_dir/$lt_tmp_nm"
5985 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5986 # Check to see if the nm accepts a BSD-compat flag.
5987 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5988 # nm: unknown option "B" ignored
5989 # Tru64's nm complains that /dev/null is an invalid object file
5990 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5991 */dev/null* | *'Invalid file or object type'*)
5992 lt_cv_path_NM="$tmp_nm -B"
5996 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5998 lt_cv_path_NM="$tmp_nm -p"
6002 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6003 continue # so that we can try to find one that supports BSD flags
6012 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6015 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6016 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6019 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6020 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6022 if test "$LN_S" = "ln -s"; then
6023 { echo "$as_me:$LINENO: result: yes" >&5
6024 echo "${ECHO_T}yes" >&6; }
6026 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6027 echo "${ECHO_T}no, using $LN_S" >&6; }
6030 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6031 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6032 if test "${lt_cv_deplibs_check_method+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 lt_cv_file_magic_cmd='$MAGIC_CMD'
6036 lt_cv_file_magic_test_file=
6037 lt_cv_deplibs_check_method='unknown'
6038 # Need to set the preceding variable on all platforms that support
6039 # interlibrary dependencies.
6040 # 'none' -- dependencies not supported.
6041 # `unknown' -- same as none, but documents that we really don't know.
6042 # 'pass_all' -- all dependencies passed with no checks.
6043 # 'test_compile' -- check by making test program.
6044 # 'file_magic [[regex]]' -- check by looking for files in library path
6045 # which responds to the $file_magic_cmd with a given extended regex.
6046 # If you have `file' or equivalent on your system and you're not sure
6047 # whether `pass_all' will *always* work, you probably want this one.
6051 lt_cv_deplibs_check_method=pass_all
6055 lt_cv_deplibs_check_method=pass_all
6059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6060 lt_cv_file_magic_cmd='/usr/bin/file -L'
6061 lt_cv_file_magic_test_file=/shlib/libc.so
6065 # func_win32_libid is a shell function defined in ltmain.sh
6066 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6067 lt_cv_file_magic_cmd='func_win32_libid'
6071 # Base MSYS/MinGW do not provide the 'file' command needed by
6072 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6073 # unless we find 'file', for example because we are cross-compiling.
6074 if ( file / ) >/dev/null 2>&1; then
6075 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6076 lt_cv_file_magic_cmd='func_win32_libid'
6078 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6079 lt_cv_file_magic_cmd='$OBJDUMP -f'
6083 darwin* | rhapsody*)
6084 lt_cv_deplibs_check_method=pass_all
6087 freebsd* | dragonfly*)
6088 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6091 # Not sure whether the presence of OpenBSD here was a mistake.
6092 # Let's accept both of them until this is cleared up.
6093 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6094 lt_cv_file_magic_cmd=/usr/bin/file
6095 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6099 lt_cv_deplibs_check_method=pass_all
6104 lt_cv_deplibs_check_method=pass_all
6107 hpux10.20* | hpux11*)
6108 lt_cv_file_magic_cmd=/usr/bin/file
6111 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6112 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6115 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]'
6116 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6119 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6120 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6126 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6130 irix5* | irix6* | nonstopux*)
6132 *-32|*"-32 ") libmagic=32-bit;;
6133 *-n32|*"-n32 ") libmagic=N32;;
6134 *-64|*"-64 ") libmagic=64-bit;;
6135 *) libmagic=never-match;;
6137 lt_cv_deplibs_check_method=pass_all
6140 # This must be Linux ELF.
6141 linux* | k*bsd*-gnu)
6142 lt_cv_deplibs_check_method=pass_all
6146 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6155 lt_cv_file_magic_cmd=/usr/bin/file
6156 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6160 lt_cv_deplibs_check_method=unknown
6164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6171 osf3* | osf4* | osf5*)
6172 lt_cv_deplibs_check_method=pass_all
6176 lt_cv_deplibs_check_method=pass_all
6180 lt_cv_deplibs_check_method=pass_all
6184 case $host_vendor in
6186 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]'
6187 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6190 lt_cv_deplibs_check_method=pass_all
6193 lt_cv_file_magic_cmd='/bin/file'
6194 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6197 lt_cv_file_magic_cmd='/bin/file'
6198 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6199 lt_cv_file_magic_test_file=/lib/libc.so
6202 lt_cv_deplibs_check_method=pass_all
6205 lt_cv_deplibs_check_method=pass_all
6210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6211 lt_cv_deplibs_check_method=pass_all
6216 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6217 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6218 file_magic_cmd=$lt_cv_file_magic_cmd
6219 deplibs_check_method=$lt_cv_deplibs_check_method
6220 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6225 # If no C compiler was specified, use CC.
6228 # If no C compiler flags were specified, use CFLAGS.
6229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6231 # Allow CC to be a program name with arguments.
6234 # Check whether --enable-libtool-lock was given.
6235 if test "${enable_libtool_lock+set}" = set; then
6236 enableval=$enable_libtool_lock;
6239 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6241 # Some flags need to be propagated to the compiler or linker for good
6245 # Find out which ABI we are using.
6246 echo 'int i;' > conftest.$ac_ext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; then
6252 case `/usr/bin/file conftest.$ac_objext` in
6264 # Find out which ABI we are using.
6265 echo '#line 6265 "configure"' > conftest.$ac_ext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; then
6271 if test "$lt_cv_prog_gnu_ld" = yes; then
6272 case `/usr/bin/file conftest.$ac_objext` in
6274 LD="${LD-ld} -melf32bsmip"
6277 LD="${LD-ld} -melf32bmipn32"
6280 LD="${LD-ld} -melf64bmip"
6284 case `/usr/bin/file conftest.$ac_objext` in
6300 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6301 s390*-*linux*|sparc*-*linux*)
6302 # Find out which ABI we are using.
6303 echo 'int i;' > conftest.$ac_ext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; then
6309 case `/usr/bin/file conftest.o` in
6312 x86_64-*kfreebsd*-gnu)
6313 LD="${LD-ld} -m elf_i386_fbsd"
6316 LD="${LD-ld} -m elf_i386"
6318 ppc64-*linux*|powerpc64-*linux*)
6319 LD="${LD-ld} -m elf32ppclinux"
6322 LD="${LD-ld} -m elf_s390"
6325 LD="${LD-ld} -m elf32_sparc"
6331 x86_64-*kfreebsd*-gnu)
6332 LD="${LD-ld} -m elf_x86_64_fbsd"
6335 LD="${LD-ld} -m elf_x86_64"
6337 ppc*-*linux*|powerpc*-*linux*)
6338 LD="${LD-ld} -m elf64ppc"
6341 LD="${LD-ld} -m elf64_s390"
6344 LD="${LD-ld} -m elf64_sparc"
6354 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6355 SAVE_CFLAGS="$CFLAGS"
6356 CFLAGS="$CFLAGS -belf"
6357 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6358 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6359 if test "${lt_cv_cc_needs_belf+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 ac_cpp='$CPP $CPPFLAGS'
6364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (ac_try="$ac_link"
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_link") 2>conftest.er1
6392 grep -v '^ *+' conftest.er1 >conftest.err
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } && {
6397 test -z "$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 } && test -s conftest$ac_exeext &&
6400 $as_test_x conftest$ac_exeext; then
6401 lt_cv_cc_needs_belf=yes
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 lt_cv_cc_needs_belf=no
6409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6410 conftest$ac_exeext conftest.$ac_ext
6412 ac_cpp='$CPP $CPPFLAGS'
6413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6418 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6419 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6420 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6422 CFLAGS="$SAVE_CFLAGS"
6426 # Find out which ABI we are using.
6427 echo 'int i;' > conftest.$ac_ext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; then
6433 case `/usr/bin/file conftest.o` in
6435 case $lt_cv_prog_gnu_ld in
6436 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6438 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6452 need_locks="$enable_libtool_lock"
6456 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6457 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6458 if test "${ac_cv_header_stdc+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6489 grep -v '^ *+' conftest.er1 >conftest.err
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 ac_cv_header_stdc=yes
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 ac_cv_header_stdc=no
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 if test $ac_cv_header_stdc = yes; then
6508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6519 $EGREP "memchr" >/dev/null 2>&1; then
6522 ac_cv_header_stdc=no
6528 if test $ac_cv_header_stdc = yes; then
6529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6530 cat >conftest.$ac_ext <<_ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6540 $EGREP "free" >/dev/null 2>&1; then
6543 ac_cv_header_stdc=no
6549 if test $ac_cv_header_stdc = yes; then
6550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6551 if test "$cross_compiling" = yes; then
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6562 #if ((' ' & 0x0FF) == 0x020)
6563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6566 # define ISLOWER(c) \
6567 (('a' <= (c) && (c) <= 'i') \
6568 || ('j' <= (c) && (c) <= 'r') \
6569 || ('s' <= (c) && (c) <= 'z'))
6570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6578 for (i = 0; i < 256; i++)
6579 if (XOR (islower (i), ISLOWER (i))
6580 || toupper (i) != TOUPPER (i))
6585 rm -f conftest$ac_exeext
6586 if { (ac_try="$ac_link"
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_link") 2>&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6596 { (case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601 (eval "$ac_try") 2>&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6607 echo "$as_me: program exited with status $ac_status" >&5
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_cv_header_stdc=no
6614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6620 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6621 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6622 if test $ac_cv_header_stdc = yes; then
6624 cat >>confdefs.h <<\_ACEOF
6625 #define STDC_HEADERS 1
6630 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6641 inttypes.h stdint.h unistd.h
6643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 cat >conftest.$ac_ext <<_ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 $ac_includes_default
6657 #include <$ac_header>
6659 rm -f conftest.$ac_objext
6660 if { (ac_try="$ac_compile"
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666 (eval "$ac_compile") 2>conftest.er1
6668 grep -v '^ *+' conftest.er1 >conftest.err
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && {
6673 test -z "$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6675 } && test -s conftest.$ac_objext; then
6676 eval "$as_ac_Header=yes"
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 eval "$as_ac_Header=no"
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 ac_res=`eval echo '${'$as_ac_Header'}'`
6687 { echo "$as_me:$LINENO: result: $ac_res" >&5
6688 echo "${ECHO_T}$ac_res" >&6; }
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690 cat >>confdefs.h <<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6700 for ac_header in dlfcn.h
6702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 ac_res=`eval echo '${'$as_ac_Header'}'`
6710 { echo "$as_me:$LINENO: result: $ac_res" >&5
6711 echo "${ECHO_T}$ac_res" >&6; }
6713 # Is the header compilable?
6714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6716 cat >conftest.$ac_ext <<_ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 $ac_includes_default
6723 #include <$ac_header>
6725 rm -f conftest.$ac_objext
6726 if { (ac_try="$ac_compile"
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 (eval "$ac_compile") 2>conftest.er1
6734 grep -v '^ *+' conftest.er1 >conftest.err
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest.$ac_objext; then
6742 ac_header_compiler=yes
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6747 ac_header_compiler=no
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6752 echo "${ECHO_T}$ac_header_compiler" >&6; }
6754 # Is the header present?
6755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6757 cat >conftest.$ac_ext <<_ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 #include <$ac_header>
6765 if { (ac_try="$ac_cpp conftest.$ac_ext"
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6773 grep -v '^ *+' conftest.er1 >conftest.err
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } >/dev/null && {
6778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6779 test ! -s conftest.err
6781 ac_header_preproc=yes
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6786 ac_header_preproc=no
6789 rm -f conftest.err conftest.$ac_ext
6790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6791 echo "${ECHO_T}$ac_header_preproc" >&6; }
6793 # So? What about this header?
6794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6800 ac_header_preproc=yes
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6816 ## --------------------------------------- ##
6817 ## Report this to http://www.sudo.ws/bugs/ ##
6818 ## --------------------------------------- ##
6820 ) | sed "s/^/$as_me: WARNING: /" >&2
6823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 eval "$as_ac_Header=\$ac_header_preproc"
6830 ac_res=`eval echo '${'$as_ac_Header'}'`
6831 { echo "$as_me:$LINENO: result: $ac_res" >&5
6832 echo "${ECHO_T}$ac_res" >&6; }
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836 cat >>confdefs.h <<_ACEOF
6837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6845 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6846 # find the maximum length of command line arguments
6847 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6848 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6849 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 # On DJGPP, this test can blow up pretty badly due to problems in libc
6858 # (any single argument exceeding 2000 bytes causes a buffer overrun
6859 # during glob expansion). Even if it were fixed, the result of this
6860 # check would be larger than it should be.
6861 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6865 # Under GNU Hurd, this test is not required because there is
6866 # no limit to the length of command line arguments.
6867 # Libtool will interpret -1 as no limit whatsoever
6868 lt_cv_sys_max_cmd_len=-1;
6872 # On Win9x/ME, this test blows up -- it succeeds, but takes
6873 # about 5 minutes as the teststring grows exponentially.
6874 # Worse, since 9x/ME are not pre-emptively multitasking,
6875 # you end up with a "frozen" computer, even though with patience
6876 # the test eventually succeeds (with a max line length of 256k).
6877 # Instead, let's just punt: use the minimum linelength reported by
6878 # all of the supported platforms: 8192 (on NT/2K/XP).
6879 lt_cv_sys_max_cmd_len=8192;
6883 # On AmigaOS with pdksh, this test takes hours, literally.
6884 # So we just punt and use a minimum line length of 8192.
6885 lt_cv_sys_max_cmd_len=8192;
6888 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6889 # This has been around since 386BSD, at least. Likely further.
6890 if test -x /sbin/sysctl; then
6891 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6892 elif test -x /usr/sbin/sysctl; then
6893 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6895 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6897 # And add a safety zone
6898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6903 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6904 lt_cv_sys_max_cmd_len=196608
6908 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6909 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6910 # nice to cause kernel panics so lets avoid the loop below.
6911 # First set a reasonable default.
6912 lt_cv_sys_max_cmd_len=16384
6914 if test -x /sbin/sysconfig; then
6915 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6916 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6921 lt_cv_sys_max_cmd_len=102400
6923 sysv5* | sco5v6* | sysv4.2uw2*)
6924 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6925 if test -n "$kargmax"; then
6926 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6928 lt_cv_sys_max_cmd_len=32768
6932 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6933 if test -n "$lt_cv_sys_max_cmd_len"; then
6934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6937 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6938 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6939 = "XX$teststring") >/dev/null 2>&1 &&
6940 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6941 lt_cv_sys_max_cmd_len=$new_result &&
6942 test $i != 17 # 1/2 MB should be enough
6945 teststring=$teststring$teststring
6948 # Add a significant safety factor because C++ compilers can tack on massive
6949 # amounts of additional arguments before passing them to the linker.
6950 # It appears as though 1/2 is a usable value.
6951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6958 if test -n $lt_cv_sys_max_cmd_len ; then
6959 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6960 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6962 { echo "$as_me:$LINENO: result: none" >&5
6963 echo "${ECHO_T}none" >&6; }
6970 # Check for command to grab the raw symbol name followed by C symbol from nm.
6971 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6972 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6973 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 # These are sane defaults that work on at least a few old systems.
6978 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6980 # Character class describing NM global symbol codes.
6981 symcode='[BCDEGRST]'
6983 # Regexp to match symbols that can be accessed directly from C.
6984 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6986 # Transform an extracted symbol line into a proper C declaration
6987 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6989 # Transform an extracted symbol line into symbol name and symbol address
6990 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'"
6992 # Define system-specific variables.
6997 cygwin* | mingw* | pw32*)
6998 symcode='[ABCDGISTW]'
7000 hpux*) # Its linker distinguishes data from code symbols
7001 if test "$host_cpu" = ia64; then
7002 symcode='[ABCDEGRST]'
7004 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7005 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'"
7007 linux* | k*bsd*-gnu)
7008 if test "$host_cpu" = ia64; then
7009 symcode='[ABCDGIRSTW]'
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'"
7015 symcode='[BCDEGRST]'
7018 symcode='[BCDEGQRST]'
7029 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7037 # Handle CRLF in mingw tool chain
7041 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7045 # If we're using GNU nm, then use its standard symbol codes.
7046 case `$NM -V 2>&1` in
7047 *GNU* | *'with BFD'*)
7048 symcode='[ABCDGIRSTW]' ;;
7051 # Try without a prefix undercore, then with it.
7052 for ac_symprfx in "" "_"; do
7054 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7055 symxfrm="\\1 $ac_symprfx\\2 \\2"
7057 # Write the raw and C identifiers.
7058 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7060 # Check to see that the pipe works correctly.
7064 cat > conftest.$ac_ext <<EOF
7069 void nm_test_func(){}
7073 int main(){nm_test_var='a';nm_test_func();return(0);}
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; then
7081 # Now try to grab the symbols.
7083 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7084 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } && test -s "$nlist"; then
7088 # Try sorting and uniquifying the output.
7089 if sort "$nlist" | uniq > "$nlist"T; then
7090 mv -f "$nlist"T "$nlist"
7095 # Make sure that we snagged all the symbols we need.
7096 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7097 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7098 cat <<EOF > conftest.$ac_ext
7104 # Now generate the symbol file.
7105 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7107 cat <<EOF >> conftest.$ac_ext
7108 #if defined (__STDC__) && __STDC__
7109 # define lt_ptr_t void *
7111 # define lt_ptr_t char *
7115 /* The mapping between symbol names and symbols. */
7120 lt_preloaded_symbols[] =
7123 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7124 cat <<\EOF >> conftest.$ac_ext
7132 # Now try linking the two files.
7133 mv conftest.$ac_objext conftstm.$ac_objext
7134 lt_save_LIBS="$LIBS"
7135 lt_save_CFLAGS="$CFLAGS"
7136 LIBS="conftstm.$ac_objext"
7137 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7139 (eval $ac_link) 2>&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7145 LIBS="$lt_save_LIBS"
7146 CFLAGS="$lt_save_CFLAGS"
7148 echo "cannot find nm_test_func in $nlist" >&5
7151 echo "cannot find nm_test_var in $nlist" >&5
7154 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7157 echo "$progname: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7160 rm -rf conftest* conftst*
7162 # Do not use the global_symbol_pipe unless it works.
7163 if test "$pipe_works" = yes; then
7166 lt_cv_sys_global_symbol_pipe=
7172 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7173 lt_cv_sys_global_symbol_to_cdecl=
7175 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7176 { echo "$as_me:$LINENO: result: failed" >&5
7177 echo "${ECHO_T}failed" >&6; }
7179 { echo "$as_me:$LINENO: result: ok" >&5
7180 echo "${ECHO_T}ok" >&6; }
7183 { echo "$as_me:$LINENO: checking for objdir" >&5
7184 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7185 if test "${lt_cv_objdir+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 rm -f .libs 2>/dev/null
7189 mkdir .libs 2>/dev/null
7190 if test -d .libs; then
7193 # MS-DOS does not allow filenames that begin with a dot.
7196 rmdir .libs 2>/dev/null
7198 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7199 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7200 objdir=$lt_cv_objdir
7208 # AIX sometimes has problems with the GCC collect2 program. For some
7209 # reason, if we set the COLLECT_NAMES environment variable, the problems
7210 # vanish in a puff of smoke.
7211 if test "X${COLLECT_NAMES+set}" != Xset; then
7213 export COLLECT_NAMES
7218 # Sed substitution that helps us do robust quoting. It backslashifies
7219 # metacharacters that are still active within double-quoted strings.
7220 Xsed='sed -e 1s/^X//'
7221 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7223 # Same as above, but do not quote variable references.
7224 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7226 # Sed substitution to delay expansion of an escaped shell variable in a
7227 # double_quote_subst'ed string.
7228 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7230 # Sed substitution to avoid accidental globbing in evaled expressions
7231 no_glob_subst='s/\*/\\\*/g'
7237 default_ofile=libtool
7238 can_build_shared=yes
7240 # All known linkers require a `.a' archive for static linking (except MSVC,
7241 # which needs '.lib').
7243 ltmain="$ac_aux_dir/ltmain.sh"
7244 ofile="$default_ofile"
7245 with_gnu_ld="$lt_cv_prog_gnu_ld"
7247 if test -n "$ac_tool_prefix"; then
7248 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7249 set dummy ${ac_tool_prefix}ar; ac_word=$2
7250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252 if test "${ac_cv_prog_AR+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 if test -n "$AR"; then
7256 ac_cv_prog_AR="$AR" # Let the user override the test.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_prog_AR="${ac_tool_prefix}ar"
7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 if test -n "$AR"; then
7277 { echo "$as_me:$LINENO: result: $AR" >&5
7278 echo "${ECHO_T}$AR" >&6; }
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7286 if test -z "$ac_cv_prog_AR"; then
7288 # Extract the first word of "ar", so it can be a program name with args.
7289 set dummy ar; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 if test -n "$ac_ct_AR"; then
7296 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_prog_ac_ct_AR="ar"
7306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7316 if test -n "$ac_ct_AR"; then
7317 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7318 echo "${ECHO_T}$ac_ct_AR" >&6; }
7320 { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7324 if test "x$ac_ct_AR" = x; then
7327 case $cross_compiling:$ac_tool_warned in
7329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7330 whose name does not start with the host triplet. If you think this
7331 configuration is useful to you, please write to autoconf@gnu.org." >&5
7332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7333 whose name does not start with the host triplet. If you think this
7334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7335 ac_tool_warned=yes ;;
7343 if test -n "$ac_tool_prefix"; then
7344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_prog_RANLIB+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 if test -n "$RANLIB"; then
7352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 RANLIB=$ac_cv_prog_RANLIB
7372 if test -n "$RANLIB"; then
7373 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7374 echo "${ECHO_T}$RANLIB" >&6; }
7376 { echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6; }
7382 if test -z "$ac_cv_prog_RANLIB"; then
7383 ac_ct_RANLIB=$RANLIB
7384 # Extract the first word of "ranlib", so it can be a program name with args.
7385 set dummy ranlib; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 if test -n "$ac_ct_RANLIB"; then
7392 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_prog_ac_ct_RANLIB="ranlib"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7412 if test -n "$ac_ct_RANLIB"; then
7413 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7414 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7416 { echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6; }
7420 if test "x$ac_ct_RANLIB" = x; then
7423 case $cross_compiling:$ac_tool_warned in
7425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7426 whose name does not start with the host triplet. If you think this
7427 configuration is useful to you, please write to autoconf@gnu.org." >&5
7428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7429 whose name does not start with the host triplet. If you think this
7430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7431 ac_tool_warned=yes ;;
7433 RANLIB=$ac_ct_RANLIB
7436 RANLIB="$ac_cv_prog_RANLIB"
7439 if test -n "$ac_tool_prefix"; then
7440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7441 set dummy ${ac_tool_prefix}strip; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_prog_STRIP+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 if test -n "$STRIP"; then
7448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 STRIP=$ac_cv_prog_STRIP
7468 if test -n "$STRIP"; then
7469 { echo "$as_me:$LINENO: result: $STRIP" >&5
7470 echo "${ECHO_T}$STRIP" >&6; }
7472 { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7478 if test -z "$ac_cv_prog_STRIP"; then
7480 # Extract the first word of "strip", so it can be a program name with args.
7481 set dummy strip; ac_word=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 if test -n "$ac_ct_STRIP"; then
7488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_prog_ac_ct_STRIP="strip"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7508 if test -n "$ac_ct_STRIP"; then
7509 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7510 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7512 { echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6; }
7516 if test "x$ac_ct_STRIP" = x; then
7519 case $cross_compiling:$ac_tool_warned in
7521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7522 whose name does not start with the host triplet. If you think this
7523 configuration is useful to you, please write to autoconf@gnu.org." >&5
7524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7525 whose name does not start with the host triplet. If you think this
7526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7527 ac_tool_warned=yes ;;
7532 STRIP="$ac_cv_prog_STRIP"
7537 old_CFLAGS="$CFLAGS"
7539 # Set sane defaults for various variables
7540 test -z "$AR" && AR=ar
7541 test -z "$AR_FLAGS" && AR_FLAGS=cru
7542 test -z "$AS" && AS=as
7543 test -z "$CC" && CC=cc
7544 test -z "$LTCC" && LTCC=$CC
7545 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7546 test -z "$DLLTOOL" && DLLTOOL=dlltool
7547 test -z "$LD" && LD=ld
7548 test -z "$LN_S" && LN_S="ln -s"
7549 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7550 test -z "$NM" && NM=nm
7551 test -z "$SED" && SED=sed
7552 test -z "$OBJDUMP" && OBJDUMP=objdump
7553 test -z "$RANLIB" && RANLIB=:
7554 test -z "$STRIP" && STRIP=:
7555 test -z "$ac_objext" && ac_objext=o
7557 # Determine commands to create old-style static archives.
7558 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7559 old_postinstall_cmds='chmod 644 $oldlib'
7560 old_postuninstall_cmds=
7562 if test -n "$RANLIB"; then
7565 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7568 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7571 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7574 for cc_temp in $compiler""; do
7576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7582 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7585 # Only perform the check for file, if the check method requires it
7586 case $deplibs_check_method in
7588 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7589 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7590 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7591 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7599 lt_save_MAGIC_CMD="$MAGIC_CMD"
7600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7601 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7602 for ac_dir in $ac_dummy; do
7604 test -z "$ac_dir" && ac_dir=.
7605 if test -f $ac_dir/${ac_tool_prefix}file; then
7606 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7607 if test -n "$file_magic_test_file"; then
7608 case $deplibs_check_method in
7610 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7612 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7613 $EGREP "$file_magic_regex" > /dev/null; then
7618 *** Warning: the command libtool uses to detect shared libraries,
7619 *** $file_magic_cmd, produces output that libtool cannot recognize.
7620 *** The result is that libtool may fail to recognize shared libraries
7621 *** as such. This will affect the creation of libtool libraries that
7622 *** depend on shared libraries, but programs linked with such libtool
7623 *** libraries will work regardless of this problem. Nevertheless, you
7624 *** may want to report the problem to your system manager and/or to
7625 *** bug-libtool@gnu.org
7635 MAGIC_CMD="$lt_save_MAGIC_CMD"
7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641 if test -n "$MAGIC_CMD"; then
7642 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7643 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7645 { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7649 if test -z "$lt_cv_path_MAGIC_CMD"; then
7650 if test -n "$ac_tool_prefix"; then
7651 { echo "$as_me:$LINENO: checking for file" >&5
7652 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7653 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7661 lt_save_MAGIC_CMD="$MAGIC_CMD"
7662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7664 for ac_dir in $ac_dummy; do
7666 test -z "$ac_dir" && ac_dir=.
7667 if test -f $ac_dir/file; then
7668 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7669 if test -n "$file_magic_test_file"; then
7670 case $deplibs_check_method in
7672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7675 $EGREP "$file_magic_regex" > /dev/null; then
7680 *** Warning: the command libtool uses to detect shared libraries,
7681 *** $file_magic_cmd, produces output that libtool cannot recognize.
7682 *** The result is that libtool may fail to recognize shared libraries
7683 *** as such. This will affect the creation of libtool libraries that
7684 *** depend on shared libraries, but programs linked with such libtool
7685 *** libraries will work regardless of this problem. Nevertheless, you
7686 *** may want to report the problem to your system manager and/or to
7687 *** bug-libtool@gnu.org
7697 MAGIC_CMD="$lt_save_MAGIC_CMD"
7702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703 if test -n "$MAGIC_CMD"; then
7704 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7705 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7707 { echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6; }
7722 rhapsody* | darwin*)
7723 if test -n "$ac_tool_prefix"; then
7724 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7725 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7728 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 if test -n "$DSYMUTIL"; then
7732 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7752 if test -n "$DSYMUTIL"; then
7753 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7754 echo "${ECHO_T}$DSYMUTIL" >&6; }
7756 { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7762 if test -z "$ac_cv_prog_DSYMUTIL"; then
7763 ac_ct_DSYMUTIL=$DSYMUTIL
7764 # Extract the first word of "dsymutil", so it can be a program name with args.
7765 set dummy dsymutil; ac_word=$2
7766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7768 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 if test -n "$ac_ct_DSYMUTIL"; then
7772 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7792 if test -n "$ac_ct_DSYMUTIL"; then
7793 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7794 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7796 { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7800 if test "x$ac_ct_DSYMUTIL" = x; then
7803 case $cross_compiling:$ac_tool_warned in
7805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7806 whose name does not start with the host triplet. If you think this
7807 configuration is useful to you, please write to autoconf@gnu.org." >&5
7808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7809 whose name does not start with the host triplet. If you think this
7810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7811 ac_tool_warned=yes ;;
7813 DSYMUTIL=$ac_ct_DSYMUTIL
7816 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7819 if test -n "$ac_tool_prefix"; then
7820 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7821 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 if test -n "$NMEDIT"; then
7828 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 NMEDIT=$ac_cv_prog_NMEDIT
7848 if test -n "$NMEDIT"; then
7849 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7850 echo "${ECHO_T}$NMEDIT" >&6; }
7852 { echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6; }
7858 if test -z "$ac_cv_prog_NMEDIT"; then
7859 ac_ct_NMEDIT=$NMEDIT
7860 # Extract the first word of "nmedit", so it can be a program name with args.
7861 set dummy nmedit; ac_word=$2
7862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7864 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 if test -n "$ac_ct_NMEDIT"; then
7868 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7888 if test -n "$ac_ct_NMEDIT"; then
7889 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7890 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7892 { echo "$as_me:$LINENO: result: no" >&5
7893 echo "${ECHO_T}no" >&6; }
7896 if test "x$ac_ct_NMEDIT" = x; then
7899 case $cross_compiling:$ac_tool_warned in
7901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7902 whose name does not start with the host triplet. If you think this
7903 configuration is useful to you, please write to autoconf@gnu.org." >&5
7904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7905 whose name does not start with the host triplet. If you think this
7906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7907 ac_tool_warned=yes ;;
7909 NMEDIT=$ac_ct_NMEDIT
7912 NMEDIT="$ac_cv_prog_NMEDIT"
7916 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7917 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7918 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 lt_cv_apple_cc_single_mod=no
7922 if test -z "${LT_MULTI_MODULE}"; then
7923 # By default we will add the -single_module flag. You can override
7924 # by either setting the environment variable LT_MULTI_MODULE
7925 # non-empty at configure time, or by adding -multi_module to the
7927 echo "int foo(void){return 1;}" > conftest.c
7928 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7929 -dynamiclib ${wl}-single_module conftest.c
7930 if test -f libconftest.dylib; then
7931 lt_cv_apple_cc_single_mod=yes
7932 rm -rf libconftest.dylib*
7937 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7938 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7939 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7940 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7941 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 lt_cv_ld_exported_symbols_list=no
7945 save_LDFLAGS=$LDFLAGS
7946 echo "_main" > conftest.sym
7947 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (ac_try="$ac_link"
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970 (eval "$ac_link") 2>conftest.er1
7972 grep -v '^ *+' conftest.er1 >conftest.err
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } && {
7977 test -z "$ac_c_werror_flag" ||
7978 test ! -s conftest.err
7979 } && test -s conftest$ac_exeext &&
7980 $as_test_x conftest$ac_exeext; then
7981 lt_cv_ld_exported_symbols_list=yes
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7986 lt_cv_ld_exported_symbols_list=no
7989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7990 conftest$ac_exeext conftest.$ac_ext
7991 LDFLAGS="$save_LDFLAGS"
7994 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7995 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7997 rhapsody* | darwin1.[0123])
7998 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8000 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8002 # if running on 10.5 or later, the deployment target defaults
8003 # to the OS version, if on x86, and 10.4, the deployment
8004 # target defaults to 10.4. Don't you love it?
8005 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8006 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8007 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8009 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8011 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8015 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8016 _lt_dar_single_mod='$single_module'
8018 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8019 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8021 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8023 if test "$DSYMUTIL" != ":"; then
8024 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8035 # Check whether --enable-libtool-lock was given.
8036 if test "${enable_libtool_lock+set}" = set; then
8037 enableval=$enable_libtool_lock;
8040 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8043 # Check whether --with-pic was given.
8044 if test "${with_pic+set}" = set; then
8045 withval=$with_pic; pic_mode="$withval"
8050 test -z "$pic_mode" && pic_mode=default
8052 # Use C for the default configuration in the libtool script
8056 ac_cpp='$CPP $CPPFLAGS'
8057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8062 # Source file extension for C test sources.
8065 # Object file extension for compiled C test sources.
8069 # Code to be used in simple compile tests
8070 lt_simple_compile_test_code="int some_variable = 0;"
8072 # Code to be used in simple link tests
8073 lt_simple_link_test_code='int main(){return(0);}'
8076 # If no C compiler was specified, use CC.
8079 # If no C compiler flags were specified, use CFLAGS.
8080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8082 # Allow CC to be a program name with arguments.
8086 # save warnings/boilerplate of simple test code
8087 ac_outfile=conftest.$ac_objext
8088 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8089 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8090 _lt_compiler_boilerplate=`cat conftest.err`
8093 ac_outfile=conftest.$ac_objext
8094 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8095 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8096 _lt_linker_boilerplate=`cat conftest.err`
8101 ## There is no encapsulation within the following macros, do not change
8102 ## the running order or otherwise move them around unless you know exactly
8103 ## what you are doing...
8105 lt_prog_compiler_no_builtin_flag=
8107 if test "$GCC" = yes; then
8108 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8111 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8112 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8113 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 lt_cv_prog_compiler_rtti_exceptions=no
8117 ac_outfile=conftest.$ac_objext
8118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8119 lt_compiler_flag="-fno-rtti -fno-exceptions"
8120 # Insert the option either (1) after the last *FLAGS variable, or
8121 # (2) before a word containing "conftest.", or (3) at the end.
8122 # Note that $ac_compile itself does not contain backslashes and begins
8123 # with a dollar sign (not a hyphen), so the echo should work correctly.
8124 # The option is referenced via a variable to avoid confusing sed.
8125 lt_compile=`echo "$ac_compile" | $SED \
8126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8128 -e 's:$: $lt_compiler_flag:'`
8129 (eval echo "\"\$as_me:8129: $lt_compile\"" >&5)
8130 (eval "$lt_compile" 2>conftest.err)
8132 cat conftest.err >&5
8133 echo "$as_me:8133: \$? = $ac_status" >&5
8134 if (exit $ac_status) && test -s "$ac_outfile"; then
8135 # The compiler can only warn and ignore the option if not recognized
8136 # So say no if there are warnings other than the usual output.
8137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8140 lt_cv_prog_compiler_rtti_exceptions=yes
8146 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8147 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8149 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8150 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8157 lt_prog_compiler_wl=
8158 lt_prog_compiler_pic=
8159 lt_prog_compiler_static=
8161 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8162 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8164 if test "$GCC" = yes; then
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_static='-static'
8170 # All AIX code is PIC.
8171 if test "$host_cpu" = ia64; then
8172 # AIX 5 now supports IA64 processor
8173 lt_prog_compiler_static='-Bstatic'
8178 # FIXME: we need at least 68020 code to build shared libraries, but
8179 # adding the `-m68020' flag to GCC prevents building anything better,
8181 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8184 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8185 # PIC is the default for these OSes.
8188 mingw* | cygwin* | pw32* | os2*)
8189 # This hack is so that the source file can tell whether it is being
8190 # built for inclusion in a dll (and should export symbols for example).
8191 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8192 # (--disable-auto-import) libraries
8193 lt_prog_compiler_pic='-DDLL_EXPORT'
8196 darwin* | rhapsody*)
8197 # PIC is the default on this platform
8198 # Common symbols not allowed in MH_DYLIB files
8199 lt_prog_compiler_pic='-fno-common'
8203 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8204 # Instead, we relocate shared libraries at runtime.
8208 # Just because we use GCC doesn't mean we suddenly get shared libraries
8209 # on systems that don't support them.
8210 lt_prog_compiler_can_build_shared=no
8215 if test -d /usr/nec; then
8216 lt_prog_compiler_pic=-Kconform_pic
8221 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8228 lt_prog_compiler_pic='-fPIC'
8234 lt_prog_compiler_pic='-fPIC'
8238 # PORTME Check for flag to pass linker flags through the system compiler.
8241 lt_prog_compiler_wl='-Wl,'
8242 if test "$host_cpu" = ia64; then
8243 # AIX 5 now supports IA64 processor
8244 lt_prog_compiler_static='-Bstatic'
8246 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8250 # PIC is the default on this platform
8251 # Common symbols not allowed in MH_DYLIB files
8252 case $cc_basename in
8254 lt_prog_compiler_pic='-qnocommon'
8255 lt_prog_compiler_wl='-Wl,'
8260 mingw* | cygwin* | pw32* | os2*)
8261 # This hack is so that the source file can tell whether it is being
8262 # built for inclusion in a dll (and should export symbols for example).
8263 lt_prog_compiler_pic='-DDLL_EXPORT'
8266 hpux9* | hpux10* | hpux11*)
8267 lt_prog_compiler_wl='-Wl,'
8268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8275 lt_prog_compiler_pic='+Z'
8278 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8279 lt_prog_compiler_static='${wl}-a ${wl}archive'
8282 irix5* | irix6* | nonstopux*)
8283 lt_prog_compiler_wl='-Wl,'
8284 # PIC (with -KPIC) is the default.
8285 lt_prog_compiler_static='-non_shared'
8289 lt_prog_compiler_pic='-KPIC'
8290 lt_prog_compiler_static='-Bstatic'
8293 linux* | k*bsd*-gnu)
8294 case $cc_basename in
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-KPIC'
8298 lt_prog_compiler_static='-static'
8300 pgcc* | pgf77* | pgf90* | pgf95*)
8301 # Portland Group compilers (*not* the Pentium gcc compiler,
8302 # which looks to be a dead project)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-fpic'
8305 lt_prog_compiler_static='-Bstatic'
8308 lt_prog_compiler_wl='-Wl,'
8309 # All Alpha code is PIC.
8310 lt_prog_compiler_static='-non_shared'
8313 case `$CC -V 2>&1 | sed 5q` in
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-Bstatic'
8318 lt_prog_compiler_wl='-Wl,'
8321 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-Bstatic'
8324 lt_prog_compiler_wl=''
8331 osf3* | osf4* | osf5*)
8332 lt_prog_compiler_wl='-Wl,'
8333 # All OSF/1 code is PIC.
8334 lt_prog_compiler_static='-non_shared'
8338 lt_prog_compiler_static='-non_shared'
8342 lt_prog_compiler_pic='-KPIC'
8343 lt_prog_compiler_static='-Bstatic'
8344 case $cc_basename in
8346 lt_prog_compiler_wl='-Qoption ld ';;
8348 lt_prog_compiler_wl='-Wl,';;
8353 lt_prog_compiler_wl='-Qoption ld '
8354 lt_prog_compiler_pic='-PIC'
8355 lt_prog_compiler_static='-Bstatic'
8358 sysv4 | sysv4.2uw2* | sysv4.3*)
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8365 if test -d /usr/nec ;then
8366 lt_prog_compiler_pic='-Kconform_pic'
8367 lt_prog_compiler_static='-Bstatic'
8371 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8372 lt_prog_compiler_wl='-Wl,'
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_can_build_shared=no
8383 lt_prog_compiler_pic='-pic'
8384 lt_prog_compiler_static='-Bstatic'
8388 lt_prog_compiler_can_build_shared=no
8393 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8394 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8397 # Check to make sure the PIC flag actually works.
8399 if test -n "$lt_prog_compiler_pic"; then
8401 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8402 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8403 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 lt_cv_prog_compiler_pic_works=no
8407 ac_outfile=conftest.$ac_objext
8408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8409 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8410 # Insert the option either (1) after the last *FLAGS variable, or
8411 # (2) before a word containing "conftest.", or (3) at the end.
8412 # Note that $ac_compile itself does not contain backslashes and begins
8413 # with a dollar sign (not a hyphen), so the echo should work correctly.
8414 # The option is referenced via a variable to avoid confusing sed.
8415 lt_compile=`echo "$ac_compile" | $SED \
8416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8418 -e 's:$: $lt_compiler_flag:'`
8419 (eval echo "\"\$as_me:8419: $lt_compile\"" >&5)
8420 (eval "$lt_compile" 2>conftest.err)
8422 cat conftest.err >&5
8423 echo "$as_me:8423: \$? = $ac_status" >&5
8424 if (exit $ac_status) && test -s "$ac_outfile"; then
8425 # The compiler can only warn and ignore the option if not recognized
8426 # So say no if there are warnings other than the usual output.
8427 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8430 lt_cv_prog_compiler_pic_works=yes
8436 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8437 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8439 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8440 case $lt_prog_compiler_pic in
8442 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8445 lt_prog_compiler_pic=
8446 lt_prog_compiler_can_build_shared=no
8451 # For platforms which do not support PIC, -DPIC is meaningless:
8453 lt_prog_compiler_pic=
8456 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8461 # Check to make sure the static flag actually works.
8463 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8464 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8465 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8466 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 lt_cv_prog_compiler_static_works=no
8470 save_LDFLAGS="$LDFLAGS"
8471 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8472 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8473 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8474 # The linker can only warn and ignore the option if not recognized
8475 # So say no if there are warnings
8476 if test -s conftest.err; then
8477 # Append any errors to the config.log.
8478 cat conftest.err 1>&5
8479 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8481 if diff conftest.exp conftest.er2 >/dev/null; then
8482 lt_cv_prog_compiler_static_works=yes
8485 lt_cv_prog_compiler_static_works=yes
8489 LDFLAGS="$save_LDFLAGS"
8492 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8493 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8495 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8498 lt_prog_compiler_static=
8502 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8503 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8504 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 lt_cv_prog_compiler_c_o=no
8508 $rm -r conftest 2>/dev/null
8512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8514 lt_compiler_flag="-o out/conftest2.$ac_objext"
8515 # Insert the option either (1) after the last *FLAGS variable, or
8516 # (2) before a word containing "conftest.", or (3) at the end.
8517 # Note that $ac_compile itself does not contain backslashes and begins
8518 # with a dollar sign (not a hyphen), so the echo should work correctly.
8519 lt_compile=`echo "$ac_compile" | $SED \
8520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8522 -e 's:$: $lt_compiler_flag:'`
8523 (eval echo "\"\$as_me:8523: $lt_compile\"" >&5)
8524 (eval "$lt_compile" 2>out/conftest.err)
8526 cat out/conftest.err >&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8530 # The compiler can only warn and ignore the option if not recognized
8531 # So say no if there are warnings
8532 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8533 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8534 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8535 lt_cv_prog_compiler_c_o=yes
8540 # SGI C++ compiler will create directory out/ii_files/ for
8541 # template instantiation
8542 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8543 $rm out/* && rmdir out
8549 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8550 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8553 hard_links="nottested"
8554 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8555 # do not overwrite the value of need_locks provided by the user
8556 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8557 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8562 ln conftest.a conftest.b 2>&5 || hard_links=no
8563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8564 { echo "$as_me:$LINENO: result: $hard_links" >&5
8565 echo "${ECHO_T}$hard_links" >&6; }
8566 if test "$hard_links" = no; then
8567 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8568 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8575 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8576 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8579 allow_undefined_flag=
8580 enable_shared_with_static_runtimes=no
8582 archive_expsym_cmds=
8583 old_archive_From_new_cmds=
8584 old_archive_from_expsyms_cmds=
8585 export_dynamic_flag_spec=
8586 whole_archive_flag_spec=
8587 thread_safe_flag_spec=
8588 hardcode_libdir_flag_spec=
8589 hardcode_libdir_flag_spec_ld=
8590 hardcode_libdir_separator=
8593 hardcode_shlibpath_var=unsupported
8594 link_all_deplibs=unknown
8595 hardcode_automatic=no
8598 always_export_symbols=no
8599 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8600 # include_expsyms should be a list of space-separated symbols to be *always*
8601 # included in the symbol list
8603 # exclude_expsyms can be an extended regexp of symbols to exclude
8604 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8605 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8606 # as well as any symbol that contains `d'.
8607 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8608 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8609 # platforms (ab)use it in PIC code, but their linkers get confused if
8610 # the symbol is explicitly referenced. Since portable code cannot
8611 # rely on this symbol name, it's probably fine to never include it in
8612 # preloaded symbol tables.
8613 # Exclude shared library initialization/finalization symbols.
8614 extract_expsyms_cmds=
8615 # Just being paranoid about ensuring that cc_basename is set.
8616 for cc_temp in $compiler""; do
8618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8624 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8627 cygwin* | mingw* | pw32*)
8628 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8629 # When not using gcc, we currently assume that we are using
8630 # Microsoft Visual C++.
8631 if test "$GCC" != yes; then
8636 # we just hope/assume this is gcc and not c89 (= MSVC++)
8645 if test "$with_gnu_ld" = yes; then
8646 # If archive_cmds runs LD, not CC, wlarc should be empty
8649 # Set some defaults for GNU ld with shared library support. These
8650 # are reset later if shared libraries are not supported. Putting them
8651 # here allows them to be overridden if necessary.
8652 runpath_var=LD_RUN_PATH
8653 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8654 export_dynamic_flag_spec='${wl}--export-dynamic'
8655 # ancient GNU ld didn't support --whole-archive et. al.
8656 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8657 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8659 whole_archive_flag_spec=
8661 supports_anon_versioning=no
8662 case `$LD -v 2>/dev/null` in
8663 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8666 *\ 2.11.*) ;; # other 2.11 versions
8667 *) supports_anon_versioning=yes ;;
8670 # See if GNU ld supports shared libraries.
8673 # On AIX/PPC, the GNU linker is very broken
8674 if test "$host_cpu" != ia64; then
8678 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8679 *** to be unable to reliably create shared libraries on AIX.
8680 *** Therefore, libtool is disabling shared libraries support. If you
8681 *** really care for shared libraries, you may want to modify your PATH
8682 *** so that a non-GNU linker is found, and then restart.
8689 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)'
8690 hardcode_libdir_flag_spec='-L$libdir'
8691 hardcode_minus_L=yes
8693 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8694 # that the semantics of dynamic libraries on AmigaOS, at least up
8695 # to version 4, is to share data among multiple programs linked
8696 # with the same dynamic library. Since this doesn't match the
8697 # behavior of shared libraries on other platforms, we can't use
8703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8704 allow_undefined_flag=unsupported
8705 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8706 # support --undefined. This deserves some investigation. FIXME
8707 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 cygwin* | mingw* | pw32*)
8714 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8715 # as there is no search path for DLLs.
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 allow_undefined_flag=unsupported
8718 always_export_symbols=no
8719 enable_shared_with_static_runtimes=yes
8720 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8722 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8724 # If the export-symbols file already is a .def file (1st line
8725 # is EXPORTS), use it as is; otherwise, prepend...
8726 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8727 cp $export_symbols $output_objdir/$soname.def;
8729 echo EXPORTS > $output_objdir/$soname.def;
8730 cat $export_symbols >> $output_objdir/$soname.def;
8732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8740 hardcode_shlibpath_var=no
8741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8742 export_dynamic_flag_spec='${wl}-E'
8743 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8744 # Instead, shared libraries are loaded at an image base (0x10000000 by
8745 # default) and relocated if they conflict, which is a slow very memory
8746 # consuming and fragmenting process. To avoid this, we pick a random,
8747 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8748 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8750 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'
8753 gnu* | linux* | k*bsd*-gnu)
8754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8756 case $cc_basename,$host_cpu in
8757 pgcc*) # Portland Group C compiler
8758 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'
8759 tmp_addflag=' $pic_flag'
8761 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8762 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'
8763 tmp_addflag=' $pic_flag -Mnomain' ;;
8764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8765 tmp_addflag=' -i_dynamic' ;;
8766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8767 tmp_addflag=' -i_dynamic -nofor_main' ;;
8768 ifc* | ifort*) # Intel Fortran compiler
8769 tmp_addflag=' -nofor_main' ;;
8771 case `$CC -V 2>&1 | sed 5q` in
8772 *Sun\ C*) # Sun C 5.9
8773 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'
8774 tmp_sharedflag='-G' ;;
8775 *Sun\ F*) # Sun Fortran 8.3
8776 tmp_sharedflag='-G' ;;
8778 tmp_sharedflag='-shared' ;;
8780 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782 if test $supports_anon_versioning = yes; then
8783 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8785 $echo "local: *; };" >> $output_objdir/$libname.ver~
8786 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8795 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8804 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8809 *** create shared libraries on Solaris systems. Therefore, libtool
8810 *** is disabling shared libraries support. We urge you to upgrade GNU
8811 *** binutils to release 2.9.1 or newer. Another option is to modify
8812 *** your PATH or compiler configuration so that the native linker is
8813 *** used, and then restart.
8816 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8825 case `$LD -v 2>&1` in
8826 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8831 *** reliably create shared libraries on SCO systems. Therefore, libtool
8832 *** is disabling shared libraries support. We urge you to upgrade GNU
8833 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8834 *** your PATH or compiler configuration so that the native linker is
8835 *** used, and then restart.
8840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8841 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8852 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8855 hardcode_shlibpath_var=no
8859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8868 if test "$ld_shlibs" = no; then
8870 hardcode_libdir_flag_spec=
8871 export_dynamic_flag_spec=
8872 whole_archive_flag_spec=
8875 # PORTME fill in a description of your system's linker (not GNU ld)
8878 allow_undefined_flag=unsupported
8879 always_export_symbols=yes
8880 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'
8881 # Note: this linker hardcodes the directories in LIBPATH if there
8882 # are no directories specified by -L.
8883 hardcode_minus_L=yes
8884 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8885 # Neither direct hardcoding nor static linking is supported with a
8887 hardcode_direct=unsupported
8892 if test "$host_cpu" = ia64; then
8893 # On IA64, the linker does run time linking by default, so we don't
8894 # have to do anything special.
8895 aix_use_runtimelinking=no
8896 exp_sym_flag='-Bexport'
8899 # If we're using GNU nm, then we don't want the "-C" option.
8900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8902 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'
8904 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'
8906 aix_use_runtimelinking=no
8908 # Test if we are trying to use run time linking or normal
8909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8910 # need to do runtime linking.
8911 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8912 for ld_flag in $LDFLAGS; do
8913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8914 aix_use_runtimelinking=yes
8921 exp_sym_flag='-bexport'
8922 no_entry_flag='-bnoentry'
8925 # When large executables or shared objects are built, AIX ld can
8926 # have problems creating the table of contents. If linking a library
8927 # or program results in "error TOC overflow" add -mminimal-toc to
8928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8933 hardcode_libdir_separator=':'
8934 link_all_deplibs=yes
8936 if test "$GCC" = yes; then
8937 case $host_os in aix4.[012]|aix4.[012].*)
8938 # We only want to do this on AIX 4.2 and lower, the check
8939 # below for broken collect2 doesn't work under 4.3+
8940 collect2name=`${CC} -print-prog-name=collect2`
8941 if test -f "$collect2name" && \
8942 strings "$collect2name" | grep resolve_lib_name >/dev/null
8944 # We have reworked collect2
8947 # We have old collect2
8948 hardcode_direct=unsupported
8949 # It fails to find uninstalled libraries when the uninstalled
8950 # path is not listed in the libpath. Setting hardcode_minus_L
8951 # to unsupported forces relinking
8952 hardcode_minus_L=yes
8953 hardcode_libdir_flag_spec='-L$libdir'
8954 hardcode_libdir_separator=
8958 shared_flag='-shared'
8959 if test "$aix_use_runtimelinking" = yes; then
8960 shared_flag="$shared_flag "'${wl}-G'
8964 if test "$host_cpu" = ia64; then
8965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8966 # chokes on -Wl,-G. The following line is correct:
8969 if test "$aix_use_runtimelinking" = yes; then
8970 shared_flag='${wl}-G'
8972 shared_flag='${wl}-bM:SRE'
8977 # It seems that -bexpall does not export symbols beginning with
8978 # underscore (_), so it is better to generate a list of symbols to export.
8979 always_export_symbols=yes
8980 if test "$aix_use_runtimelinking" = yes; then
8981 # Warning - without using the other runtime loading flags (-brtl),
8982 # -berok will link without error, but may produce a broken library.
8983 allow_undefined_flag='-berok'
8984 # Determine the default libpath from the value encoded in an empty executable.
8985 cat >conftest.$ac_ext <<_ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (ac_try="$ac_link"
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_link") 2>conftest.er1
9009 grep -v '^ *+' conftest.er1 >conftest.err
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } && {
9014 test -z "$ac_c_werror_flag" ||
9015 test ! -s conftest.err
9016 } && test -s conftest$ac_exeext &&
9017 $as_test_x conftest$ac_exeext; then
9019 lt_aix_libpath_sed='
9020 /Import File Strings/,/^$/ {
9026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9027 # Check for a 64-bit object if we didn't find anything.
9028 if test -z "$aix_libpath"; then
9029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9039 conftest$ac_exeext conftest.$ac_ext
9040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9043 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"
9045 if test "$host_cpu" = ia64; then
9046 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9047 allow_undefined_flag="-z nodefs"
9048 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"
9050 # Determine the default libpath from the value encoded in an empty executable.
9051 cat >conftest.$ac_ext <<_ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_link") 2>conftest.er1
9075 grep -v '^ *+' conftest.er1 >conftest.err
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } && {
9080 test -z "$ac_c_werror_flag" ||
9081 test ! -s conftest.err
9082 } && test -s conftest$ac_exeext &&
9083 $as_test_x conftest$ac_exeext; then
9085 lt_aix_libpath_sed='
9086 /Import File Strings/,/^$/ {
9092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9093 # Check for a 64-bit object if we didn't find anything.
9094 if test -z "$aix_libpath"; then
9095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9105 conftest$ac_exeext conftest.$ac_ext
9106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9109 # Warning - without using the other run time loading flags,
9110 # -berok will link without error, but may produce a broken library.
9111 no_undefined_flag=' ${wl}-bernotok'
9112 allow_undefined_flag=' ${wl}-berok'
9113 # Exported symbols can be pulled into shared objects from archives
9114 whole_archive_flag_spec='$convenience'
9115 archive_cmds_need_lc=yes
9116 # This is similar to how AIX traditionally builds its shared libraries.
9117 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'
9123 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)'
9124 hardcode_libdir_flag_spec='-L$libdir'
9125 hardcode_minus_L=yes
9126 # see comment about different semantics on the GNU ld section
9131 export_dynamic_flag_spec=-rdynamic
9134 cygwin* | mingw* | pw32*)
9135 # When not using gcc, we currently assume that we are using
9136 # Microsoft Visual C++.
9137 # hardcode_libdir_flag_spec is actually meaningless, as there is
9138 # no search path for DLLs.
9139 hardcode_libdir_flag_spec=' '
9140 allow_undefined_flag=unsupported
9141 # Tell ltmain to make .lib files, not .a files.
9143 # Tell ltmain to make .dll files, not .so files.
9145 # FIXME: Setting linknames here is a bad hack.
9146 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9147 # The linker will automatically build a .lib file if we build a DLL.
9148 old_archive_From_new_cmds='true'
9149 # FIXME: Should let the user specify the lib program.
9150 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9151 fix_srcfile_path='`cygpath -w "$srcfile"`'
9152 enable_shared_with_static_runtimes=yes
9155 darwin* | rhapsody*)
9157 rhapsody* | darwin1.[012])
9158 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9161 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9162 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9164 case ${MACOSX_DEPLOYMENT_TARGET} in
9166 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9169 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9175 archive_cmds_need_lc=no
9177 hardcode_automatic=yes
9178 hardcode_shlibpath_var=unsupported
9179 whole_archive_flag_spec=''
9180 link_all_deplibs=yes
9181 if test "$GCC" = yes ; then
9182 output_verbose_link_cmd='echo'
9183 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9184 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9185 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}"
9186 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}"
9188 case $cc_basename in
9190 output_verbose_link_cmd='echo'
9191 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9192 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9194 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}'
9195 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}'
9205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9206 hardcode_libdir_flag_spec='-L$libdir'
9207 hardcode_shlibpath_var=no
9214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9215 # support. Future versions do this automatically, but an explicit c++rt0.o
9216 # does not break anything, and helps significantly (at the cost of a little
9219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9220 hardcode_libdir_flag_spec='-R$libdir'
9222 hardcode_shlibpath_var=no
9225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9229 hardcode_minus_L=yes
9230 hardcode_shlibpath_var=no
9233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9234 freebsd* | dragonfly*)
9235 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9236 hardcode_libdir_flag_spec='-R$libdir'
9238 hardcode_shlibpath_var=no
9242 if test "$GCC" = yes; then
9243 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'
9245 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'
9247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9248 hardcode_libdir_separator=:
9251 # hardcode_minus_L: Not really in the search PATH,
9252 # but as the default location of the library.
9253 hardcode_minus_L=yes
9254 export_dynamic_flag_spec='${wl}-E'
9258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9259 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9263 if test "$with_gnu_ld" = no; then
9264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9265 hardcode_libdir_separator=:
9268 export_dynamic_flag_spec='${wl}-E'
9270 # hardcode_minus_L: Not really in the search PATH,
9271 # but as the default location of the library.
9272 hardcode_minus_L=yes
9277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9280 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9283 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9286 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9292 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9295 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9302 if test "$with_gnu_ld" = no; then
9303 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9304 hardcode_libdir_separator=:
9308 hardcode_libdir_flag_spec_ld='+b $libdir'
9310 hardcode_shlibpath_var=no
9314 export_dynamic_flag_spec='${wl}-E'
9316 # hardcode_minus_L: Not really in the search PATH,
9317 # but as the default location of the library.
9318 hardcode_minus_L=yes
9324 irix5* | irix6* | nonstopux*)
9325 if test "$GCC" = yes; then
9326 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'
9328 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'
9329 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9332 hardcode_libdir_separator=:
9333 link_all_deplibs=yes
9337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9340 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9342 hardcode_libdir_flag_spec='-R$libdir'
9344 hardcode_shlibpath_var=no
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9351 hardcode_libdir_separator=:
9352 hardcode_shlibpath_var=no
9356 if test -f /usr/libexec/ld.so; then
9358 hardcode_shlibpath_var=no
9359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9361 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9363 export_dynamic_flag_spec='${wl}-E'
9366 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9368 hardcode_libdir_flag_spec='-R$libdir'
9371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9372 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9382 hardcode_libdir_flag_spec='-L$libdir'
9383 hardcode_minus_L=yes
9384 allow_undefined_flag=unsupported
9385 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'
9386 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9390 if test "$GCC" = yes; then
9391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9392 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'
9394 allow_undefined_flag=' -expect_unresolved \*'
9395 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'
9397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398 hardcode_libdir_separator=:
9401 osf4* | osf5*) # as osf3* with the addition of -msym flag
9402 if test "$GCC" = yes; then
9403 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9404 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'
9405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9407 allow_undefined_flag=' -expect_unresolved \*'
9408 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'
9409 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9410 $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'
9412 # Both c and cxx compiler support -rpath directly
9413 hardcode_libdir_flag_spec='-rpath $libdir'
9415 hardcode_libdir_separator=:
9419 no_undefined_flag=' -z text'
9420 if test "$GCC" = yes; then
9422 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9424 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9427 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9429 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9431 hardcode_libdir_flag_spec='-R$libdir'
9432 hardcode_shlibpath_var=no
9434 solaris2.[0-5] | solaris2.[0-5].*) ;;
9436 # The compiler driver will combine and reorder linker options,
9437 # but understands `-z linker_flag'. GCC discards it without `$wl',
9438 # but is careful enough not to reorder.
9439 # Supported since Solaris 2.6 (maybe 2.5.1?)
9440 if test "$GCC" = yes; then
9441 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9443 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9447 link_all_deplibs=yes
9451 if test "x$host_vendor" = xsequent; then
9452 # Use $CC to link under sequent, because it throws in some extra .o
9453 # files that make .init and .fini sections work.
9454 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9458 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_minus_L=yes
9461 hardcode_shlibpath_var=no
9465 case $host_vendor in
9467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468 hardcode_direct=yes # is this really true???
9471 ## LD is ld it makes a PLAMLIB
9472 ## CC just makes a GrossModule.
9473 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9474 reload_cmds='$CC -r -o $output$reload_objs'
9478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9479 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9482 runpath_var='LD_RUN_PATH'
9483 hardcode_shlibpath_var=no
9487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9488 hardcode_shlibpath_var=no
9489 export_dynamic_flag_spec='-Bexport'
9493 if test -d /usr/nec; then
9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_shlibpath_var=no
9496 runpath_var=LD_RUN_PATH
9497 hardcode_runpath_var=yes
9502 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9503 no_undefined_flag='${wl}-z,text'
9504 archive_cmds_need_lc=no
9505 hardcode_shlibpath_var=no
9506 runpath_var='LD_RUN_PATH'
9508 if test "$GCC" = yes; then
9509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517 sysv5* | sco3.2v5* | sco5v6*)
9518 # Note: We can NOT use -z defs as we might desire, because we do not
9519 # link with -lc, and that would cause any symbols used from libc to
9520 # always be unresolved, which means just about no library would
9521 # ever link correctly. If we're not using GNU ld we use -z text
9522 # though, which does catch some bad symbols but isn't as heavy-handed
9524 no_undefined_flag='${wl}-z,text'
9525 allow_undefined_flag='${wl}-z,nodefs'
9526 archive_cmds_need_lc=no
9527 hardcode_shlibpath_var=no
9528 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9529 hardcode_libdir_separator=':'
9530 link_all_deplibs=yes
9531 export_dynamic_flag_spec='${wl}-Bexport'
9532 runpath_var='LD_RUN_PATH'
9534 if test "$GCC" = yes; then
9535 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9536 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9539 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545 hardcode_libdir_flag_spec='-L$libdir'
9546 hardcode_shlibpath_var=no
9555 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9556 echo "${ECHO_T}$ld_shlibs" >&6; }
9557 test "$ld_shlibs" = no && can_build_shared=no
9560 # Do we need to explicitly link libc?
9562 case "x$archive_cmds_need_lc" in
9564 # Assume -lc should be added
9565 archive_cmds_need_lc=yes
9567 if test "$enable_shared" = yes && test "$GCC" = yes; then
9568 case $archive_cmds in
9570 # FIXME: we may have to deal with multi-command sequences.
9573 # Test whether the compiler implicitly links with -lc since on some
9574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9575 # to ld, don't add -lc before -lgcc.
9576 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9577 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } 2>conftest.err; then
9588 libobjs=conftest.$ac_objext
9590 wl=$lt_prog_compiler_wl
9591 pic_flag=$lt_prog_compiler_pic
9597 lt_save_allow_undefined_flag=$allow_undefined_flag
9598 allow_undefined_flag=
9599 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9600 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }
9605 archive_cmds_need_lc=no
9607 archive_cmds_need_lc=yes
9609 allow_undefined_flag=$lt_save_allow_undefined_flag
9611 cat conftest.err 1>&5
9614 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9615 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9622 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9623 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9625 libname_spec='lib$name'
9633 shlibpath_overrides_runpath=unknown
9635 dynamic_linker="$host_os ld.so"
9636 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9638 if test "$GCC" = yes; then
9640 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9641 *) lt_awk_arg="/^libraries:/" ;;
9643 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9644 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9645 # if the path contains ";" then we assume it to be the separator
9646 # otherwise default to the standard path separator (i.e. ":") - it is
9647 # assumed that no part of a normal pathname contains ";" but that should
9648 # okay in the real world where ";" in dirpaths is itself problematic.
9649 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9651 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9653 # Ok, now we have the path, separated by spaces, we can step through it
9654 # and add multilib dir if necessary.
9655 lt_tmp_lt_search_path_spec=
9656 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9657 for lt_sys_path in $lt_search_path_spec; do
9658 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9659 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9661 test -d "$lt_sys_path" && \
9662 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9665 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9666 BEGIN {RS=" "; FS="/|\n";} {
9669 for (lt_i = NF; lt_i > 0; lt_i--) {
9670 if ($lt_i != "" && $lt_i != ".") {
9671 if ($lt_i == "..") {
9674 if (lt_count == 0) {
9675 lt_foo="/" $lt_i lt_foo;
9682 if (lt_foo != "") { lt_freq[lt_foo]++; }
9683 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9685 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9687 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9690 hardcode_into_libs=no
9692 # when you set need_version to no, make sure it does not cause -set_version
9693 # flags to be left without arguments
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9700 shlibpath_var=LIBPATH
9702 # AIX 3 has no versioning support, so we append a major version to the name.
9703 soname_spec='${libname}${release}${shared_ext}$major'
9710 hardcode_into_libs=yes
9711 if test "$host_cpu" = ia64; then
9712 # AIX 5 supports IA64
9713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9714 shlibpath_var=LD_LIBRARY_PATH
9716 # With GCC up to 2.95.x, collect2 would create an import file
9717 # for dependence libraries. The import file would start with
9718 # the line `#! .'. This would cause the generated library to
9719 # depend on `.', always an invalid library. This was fixed in
9720 # development snapshots of GCC prior to 3.0.
9722 aix4 | aix4.[01] | aix4.[01].*)
9723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9725 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9733 # soname into executable. Probably we can add versioning support to
9734 # collect2, so additional links can be useful in future.
9735 if test "$aix_use_runtimelinking" = yes; then
9736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9737 # instead of lib<name>.a to let people know that these are not
9738 # typical AIX shared libraries.
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 # We preserve .a as extension for shared libraries through AIX4.2
9742 # and later when we are not doing run time linking.
9743 library_names_spec='${libname}${release}.a $libname.a'
9744 soname_spec='${libname}${release}${shared_ext}$major'
9746 shlibpath_var=LIBPATH
9751 library_names_spec='$libname.ixlibrary $libname.a'
9752 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9753 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'
9757 library_names_spec='${libname}${shared_ext}'
9758 dynamic_linker="$host_os ld.so"
9759 shlibpath_var=LIBRARY_PATH
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9770 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9771 # the default ld.so.conf also contains /usr/contrib/lib and
9772 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9773 # libtool to hard-code these into programs
9776 cygwin* | mingw* | pw32*)
9777 version_type=windows
9782 case $GCC,$host_os in
9783 yes,cygwin* | yes,mingw* | yes,pw32*)
9784 library_names_spec='$libname.dll.a'
9785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9786 postinstall_cmds='base_file=`basename \${file}`~
9787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9788 dldir=$destdir/`dirname \$dlpath`~
9789 test -d \$dldir || mkdir -p \$dldir~
9790 $install_prog $dir/$dlname \$dldir/$dlname~
9791 chmod a+x \$dldir/$dlname'
9792 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9793 dlpath=$dir/\$dldll~
9795 shlibpath_overrides_runpath=yes
9799 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9800 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9801 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9804 # MinGW DLLs use traditional 'lib' prefix
9805 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9807 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9808 # It is most probably a Windows format PATH printed by
9809 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9810 # path with ; separators, and with drive letters. We can handle the
9811 # drive letters (cygwin fileutils understands them), so leave them,
9812 # especially as we might pass files found there to a mingw objdump,
9813 # which wouldn't understand a cygwinified path. Ahh.
9814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9820 # pw32 DLLs use 'pw' prefix rather than 'lib'
9821 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9830 dynamic_linker='Win32 ld.exe'
9831 # FIXME: first we should search . and the directory the executable is in
9835 darwin* | rhapsody*)
9836 dynamic_linker="$host_os dyld"
9840 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9841 soname_spec='${libname}${release}${major}$shared_ext'
9842 shlibpath_overrides_runpath=yes
9843 shlibpath_var=DYLD_LIBRARY_PATH
9844 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9846 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9847 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 shlibpath_var=LD_LIBRARY_PATH
9863 freebsd* | dragonfly*)
9864 # DragonFly does not have aout. When/if they implement a new
9865 # versioning mechanism, adjust this.
9866 if test -x /usr/bin/objformat; then
9867 objformat=`/usr/bin/objformat`
9870 freebsd[123]*) objformat=aout ;;
9874 version_type=freebsd-$objformat
9875 case $version_type in
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9886 shlibpath_var=LD_LIBRARY_PATH
9889 shlibpath_overrides_runpath=yes
9891 freebsd3.[01]* | freebsdelf3.[01]*)
9892 shlibpath_overrides_runpath=yes
9893 hardcode_into_libs=yes
9895 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9896 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9897 shlibpath_overrides_runpath=no
9898 hardcode_into_libs=yes
9900 *) # from 4.6 on, and DragonFly
9901 shlibpath_overrides_runpath=yes
9902 hardcode_into_libs=yes
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 shlibpath_var=LD_LIBRARY_PATH
9914 hardcode_into_libs=yes
9917 hpux9* | hpux10* | hpux11*)
9918 # Give a soname corresponding to the major version so that dld.sl refuses to
9919 # link against other versions.
9926 hardcode_into_libs=yes
9927 dynamic_linker="$host_os dld.so"
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 if test "X$HPUX_IA64_MODE" = X32; then
9933 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9935 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9941 hardcode_into_libs=yes
9942 dynamic_linker="$host_os dld.sl"
9943 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9952 dynamic_linker="$host_os dld.sl"
9953 shlibpath_var=SHLIB_PATH
9954 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9959 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9960 postinstall_cmds='chmod 555 $lib'
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9968 soname_spec='${libname}${release}${shared_ext}$major'
9969 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9970 shlibpath_var=LD_LIBRARY_PATH
9971 shlibpath_overrides_runpath=no
9972 hardcode_into_libs=yes
9975 irix5* | irix6* | nonstopux*)
9977 nonstopux*) version_type=nonstopux ;;
9979 if test "$lt_cv_prog_gnu_ld" = yes; then
9987 soname_spec='${libname}${release}${shared_ext}$major'
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9990 irix5* | nonstopux*)
9994 case $LD in # libtool.m4 will add one of these switches to LD
9995 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9996 libsuff= shlibsuff= libmagic=32-bit;;
9997 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9998 libsuff=32 shlibsuff=N32 libmagic=N32;;
9999 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10000 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10001 *) libsuff= shlibsuff= libmagic=never-match;;
10005 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10006 shlibpath_overrides_runpath=no
10007 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10008 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10009 hardcode_into_libs=yes
10012 # No shared lib support for Linux oldld, aout, or coff.
10013 linux*oldld* | linux*aout* | linux*coff*)
10017 # This must be Linux ELF.
10018 linux* | k*bsd*-gnu)
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 shlibpath_overrides_runpath=no
10027 # This implies no fast_install, which is unacceptable.
10028 # Some rework will be needed to allow for fast_install
10029 # before this can be enabled.
10030 hardcode_into_libs=yes
10032 # Append ld.so.conf contents to the search path
10033 if test -f /etc/ld.so.conf; then
10034 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' ' '`
10035 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10038 # We used to test for /lib/ld.so.1 and disable shared libraries on
10039 # powerpc, because MkLinux only supported shared libraries with the
10040 # GNU dynamic linker. Since this was broken with cross compilers,
10041 # most powerpc-linux boxes support dynamic linking these days and
10042 # people can always --disable-shared, the test was removed, and we
10043 # assume the GNU/Linux dynamic linker is in use.
10044 dynamic_linker='GNU/Linux ld.so'
10051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10054 dynamic_linker='NetBSD (a.out) ld.so'
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 dynamic_linker='NetBSD ld.elf_so'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=yes
10062 hardcode_into_libs=yes
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=yes
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 shlibpath_var=LD_LIBRARY_PATH
10079 shlibpath_overrides_runpath=yes
10084 sys_lib_dlsearch_path_spec="/usr/lib"
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10092 openbsd2.[89] | openbsd2.[89].*)
10093 shlibpath_overrides_runpath=no
10096 shlibpath_overrides_runpath=yes
10100 shlibpath_overrides_runpath=yes
10105 libname_spec='$name'
10108 library_names_spec='$libname${shared_ext} $libname.a'
10109 dynamic_linker='OS/2 ld.exe'
10110 shlibpath_var=LIBPATH
10113 osf3* | osf4* | osf5*)
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10121 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 shlibpath_overrides_runpath=yes
10136 hardcode_into_libs=yes
10137 # ldd complains unless libraries are executable
10138 postinstall_cmds='chmod +x $lib'
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10144 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 shlibpath_overrides_runpath=yes
10147 if test "$with_gnu_ld" = yes; then
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 shlibpath_var=LD_LIBRARY_PATH
10158 case $host_vendor in
10160 shlibpath_overrides_runpath=no
10162 export_dynamic_flag_spec='${wl}-Blargedynsym'
10163 runpath_var=LD_RUN_PATH
10171 shlibpath_overrides_runpath=no
10172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10178 if test -d /usr/nec ;then
10180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10181 soname_spec='$libname${shared_ext}.$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10187 version_type=freebsd-elf
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 hardcode_into_libs=yes
10194 if test "$with_gnu_ld" = yes; then
10195 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10196 shlibpath_overrides_runpath=no
10198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10199 shlibpath_overrides_runpath=yes
10202 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10206 sys_lib_dlsearch_path_spec='/usr/lib'
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 shlibpath_var=LD_LIBRARY_PATH
10220 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10221 echo "${ECHO_T}$dynamic_linker" >&6; }
10222 test "$dynamic_linker" = no && can_build_shared=no
10224 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10230 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10231 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10237 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10240 if test "$GCC" = yes; then
10241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10244 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10245 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10247 if test -n "$hardcode_libdir_flag_spec" || \
10248 test -n "$runpath_var" || \
10249 test "X$hardcode_automatic" = "Xyes" ; then
10251 # We can hardcode non-existent directories.
10252 if test "$hardcode_direct" != no &&
10253 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10254 # have to relink, otherwise we might link with an installed library
10255 # when we should be linking with a yet-to-be-installed one
10256 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10257 test "$hardcode_minus_L" != no; then
10258 # Linking always hardcodes the temporary library directory.
10259 hardcode_action=relink
10261 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10262 hardcode_action=immediate
10265 # We cannot hardcode anything, or else we can only hardcode existing
10267 hardcode_action=unsupported
10269 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10270 echo "${ECHO_T}$hardcode_action" >&6; }
10272 if test "$hardcode_action" = relink; then
10273 # Fast installation is not supported
10274 enable_fast_install=no
10275 elif test "$shlibpath_overrides_runpath" = yes ||
10276 test "$enable_shared" = no; then
10277 # Fast installation is not necessary
10278 enable_fast_install=needless
10283 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10284 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10285 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10286 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10287 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10288 { echo "$as_me:$LINENO: result: yes" >&5
10289 echo "${ECHO_T}yes" >&6; }
10291 # FIXME - insert some real tests, host_os isn't really good enough
10294 if test -n "$STRIP" ; then
10295 striplib="$STRIP -x"
10296 old_striplib="$STRIP -S"
10297 { echo "$as_me:$LINENO: result: yes" >&5
10298 echo "${ECHO_T}yes" >&6; }
10300 { echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6; }
10305 { echo "$as_me:$LINENO: result: no" >&5
10306 echo "${ECHO_T}no" >&6; }
10311 if test "x$enable_dlopen" != xyes; then
10312 enable_dlopen=unknown
10313 enable_dlopen_self=unknown
10314 enable_dlopen_self_static=unknown
10321 lt_cv_dlopen="load_add_on"
10323 lt_cv_dlopen_self=yes
10327 lt_cv_dlopen="LoadLibrary"
10332 lt_cv_dlopen="dlopen"
10337 # if libdl is installed we need to link against it
10338 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10339 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10340 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 ac_check_lib_save_LIBS=$LIBS
10345 cat >conftest.$ac_ext <<_ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (ac_try="$ac_link"
10369 case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_link") 2>conftest.er1
10376 grep -v '^ *+' conftest.er1 >conftest.err
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && {
10381 test -z "$ac_c_werror_flag" ||
10382 test ! -s conftest.err
10383 } && test -s conftest$ac_exeext &&
10384 $as_test_x conftest$ac_exeext; then
10385 ac_cv_lib_dl_dlopen=yes
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10390 ac_cv_lib_dl_dlopen=no
10393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10394 conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10397 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10398 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10399 if test $ac_cv_lib_dl_dlopen = yes; then
10400 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10403 lt_cv_dlopen="dyld"
10405 lt_cv_dlopen_self=yes
10412 { echo "$as_me:$LINENO: checking for shl_load" >&5
10413 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10414 if test "${ac_cv_func_shl_load+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 cat >conftest.$ac_ext <<_ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10425 #define shl_load innocuous_shl_load
10427 /* System header to define __stub macros and hopefully few prototypes,
10428 which can conflict with char shl_load (); below.
10429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10430 <limits.h> exists even on freestanding compilers. */
10433 # include <limits.h>
10435 # include <assert.h>
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10447 /* The GNU C library defines this for functions which it implements
10448 to always fail with ENOSYS. Some functions are actually named
10449 something starting with __ and the normal name is an alias. */
10450 #if defined __stub_shl_load || defined __stub___shl_load
10457 return shl_load ();
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_link") 2>conftest.er1
10471 grep -v '^ *+' conftest.er1 >conftest.err
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest$ac_exeext &&
10479 $as_test_x conftest$ac_exeext; then
10480 ac_cv_func_shl_load=yes
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10485 ac_cv_func_shl_load=no
10488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10489 conftest$ac_exeext conftest.$ac_ext
10491 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10492 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10493 if test $ac_cv_func_shl_load = yes; then
10494 lt_cv_dlopen="shl_load"
10496 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10497 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10498 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 ac_check_lib_save_LIBS=$LIBS
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10510 /* Override any GCC internal prototype to avoid an error.
10511 Use char because int might match the return type of a GCC
10512 builtin and then its argument prototype would still apply. */
10520 return shl_load ();
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_link") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest$ac_exeext &&
10542 $as_test_x conftest$ac_exeext; then
10543 ac_cv_lib_dld_shl_load=yes
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_cv_lib_dld_shl_load=no
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552 conftest$ac_exeext conftest.$ac_ext
10553 LIBS=$ac_check_lib_save_LIBS
10555 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10556 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10557 if test $ac_cv_lib_dld_shl_load = yes; then
10558 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10560 { echo "$as_me:$LINENO: checking for dlopen" >&5
10561 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10562 if test "${ac_cv_func_dlopen+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 cat >conftest.$ac_ext <<_ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10573 #define dlopen innocuous_dlopen
10575 /* System header to define __stub macros and hopefully few prototypes,
10576 which can conflict with char dlopen (); below.
10577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10578 <limits.h> exists even on freestanding compilers. */
10581 # include <limits.h>
10583 # include <assert.h>
10588 /* Override any GCC internal prototype to avoid an error.
10589 Use char because int might match the return type of a GCC
10590 builtin and then its argument prototype would still apply. */
10595 /* The GNU C library defines this for functions which it implements
10596 to always fail with ENOSYS. Some functions are actually named
10597 something starting with __ and the normal name is an alias. */
10598 #if defined __stub_dlopen || defined __stub___dlopen
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext &&
10627 $as_test_x conftest$ac_exeext; then
10628 ac_cv_func_dlopen=yes
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_cv_func_dlopen=no
10636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10637 conftest$ac_exeext conftest.$ac_ext
10639 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10640 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10641 if test $ac_cv_func_dlopen = yes; then
10642 lt_cv_dlopen="dlopen"
10644 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 ac_check_lib_save_LIBS=$LIBS
10651 cat >conftest.$ac_ext <<_ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10658 /* Override any GCC internal prototype to avoid an error.
10659 Use char because int might match the return type of a GCC
10660 builtin and then its argument prototype would still apply. */
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>conftest.er1
10682 grep -v '^ *+' conftest.er1 >conftest.err
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest$ac_exeext &&
10690 $as_test_x conftest$ac_exeext; then
10691 ac_cv_lib_dl_dlopen=yes
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 ac_cv_lib_dl_dlopen=no
10699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10700 conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10704 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10705 if test $ac_cv_lib_dl_dlopen = yes; then
10706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10708 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10709 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10710 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 ac_check_lib_save_LIBS=$LIBS
10714 LIBS="-lsvld $LIBS"
10715 cat >conftest.$ac_ext <<_ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (ac_try="$ac_link"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_link") 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest$ac_exeext &&
10754 $as_test_x conftest$ac_exeext; then
10755 ac_cv_lib_svld_dlopen=yes
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 ac_cv_lib_svld_dlopen=no
10763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10764 conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10767 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10768 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10769 if test $ac_cv_lib_svld_dlopen = yes; then
10770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10772 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10773 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10774 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 ac_check_lib_save_LIBS=$LIBS
10779 cat >conftest.$ac_ext <<_ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10796 return dld_link ();
10801 rm -f conftest.$ac_objext conftest$ac_exeext
10802 if { (ac_try="$ac_link"
10803 case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_link") 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && {
10815 test -z "$ac_c_werror_flag" ||
10816 test ! -s conftest.err
10817 } && test -s conftest$ac_exeext &&
10818 $as_test_x conftest$ac_exeext; then
10819 ac_cv_lib_dld_dld_link=yes
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10824 ac_cv_lib_dld_dld_link=no
10827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10831 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10832 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10833 if test $ac_cv_lib_dld_dld_link = yes; then
10834 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10855 if test "x$lt_cv_dlopen" != xno; then
10861 case $lt_cv_dlopen in
10863 save_CPPFLAGS="$CPPFLAGS"
10864 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10866 save_LDFLAGS="$LDFLAGS"
10867 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10870 LIBS="$lt_cv_dlopen_libs $LIBS"
10872 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10873 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10874 if test "${lt_cv_dlopen_self+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 if test "$cross_compiling" = yes; then :
10878 lt_cv_dlopen_self=cross
10880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10881 lt_status=$lt_dlunknown
10882 cat > conftest.$ac_ext <<EOF
10883 #line 10883 "configure"
10884 #include "confdefs.h"
10893 # define LT_DLGLOBAL RTLD_GLOBAL
10896 # define LT_DLGLOBAL DL_GLOBAL
10898 # define LT_DLGLOBAL 0
10902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10903 find out it does not work in some platform. */
10904 #ifndef LT_DLLAZY_OR_NOW
10906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10909 # define LT_DLLAZY_OR_NOW DL_LAZY
10912 # define LT_DLLAZY_OR_NOW RTLD_NOW
10915 # define LT_DLLAZY_OR_NOW DL_NOW
10917 # define LT_DLLAZY_OR_NOW 0
10925 extern "C" void exit (int);
10928 void fnord() { int i=42;}
10931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10932 int status = $lt_dlunknown;
10936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10937 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10938 /* dlclose (self); */
10946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10947 (eval $ac_link) 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10951 (./conftest; exit; ) >&5 2>/dev/null
10953 case x$lt_status in
10954 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10955 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10956 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10959 # compilation failed
10960 lt_cv_dlopen_self=no
10967 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10968 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10970 if test "x$lt_cv_dlopen_self" = xyes; then
10971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10972 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10973 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10974 if test "${lt_cv_dlopen_self_static+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 if test "$cross_compiling" = yes; then :
10978 lt_cv_dlopen_self_static=cross
10980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10981 lt_status=$lt_dlunknown
10982 cat > conftest.$ac_ext <<EOF
10983 #line 10983 "configure"
10984 #include "confdefs.h"
10993 # define LT_DLGLOBAL RTLD_GLOBAL
10996 # define LT_DLGLOBAL DL_GLOBAL
10998 # define LT_DLGLOBAL 0
11002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11003 find out it does not work in some platform. */
11004 #ifndef LT_DLLAZY_OR_NOW
11006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11009 # define LT_DLLAZY_OR_NOW DL_LAZY
11012 # define LT_DLLAZY_OR_NOW RTLD_NOW
11015 # define LT_DLLAZY_OR_NOW DL_NOW
11017 # define LT_DLLAZY_OR_NOW 0
11025 extern "C" void exit (int);
11028 void fnord() { int i=42;}
11031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11032 int status = $lt_dlunknown;
11036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11038 /* dlclose (self); */
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047 (eval $ac_link) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11051 (./conftest; exit; ) >&5 2>/dev/null
11053 case x$lt_status in
11054 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11055 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11056 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11059 # compilation failed
11060 lt_cv_dlopen_self_static=no
11067 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11068 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11071 CPPFLAGS="$save_CPPFLAGS"
11072 LDFLAGS="$save_LDFLAGS"
11077 case $lt_cv_dlopen_self in
11078 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11079 *) enable_dlopen_self=unknown ;;
11082 case $lt_cv_dlopen_self_static in
11083 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11084 *) enable_dlopen_self_static=unknown ;;
11089 # Report which library types will actually be built
11090 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11091 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11092 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11093 echo "${ECHO_T}$can_build_shared" >&6; }
11095 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11096 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11097 test "$can_build_shared" = "no" && enable_shared=no
11099 # On AIX, shared libraries and static libraries use the same namespace, and
11100 # are all built from PIC.
11103 test "$enable_shared" = yes && enable_static=no
11104 if test -n "$RANLIB"; then
11105 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11106 postinstall_cmds='$RANLIB $lib'
11111 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11112 test "$enable_shared" = yes && enable_static=no
11116 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11117 echo "${ECHO_T}$enable_shared" >&6; }
11119 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11120 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11121 # Make sure either enable_shared or enable_static is yes.
11122 test "$enable_shared" = yes || enable_static=yes
11123 { echo "$as_me:$LINENO: result: $enable_static" >&5
11124 echo "${ECHO_T}$enable_static" >&6; }
11126 # The else clause should only fire when bootstrapping the
11127 # libtool distribution, otherwise you forgot to ship ltmain.sh
11128 # with your package, and you will get complaints that there are
11129 # no rules to generate ltmain.sh.
11130 if test -f "$ltmain"; then
11131 # See if we are running on zsh, and set the options which allow our commands through
11132 # without removal of \ escapes.
11133 if test -n "${ZSH_VERSION+set}" ; then
11134 setopt NO_GLOB_SUBST
11136 # Now quote all the things that may contain metacharacters while being
11137 # careful not to overquote the AC_SUBSTed values. We take copies of the
11138 # variables and quote the copies for generation of the libtool script.
11139 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11141 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11142 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11143 deplibs_check_method reload_flag reload_cmds need_locks \
11144 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11145 lt_cv_sys_global_symbol_to_c_name_address \
11146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11147 old_postinstall_cmds old_postuninstall_cmds \
11151 lt_prog_compiler_wl \
11152 lt_prog_compiler_pic \
11153 lt_prog_compiler_static \
11154 lt_prog_compiler_no_builtin_flag \
11155 export_dynamic_flag_spec \
11156 thread_safe_flag_spec \
11157 whole_archive_flag_spec \
11158 enable_shared_with_static_runtimes \
11160 old_archive_from_new_cmds \
11165 compiler_lib_search_path \
11166 compiler_lib_search_dirs \
11168 archive_expsym_cmds \
11170 postuninstall_cmds \
11171 old_archive_from_expsyms_cmds \
11172 allow_undefined_flag \
11173 no_undefined_flag \
11174 export_symbols_cmds \
11175 hardcode_libdir_flag_spec \
11176 hardcode_libdir_flag_spec_ld \
11177 hardcode_libdir_separator \
11178 hardcode_automatic \
11180 module_expsym_cmds \
11181 lt_cv_prog_compiler_c_o \
11184 include_expsyms; do
11187 old_archive_cmds | \
11188 old_archive_from_new_cmds | \
11190 archive_expsym_cmds | \
11192 module_expsym_cmds | \
11193 old_archive_from_expsyms_cmds | \
11194 export_symbols_cmds | \
11195 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11196 postinstall_cmds | postuninstall_cmds | \
11197 old_postinstall_cmds | old_postuninstall_cmds | \
11198 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11199 # Double-quote double-evaled strings.
11200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11203 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11209 *'\$0 --fallback-echo"')
11210 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11214 cfgfile="${ofile}T"
11215 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11217 { echo "$as_me:$LINENO: creating $ofile" >&5
11218 echo "$as_me: creating $ofile" >&6;}
11220 cat <<__EOF__ >> "$cfgfile"
11223 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11224 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11225 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11227 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11228 # Free Software Foundation, Inc.
11230 # This file is part of GNU Libtool:
11231 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11233 # This program is free software; you can redistribute it and/or modify
11234 # it under the terms of the GNU General Public License as published by
11235 # the Free Software Foundation; either version 2 of the License, or
11236 # (at your option) any later version.
11238 # This program is distributed in the hope that it will be useful, but
11239 # WITHOUT ANY WARRANTY; without even the implied warranty of
11240 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11241 # General Public License for more details.
11243 # You should have received a copy of the GNU General Public License
11244 # along with this program; if not, write to the Free Software
11245 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11247 # As a special exception to the GNU General Public License, if you
11248 # distribute this file as part of a program that contains a
11249 # configuration script generated by Autoconf, you may include it under
11250 # the same distribution terms that you use for the rest of that program.
11252 # A sed program that does not truncate output.
11255 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11256 Xsed="$SED -e 1s/^X//"
11258 # The HP-UX ksh and POSIX shell print the target directory to stdout
11259 # if CDPATH is set.
11260 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11262 # The names of the tagged configurations supported by this script.
11265 # ### BEGIN LIBTOOL CONFIG
11267 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11269 # Shell to use when invoking shell scripts.
11272 # Whether or not to build shared libraries.
11273 build_libtool_libs=$enable_shared
11275 # Whether or not to build static libraries.
11276 build_old_libs=$enable_static
11278 # Whether or not to add -lc for building shared libraries.
11279 build_libtool_need_lc=$archive_cmds_need_lc
11281 # Whether or not to disallow shared libs when runtime libs are static
11282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11284 # Whether or not to optimize for fast installation.
11285 fast_install=$enable_fast_install
11288 host_alias=$host_alias
11292 # The build system.
11293 build_alias=$build_alias
11297 # An echo program that does not interpret backslashes.
11302 AR_FLAGS=$lt_AR_FLAGS
11307 # LTCC compiler flags.
11308 LTCFLAGS=$lt_LTCFLAGS
11310 # A language-specific compiler.
11313 # Is the compiler the GNU C compiler?
11319 # The linker used to build libraries.
11322 # Whether we need hard or soft links.
11325 # A BSD-compatible nm program.
11328 # A symbol stripping program
11331 # Used to examine libraries when file_magic_cmd begins "file"
11332 MAGIC_CMD=$MAGIC_CMD
11334 # Used on cygwin: DLL creation program.
11337 # Used on cygwin: object dumper.
11340 # Used on cygwin: assembler.
11343 # The name of the directory that contains temporary libtool files.
11346 # How to create reloadable object files.
11347 reload_flag=$lt_reload_flag
11348 reload_cmds=$lt_reload_cmds
11350 # How to pass a linker flag through the compiler.
11351 wl=$lt_lt_prog_compiler_wl
11353 # Object file suffix (normally "o").
11354 objext="$ac_objext"
11356 # Old archive suffix (normally "a").
11359 # Shared library suffix (normally ".so").
11360 shrext_cmds='$shrext_cmds'
11362 # Executable file suffix (normally "").
11365 # Additional compiler flags for building library objects.
11366 pic_flag=$lt_lt_prog_compiler_pic
11369 # What is the maximum length of a command?
11370 max_cmd_len=$lt_cv_sys_max_cmd_len
11372 # Does compiler simultaneously support -c and -o options?
11373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11375 # Must we lock files when doing compilation?
11376 need_locks=$lt_need_locks
11378 # Do we need the lib prefix for modules?
11379 need_lib_prefix=$need_lib_prefix
11381 # Do we need a version for libraries?
11382 need_version=$need_version
11384 # Whether dlopen is supported.
11385 dlopen_support=$enable_dlopen
11387 # Whether dlopen of programs is supported.
11388 dlopen_self=$enable_dlopen_self
11390 # Whether dlopen of statically linked programs is supported.
11391 dlopen_self_static=$enable_dlopen_self_static
11393 # Compiler flag to prevent dynamic linking.
11394 link_static_flag=$lt_lt_prog_compiler_static
11396 # Compiler flag to turn off builtin functions.
11397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11399 # Compiler flag to allow reflexive dlopens.
11400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11402 # Compiler flag to generate shared objects directly from archives.
11403 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11405 # Compiler flag to generate thread-safe objects.
11406 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11408 # Library versioning type.
11409 version_type=$version_type
11411 # Format of library name prefix.
11412 libname_spec=$lt_libname_spec
11414 # List of archive names. First name is the real one, the rest are links.
11415 # The last name is the one that the linker finds with -lNAME.
11416 library_names_spec=$lt_library_names_spec
11418 # The coded name of the library, if different from the real name.
11419 soname_spec=$lt_soname_spec
11421 # Commands used to build and install an old-style archive.
11423 old_archive_cmds=$lt_old_archive_cmds
11424 old_postinstall_cmds=$lt_old_postinstall_cmds
11425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11427 # Create an old-style archive from a shared archive.
11428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11430 # Create a temporary old-style archive to link instead of a shared archive.
11431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11433 # Commands used to build and install a shared archive.
11434 archive_cmds=$lt_archive_cmds
11435 archive_expsym_cmds=$lt_archive_expsym_cmds
11436 postinstall_cmds=$lt_postinstall_cmds
11437 postuninstall_cmds=$lt_postuninstall_cmds
11439 # Commands used to build a loadable module (assumed same as above if empty)
11440 module_cmds=$lt_module_cmds
11441 module_expsym_cmds=$lt_module_expsym_cmds
11443 # Commands to strip libraries.
11444 old_striplib=$lt_old_striplib
11445 striplib=$lt_striplib
11447 # Dependencies to place before the objects being linked to create a
11449 predep_objects=$lt_predep_objects
11451 # Dependencies to place after the objects being linked to create a
11453 postdep_objects=$lt_postdep_objects
11455 # Dependencies to place before the objects being linked to create a
11457 predeps=$lt_predeps
11459 # Dependencies to place after the objects being linked to create a
11461 postdeps=$lt_postdeps
11463 # The directories searched by this compiler when creating a shared
11465 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11467 # The library search path used internally by the compiler when linking
11468 # a shared library.
11469 compiler_lib_search_path=$lt_compiler_lib_search_path
11471 # Method to check whether dependent libraries are shared objects.
11472 deplibs_check_method=$lt_deplibs_check_method
11474 # Command to use when deplibs_check_method == file_magic.
11475 file_magic_cmd=$lt_file_magic_cmd
11477 # Flag that allows shared libraries with undefined symbols to be built.
11478 allow_undefined_flag=$lt_allow_undefined_flag
11480 # Flag that forces no undefined symbols.
11481 no_undefined_flag=$lt_no_undefined_flag
11483 # Commands used to finish a libtool library installation in a directory.
11484 finish_cmds=$lt_finish_cmds
11486 # Same as above, but a single script fragment to be evaled but not shown.
11487 finish_eval=$lt_finish_eval
11489 # Take the output of nm and produce a listing of raw symbols and C names.
11490 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11492 # Transform the output of nm in a proper C declaration
11493 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11495 # Transform the output of nm in a C name address pair
11496 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11498 # This is the shared library runtime path variable.
11499 runpath_var=$runpath_var
11501 # This is the shared library path variable.
11502 shlibpath_var=$shlibpath_var
11504 # Is shlibpath searched before the hard-coded library search path?
11505 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11507 # How to hardcode a shared library path into an executable.
11508 hardcode_action=$hardcode_action
11510 # Whether we should hardcode library paths into libraries.
11511 hardcode_into_libs=$hardcode_into_libs
11513 # Flag to hardcode \$libdir into a binary during linking.
11514 # This must work even if \$libdir does not exist.
11515 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11517 # If ld is used when linking, flag to hardcode \$libdir into
11518 # a binary during linking. This must work even if \$libdir does
11520 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11522 # Whether we need a single -rpath flag with a separated argument.
11523 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11525 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11526 # resulting binary.
11527 hardcode_direct=$hardcode_direct
11529 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11530 # resulting binary.
11531 hardcode_minus_L=$hardcode_minus_L
11533 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11534 # the resulting binary.
11535 hardcode_shlibpath_var=$hardcode_shlibpath_var
11537 # Set to yes if building a shared library automatically hardcodes DIR into the library
11538 # and all subsequent libraries and executables linked against it.
11539 hardcode_automatic=$hardcode_automatic
11541 # Variables whose values should be saved in libtool wrapper scripts and
11542 # restored at relink time.
11543 variables_saved_for_relink="$variables_saved_for_relink"
11545 # Whether libtool must link a program against all its dependency libraries.
11546 link_all_deplibs=$link_all_deplibs
11548 # Compile-time system search path for libraries
11549 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11551 # Run-time system search path for libraries
11552 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11554 # Fix the shell variable \$srcfile for the compiler.
11555 fix_srcfile_path=$lt_fix_srcfile_path
11557 # Set to yes if exported symbols are required.
11558 always_export_symbols=$always_export_symbols
11560 # The commands to list exported symbols.
11561 export_symbols_cmds=$lt_export_symbols_cmds
11563 # The commands to extract the exported symbol list from a shared archive.
11564 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11566 # Symbols that should not be listed in the preloaded symbols.
11567 exclude_expsyms=$lt_exclude_expsyms
11569 # Symbols that must always be exported.
11570 include_expsyms=$lt_include_expsyms
11572 # ### END LIBTOOL CONFIG
11579 cat <<\EOF >> "$cfgfile"
11581 # AIX sometimes has problems with the GCC collect2 program. For some
11582 # reason, if we set the COLLECT_NAMES environment variable, the problems
11583 # vanish in a puff of smoke.
11584 if test "X${COLLECT_NAMES+set}" != Xset; then
11586 export COLLECT_NAMES
11592 # We use sed instead of cat because bash on DJGPP gets confused if
11593 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11594 # text mode, it properly converts lines to CR/LF. This bash problem
11595 # is reportedly fixed, but why not run on old versions too?
11596 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11598 mv -f "$cfgfile" "$ofile" || \
11599 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11603 # If there is no Makefile yet, we rely on a make rule to execute
11604 # `config.status --recheck' to rerun these tests and create the
11605 # libtool script then.
11606 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11607 if test -f "$ltmain_in"; then
11608 test -f Makefile && make "$ltmain"
11614 ac_cpp='$CPP $CPPFLAGS'
11615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11623 # This can be used to rebuild libtool when needed
11624 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11626 # Always use our own libtool.
11627 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11629 # Prevent multiple expansion
11640 if test "$enable_shared" = "no"; then
11643 eval _shrext="$shrext_cmds"
11645 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11646 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11648 # Check whether --with-noexec was given.
11649 if test "${with_noexec+set}" = set; then
11650 withval=$with_noexec; case $with_noexec in
11651 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
11657 with_noexec="$libexecdir/sudo_noexec$_shrext"
11660 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11661 echo "${ECHO_T}$with_noexec" >&6; }
11662 NOEXECFILE="sudo_noexec$_shrext"
11663 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11665 if test "$with_devel" = "yes" -a -n "$GCC"; then
11666 CFLAGS="${CFLAGS} -Wall"
11669 # Extract the first word of "uname", so it can be a program name with args.
11670 set dummy uname; ac_word=$2
11671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11673 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 if test -n "$UNAMEPROG"; then
11677 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11683 test -z "$as_dir" && as_dir=.
11684 for ac_exec_ext in '' $ac_executable_extensions; do
11685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11686 ac_cv_prog_UNAMEPROG="uname"
11687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11697 if test -n "$UNAMEPROG"; then
11698 { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11699 echo "${ECHO_T}$UNAMEPROG" >&6; }
11701 { echo "$as_me:$LINENO: result: no" >&5
11702 echo "${ECHO_T}no" >&6; }
11706 # Extract the first word of "tr", so it can be a program name with args.
11707 set dummy tr; ac_word=$2
11708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11710 if test "${ac_cv_prog_TRPROG+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 if test -n "$TRPROG"; then
11714 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH
11720 test -z "$as_dir" && as_dir=.
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11723 ac_cv_prog_TRPROG="tr"
11724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 TRPROG=$ac_cv_prog_TRPROG
11734 if test -n "$TRPROG"; then
11735 { echo "$as_me:$LINENO: result: $TRPROG" >&5
11736 echo "${ECHO_T}$TRPROG" >&6; }
11738 { echo "$as_me:$LINENO: result: no" >&5
11739 echo "${ECHO_T}no" >&6; }
11743 # Extract the first word of "nroff", so it can be a program name with args.
11744 set dummy nroff; ac_word=$2
11745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11747 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 if test -n "$NROFFPROG"; then
11751 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754 for as_dir in $PATH
11757 test -z "$as_dir" && as_dir=.
11758 for ac_exec_ext in '' $ac_executable_extensions; do
11759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11760 ac_cv_prog_NROFFPROG="nroff"
11761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 NROFFPROG=$ac_cv_prog_NROFFPROG
11771 if test -n "$NROFFPROG"; then
11772 { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11773 echo "${ECHO_T}$NROFFPROG" >&6; }
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11780 if test -z "$NROFFPROG"; then
11782 mansrcdir='$(srcdir)'
11785 if test -n "$sudo_cv_prev_host"; then
11786 if test "$sudo_cv_prev_host" != "$host"; then
11787 { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11788 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11789 { (exit 1); exit 1; }; }
11791 { echo "$as_me:$LINENO: checking previous host type" >&5
11792 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11793 if test "${sudo_cv_prev_host+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 sudo_cv_prev_host="$host"
11799 { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11800 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11803 # this will produce no output since there is no cached value
11804 if test "${sudo_cv_prev_host+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 sudo_cv_prev_host="$host"
11812 if test -n "$host_os"; then
11813 OS=`echo $host_os | sed 's/[0-9].*//'`
11814 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11815 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11824 # getcwd(3) opens a pipe to getpwd(1)!?!
11827 # system headers lack prototypes but gcc helps...
11828 if test -n "$GCC"; then
11829 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11832 shadow_funcs="getpwanam issecure"
11835 # To get the crypt(3) prototype (so we pass -Wall)
11836 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11837 # AFS support needs -lucb
11838 if test "$with_AFS" = "yes"; then
11839 AFS_LIBS="-lc -lucb"
11841 : ${mansectsu='1m'}
11842 : ${mansectform='4'}
11843 : ${with_rpath='yes'}
11844 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11847 # To get all prototypes (so we pass -Wall)
11848 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11849 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11850 if test X"$with_blibpath" != X"no"; then
11851 { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11852 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11853 O_LDFLAGS="$LDFLAGS"
11854 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11855 cat >conftest.$ac_ext <<_ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_link") 2>conftest.er1
11879 grep -v '^ *+' conftest.er1 >conftest.err
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } && {
11884 test -z "$ac_c_werror_flag" ||
11885 test ! -s conftest.err
11886 } && test -s conftest$ac_exeext &&
11887 $as_test_x conftest$ac_exeext; then
11889 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11890 blibpath="$with_blibpath"
11891 elif test -n "$GCC"; then
11892 blibpath="/usr/lib:/lib:/usr/local/lib"
11894 blibpath="/usr/lib:/lib"
11896 { echo "$as_me:$LINENO: result: yes" >&5
11897 echo "${ECHO_T}yes" >&6; }
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11903 { echo "$as_me:$LINENO: result: no" >&5
11904 echo "${ECHO_T}no" >&6; }
11907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11908 conftest$ac_exeext conftest.$ac_ext
11910 LDFLAGS="$O_LDFLAGS"
11912 # Use authenticate(3) as the default authentication method
11913 if test X"$with_aixauth" = X""; then
11915 for ac_func in authenticate
11917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 cat >conftest.$ac_ext <<_ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11931 #define $ac_func innocuous_$ac_func
11933 /* System header to define __stub macros and hopefully few prototypes,
11934 which can conflict with char $ac_func (); below.
11935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11936 <limits.h> exists even on freestanding compilers. */
11939 # include <limits.h>
11941 # include <assert.h>
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11953 /* The GNU C library defines this for functions which it implements
11954 to always fail with ENOSYS. Some functions are actually named
11955 something starting with __ and the normal name is an alias. */
11956 #if defined __stub_$ac_func || defined __stub___$ac_func
11963 return $ac_func ();
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (ac_try="$ac_link"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_link") 2>conftest.er1
11977 grep -v '^ *+' conftest.er1 >conftest.err
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && {
11982 test -z "$ac_c_werror_flag" ||
11983 test ! -s conftest.err
11984 } && test -s conftest$ac_exeext &&
11985 $as_test_x conftest$ac_exeext; then
11986 eval "$as_ac_var=yes"
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 eval "$as_ac_var=no"
11994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11995 conftest$ac_exeext conftest.$ac_ext
11997 ac_res=`eval echo '${'$as_ac_var'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12000 if test `eval echo '${'$as_ac_var'}'` = yes; then
12001 cat >>confdefs.h <<_ACEOF
12002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12004 AUTH_EXCL_DEF="AIX_AUTH"
12010 # AIX analog of nsswitch.conf, enabled by default
12012 # Check whether --with-netsvc was given.
12013 if test "${with_netsvc+set}" = set; then
12014 withval=$with_netsvc; case $with_netsvc in
12016 yes) with_netsvc="/etc/netsvc.conf"
12022 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12023 with_netsvc="/etc/netsvc.conf"
12026 # AIX-specific functions
12028 for ac_func in getuserattr
12030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 cat >conftest.$ac_ext <<_ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12044 #define $ac_func innocuous_$ac_func
12046 /* System header to define __stub macros and hopefully few prototypes,
12047 which can conflict with char $ac_func (); below.
12048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049 <limits.h> exists even on freestanding compilers. */
12052 # include <limits.h>
12054 # include <assert.h>
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12066 /* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069 #if defined __stub_$ac_func || defined __stub___$ac_func
12076 return $ac_func ();
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (ac_try="$ac_link"
12083 case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_link") 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_c_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest$ac_exeext &&
12098 $as_test_x conftest$ac_exeext; then
12099 eval "$as_ac_var=yes"
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 eval "$as_ac_var=no"
12107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12108 conftest$ac_exeext conftest.$ac_ext
12110 ac_res=`eval echo '${'$as_ac_var'}'`
12111 { echo "$as_me:$LINENO: result: $ac_res" >&5
12112 echo "${ECHO_T}$ac_res" >&6; }
12113 if test `eval echo '${'$as_ac_var'}'` = yes; then
12114 cat >>confdefs.h <<_ACEOF
12115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12121 SUDO_OBJS="$SUDO_OBJS aix.o"
12124 : ${mansectsu='1m'}
12125 : ${mansectform='4'}
12128 # AFS support needs -lBSD
12129 if test "$with_AFS" = "yes"; then
12130 AFS_LIBS="-lc -lBSD"
12132 : ${mansectsu='1m'}
12133 : ${mansectform='4'}
12135 # HP-UX bundled compiler can't generate shared objects
12136 if test "x$ac_cv_prog_cc_c89" = "xno"; then
12140 # Use the +DAportable flag if it is supported
12142 CFLAGS="$CFLAGS +DAportable"
12143 { echo "$as_me:$LINENO: checking whether $CC understands +DAportable" >&5
12144 echo $ECHO_N "checking whether $CC understands +DAportable... $ECHO_C" >&6; }
12145 if test "${sudo_cv_var_daportable+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_link") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } && {
12177 test -z "$ac_c_werror_flag" ||
12178 test ! -s conftest.err
12179 } && test -s conftest$ac_exeext &&
12180 $as_test_x conftest$ac_exeext; then
12181 sudo_cv_var_daportable=yes
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 sudo_cv_var_daportable=no
12189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12190 conftest$ac_exeext conftest.$ac_ext
12193 { echo "$as_me:$LINENO: result: $sudo_cv_var_daportable" >&5
12194 echo "${ECHO_T}$sudo_cv_var_daportable" >&6; }
12195 if test X"$sudo_cv_var_daportable" != X"yes"; then
12201 cat >>confdefs.h <<\_ACEOF
12202 #define BROKEN_SYSLOG 1
12206 # Not sure if setuid binaries are safe in < 9.x
12207 if test -n "$GCC"; then
12208 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12210 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12214 cat >>confdefs.h <<\_ACEOF
12215 #define BROKEN_SYSLOG 1
12219 shadow_funcs="getspwuid"
12221 # DCE support (requires ANSI C compiler)
12222 if test "$with_DCE" = "yes"; then
12223 # order of libs in 9.X is important. -lc_r must be last
12224 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12225 LIBS="${LIBS} -ldce -lM -lc_r"
12226 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12230 shadow_funcs="getprpwnam iscomsec"
12231 shadow_libs="-lsec"
12234 shadow_funcs="getspnam iscomsec"
12235 shadow_libs="-lsec"
12236 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12241 # ignore envariables wrt dynamic lib path
12242 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12244 : ${CHECKSIA='true'}
12245 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
12246 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
12247 # Check whether --enable-sia was given.
12248 if test "${enable_sia+set}" = set; then
12249 enableval=$enable_sia; case "$enableval" in
12250 yes) { echo "$as_me:$LINENO: result: no" >&5
12251 echo "${ECHO_T}no" >&6; }
12254 no) { echo "$as_me:$LINENO: result: yes" >&5
12255 echo "${ECHO_T}yes" >&6; }
12258 *) { echo "$as_me:$LINENO: result: no" >&5
12259 echo "${ECHO_T}no" >&6; }
12260 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12261 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12266 { echo "$as_me:$LINENO: result: no" >&5
12267 echo "${ECHO_T}no" >&6; }
12271 shadow_funcs="getprpwnam dispcrypt"
12272 # OSF/1 4.x and higher need -ldb too
12273 if test $OSMAJOR -lt 4; then
12274 shadow_libs="-lsecurity -laud -lm"
12276 shadow_libs="-lsecurity -ldb -laud -lm"
12279 # use SIA by default, if we have it
12280 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12283 # Some versions of Digital Unix ship with a broken
12284 # copy of prot.h, which we need for shadow passwords.
12285 # XXX - make should remove this as part of distclean
12287 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
12288 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
12289 cat >conftest.$ac_ext <<_ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12296 #include <sys/types.h>
12297 #include <sys/security.h>
12308 rm -f conftest.$ac_objext
12309 if { (ac_try="$ac_compile"
12310 case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_compile") 2>conftest.er1
12317 grep -v '^ *+' conftest.er1 >conftest.err
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } && {
12322 test -z "$ac_c_werror_flag" ||
12323 test ! -s conftest.err
12324 } && test -s conftest.$ac_objext; then
12325 { echo "$as_me:$LINENO: result: no" >&5
12326 echo "${ECHO_T}no" >&6; }
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
12332 echo "${ECHO_T}yes, fixing locally" >&6; }
12333 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12339 : ${mansectform='4'}
12342 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12343 if test -z "$NROFFPROG"; then
12344 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)'
12345 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12346 if test -d /usr/share/catman/local; then
12347 mandir="/usr/share/catman/local"
12349 mandir="/usr/catman/local"
12353 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12354 if test -d "/usr/share/man/local"; then
12355 mandir="/usr/share/man/local"
12357 mandir="/usr/man/local"
12361 # IRIX <= 4 needs -lsun
12362 if test "$OSMAJOR" -le 4; then
12363 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
12364 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
12365 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 ac_check_lib_save_LIBS=$LIBS
12370 cat >conftest.$ac_ext <<_ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12377 /* Override any GCC internal prototype to avoid an error.
12378 Use char because int might match the return type of a GCC
12379 builtin and then its argument prototype would still apply. */
12387 return getpwnam ();
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (ac_try="$ac_link"
12394 case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_link") 2>conftest.er1
12401 grep -v '^ *+' conftest.er1 >conftest.err
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } && {
12406 test -z "$ac_c_werror_flag" ||
12407 test ! -s conftest.err
12408 } && test -s conftest$ac_exeext &&
12409 $as_test_x conftest$ac_exeext; then
12410 ac_cv_lib_sun_getpwnam=yes
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12415 ac_cv_lib_sun_getpwnam=no
12418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12419 conftest$ac_exeext conftest.$ac_ext
12420 LIBS=$ac_check_lib_save_LIBS
12422 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
12423 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
12424 if test $ac_cv_lib_sun_getpwnam = yes; then
12425 LIBS="${LIBS} -lsun"
12429 : ${mansectsu='1m'}
12430 : ${mansectform='4'}
12432 *-*-linux*|*-*-k*bsd*-gnu)
12433 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12434 # Some Linux versions need to link with -lshadow
12435 shadow_funcs="getspnam"
12436 shadow_libs_optional="-lshadow"
12437 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12440 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12441 if test -z "$GCC"; then
12442 CFLAGS="${CFLAGS} -D__STDC__"
12445 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12446 shadow_funcs="getprpwnam"
12447 shadow_libs="-lprot"
12451 shadow_funcs="getauthuid"
12452 shadow_libs="-lauth"
12455 LIBS="${LIBS} -lsun -lbsd"
12456 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12457 OSDEFS="${OSDEFS} -D_MIPS"
12458 : ${mansectsu='1m'}
12459 : ${mansectform='4'}
12462 OSDEFS="${OSDEFS} -D_ISC"
12464 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12465 LIBS="${LIBS} -lcrypt"
12467 shadow_funcs="getspnam"
12468 shadow_libs="-lsec"
12470 : ${mansectsu='1m'}
12471 : ${mansectform='4'}
12474 shadow_funcs="getprpwnam"
12475 shadow_libs="-lprot -lx"
12476 : ${mansectsu='1m'}
12477 : ${mansectform='4'}
12479 m88k-motorola-sysv*)
12480 # motorolla's cc (a variant of gcc) does -O but not -O2
12481 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12482 : ${mansectsu='1m'}
12483 : ${mansectform='4'}
12486 shadow_funcs="getspnam"
12487 shadow_libs="-lsec"
12488 : ${mansectsu='1m'}
12489 : ${mansectform='4'}
12490 : ${with_rpath='yes'}
12492 *-ncr-sysv4*|*-ncr-sysvr4*)
12493 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
12494 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
12495 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 ac_check_lib_save_LIBS=$LIBS
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12507 /* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
12513 char strcasecmp ();
12517 return strcasecmp ();
12522 rm -f conftest.$ac_objext conftest$ac_exeext
12523 if { (ac_try="$ac_link"
12524 case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_link") 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } && {
12536 test -z "$ac_c_werror_flag" ||
12537 test ! -s conftest.err
12538 } && test -s conftest$ac_exeext &&
12539 $as_test_x conftest$ac_exeext; then
12540 ac_cv_lib_c89_strcasecmp=yes
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ac_cv_lib_c89_strcasecmp=no
12548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12552 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
12553 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
12554 if test $ac_cv_lib_c89_strcasecmp = yes; then
12555 cat >>confdefs.h <<\_ACEOF
12556 #define HAVE_STRCASECMP 1
12558 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
12561 : ${mansectsu='1m'}
12562 : ${mansectform='4'}
12563 : ${with_rpath='yes'}
12565 *-ccur-sysv4*|*-ccur-sysvr4*)
12566 LIBS="${LIBS} -lgen"
12567 SUDO_LIBS="${SUDO_LIBS} -lgen"
12568 : ${mansectsu='1m'}
12569 : ${mansectform='4'}
12570 : ${with_rpath='yes'}
12574 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
12575 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
12577 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
12578 echo "$as_me: using shlicc as CC" >&6;}
12579 ac_cv_prog_CC=shlicc
12580 CC="$ac_cv_prog_CC"
12584 # Check for newer BSD auth API (just check for >= 3.0?)
12585 if test -z "$with_bsdauth"; then
12587 for ac_func in auth_challenge
12589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12603 #define $ac_func innocuous_$ac_func
12605 /* System header to define __stub macros and hopefully few prototypes,
12606 which can conflict with char $ac_func (); below.
12607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12608 <limits.h> exists even on freestanding compilers. */
12611 # include <limits.h>
12613 # include <assert.h>
12618 /* Override any GCC internal prototype to avoid an error.
12619 Use char because int might match the return type of a GCC
12620 builtin and then its argument prototype would still apply. */
12625 /* The GNU C library defines this for functions which it implements
12626 to always fail with ENOSYS. Some functions are actually named
12627 something starting with __ and the normal name is an alias. */
12628 #if defined __stub_$ac_func || defined __stub___$ac_func
12635 return $ac_func ();
12640 rm -f conftest.$ac_objext conftest$ac_exeext
12641 if { (ac_try="$ac_link"
12642 case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_link") 2>conftest.er1
12649 grep -v '^ *+' conftest.er1 >conftest.err
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } && {
12654 test -z "$ac_c_werror_flag" ||
12655 test ! -s conftest.err
12656 } && test -s conftest$ac_exeext &&
12657 $as_test_x conftest$ac_exeext; then
12658 eval "$as_ac_var=yes"
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 eval "$as_ac_var=no"
12666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12667 conftest$ac_exeext conftest.$ac_ext
12669 ac_res=`eval echo '${'$as_ac_var'}'`
12670 { echo "$as_me:$LINENO: result: $ac_res" >&5
12671 echo "${ECHO_T}$ac_res" >&6; }
12672 if test `eval echo '${'$as_ac_var'}'` = yes; then
12673 cat >>confdefs.h <<_ACEOF
12674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12676 AUTH_EXCL_DEF="BSD_AUTH"
12683 # FreeBSD has a real setreuid(2) starting with 2.1 and
12684 # backported to 2.0.5. We just take 2.1 and above...
12690 if test "$with_skey" = "yes"; then
12691 SUDO_LIBS="${SUDO_LIBS} -lmd"
12693 CHECKSHADOW="false"
12694 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12695 : ${with_logincap='maybe'}
12698 # OpenBSD has a real setreuid(2) starting with 3.3 but
12699 # we will use setreuid(2) instead.
12701 CHECKSHADOW="false"
12702 # OpenBSD >= 3.0 supports BSD auth
12703 if test -z "$with_bsdauth"; then
12708 AUTH_EXCL_DEF="BSD_AUTH"
12712 : ${with_logincap='maybe'}
12715 # NetBSD has a real setreuid(2) starting with 1.3.2
12717 0.9*|1.012*|1.3|1.3.1)
12721 CHECKSHADOW="false"
12722 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12723 : ${with_logincap='maybe'}
12726 if test "$with_skey" = "yes"; then
12727 SUDO_LIBS="${SUDO_LIBS} -lmd"
12729 CHECKSHADOW="false"
12730 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12731 : ${with_logincap='yes'}
12734 CHECKSHADOW="false"
12738 CHECKSHADOW="false"
12739 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12740 : ${with_logincap='yes'}
12743 # lockf() on is broken on the NeXT -- use flock instead
12744 ac_cv_func_lockf=no
12745 ac_cv_func_flock=yes
12748 : ${mansectsu='1m'}
12749 : ${mansectform='4'}
12750 : ${with_rpath='yes'}
12753 : ${mansectsu='1m'}
12754 : ${mansectform='4'}
12757 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12761 AUTH_REG=${AUTH_REG# }
12762 AUTH_EXCL=${AUTH_EXCL# }
12763 if test -n "$AUTH_EXCL"; then
12765 if test $# != 1; then
12766 { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12767 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12768 { (exit 1); exit 1; }; }
12770 if test -n "$AUTH_REG"; then
12771 { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12772 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12773 { (exit 1); exit 1; }; }
12776 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12777 { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12778 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12779 { (exit 1); exit 1; }; }
12783 : ${mansectform='5'}
12785 if test -n "$with_libpath"; then
12786 for i in ${with_libpath}; do
12788 if test X"$with_rpath" = X"yes"; then
12789 LDFLAGS="${LDFLAGS} -L$i -R$i"
12791 LDFLAGS="${LDFLAGS} -L$i"
12793 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12794 blibpath_add="${blibpath_add}:$i"
12799 if test -n "$with_libraries"; then
12800 for i in ${with_libraries}; do
12807 LIBS="${LIBS} ${i}"
12811 if test $ac_cv_c_compiler_gnu = yes; then
12812 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12813 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12814 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 ac_pattern="Autoconf.*'x'"
12818 cat >conftest.$ac_ext <<_ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h. */
12827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12828 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12829 ac_cv_prog_gcc_traditional=yes
12831 ac_cv_prog_gcc_traditional=no
12836 if test $ac_cv_prog_gcc_traditional = no; then
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 #include <termio.h>
12846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12847 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12848 ac_cv_prog_gcc_traditional=yes
12854 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12855 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12856 if test $ac_cv_prog_gcc_traditional = yes; then
12857 CC="$CC -traditional"
12861 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12862 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12863 if test "${ac_cv_c_const+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 cat >conftest.$ac_ext <<_ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12876 /* FIXME: Include the comments suggested by Paul. */
12877 #ifndef __cplusplus
12878 /* Ultrix mips cc rejects this. */
12879 typedef int charset[2];
12881 /* SunOS 4.1.1 cc rejects this. */
12882 char const *const *pcpcc;
12884 /* NEC SVR4.0.2 mips cc rejects this. */
12885 struct point {int x, y;};
12886 static struct point const zero = {0,0};
12887 /* AIX XL C 1.02.0.0 rejects this.
12888 It does not let you subtract one const X* pointer from another in
12889 an arm of an if-expression whose if-part is not a constant
12891 const char *g = "string";
12892 pcpcc = &g + (g ? g-g : 0);
12893 /* HPUX 7.0 cc rejects these. */
12895 ppc = (char**) pcpcc;
12896 pcpcc = (char const *const *) ppc;
12897 { /* SCO 3.2v4 cc rejects this. */
12899 char const *s = 0 ? (char *) 0 : (char const *) 0;
12904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12905 int x[] = {25, 17};
12906 const int *foo = &x[0];
12909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12910 typedef const int *iptr;
12914 { /* AIX XL C 1.02.0.0 rejects this saying
12915 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12916 struct s { int j; const int *ap[3]; };
12917 struct s *b; b->j = 5;
12919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12920 const int foo = 10;
12921 if (!foo) return 0;
12923 return !cs[0] && !zero.x;
12930 rm -f conftest.$ac_objext
12931 if { (ac_try="$ac_compile"
12932 case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_compile") 2>conftest.er1
12939 grep -v '^ *+' conftest.er1 >conftest.err
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && {
12944 test -z "$ac_c_werror_flag" ||
12945 test ! -s conftest.err
12946 } && test -s conftest.$ac_objext; then
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12958 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12959 if test $ac_cv_c_const = no; then
12961 cat >>confdefs.h <<\_ACEOF
12967 { echo "$as_me:$LINENO: checking for working volatile" >&5
12968 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12969 if test "${ac_cv_c_volatile+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 cat >conftest.$ac_ext <<_ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12984 int * volatile y = (int *) 0;
12990 rm -f conftest.$ac_objext
12991 if { (ac_try="$ac_compile"
12992 case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_compile") 2>conftest.er1
12999 grep -v '^ *+' conftest.er1 >conftest.err
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } && {
13004 test -z "$ac_c_werror_flag" ||
13005 test ! -s conftest.err
13006 } && test -s conftest.$ac_objext; then
13007 ac_cv_c_volatile=yes
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 ac_cv_c_volatile=no
13015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13017 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13018 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13019 if test $ac_cv_c_volatile = no; then
13021 cat >>confdefs.h <<\_ACEOF
13027 for ac_prog in 'bison -y' byacc
13029 # Extract the first word of "$ac_prog", so it can be a program name with args.
13030 set dummy $ac_prog; ac_word=$2
13031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13033 if test "${ac_cv_prog_YACC+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 if test -n "$YACC"; then
13037 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040 for as_dir in $PATH
13043 test -z "$as_dir" && as_dir=.
13044 for ac_exec_ext in '' $ac_executable_extensions; do
13045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13046 ac_cv_prog_YACC="$ac_prog"
13047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 YACC=$ac_cv_prog_YACC
13057 if test -n "$YACC"; then
13058 { echo "$as_me:$LINENO: result: $YACC" >&5
13059 echo "${ECHO_T}$YACC" >&6; }
13061 { echo "$as_me:$LINENO: result: no" >&5
13062 echo "${ECHO_T}no" >&6; }
13066 test -n "$YACC" && break
13068 test -n "$YACC" || YACC="yacc"
13070 # Extract the first word of "flex", so it can be a program name with args.
13071 set dummy flex; ac_word=$2
13072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13074 if test "${ac_cv_path_FLEX+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13101 FLEX=$ac_cv_path_FLEX
13102 if test -n "$FLEX"; then
13103 { echo "$as_me:$LINENO: result: $FLEX" >&5
13104 echo "${ECHO_T}$FLEX" >&6; }
13106 { echo "$as_me:$LINENO: result: no" >&5
13107 echo "${ECHO_T}no" >&6; }
13111 { echo "$as_me:$LINENO: checking for mv" >&5
13112 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
13113 if test -f "/usr/bin/mv"; then
13114 { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
13115 echo "${ECHO_T}/usr/bin/mv" >&6; }
13116 cat >>confdefs.h <<\EOF
13117 #define _PATH_MV "/usr/bin/mv"
13120 elif test -f "/bin/mv"; then
13121 { echo "$as_me:$LINENO: result: /bin/mv" >&5
13122 echo "${ECHO_T}/bin/mv" >&6; }
13123 cat >>confdefs.h <<\EOF
13124 #define _PATH_MV "/bin/mv"
13127 elif test -f "/usr/ucb/mv"; then
13128 { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
13129 echo "${ECHO_T}/usr/ucb/mv" >&6; }
13130 cat >>confdefs.h <<\EOF
13131 #define _PATH_MV "/usr/ucb/mv"
13134 elif test -f "/usr/sbin/mv"; then
13135 { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
13136 echo "${ECHO_T}/usr/sbin/mv" >&6; }
13137 cat >>confdefs.h <<\EOF
13138 #define _PATH_MV "/usr/sbin/mv"
13142 { echo "$as_me:$LINENO: result: not found" >&5
13143 echo "${ECHO_T}not found" >&6; }
13146 { echo "$as_me:$LINENO: checking for bourne shell" >&5
13147 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
13148 if test -f "/bin/sh"; then
13149 { echo "$as_me:$LINENO: result: /bin/sh" >&5
13150 echo "${ECHO_T}/bin/sh" >&6; }
13151 cat >>confdefs.h <<\EOF
13152 #define _PATH_BSHELL "/bin/sh"
13155 elif test -f "/usr/bin/sh"; then
13156 { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
13157 echo "${ECHO_T}/usr/bin/sh" >&6; }
13158 cat >>confdefs.h <<\EOF
13159 #define _PATH_BSHELL "/usr/bin/sh"
13162 elif test -f "/sbin/sh"; then
13163 { echo "$as_me:$LINENO: result: /sbin/sh" >&5
13164 echo "${ECHO_T}/sbin/sh" >&6; }
13165 cat >>confdefs.h <<\EOF
13166 #define _PATH_BSHELL "/sbin/sh"
13169 elif test -f "/usr/sbin/sh"; then
13170 { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
13171 echo "${ECHO_T}/usr/sbin/sh" >&6; }
13172 cat >>confdefs.h <<\EOF
13173 #define _PATH_BSHELL "/usr/sbin/sh"
13176 elif test -f "/bin/ksh"; then
13177 { echo "$as_me:$LINENO: result: /bin/ksh" >&5
13178 echo "${ECHO_T}/bin/ksh" >&6; }
13179 cat >>confdefs.h <<\EOF
13180 #define _PATH_BSHELL "/bin/ksh"
13183 elif test -f "/usr/bin/ksh"; then
13184 { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
13185 echo "${ECHO_T}/usr/bin/ksh" >&6; }
13186 cat >>confdefs.h <<\EOF
13187 #define _PATH_BSHELL "/usr/bin/ksh"
13190 elif test -f "/bin/bash"; then
13191 { echo "$as_me:$LINENO: result: /bin/bash" >&5
13192 echo "${ECHO_T}/bin/bash" >&6; }
13193 cat >>confdefs.h <<\EOF
13194 #define _PATH_BSHELL "/bin/bash"
13197 elif test -f "/usr/bin/bash"; then
13198 { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
13199 echo "${ECHO_T}/usr/bin/bash" >&6; }
13200 cat >>confdefs.h <<\EOF
13201 #define _PATH_BSHELL "/usr/bin/bash"
13205 { echo "$as_me:$LINENO: result: not found" >&5
13206 echo "${ECHO_T}not found" >&6; }
13209 if test -z "$with_sendmail"; then
13210 { echo "$as_me:$LINENO: checking for sendmail" >&5
13211 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
13212 if test -f "/usr/sbin/sendmail"; then
13213 { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
13214 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
13215 cat >>confdefs.h <<\EOF
13216 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
13219 elif test -f "/usr/lib/sendmail"; then
13220 { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
13221 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
13222 cat >>confdefs.h <<\EOF
13223 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
13226 elif test -f "/usr/etc/sendmail"; then
13227 { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
13228 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
13229 cat >>confdefs.h <<\EOF
13230 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
13233 elif test -f "/usr/ucblib/sendmail"; then
13234 { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
13235 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
13236 cat >>confdefs.h <<\EOF
13237 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
13240 elif test -f "/usr/local/lib/sendmail"; then
13241 { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
13242 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
13243 cat >>confdefs.h <<\EOF
13244 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
13247 elif test -f "/usr/local/bin/sendmail"; then
13248 { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
13249 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
13250 cat >>confdefs.h <<\EOF
13251 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
13255 { echo "$as_me:$LINENO: result: not found" >&5
13256 echo "${ECHO_T}not found" >&6; }
13260 if test -z "$with_editor"; then
13261 { echo "$as_me:$LINENO: checking for vi" >&5
13262 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
13263 if test -f "/usr/bin/vi"; then
13264 { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
13265 echo "${ECHO_T}/usr/bin/vi" >&6; }
13266 cat >>confdefs.h <<\EOF
13267 #define _PATH_VI "/usr/bin/vi"
13270 elif test -f "/usr/ucb/vi"; then
13271 { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
13272 echo "${ECHO_T}/usr/ucb/vi" >&6; }
13273 cat >>confdefs.h <<\EOF
13274 #define _PATH_VI "/usr/ucb/vi"
13277 elif test -f "/usr/bsd/vi"; then
13278 { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
13279 echo "${ECHO_T}/usr/bsd/vi" >&6; }
13280 cat >>confdefs.h <<\EOF
13281 #define _PATH_VI "/usr/bsd/vi"
13284 elif test -f "/bin/vi"; then
13285 { echo "$as_me:$LINENO: result: /bin/vi" >&5
13286 echo "${ECHO_T}/bin/vi" >&6; }
13287 cat >>confdefs.h <<\EOF
13288 #define _PATH_VI "/bin/vi"
13291 elif test -f "/usr/local/bin/vi"; then
13292 { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
13293 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
13294 cat >>confdefs.h <<\EOF
13295 #define _PATH_VI "/usr/local/bin/vi"
13299 { echo "$as_me:$LINENO: result: not found" >&5
13300 echo "${ECHO_T}not found" >&6; }
13304 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13305 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
13306 if test "${ac_cv_header_stdc+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 cat >conftest.$ac_ext <<_ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 #include <stdlib.h>
13316 #include <stdarg.h>
13317 #include <string.h>
13328 rm -f conftest.$ac_objext
13329 if { (ac_try="$ac_compile"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_compile") 2>conftest.er1
13337 grep -v '^ *+' conftest.er1 >conftest.err
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } && {
13342 test -z "$ac_c_werror_flag" ||
13343 test ! -s conftest.err
13344 } && test -s conftest.$ac_objext; then
13345 ac_cv_header_stdc=yes
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13350 ac_cv_header_stdc=no
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 if test $ac_cv_header_stdc = yes; then
13356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 #include <string.h>
13366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13367 $EGREP "memchr" >/dev/null 2>&1; then
13370 ac_cv_header_stdc=no
13376 if test $ac_cv_header_stdc = yes; then
13377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13378 cat >conftest.$ac_ext <<_ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 #include <stdlib.h>
13387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13388 $EGREP "free" >/dev/null 2>&1; then
13391 ac_cv_header_stdc=no
13397 if test $ac_cv_header_stdc = yes; then
13398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13399 if test "$cross_compiling" = yes; then
13402 cat >conftest.$ac_ext <<_ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13409 #include <stdlib.h>
13410 #if ((' ' & 0x0FF) == 0x020)
13411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13414 # define ISLOWER(c) \
13415 (('a' <= (c) && (c) <= 'i') \
13416 || ('j' <= (c) && (c) <= 'r') \
13417 || ('s' <= (c) && (c) <= 'z'))
13418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13426 for (i = 0; i < 256; i++)
13427 if (XOR (islower (i), ISLOWER (i))
13428 || toupper (i) != TOUPPER (i))
13433 rm -f conftest$ac_exeext
13434 if { (ac_try="$ac_link"
13435 case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_link") 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13444 { (case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_try") 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13455 echo "$as_me: program exited with status $ac_status" >&5
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 ( exit $ac_status )
13460 ac_cv_header_stdc=no
13462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13468 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13469 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13470 if test $ac_cv_header_stdc = yes; then
13472 cat >>confdefs.h <<\_ACEOF
13473 #define STDC_HEADERS 1
13483 ac_header_dirent=no
13484 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13485 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13486 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13487 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include <sys/types.h>
13509 rm -f conftest.$ac_objext
13510 if { (ac_try="$ac_compile"
13511 case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_compile") 2>conftest.er1
13518 grep -v '^ *+' conftest.er1 >conftest.err
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } && {
13523 test -z "$ac_c_werror_flag" ||
13524 test ! -s conftest.err
13525 } && test -s conftest.$ac_objext; then
13526 eval "$as_ac_Header=yes"
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 eval "$as_ac_Header=no"
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 ac_res=`eval echo '${'$as_ac_Header'}'`
13537 { echo "$as_me:$LINENO: result: $ac_res" >&5
13538 echo "${ECHO_T}$ac_res" >&6; }
13539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13540 cat >>confdefs.h <<_ACEOF
13541 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13544 ac_header_dirent=$ac_hdr; break
13548 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13549 if test $ac_header_dirent = dirent.h; then
13550 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13552 if test "${ac_cv_search_opendir+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 ac_func_search_save_LIBS=$LIBS
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13563 /* Override any GCC internal prototype to avoid an error.
13564 Use char because int might match the return type of a GCC
13565 builtin and then its argument prototype would still apply. */
13578 for ac_lib in '' dir; do
13579 if test -z "$ac_lib"; then
13580 ac_res="none required"
13583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13594 grep -v '^ *+' conftest.er1 >conftest.err
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest$ac_exeext &&
13602 $as_test_x conftest$ac_exeext; then
13603 ac_cv_search_opendir=$ac_res
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13613 if test "${ac_cv_search_opendir+set}" = set; then
13617 if test "${ac_cv_search_opendir+set}" = set; then
13620 ac_cv_search_opendir=no
13622 rm conftest.$ac_ext
13623 LIBS=$ac_func_search_save_LIBS
13625 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13626 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13627 ac_res=$ac_cv_search_opendir
13628 if test "$ac_res" != no; then
13629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13634 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13635 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13636 if test "${ac_cv_search_opendir+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 ac_func_search_save_LIBS=$LIBS
13640 cat >conftest.$ac_ext <<_ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13647 /* Override any GCC internal prototype to avoid an error.
13648 Use char because int might match the return type of a GCC
13649 builtin and then its argument prototype would still apply. */
13662 for ac_lib in '' x; do
13663 if test -z "$ac_lib"; then
13664 ac_res="none required"
13667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13669 rm -f conftest.$ac_objext conftest$ac_exeext
13670 if { (ac_try="$ac_link"
13671 case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_link") 2>conftest.er1
13678 grep -v '^ *+' conftest.er1 >conftest.err
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } && {
13683 test -z "$ac_c_werror_flag" ||
13684 test ! -s conftest.err
13685 } && test -s conftest$ac_exeext &&
13686 $as_test_x conftest$ac_exeext; then
13687 ac_cv_search_opendir=$ac_res
13689 echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13697 if test "${ac_cv_search_opendir+set}" = set; then
13701 if test "${ac_cv_search_opendir+set}" = set; then
13704 ac_cv_search_opendir=no
13706 rm conftest.$ac_ext
13707 LIBS=$ac_func_search_save_LIBS
13709 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13710 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13711 ac_res=$ac_cv_search_opendir
13712 if test "$ac_res" != no; then
13713 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13719 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13720 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13721 if test "${ac_cv_header_time+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 #include <sys/types.h>
13731 #include <sys/time.h>
13737 if ((struct tm *) 0)
13743 rm -f conftest.$ac_objext
13744 if { (ac_try="$ac_compile"
13745 case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_compile") 2>conftest.er1
13752 grep -v '^ *+' conftest.er1 >conftest.err
13754 cat conftest.err >&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } && {
13757 test -z "$ac_c_werror_flag" ||
13758 test ! -s conftest.err
13759 } && test -s conftest.$ac_objext; then
13760 ac_cv_header_time=yes
13762 echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13765 ac_cv_header_time=no
13768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13770 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13771 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13772 if test $ac_cv_header_time = yes; then
13774 cat >>confdefs.h <<\_ACEOF
13775 #define TIME_WITH_SYS_TIME 1
13787 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 ac_res=`eval echo '${'$as_ac_Header'}'`
13797 { echo "$as_me:$LINENO: result: $ac_res" >&5
13798 echo "${ECHO_T}$ac_res" >&6; }
13800 # Is the header compilable?
13801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13803 cat >conftest.$ac_ext <<_ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 $ac_includes_default
13810 #include <$ac_header>
13812 rm -f conftest.$ac_objext
13813 if { (ac_try="$ac_compile"
13814 case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_compile") 2>conftest.er1
13821 grep -v '^ *+' conftest.er1 >conftest.err
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && {
13826 test -z "$ac_c_werror_flag" ||
13827 test ! -s conftest.err
13828 } && test -s conftest.$ac_objext; then
13829 ac_header_compiler=yes
13831 echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13834 ac_header_compiler=no
13837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13839 echo "${ECHO_T}$ac_header_compiler" >&6; }
13841 # Is the header present?
13842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13844 cat >conftest.$ac_ext <<_ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13850 #include <$ac_header>
13852 if { (ac_try="$ac_cpp conftest.$ac_ext"
13853 case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13860 grep -v '^ *+' conftest.er1 >conftest.err
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } >/dev/null && {
13865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13866 test ! -s conftest.err
13868 ac_header_preproc=yes
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 ac_header_preproc=no
13876 rm -f conftest.err conftest.$ac_ext
13877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13878 echo "${ECHO_T}$ac_header_preproc" >&6; }
13880 # So? What about this header?
13881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13887 ac_header_preproc=yes
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13903 ## --------------------------------------- ##
13904 ## Report this to http://www.sudo.ws/bugs/ ##
13905 ## --------------------------------------- ##
13907 ) | sed "s/^/$as_me: WARNING: /" >&2
13910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 eval "$as_ac_Header=\$ac_header_preproc"
13917 ac_res=`eval echo '${'$as_ac_Header'}'`
13918 { echo "$as_me:$LINENO: result: $ac_res" >&5
13919 echo "${ECHO_T}$ac_res" >&6; }
13922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13923 cat >>confdefs.h <<_ACEOF
13924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13931 if test "$OS" != "ultrix"; then
13932 { echo "$as_me:$LINENO: checking POSIX termios" >&5
13933 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13934 if test "${ac_cv_sys_posix_termios+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 cat >conftest.$ac_ext <<_ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 #include <sys/types.h>
13944 #include <unistd.h>
13945 #include <termios.h>
13950 /* SunOS 4.0.3 has termios.h but not the library calls. */
13956 rm -f conftest.$ac_objext conftest$ac_exeext
13957 if { (ac_try="$ac_link"
13958 case "(($ac_try" in
13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963 (eval "$ac_link") 2>conftest.er1
13965 grep -v '^ *+' conftest.er1 >conftest.err
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } && {
13970 test -z "$ac_c_werror_flag" ||
13971 test ! -s conftest.err
13972 } && test -s conftest$ac_exeext &&
13973 $as_test_x conftest$ac_exeext; then
13974 ac_cv_sys_posix_termios=yes
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_cv_sys_posix_termios=no
13982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13983 conftest$ac_exeext conftest.$ac_ext
13985 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13986 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13988 if test "$ac_cv_sys_posix_termios" = "yes"; then
13989 cat >>confdefs.h <<\_ACEOF
13990 #define HAVE_TERMIOS_H 1
13995 for ac_header in termio.h
13997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 ac_res=`eval echo '${'$as_ac_Header'}'`
14005 { echo "$as_me:$LINENO: result: $ac_res" >&5
14006 echo "${ECHO_T}$ac_res" >&6; }
14008 # Is the header compilable?
14009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14011 cat >conftest.$ac_ext <<_ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017 $ac_includes_default
14018 #include <$ac_header>
14020 rm -f conftest.$ac_objext
14021 if { (ac_try="$ac_compile"
14022 case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_compile") 2>conftest.er1
14029 grep -v '^ *+' conftest.er1 >conftest.err
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } && {
14034 test -z "$ac_c_werror_flag" ||
14035 test ! -s conftest.err
14036 } && test -s conftest.$ac_objext; then
14037 ac_header_compiler=yes
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_header_compiler=no
14045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14047 echo "${ECHO_T}$ac_header_compiler" >&6; }
14049 # Is the header present?
14050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14052 cat >conftest.$ac_ext <<_ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 #include <$ac_header>
14060 if { (ac_try="$ac_cpp conftest.$ac_ext"
14061 case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14068 grep -v '^ *+' conftest.er1 >conftest.err
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } >/dev/null && {
14073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14074 test ! -s conftest.err
14076 ac_header_preproc=yes
14078 echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14081 ac_header_preproc=no
14084 rm -f conftest.err conftest.$ac_ext
14085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14086 echo "${ECHO_T}$ac_header_preproc" >&6; }
14088 # So? What about this header?
14089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14095 ac_header_preproc=yes
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14111 ## --------------------------------------- ##
14112 ## Report this to http://www.sudo.ws/bugs/ ##
14113 ## --------------------------------------- ##
14115 ) | sed "s/^/$as_me: WARNING: /" >&2
14118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 eval "$as_ac_Header=\$ac_header_preproc"
14125 ac_res=`eval echo '${'$as_ac_Header'}'`
14126 { echo "$as_me:$LINENO: result: $ac_res" >&5
14127 echo "${ECHO_T}$ac_res" >&6; }
14130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14131 cat >>confdefs.h <<_ACEOF
14132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14141 if test ${with_logincap-'no'} != "no"; then
14143 for ac_header in login_cap.h
14145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 ac_res=`eval echo '${'$as_ac_Header'}'`
14153 { echo "$as_me:$LINENO: result: $ac_res" >&5
14154 echo "${ECHO_T}$ac_res" >&6; }
14156 # Is the header compilable?
14157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 $ac_includes_default
14166 #include <$ac_header>
14168 rm -f conftest.$ac_objext
14169 if { (ac_try="$ac_compile"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_compile") 2>conftest.er1
14177 grep -v '^ *+' conftest.er1 >conftest.err
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && {
14182 test -z "$ac_c_werror_flag" ||
14183 test ! -s conftest.err
14184 } && test -s conftest.$ac_objext; then
14185 ac_header_compiler=yes
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 ac_header_compiler=no
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14195 echo "${ECHO_T}$ac_header_compiler" >&6; }
14197 # Is the header present?
14198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14200 cat >conftest.$ac_ext <<_ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 #include <$ac_header>
14208 if { (ac_try="$ac_cpp conftest.$ac_ext"
14209 case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14216 grep -v '^ *+' conftest.er1 >conftest.err
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } >/dev/null && {
14221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14222 test ! -s conftest.err
14224 ac_header_preproc=yes
14226 echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14229 ac_header_preproc=no
14232 rm -f conftest.err conftest.$ac_ext
14233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14234 echo "${ECHO_T}$ac_header_preproc" >&6; }
14236 # So? What about this header?
14237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14243 ac_header_preproc=yes
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14259 ## --------------------------------------- ##
14260 ## Report this to http://www.sudo.ws/bugs/ ##
14261 ## --------------------------------------- ##
14263 ) | sed "s/^/$as_me: WARNING: /" >&2
14266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 eval "$as_ac_Header=\$ac_header_preproc"
14273 ac_res=`eval echo '${'$as_ac_Header'}'`
14274 { echo "$as_me:$LINENO: result: $ac_res" >&5
14275 echo "${ECHO_T}$ac_res" >&6; }
14278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14279 cat >>confdefs.h <<_ACEOF
14280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14282 LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
14284 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
14293 if test ${with_project-'no'} != "no"; then
14294 if test "${ac_cv_header_project_h+set}" = set; then
14295 { echo "$as_me:$LINENO: checking for project.h" >&5
14296 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14297 if test "${ac_cv_header_project_h+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14301 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14303 # Is the header compilable?
14304 { echo "$as_me:$LINENO: checking project.h usability" >&5
14305 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 $ac_includes_default
14313 #include <project.h>
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_compile") 2>conftest.er1
14324 grep -v '^ *+' conftest.er1 >conftest.err
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest.$ac_objext; then
14332 ac_header_compiler=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_header_compiler=no
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14342 echo "${ECHO_T}$ac_header_compiler" >&6; }
14344 # Is the header present?
14345 { echo "$as_me:$LINENO: checking project.h presence" >&5
14346 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 #include <project.h>
14355 if { (ac_try="$ac_cpp conftest.$ac_ext"
14356 case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14363 grep -v '^ *+' conftest.er1 >conftest.err
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } >/dev/null && {
14368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14369 test ! -s conftest.err
14371 ac_header_preproc=yes
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_header_preproc=no
14379 rm -f conftest.err conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14381 echo "${ECHO_T}$ac_header_preproc" >&6; }
14383 # So? What about this header?
14384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14386 { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
14387 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
14389 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
14390 ac_header_preproc=yes
14393 { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
14394 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
14395 { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
14396 echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
14398 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
14400 echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
14402 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
14404 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
14406 ## --------------------------------------- ##
14407 ## Report this to http://www.sudo.ws/bugs/ ##
14408 ## --------------------------------------- ##
14410 ) | sed "s/^/$as_me: WARNING: /" >&2
14413 { echo "$as_me:$LINENO: checking for project.h" >&5
14414 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14415 if test "${ac_cv_header_project_h+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 ac_cv_header_project_h=$ac_header_preproc
14420 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14421 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14424 if test $ac_cv_header_project_h = yes; then
14425 cat >>confdefs.h <<\_ACEOF
14426 #define HAVE_PROJECT_H 1
14429 SUDO_LIBS="${SUDO_LIBS} -lproject"
14436 { echo "$as_me:$LINENO: checking for mode_t" >&5
14437 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
14438 if test "${ac_cv_type_mode_t+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 cat >conftest.$ac_ext <<_ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 $ac_includes_default
14448 typedef mode_t ac__type_new_;
14452 if ((ac__type_new_ *) 0)
14454 if (sizeof (ac__type_new_))
14460 rm -f conftest.$ac_objext
14461 if { (ac_try="$ac_compile"
14462 case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_compile") 2>conftest.er1
14469 grep -v '^ *+' conftest.er1 >conftest.err
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } && {
14474 test -z "$ac_c_werror_flag" ||
14475 test ! -s conftest.err
14476 } && test -s conftest.$ac_objext; then
14477 ac_cv_type_mode_t=yes
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ac_cv_type_mode_t=no
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14487 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14488 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
14489 if test $ac_cv_type_mode_t = yes; then
14493 cat >>confdefs.h <<_ACEOF
14499 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14500 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
14501 if test "${ac_cv_type_uid_t+set}" = set; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 cat >conftest.$ac_ext <<_ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 #include <sys/types.h>
14513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14514 $EGREP "uid_t" >/dev/null 2>&1; then
14515 ac_cv_type_uid_t=yes
14517 ac_cv_type_uid_t=no
14522 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14523 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
14524 if test $ac_cv_type_uid_t = no; then
14526 cat >>confdefs.h <<\_ACEOF
14531 cat >>confdefs.h <<\_ACEOF
14537 { echo "$as_me:$LINENO: checking for __signed char" >&5
14538 echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
14539 if test "${ac_cv_type___signed_char+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 $ac_includes_default
14549 typedef __signed char ac__type_new_;
14553 if ((ac__type_new_ *) 0)
14555 if (sizeof (ac__type_new_))
14561 rm -f conftest.$ac_objext
14562 if { (ac_try="$ac_compile"
14563 case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_compile") 2>conftest.er1
14570 grep -v '^ *+' conftest.er1 >conftest.err
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } && {
14575 test -z "$ac_c_werror_flag" ||
14576 test ! -s conftest.err
14577 } && test -s conftest.$ac_objext; then
14578 ac_cv_type___signed_char=yes
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 ac_cv_type___signed_char=no
14586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
14589 echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
14590 if test $ac_cv_type___signed_char = yes; then
14593 { echo "$as_me:$LINENO: checking for signed char" >&5
14594 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
14595 if test "${ac_cv_type_signed_char+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 cat >conftest.$ac_ext <<_ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14604 $ac_includes_default
14605 typedef signed char ac__type_new_;
14609 if ((ac__type_new_ *) 0)
14611 if (sizeof (ac__type_new_))
14617 rm -f conftest.$ac_objext
14618 if { (ac_try="$ac_compile"
14619 case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_compile") 2>conftest.er1
14626 grep -v '^ *+' conftest.er1 >conftest.err
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } && {
14631 test -z "$ac_c_werror_flag" ||
14632 test ! -s conftest.err
14633 } && test -s conftest.$ac_objext; then
14634 ac_cv_type_signed_char=yes
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 ac_cv_type_signed_char=no
14642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
14645 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
14646 if test $ac_cv_type_signed_char = yes; then
14647 cat >>confdefs.h <<\_ACEOF
14648 #define __signed signed
14652 cat >>confdefs.h <<\_ACEOF
14660 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14661 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14662 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 cat >conftest.$ac_ext <<_ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14671 #include <sys/types.h>
14672 #include <signal.h>
14674 typedef sig_atomic_t ac__type_new_;
14678 if ((ac__type_new_ *) 0)
14680 if (sizeof (ac__type_new_))
14686 rm -f conftest.$ac_objext
14687 if { (ac_try="$ac_compile"
14688 case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_compile") 2>conftest.er1
14695 grep -v '^ *+' conftest.er1 >conftest.err
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } && {
14700 test -z "$ac_c_werror_flag" ||
14701 test ! -s conftest.err
14702 } && test -s conftest.$ac_objext; then
14703 ac_cv_type_sig_atomic_t=yes
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_cv_type_sig_atomic_t=no
14711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14714 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14715 if test $ac_cv_type_sig_atomic_t = yes; then
14718 cat >>confdefs.h <<\_ACEOF
14719 #define sig_atomic_t int
14724 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14725 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14726 if test "${ac_cv_type_sigaction_t+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 #include <sys/types.h>
14736 #include <signal.h>
14738 typedef sigaction_t ac__type_new_;
14742 if ((ac__type_new_ *) 0)
14744 if (sizeof (ac__type_new_))
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14767 ac_cv_type_sigaction_t=yes
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_cv_type_sigaction_t=no
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14778 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14779 if test $ac_cv_type_sigaction_t = yes; then
14781 cat >>confdefs.h <<_ACEOF
14782 #define HAVE_SIGACTION_T 1
14785 cat >>confdefs.h <<\_ACEOF
14786 #define HAVE_SIGACTION_T 1
14791 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14792 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14793 if test "${ac_cv_type_struct_timespec+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 cat >conftest.$ac_ext <<_ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14802 #include <sys/types.h>
14803 #if TIME_WITH_SYS_TIME
14804 # include <sys/time.h>
14808 typedef struct timespec ac__type_new_;
14812 if ((ac__type_new_ *) 0)
14814 if (sizeof (ac__type_new_))
14820 rm -f conftest.$ac_objext
14821 if { (ac_try="$ac_compile"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_compile") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } && {
14834 test -z "$ac_c_werror_flag" ||
14835 test ! -s conftest.err
14836 } && test -s conftest.$ac_objext; then
14837 ac_cv_type_struct_timespec=yes
14839 echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14842 ac_cv_type_struct_timespec=no
14845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14848 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14849 if test $ac_cv_type_struct_timespec = yes; then
14850 cat >>confdefs.h <<\_ACEOF
14851 #define HAVE_TIMESPEC 1
14856 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14857 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14858 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 cat >conftest.$ac_ext <<_ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 #include <sys/types.h>
14868 #include <netinet/in.h>
14870 typedef struct in6_addr ac__type_new_;
14874 if ((ac__type_new_ *) 0)
14876 if (sizeof (ac__type_new_))
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_compile") 2>conftest.er1
14891 grep -v '^ *+' conftest.er1 >conftest.err
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } && {
14896 test -z "$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest.$ac_objext; then
14899 ac_cv_type_struct_in6_addr=yes
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_cv_type_struct_in6_addr=no
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14910 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14911 if test $ac_cv_type_struct_in6_addr = yes; then
14913 cat >>confdefs.h <<_ACEOF
14914 #define HAVE_STRUCT_IN6_ADDR 1
14917 cat >>confdefs.h <<\_ACEOF
14918 #define HAVE_IN6_ADDR 1
14923 { echo "$as_me:$LINENO: checking for size_t" >&5
14924 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14925 if test "${sudo_cv_type_size_t+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14934 #include <sys/types.h>
14937 #include <stdlib.h>
14940 #include <unistd.h>
14943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14944 $EGREP "size_t" >/dev/null 2>&1; then
14945 sudo_cv_type_size_t=yes
14947 sudo_cv_type_size_t=no
14952 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14953 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14954 if test $sudo_cv_type_size_t = no; then
14956 cat >>confdefs.h <<\_ACEOF
14962 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14963 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14964 if test "${sudo_cv_type_ssize_t+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 #include <sys/types.h>
14976 #include <stdlib.h>
14979 #include <unistd.h>
14982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14983 $EGREP "ssize_t" >/dev/null 2>&1; then
14984 sudo_cv_type_ssize_t=yes
14986 sudo_cv_type_ssize_t=no
14991 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14992 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14993 if test $sudo_cv_type_ssize_t = no; then
14995 cat >>confdefs.h <<\_ACEOF
14996 #define ssize_t int
15001 { echo "$as_me:$LINENO: checking for dev_t" >&5
15002 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
15003 if test "${sudo_cv_type_dev_t+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 cat >conftest.$ac_ext <<_ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 #include <sys/types.h>
15015 #include <stdlib.h>
15018 #include <unistd.h>
15021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15022 $EGREP "dev_t" >/dev/null 2>&1; then
15023 sudo_cv_type_dev_t=yes
15025 sudo_cv_type_dev_t=no
15030 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
15031 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
15032 if test $sudo_cv_type_dev_t = no; then
15034 cat >>confdefs.h <<\_ACEOF
15040 { echo "$as_me:$LINENO: checking for ino_t" >&5
15041 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
15042 if test "${sudo_cv_type_ino_t+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 #include <sys/types.h>
15054 #include <stdlib.h>
15057 #include <unistd.h>
15060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15061 $EGREP "ino_t" >/dev/null 2>&1; then
15062 sudo_cv_type_ino_t=yes
15064 sudo_cv_type_ino_t=no
15069 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
15070 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
15071 if test $sudo_cv_type_ino_t = no; then
15073 cat >>confdefs.h <<\_ACEOF
15074 #define ino_t unsigned int
15080 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
15081 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
15082 if test "${sudo_cv_uid_t_len+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 if test "$cross_compiling" = yes; then
15087 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15088 See \`config.log' for more details." >&5
15089 echo "$as_me: error: cannot run test program while cross compiling
15090 See \`config.log' for more details." >&2;}
15091 { (exit 1); exit 1; }; }
15093 cat >conftest.$ac_ext <<_ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15101 #include <limits.h>
15102 #include <sys/types.h>
15103 #include <sys/param.h>
15107 uid_t u = (uid_t) -1;
15109 if ((f = fopen("conftestdata", "w")) == NULL)
15112 (void) sprintf(b, "%lu", (unsigned long) u);
15113 (void) fprintf(f, "%d\n", strlen(b));
15118 rm -f conftest$ac_exeext
15119 if { (ac_try="$ac_link"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_link") 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15129 { (case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_try") 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 sudo_cv_uid_t_len=`cat conftestdata`
15140 echo "$as_me: program exited with status $ac_status" >&5
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15144 ( exit $ac_status )
15145 sudo_cv_uid_t_len=10
15147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15155 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
15156 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
15158 cat >>confdefs.h <<_ACEOF
15159 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15163 { echo "$as_me:$LINENO: checking for long long" >&5
15164 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
15165 if test "${ac_cv_type_long_long+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 cat >conftest.$ac_ext <<_ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15174 $ac_includes_default
15175 typedef long long ac__type_new_;
15179 if ((ac__type_new_ *) 0)
15181 if (sizeof (ac__type_new_))
15187 rm -f conftest.$ac_objext
15188 if { (ac_try="$ac_compile"
15189 case "(($ac_try" in
15190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191 *) ac_try_echo=$ac_try;;
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194 (eval "$ac_compile") 2>conftest.er1
15196 grep -v '^ *+' conftest.er1 >conftest.err
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } && {
15201 test -z "$ac_c_werror_flag" ||
15202 test ! -s conftest.err
15203 } && test -s conftest.$ac_objext; then
15204 ac_cv_type_long_long=yes
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_cv_type_long_long=no
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15214 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15215 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15216 if test $ac_cv_type_long_long = yes; then
15218 cat >>confdefs.h <<_ACEOF
15219 #define HAVE_LONG_LONG 1
15223 cat >>confdefs.h <<\_ACEOF
15224 #define HAVE_LONG_LONG 1
15227 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
15228 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
15229 if test "${sudo_cv_type_long_is_quad+set}" = set; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 if test "$cross_compiling" = yes; then
15233 sudo_cv_type_long_is_quad=no
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15243 if (sizeof(long long) == sizeof(long)) exit(0);
15247 rm -f conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_link") 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15258 { (case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_try") 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 sudo_cv_type_long_is_quad=yes
15269 echo "$as_me: program exited with status $ac_status" >&5
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 ( exit $ac_status )
15274 sudo_cv_type_long_is_quad=no
15276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15280 rm -f core core.* *.core
15282 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
15283 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
15284 if test $sudo_cv_type_long_is_quad = yes; then
15286 cat >>confdefs.h <<\_ACEOF
15287 #define LONG_IS_QUAD 1
15294 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
15295 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
15296 if test "${sudo_cv_sock_sa_len+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 if test "$cross_compiling" = yes; then
15300 sudo_cv_sock_sa_len=no
15302 cat >conftest.$ac_ext <<_ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 #include <sys/types.h>
15309 #include <sys/socket.h>
15316 rm -f conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_link") 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15327 { (case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_try") 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 sudo_cv_sock_sa_len=yes
15338 echo "$as_me: program exited with status $ac_status" >&5
15339 echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15342 ( exit $ac_status )
15343 sudo_cv_sock_sa_len=no
15345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15349 rm -f core core.* *.core
15351 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
15352 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
15353 if test $sudo_cv_sock_sa_len = yes; then
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_SA_LEN 1
15363 *) { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15364 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15365 if test "${ac_cv_type_signal+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 cat >conftest.$ac_ext <<_ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15374 #include <sys/types.h>
15375 #include <signal.h>
15380 return *(signal (0, 0)) (0) == 1;
15385 rm -f conftest.$ac_objext
15386 if { (ac_try="$ac_compile"
15387 case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_compile") 2>conftest.er1
15394 grep -v '^ *+' conftest.er1 >conftest.err
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } && {
15399 test -z "$ac_c_werror_flag" ||
15400 test ! -s conftest.err
15401 } && test -s conftest.$ac_objext; then
15402 ac_cv_type_signal=int
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 ac_cv_type_signal=void
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15413 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15415 cat >>confdefs.h <<_ACEOF
15416 #define RETSIGTYPE $ac_cv_type_signal
15421 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15422 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
15423 if test "${ac_cv_type_getgroups+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 if test "$cross_compiling" = yes; then
15427 ac_cv_type_getgroups=cross
15429 cat >conftest.$ac_ext <<_ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15435 /* Thanks to Mike Rendell for this test. */
15436 $ac_includes_default
15439 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15444 gid_t gidset[NGID];
15446 union { gid_t gval; long int lval; } val;
15449 for (i = 0; i < NGID; i++)
15450 gidset[i] = val.gval;
15451 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15453 /* Exit non-zero if getgroups seems to require an array of ints. This
15454 happens when gid_t is short int but getgroups modifies an array
15456 return n > 0 && gidset[n] != val.gval;
15459 rm -f conftest$ac_exeext
15460 if { (ac_try="$ac_link"
15461 case "(($ac_try" in
15462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463 *) ac_try_echo=$ac_try;;
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466 (eval "$ac_link") 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15470 { (case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475 (eval "$ac_try") 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 ac_cv_type_getgroups=gid_t
15481 echo "$as_me: program exited with status $ac_status" >&5
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ( exit $ac_status )
15486 ac_cv_type_getgroups=int
15488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15492 if test $ac_cv_type_getgroups = cross; then
15493 cat >conftest.$ac_ext <<_ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 #include <unistd.h>
15502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15503 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15504 ac_cv_type_getgroups=gid_t
15506 ac_cv_type_getgroups=int
15512 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15513 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
15515 cat >>confdefs.h <<_ACEOF
15516 #define GETGROUPS_T $ac_cv_type_getgroups
15520 { echo "$as_me:$LINENO: checking for size_t" >&5
15521 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15522 if test "${ac_cv_type_size_t+set}" = set; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 $ac_includes_default
15532 typedef size_t ac__type_new_;
15536 if ((ac__type_new_ *) 0)
15538 if (sizeof (ac__type_new_))
15544 rm -f conftest.$ac_objext
15545 if { (ac_try="$ac_compile"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_compile") 2>conftest.er1
15553 grep -v '^ *+' conftest.er1 >conftest.err
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } && {
15558 test -z "$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15560 } && test -s conftest.$ac_objext; then
15561 ac_cv_type_size_t=yes
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ac_cv_type_size_t=no
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15572 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15573 if test $ac_cv_type_size_t = yes; then
15577 cat >>confdefs.h <<_ACEOF
15578 #define size_t unsigned int
15583 { echo "$as_me:$LINENO: checking for getgroups" >&5
15584 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
15585 if test "${ac_cv_func_getgroups+set}" = set; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 cat >conftest.$ac_ext <<_ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15594 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15596 #define getgroups innocuous_getgroups
15598 /* System header to define __stub macros and hopefully few prototypes,
15599 which can conflict with char getgroups (); below.
15600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15601 <limits.h> exists even on freestanding compilers. */
15604 # include <limits.h>
15606 # include <assert.h>
15611 /* Override any GCC internal prototype to avoid an error.
15612 Use char because int might match the return type of a GCC
15613 builtin and then its argument prototype would still apply. */
15618 /* The GNU C library defines this for functions which it implements
15619 to always fail with ENOSYS. Some functions are actually named
15620 something starting with __ and the normal name is an alias. */
15621 #if defined __stub_getgroups || defined __stub___getgroups
15628 return getgroups ();
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (ac_try="$ac_link"
15635 case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_link") 2>conftest.er1
15642 grep -v '^ *+' conftest.er1 >conftest.err
15644 cat conftest.err >&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } && {
15647 test -z "$ac_c_werror_flag" ||
15648 test ! -s conftest.err
15649 } && test -s conftest$ac_exeext &&
15650 $as_test_x conftest$ac_exeext; then
15651 ac_cv_func_getgroups=yes
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15656 ac_cv_func_getgroups=no
15659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15660 conftest$ac_exeext conftest.$ac_ext
15662 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15663 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15666 # If we don't yet have getgroups, see if it's in -lbsd.
15667 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15669 if test $ac_cv_func_getgroups = no; then
15670 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15671 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15672 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 ac_check_lib_save_LIBS=$LIBS
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15684 /* Override any GCC internal prototype to avoid an error.
15685 Use char because int might match the return type of a GCC
15686 builtin and then its argument prototype would still apply. */
15694 return getgroups ();
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>conftest.er1
15708 grep -v '^ *+' conftest.er1 >conftest.err
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest$ac_exeext &&
15716 $as_test_x conftest$ac_exeext; then
15717 ac_cv_lib_bsd_getgroups=yes
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15722 ac_cv_lib_bsd_getgroups=no
15725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15726 conftest$ac_exeext conftest.$ac_ext
15727 LIBS=$ac_check_lib_save_LIBS
15729 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15730 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15731 if test $ac_cv_lib_bsd_getgroups = yes; then
15732 GETGROUPS_LIB=-lbsd
15737 # Run the program to test the functionality of the system-supplied
15738 # getgroups function only if there is such a function.
15739 if test $ac_cv_func_getgroups = yes; then
15740 { echo "$as_me:$LINENO: checking for working getgroups" >&5
15741 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15742 if test "${ac_cv_func_getgroups_works+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 if test "$cross_compiling" = yes; then
15746 ac_cv_func_getgroups_works=no
15748 cat >conftest.$ac_ext <<_ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 $ac_includes_default
15758 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15759 return getgroups (0, 0) == -1;
15764 rm -f conftest$ac_exeext
15765 if { (ac_try="$ac_link"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_link") 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15775 { (case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_try") 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 ac_cv_func_getgroups_works=yes
15786 echo "$as_me: program exited with status $ac_status" >&5
15787 echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15790 ( exit $ac_status )
15791 ac_cv_func_getgroups_works=no
15793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15800 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15801 if test $ac_cv_func_getgroups_works = yes; then
15803 cat >>confdefs.h <<\_ACEOF
15804 #define HAVE_GETGROUPS 1
15828 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15829 strftime setrlimit initgroups getgroups fstat gettimeofday \
15830 setlocale getaddrinfo setsid setenv
15832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 cat >conftest.$ac_ext <<_ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15846 #define $ac_func innocuous_$ac_func
15848 /* System header to define __stub macros and hopefully few prototypes,
15849 which can conflict with char $ac_func (); below.
15850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15851 <limits.h> exists even on freestanding compilers. */
15854 # include <limits.h>
15856 # include <assert.h>
15861 /* Override any GCC internal prototype to avoid an error.
15862 Use char because int might match the return type of a GCC
15863 builtin and then its argument prototype would still apply. */
15868 /* The GNU C library defines this for functions which it implements
15869 to always fail with ENOSYS. Some functions are actually named
15870 something starting with __ and the normal name is an alias. */
15871 #if defined __stub_$ac_func || defined __stub___$ac_func
15878 return $ac_func ();
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (ac_try="$ac_link"
15885 case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_link") 2>conftest.er1
15892 grep -v '^ *+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } && {
15897 test -z "$ac_c_werror_flag" ||
15898 test ! -s conftest.err
15899 } && test -s conftest$ac_exeext &&
15900 $as_test_x conftest$ac_exeext; then
15901 eval "$as_ac_var=yes"
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 eval "$as_ac_var=no"
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910 conftest$ac_exeext conftest.$ac_ext
15912 ac_res=`eval echo '${'$as_ac_var'}'`
15913 { echo "$as_me:$LINENO: result: $ac_res" >&5
15914 echo "${ECHO_T}$ac_res" >&6; }
15915 if test `eval echo '${'$as_ac_var'}'` = yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15924 for ac_func in unsetenv
15926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 cat >conftest.$ac_ext <<_ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15940 #define $ac_func innocuous_$ac_func
15942 /* System header to define __stub macros and hopefully few prototypes,
15943 which can conflict with char $ac_func (); below.
15944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15945 <limits.h> exists even on freestanding compilers. */
15948 # include <limits.h>
15950 # include <assert.h>
15955 /* Override any GCC internal prototype to avoid an error.
15956 Use char because int might match the return type of a GCC
15957 builtin and then its argument prototype would still apply. */
15962 /* The GNU C library defines this for functions which it implements
15963 to always fail with ENOSYS. Some functions are actually named
15964 something starting with __ and the normal name is an alias. */
15965 #if defined __stub_$ac_func || defined __stub___$ac_func
15972 return $ac_func ();
15977 rm -f conftest.$ac_objext conftest$ac_exeext
15978 if { (ac_try="$ac_link"
15979 case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_link") 2>conftest.er1
15986 grep -v '^ *+' conftest.er1 >conftest.err
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } && {
15991 test -z "$ac_c_werror_flag" ||
15992 test ! -s conftest.err
15993 } && test -s conftest$ac_exeext &&
15994 $as_test_x conftest$ac_exeext; then
15995 eval "$as_ac_var=yes"
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 eval "$as_ac_var=no"
16003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16004 conftest$ac_exeext conftest.$ac_ext
16006 ac_res=`eval echo '${'$as_ac_var'}'`
16007 { echo "$as_me:$LINENO: result: $ac_res" >&5
16008 echo "${ECHO_T}$ac_res" >&6; }
16009 if test `eval echo '${'$as_ac_var'}'` = yes; then
16010 cat >>confdefs.h <<_ACEOF
16011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16013 { echo "$as_me:$LINENO: checking whether unsetenv returns void" >&5
16014 echo $ECHO_N "checking whether unsetenv returns void... $ECHO_C" >&6; }
16015 if test "${sudo_cv_func_unsetenv_void+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 if test "$cross_compiling" = yes; then
16019 sudo_cv_func_unsetenv_void=yes
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 $ac_includes_default
16034 return unsetenv("FOO") != 0;
16041 rm -f conftest$ac_exeext
16042 if { (ac_try="$ac_link"
16043 case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_link") 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16052 { (case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_try") 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 sudo_cv_func_unsetenv_void=no
16063 echo "$as_me: program exited with status $ac_status" >&5
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16067 ( exit $ac_status )
16068 sudo_cv_func_unsetenv_void=yes
16070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16075 { echo "$as_me:$LINENO: result: $sudo_cv_func_unsetenv_void" >&5
16076 echo "${ECHO_T}$sudo_cv_func_unsetenv_void" >&6; }
16077 if test $sudo_cv_func_unsetenv_void = yes; then
16079 cat >>confdefs.h <<\_ACEOF
16080 #define UNSETENV_VOID 1
16088 { echo "$as_me:$LINENO: checking whether putenv has a const argument" >&5
16089 echo $ECHO_N "checking whether putenv has a const argument... $ECHO_C" >&6; }
16090 if test "${sudo_cv_func_putenv_const+set}" = set; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 cat >conftest.$ac_ext <<_ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 $ac_includes_default
16100 int putenv(const char *string) {return 0;}
16109 rm -f conftest.$ac_objext
16110 if { (ac_try="$ac_compile"
16111 case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_compile") 2>conftest.er1
16118 grep -v '^ *+' conftest.er1 >conftest.err
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && {
16123 test -z "$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16125 } && test -s conftest.$ac_objext; then
16126 sudo_cv_func_putenv_const=yes
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 sudo_cv_func_putenv_const=no
16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16137 { echo "$as_me:$LINENO: result: $sudo_cv_func_putenv_const" >&5
16138 echo "${ECHO_T}$sudo_cv_func_putenv_const" >&6; }
16139 if test $sudo_cv_func_putenv_const = yes; then
16141 cat >>confdefs.h <<\_ACEOF
16142 #define PUTENV_CONST 1
16147 if test -z "$SKIP_SETRESUID"; then
16149 for ac_func in setresuid
16151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 cat >conftest.$ac_ext <<_ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16165 #define $ac_func innocuous_$ac_func
16167 /* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char $ac_func (); below.
16169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16170 <limits.h> exists even on freestanding compilers. */
16173 # include <limits.h>
16175 # include <assert.h>
16180 /* Override any GCC internal prototype to avoid an error.
16181 Use char because int might match the return type of a GCC
16182 builtin and then its argument prototype would still apply. */
16187 /* The GNU C library defines this for functions which it implements
16188 to always fail with ENOSYS. Some functions are actually named
16189 something starting with __ and the normal name is an alias. */
16190 #if defined __stub_$ac_func || defined __stub___$ac_func
16197 return $ac_func ();
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_link") 2>conftest.er1
16211 grep -v '^ *+' conftest.er1 >conftest.err
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } && {
16216 test -z "$ac_c_werror_flag" ||
16217 test ! -s conftest.err
16218 } && test -s conftest$ac_exeext &&
16219 $as_test_x conftest$ac_exeext; then
16220 eval "$as_ac_var=yes"
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 eval "$as_ac_var=no"
16228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16229 conftest$ac_exeext conftest.$ac_ext
16231 ac_res=`eval echo '${'$as_ac_var'}'`
16232 { echo "$as_me:$LINENO: result: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16234 if test `eval echo '${'$as_ac_var'}'` = yes; then
16235 cat >>confdefs.h <<_ACEOF
16236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16243 if test -z "$SKIP_SETREUID"; then
16245 for ac_func in setreuid
16247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16261 #define $ac_func innocuous_$ac_func
16263 /* System header to define __stub macros and hopefully few prototypes,
16264 which can conflict with char $ac_func (); below.
16265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16266 <limits.h> exists even on freestanding compilers. */
16269 # include <limits.h>
16271 # include <assert.h>
16276 /* Override any GCC internal prototype to avoid an error.
16277 Use char because int might match the return type of a GCC
16278 builtin and then its argument prototype would still apply. */
16283 /* The GNU C library defines this for functions which it implements
16284 to always fail with ENOSYS. Some functions are actually named
16285 something starting with __ and the normal name is an alias. */
16286 #if defined __stub_$ac_func || defined __stub___$ac_func
16293 return $ac_func ();
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (ac_try="$ac_link"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_link") 2>conftest.er1
16307 grep -v '^ *+' conftest.er1 >conftest.err
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } && {
16312 test -z "$ac_c_werror_flag" ||
16313 test ! -s conftest.err
16314 } && test -s conftest$ac_exeext &&
16315 $as_test_x conftest$ac_exeext; then
16316 eval "$as_ac_var=yes"
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16321 eval "$as_ac_var=no"
16324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16325 conftest$ac_exeext conftest.$ac_ext
16327 ac_res=`eval echo '${'$as_ac_var'}'`
16328 { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16330 if test `eval echo '${'$as_ac_var'}'` = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16339 if test -z "$SKIP_SETEUID"; then
16341 for ac_func in seteuid
16343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16357 #define $ac_func innocuous_$ac_func
16359 /* System header to define __stub macros and hopefully few prototypes,
16360 which can conflict with char $ac_func (); below.
16361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16362 <limits.h> exists even on freestanding compilers. */
16365 # include <limits.h>
16367 # include <assert.h>
16372 /* Override any GCC internal prototype to avoid an error.
16373 Use char because int might match the return type of a GCC
16374 builtin and then its argument prototype would still apply. */
16379 /* The GNU C library defines this for functions which it implements
16380 to always fail with ENOSYS. Some functions are actually named
16381 something starting with __ and the normal name is an alias. */
16382 #if defined __stub_$ac_func || defined __stub___$ac_func
16389 return $ac_func ();
16394 rm -f conftest.$ac_objext conftest$ac_exeext
16395 if { (ac_try="$ac_link"
16396 case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_link") 2>conftest.er1
16403 grep -v '^ *+' conftest.er1 >conftest.err
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } && {
16408 test -z "$ac_c_werror_flag" ||
16409 test ! -s conftest.err
16410 } && test -s conftest$ac_exeext &&
16411 $as_test_x conftest$ac_exeext; then
16412 eval "$as_ac_var=yes"
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 eval "$as_ac_var=no"
16420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16421 conftest$ac_exeext conftest.$ac_ext
16423 ac_res=`eval echo '${'$as_ac_var'}'`
16424 { echo "$as_me:$LINENO: result: $ac_res" >&5
16425 echo "${ECHO_T}$ac_res" >&6; }
16426 if test `eval echo '${'$as_ac_var'}'` = yes; then
16427 cat >>confdefs.h <<_ACEOF
16428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16435 if test X"$with_interfaces" != X"no"; then
16437 for ac_func in getifaddrs
16439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 cat >conftest.$ac_ext <<_ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16453 #define $ac_func innocuous_$ac_func
16455 /* System header to define __stub macros and hopefully few prototypes,
16456 which can conflict with char $ac_func (); below.
16457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16458 <limits.h> exists even on freestanding compilers. */
16461 # include <limits.h>
16463 # include <assert.h>
16468 /* Override any GCC internal prototype to avoid an error.
16469 Use char because int might match the return type of a GCC
16470 builtin and then its argument prototype would still apply. */
16475 /* The GNU C library defines this for functions which it implements
16476 to always fail with ENOSYS. Some functions are actually named
16477 something starting with __ and the normal name is an alias. */
16478 #if defined __stub_$ac_func || defined __stub___$ac_func
16485 return $ac_func ();
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (ac_try="$ac_link"
16492 case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_link") 2>conftest.er1
16499 grep -v '^ *+' conftest.er1 >conftest.err
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } && {
16504 test -z "$ac_c_werror_flag" ||
16505 test ! -s conftest.err
16506 } && test -s conftest$ac_exeext &&
16507 $as_test_x conftest$ac_exeext; then
16508 eval "$as_ac_var=yes"
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 eval "$as_ac_var=no"
16516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16517 conftest$ac_exeext conftest.$ac_ext
16519 ac_res=`eval echo '${'$as_ac_var'}'`
16520 { echo "$as_me:$LINENO: result: $ac_res" >&5
16521 echo "${ECHO_T}$ac_res" >&6; }
16522 if test `eval echo '${'$as_ac_var'}'` = yes; then
16523 cat >>confdefs.h <<_ACEOF
16524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16527 for ac_func in freeifaddrs
16529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16533 echo $ECHO_N "(cached) $ECHO_C" >&6
16535 cat >conftest.$ac_ext <<_ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16543 #define $ac_func innocuous_$ac_func
16545 /* System header to define __stub macros and hopefully few prototypes,
16546 which can conflict with char $ac_func (); below.
16547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16548 <limits.h> exists even on freestanding compilers. */
16551 # include <limits.h>
16553 # include <assert.h>
16558 /* Override any GCC internal prototype to avoid an error.
16559 Use char because int might match the return type of a GCC
16560 builtin and then its argument prototype would still apply. */
16565 /* The GNU C library defines this for functions which it implements
16566 to always fail with ENOSYS. Some functions are actually named
16567 something starting with __ and the normal name is an alias. */
16568 #if defined __stub_$ac_func || defined __stub___$ac_func
16575 return $ac_func ();
16580 rm -f conftest.$ac_objext conftest$ac_exeext
16581 if { (ac_try="$ac_link"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_link") 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } && {
16594 test -z "$ac_c_werror_flag" ||
16595 test ! -s conftest.err
16596 } && test -s conftest$ac_exeext &&
16597 $as_test_x conftest$ac_exeext; then
16598 eval "$as_ac_var=yes"
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16603 eval "$as_ac_var=no"
16606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16607 conftest$ac_exeext conftest.$ac_ext
16609 ac_res=`eval echo '${'$as_ac_var'}'`
16610 { echo "$as_me:$LINENO: result: $ac_res" >&5
16611 echo "${ECHO_T}$ac_res" >&6; }
16612 if test `eval echo '${'$as_ac_var'}'` = yes; then
16613 cat >>confdefs.h <<_ACEOF
16614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16624 if test -z "$BROKEN_GETCWD"; then
16626 for ac_func in getcwd
16628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16642 #define $ac_func innocuous_$ac_func
16644 /* System header to define __stub macros and hopefully few prototypes,
16645 which can conflict with char $ac_func (); below.
16646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16647 <limits.h> exists even on freestanding compilers. */
16650 # include <limits.h>
16652 # include <assert.h>
16657 /* Override any GCC internal prototype to avoid an error.
16658 Use char because int might match the return type of a GCC
16659 builtin and then its argument prototype would still apply. */
16664 /* The GNU C library defines this for functions which it implements
16665 to always fail with ENOSYS. Some functions are actually named
16666 something starting with __ and the normal name is an alias. */
16667 #if defined __stub_$ac_func || defined __stub___$ac_func
16674 return $ac_func ();
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (ac_try="$ac_link"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_link") 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest$ac_exeext &&
16696 $as_test_x conftest$ac_exeext; then
16697 eval "$as_ac_var=yes"
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 eval "$as_ac_var=no"
16705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16706 conftest$ac_exeext conftest.$ac_ext
16708 ac_res=`eval echo '${'$as_ac_var'}'`
16709 { echo "$as_me:$LINENO: result: $ac_res" >&5
16710 echo "${ECHO_T}$ac_res" >&6; }
16711 if test `eval echo '${'$as_ac_var'}'` = yes; then
16712 cat >>confdefs.h <<_ACEOF
16713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16717 case " $LIBOBJS " in
16718 *" $ac_func.$ac_objext "* ) ;;
16719 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16729 for ac_func in glob
16731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 cat >conftest.$ac_ext <<_ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16745 #define $ac_func innocuous_$ac_func
16747 /* System header to define __stub macros and hopefully few prototypes,
16748 which can conflict with char $ac_func (); below.
16749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16750 <limits.h> exists even on freestanding compilers. */
16753 # include <limits.h>
16755 # include <assert.h>
16760 /* Override any GCC internal prototype to avoid an error.
16761 Use char because int might match the return type of a GCC
16762 builtin and then its argument prototype would still apply. */
16767 /* The GNU C library defines this for functions which it implements
16768 to always fail with ENOSYS. Some functions are actually named
16769 something starting with __ and the normal name is an alias. */
16770 #if defined __stub_$ac_func || defined __stub___$ac_func
16777 return $ac_func ();
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
16784 case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_link") 2>conftest.er1
16791 grep -v '^ *+' conftest.er1 >conftest.err
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } && {
16796 test -z "$ac_c_werror_flag" ||
16797 test ! -s conftest.err
16798 } && test -s conftest$ac_exeext &&
16799 $as_test_x conftest$ac_exeext; then
16800 eval "$as_ac_var=yes"
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 eval "$as_ac_var=no"
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16811 ac_res=`eval echo '${'$as_ac_var'}'`
16812 { echo "$as_me:$LINENO: result: $ac_res" >&5
16813 echo "${ECHO_T}$ac_res" >&6; }
16814 if test `eval echo '${'$as_ac_var'}'` = yes; then
16815 cat >>confdefs.h <<_ACEOF
16816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16818 { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16819 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16820 cat >conftest.$ac_ext <<_ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16830 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16835 rm -f conftest.$ac_objext
16836 if { (ac_try="$ac_compile"
16837 case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_compile") 2>conftest.er1
16844 grep -v '^ *+' conftest.er1 >conftest.err
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && {
16849 test -z "$ac_c_werror_flag" ||
16850 test ! -s conftest.err
16851 } && test -s conftest.$ac_objext; then
16852 cat >>confdefs.h <<\_ACEOF
16853 #define HAVE_EXTENDED_GLOB 1
16856 { echo "$as_me:$LINENO: result: yes" >&5
16857 echo "${ECHO_T}yes" >&6; }
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16862 case " $LIBOBJS " in
16863 *" glob.$ac_objext "* ) ;;
16864 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16868 { echo "$as_me:$LINENO: result: no" >&5
16869 echo "${ECHO_T}no" >&6; }
16872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 case " $LIBOBJS " in
16875 *" glob.$ac_objext "* ) ;;
16876 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16885 for ac_func in lockf flock
16887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16893 cat >conftest.$ac_ext <<_ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h. */
16899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16901 #define $ac_func innocuous_$ac_func
16903 /* System header to define __stub macros and hopefully few prototypes,
16904 which can conflict with char $ac_func (); below.
16905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16906 <limits.h> exists even on freestanding compilers. */
16909 # include <limits.h>
16911 # include <assert.h>
16916 /* Override any GCC internal prototype to avoid an error.
16917 Use char because int might match the return type of a GCC
16918 builtin and then its argument prototype would still apply. */
16923 /* The GNU C library defines this for functions which it implements
16924 to always fail with ENOSYS. Some functions are actually named
16925 something starting with __ and the normal name is an alias. */
16926 #if defined __stub_$ac_func || defined __stub___$ac_func
16933 return $ac_func ();
16938 rm -f conftest.$ac_objext conftest$ac_exeext
16939 if { (ac_try="$ac_link"
16940 case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_link") 2>conftest.er1
16947 grep -v '^ *+' conftest.er1 >conftest.err
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } && {
16952 test -z "$ac_c_werror_flag" ||
16953 test ! -s conftest.err
16954 } && test -s conftest$ac_exeext &&
16955 $as_test_x conftest$ac_exeext; then
16956 eval "$as_ac_var=yes"
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16961 eval "$as_ac_var=no"
16964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16965 conftest$ac_exeext conftest.$ac_ext
16967 ac_res=`eval echo '${'$as_ac_var'}'`
16968 { echo "$as_me:$LINENO: result: $ac_res" >&5
16969 echo "${ECHO_T}$ac_res" >&6; }
16970 if test `eval echo '${'$as_ac_var'}'` = yes; then
16971 cat >>confdefs.h <<_ACEOF
16972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16980 for ac_func in waitpid wait3
16982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 cat >conftest.$ac_ext <<_ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16996 #define $ac_func innocuous_$ac_func
16998 /* System header to define __stub macros and hopefully few prototypes,
16999 which can conflict with char $ac_func (); below.
17000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17001 <limits.h> exists even on freestanding compilers. */
17004 # include <limits.h>
17006 # include <assert.h>
17011 /* Override any GCC internal prototype to avoid an error.
17012 Use char because int might match the return type of a GCC
17013 builtin and then its argument prototype would still apply. */
17018 /* The GNU C library defines this for functions which it implements
17019 to always fail with ENOSYS. Some functions are actually named
17020 something starting with __ and the normal name is an alias. */
17021 #if defined __stub_$ac_func || defined __stub___$ac_func
17028 return $ac_func ();
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (ac_try="$ac_link"
17035 case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_link") 2>conftest.er1
17042 grep -v '^ *+' conftest.er1 >conftest.err
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } && {
17047 test -z "$ac_c_werror_flag" ||
17048 test ! -s conftest.err
17049 } && test -s conftest$ac_exeext &&
17050 $as_test_x conftest$ac_exeext; then
17051 eval "$as_ac_var=yes"
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17056 eval "$as_ac_var=no"
17059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17060 conftest$ac_exeext conftest.$ac_ext
17062 ac_res=`eval echo '${'$as_ac_var'}'`
17063 { echo "$as_me:$LINENO: result: $ac_res" >&5
17064 echo "${ECHO_T}$ac_res" >&6; }
17065 if test `eval echo '${'$as_ac_var'}'` = yes; then
17066 cat >>confdefs.h <<_ACEOF
17067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17075 for ac_func in innetgr _innetgr
17077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 cat >conftest.$ac_ext <<_ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17091 #define $ac_func innocuous_$ac_func
17093 /* System header to define __stub macros and hopefully few prototypes,
17094 which can conflict with char $ac_func (); below.
17095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17096 <limits.h> exists even on freestanding compilers. */
17099 # include <limits.h>
17101 # include <assert.h>
17106 /* Override any GCC internal prototype to avoid an error.
17107 Use char because int might match the return type of a GCC
17108 builtin and then its argument prototype would still apply. */
17113 /* The GNU C library defines this for functions which it implements
17114 to always fail with ENOSYS. Some functions are actually named
17115 something starting with __ and the normal name is an alias. */
17116 #if defined __stub_$ac_func || defined __stub___$ac_func
17123 return $ac_func ();
17128 rm -f conftest.$ac_objext conftest$ac_exeext
17129 if { (ac_try="$ac_link"
17130 case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_link") 2>conftest.er1
17137 grep -v '^ *+' conftest.er1 >conftest.err
17139 cat conftest.err >&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } && {
17142 test -z "$ac_c_werror_flag" ||
17143 test ! -s conftest.err
17144 } && test -s conftest$ac_exeext &&
17145 $as_test_x conftest$ac_exeext; then
17146 eval "$as_ac_var=yes"
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 eval "$as_ac_var=no"
17154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17155 conftest$ac_exeext conftest.$ac_ext
17157 ac_res=`eval echo '${'$as_ac_var'}'`
17158 { echo "$as_me:$LINENO: result: $ac_res" >&5
17159 echo "${ECHO_T}$ac_res" >&6; }
17160 if test `eval echo '${'$as_ac_var'}'` = yes; then
17161 cat >>confdefs.h <<_ACEOF
17162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17165 for ac_func in getdomainname
17167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17181 #define $ac_func innocuous_$ac_func
17183 /* System header to define __stub macros and hopefully few prototypes,
17184 which can conflict with char $ac_func (); below.
17185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17186 <limits.h> exists even on freestanding compilers. */
17189 # include <limits.h>
17191 # include <assert.h>
17196 /* Override any GCC internal prototype to avoid an error.
17197 Use char because int might match the return type of a GCC
17198 builtin and then its argument prototype would still apply. */
17203 /* The GNU C library defines this for functions which it implements
17204 to always fail with ENOSYS. Some functions are actually named
17205 something starting with __ and the normal name is an alias. */
17206 #if defined __stub_$ac_func || defined __stub___$ac_func
17213 return $ac_func ();
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (ac_try="$ac_link"
17220 case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_link") 2>conftest.er1
17227 grep -v '^ *+' conftest.er1 >conftest.err
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } && {
17232 test -z "$ac_c_werror_flag" ||
17233 test ! -s conftest.err
17234 } && test -s conftest$ac_exeext &&
17235 $as_test_x conftest$ac_exeext; then
17236 eval "$as_ac_var=yes"
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 eval "$as_ac_var=no"
17244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17245 conftest$ac_exeext conftest.$ac_ext
17247 ac_res=`eval echo '${'$as_ac_var'}'`
17248 { echo "$as_me:$LINENO: result: $ac_res" >&5
17249 echo "${ECHO_T}$ac_res" >&6; }
17250 if test `eval echo '${'$as_ac_var'}'` = yes; then
17251 cat >>confdefs.h <<_ACEOF
17252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17262 for ac_func in utimes
17264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17278 #define $ac_func innocuous_$ac_func
17280 /* System header to define __stub macros and hopefully few prototypes,
17281 which can conflict with char $ac_func (); below.
17282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17283 <limits.h> exists even on freestanding compilers. */
17286 # include <limits.h>
17288 # include <assert.h>
17293 /* Override any GCC internal prototype to avoid an error.
17294 Use char because int might match the return type of a GCC
17295 builtin and then its argument prototype would still apply. */
17300 /* The GNU C library defines this for functions which it implements
17301 to always fail with ENOSYS. Some functions are actually named
17302 something starting with __ and the normal name is an alias. */
17303 #if defined __stub_$ac_func || defined __stub___$ac_func
17310 return $ac_func ();
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_link") 2>conftest.er1
17324 grep -v '^ *+' conftest.er1 >conftest.err
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest$ac_exeext &&
17332 $as_test_x conftest$ac_exeext; then
17333 eval "$as_ac_var=yes"
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 eval "$as_ac_var=no"
17341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17342 conftest$ac_exeext conftest.$ac_ext
17344 ac_res=`eval echo '${'$as_ac_var'}'`
17345 { echo "$as_me:$LINENO: result: $ac_res" >&5
17346 echo "${ECHO_T}$ac_res" >&6; }
17347 if test `eval echo '${'$as_ac_var'}'` = yes; then
17348 cat >>confdefs.h <<_ACEOF
17349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17353 for ac_func in futimes futimesat
17355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 cat >conftest.$ac_ext <<_ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17369 #define $ac_func innocuous_$ac_func
17371 /* System header to define __stub macros and hopefully few prototypes,
17372 which can conflict with char $ac_func (); below.
17373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17374 <limits.h> exists even on freestanding compilers. */
17377 # include <limits.h>
17379 # include <assert.h>
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17391 /* The GNU C library defines this for functions which it implements
17392 to always fail with ENOSYS. Some functions are actually named
17393 something starting with __ and the normal name is an alias. */
17394 #if defined __stub_$ac_func || defined __stub___$ac_func
17401 return $ac_func ();
17406 rm -f conftest.$ac_objext conftest$ac_exeext
17407 if { (ac_try="$ac_link"
17408 case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_link") 2>conftest.er1
17415 grep -v '^ *+' conftest.er1 >conftest.err
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } && {
17420 test -z "$ac_c_werror_flag" ||
17421 test ! -s conftest.err
17422 } && test -s conftest$ac_exeext &&
17423 $as_test_x conftest$ac_exeext; then
17424 eval "$as_ac_var=yes"
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17429 eval "$as_ac_var=no"
17432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17433 conftest$ac_exeext conftest.$ac_ext
17435 ac_res=`eval echo '${'$as_ac_var'}'`
17436 { echo "$as_me:$LINENO: result: $ac_res" >&5
17437 echo "${ECHO_T}$ac_res" >&6; }
17438 if test `eval echo '${'$as_ac_var'}'` = yes; then
17439 cat >>confdefs.h <<_ACEOF
17440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17448 for ac_func in futime
17450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 cat >conftest.$ac_ext <<_ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h. */
17462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17464 #define $ac_func innocuous_$ac_func
17466 /* System header to define __stub macros and hopefully few prototypes,
17467 which can conflict with char $ac_func (); below.
17468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17469 <limits.h> exists even on freestanding compilers. */
17472 # include <limits.h>
17474 # include <assert.h>
17479 /* Override any GCC internal prototype to avoid an error.
17480 Use char because int might match the return type of a GCC
17481 builtin and then its argument prototype would still apply. */
17486 /* The GNU C library defines this for functions which it implements
17487 to always fail with ENOSYS. Some functions are actually named
17488 something starting with __ and the normal name is an alias. */
17489 #if defined __stub_$ac_func || defined __stub___$ac_func
17496 return $ac_func ();
17501 rm -f conftest.$ac_objext conftest$ac_exeext
17502 if { (ac_try="$ac_link"
17503 case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508 (eval "$ac_link") 2>conftest.er1
17510 grep -v '^ *+' conftest.er1 >conftest.err
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } && {
17515 test -z "$ac_c_werror_flag" ||
17516 test ! -s conftest.err
17517 } && test -s conftest$ac_exeext &&
17518 $as_test_x conftest$ac_exeext; then
17519 eval "$as_ac_var=yes"
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17524 eval "$as_ac_var=no"
17527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17528 conftest$ac_exeext conftest.$ac_ext
17530 ac_res=`eval echo '${'$as_ac_var'}'`
17531 { echo "$as_me:$LINENO: result: $ac_res" >&5
17532 echo "${ECHO_T}$ac_res" >&6; }
17533 if test `eval echo '${'$as_ac_var'}'` = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17540 case " $LIBOBJS " in
17541 *" utimes.$ac_objext "* ) ;;
17542 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17549 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17550 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17551 if test "${sudo_cv_func_fnmatch+set}" = set; then
17552 echo $ECHO_N "(cached) $ECHO_C" >&6
17554 rm -f conftestdata; > conftestdata
17555 if test "$cross_compiling" = yes; then
17556 sudo_cv_func_fnmatch=no
17558 cat >conftest.$ac_ext <<_ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 #include <fnmatch.h>
17565 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17567 rm -f conftest$ac_exeext
17568 if { (ac_try="$ac_link"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_link") 2>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 sudo_cv_func_fnmatch=yes
17589 echo "$as_me: program exited with status $ac_status" >&5
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ( exit $ac_status )
17594 sudo_cv_func_fnmatch=no
17596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17600 rm -f core core.* *.core
17603 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17604 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17605 if test $sudo_cv_func_fnmatch = yes; then
17606 cat >>confdefs.h <<\_ACEOF
17607 #define HAVE_FNMATCH 1
17611 case " $LIBOBJS " in
17612 *" fnmatch.$ac_objext "* ) ;;
17613 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17619 { echo "$as_me:$LINENO: checking for isblank" >&5
17620 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17621 if test "${sudo_cv_func_isblank+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 cat >conftest.$ac_ext <<_ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17634 return (isblank('a'));
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (ac_try="$ac_link"
17641 case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_link") 2>conftest.er1
17648 grep -v '^ *+' conftest.er1 >conftest.err
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } && {
17653 test -z "$ac_c_werror_flag" ||
17654 test ! -s conftest.err
17655 } && test -s conftest$ac_exeext &&
17656 $as_test_x conftest$ac_exeext; then
17657 sudo_cv_func_isblank=yes
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 sudo_cv_func_isblank=no
17665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17666 conftest$ac_exeext conftest.$ac_ext
17668 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17669 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17671 if test "$sudo_cv_func_isblank" = "yes"; then
17673 cat >>confdefs.h <<\_ACEOF
17674 #define HAVE_ISBLANK 1
17678 case " $LIBOBJS " in
17679 *" isblank.$ac_objext "* ) ;;
17680 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17692 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 cat >conftest.$ac_ext <<_ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17708 #define $ac_func innocuous_$ac_func
17710 /* System header to define __stub macros and hopefully few prototypes,
17711 which can conflict with char $ac_func (); below.
17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713 <limits.h> exists even on freestanding compilers. */
17716 # include <limits.h>
17718 # include <assert.h>
17723 /* Override any GCC internal prototype to avoid an error.
17724 Use char because int might match the return type of a GCC
17725 builtin and then its argument prototype would still apply. */
17730 /* The GNU C library defines this for functions which it implements
17731 to always fail with ENOSYS. Some functions are actually named
17732 something starting with __ and the normal name is an alias. */
17733 #if defined __stub_$ac_func || defined __stub___$ac_func
17740 return $ac_func ();
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (ac_try="$ac_link"
17747 case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_link") 2>conftest.er1
17754 grep -v '^ *+' conftest.er1 >conftest.err
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } && {
17759 test -z "$ac_c_werror_flag" ||
17760 test ! -s conftest.err
17761 } && test -s conftest$ac_exeext &&
17762 $as_test_x conftest$ac_exeext; then
17763 eval "$as_ac_var=yes"
17765 echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17768 eval "$as_ac_var=no"
17771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17772 conftest$ac_exeext conftest.$ac_ext
17774 ac_res=`eval echo '${'$as_ac_var'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17777 if test `eval echo '${'$as_ac_var'}'` = yes; then
17778 cat >>confdefs.h <<_ACEOF
17779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17783 case " $LIBOBJS " in
17784 *" $ac_func.$ac_objext "* ) ;;
17785 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17794 for ac_func in closefrom
17796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 cat >conftest.$ac_ext <<_ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17810 #define $ac_func innocuous_$ac_func
17812 /* System header to define __stub macros and hopefully few prototypes,
17813 which can conflict with char $ac_func (); below.
17814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17815 <limits.h> exists even on freestanding compilers. */
17818 # include <limits.h>
17820 # include <assert.h>
17825 /* Override any GCC internal prototype to avoid an error.
17826 Use char because int might match the return type of a GCC
17827 builtin and then its argument prototype would still apply. */
17832 /* The GNU C library defines this for functions which it implements
17833 to always fail with ENOSYS. Some functions are actually named
17834 something starting with __ and the normal name is an alias. */
17835 #if defined __stub_$ac_func || defined __stub___$ac_func
17842 return $ac_func ();
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (ac_try="$ac_link"
17849 case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_link") 2>conftest.er1
17856 grep -v '^ *+' conftest.er1 >conftest.err
17858 cat conftest.err >&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } && {
17861 test -z "$ac_c_werror_flag" ||
17862 test ! -s conftest.err
17863 } && test -s conftest$ac_exeext &&
17864 $as_test_x conftest$ac_exeext; then
17865 eval "$as_ac_var=yes"
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 eval "$as_ac_var=no"
17873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17874 conftest$ac_exeext conftest.$ac_ext
17876 ac_res=`eval echo '${'$as_ac_var'}'`
17877 { echo "$as_me:$LINENO: result: $ac_res" >&5
17878 echo "${ECHO_T}$ac_res" >&6; }
17879 if test `eval echo '${'$as_ac_var'}'` = yes; then
17880 cat >>confdefs.h <<_ACEOF
17881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17885 case " $LIBOBJS " in
17886 *" closefrom.$ac_objext "* ) ;;
17887 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17891 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17892 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17893 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 cat >conftest.$ac_ext <<_ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h. */
17902 #include <limits.h>
17916 rm -f conftest.$ac_objext
17917 if { (ac_try="$ac_compile"
17918 case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_compile") 2>conftest.er1
17925 grep -v '^ *+' conftest.er1 >conftest.err
17927 cat conftest.err >&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } && {
17930 test -z "$ac_c_werror_flag" ||
17931 test ! -s conftest.err
17932 } && test -s conftest.$ac_objext; then
17933 ac_cv_have_decl_F_CLOSEM=yes
17935 echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17938 ac_cv_have_decl_F_CLOSEM=no
17941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17944 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17945 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17946 cat >>confdefs.h <<\_ACEOF
17947 #define HAVE_FCNTL_CLOSEM 1
17957 for ac_func in mkstemp
17959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17973 #define $ac_func innocuous_$ac_func
17975 /* System header to define __stub macros and hopefully few prototypes,
17976 which can conflict with char $ac_func (); below.
17977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17978 <limits.h> exists even on freestanding compilers. */
17981 # include <limits.h>
17983 # include <assert.h>
17988 /* Override any GCC internal prototype to avoid an error.
17989 Use char because int might match the return type of a GCC
17990 builtin and then its argument prototype would still apply. */
17995 /* The GNU C library defines this for functions which it implements
17996 to always fail with ENOSYS. Some functions are actually named
17997 something starting with __ and the normal name is an alias. */
17998 #if defined __stub_$ac_func || defined __stub___$ac_func
18005 return $ac_func ();
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (ac_try="$ac_link"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_link") 2>conftest.er1
18019 grep -v '^ *+' conftest.er1 >conftest.err
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest$ac_exeext &&
18027 $as_test_x conftest$ac_exeext; then
18028 eval "$as_ac_var=yes"
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18033 eval "$as_ac_var=no"
18036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18037 conftest$ac_exeext conftest.$ac_ext
18039 ac_res=`eval echo '${'$as_ac_var'}'`
18040 { echo "$as_me:$LINENO: result: $ac_res" >&5
18041 echo "${ECHO_T}$ac_res" >&6; }
18042 if test `eval echo '${'$as_ac_var'}'` = yes; then
18043 cat >>confdefs.h <<_ACEOF
18044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18048 SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
18051 for ac_func in random lrand48
18053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
18059 cat >conftest.$ac_ext <<_ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18067 #define $ac_func innocuous_$ac_func
18069 /* System header to define __stub macros and hopefully few prototypes,
18070 which can conflict with char $ac_func (); below.
18071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18072 <limits.h> exists even on freestanding compilers. */
18075 # include <limits.h>
18077 # include <assert.h>
18082 /* Override any GCC internal prototype to avoid an error.
18083 Use char because int might match the return type of a GCC
18084 builtin and then its argument prototype would still apply. */
18089 /* The GNU C library defines this for functions which it implements
18090 to always fail with ENOSYS. Some functions are actually named
18091 something starting with __ and the normal name is an alias. */
18092 #if defined __stub_$ac_func || defined __stub___$ac_func
18099 return $ac_func ();
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (ac_try="$ac_link"
18106 case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_link") 2>conftest.er1
18113 grep -v '^ *+' conftest.er1 >conftest.err
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } && {
18118 test -z "$ac_c_werror_flag" ||
18119 test ! -s conftest.err
18120 } && test -s conftest$ac_exeext &&
18121 $as_test_x conftest$ac_exeext; then
18122 eval "$as_ac_var=yes"
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18127 eval "$as_ac_var=no"
18130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18131 conftest$ac_exeext conftest.$ac_ext
18133 ac_res=`eval echo '${'$as_ac_var'}'`
18134 { echo "$as_me:$LINENO: result: $ac_res" >&5
18135 echo "${ECHO_T}$ac_res" >&6; }
18136 if test `eval echo '${'$as_ac_var'}'` = yes; then
18137 cat >>confdefs.h <<_ACEOF
18138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18152 for ac_func in snprintf vsnprintf asprintf vasprintf
18154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 cat >conftest.$ac_ext <<_ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18168 #define $ac_func innocuous_$ac_func
18170 /* System header to define __stub macros and hopefully few prototypes,
18171 which can conflict with char $ac_func (); below.
18172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18173 <limits.h> exists even on freestanding compilers. */
18176 # include <limits.h>
18178 # include <assert.h>
18183 /* Override any GCC internal prototype to avoid an error.
18184 Use char because int might match the return type of a GCC
18185 builtin and then its argument prototype would still apply. */
18190 /* The GNU C library defines this for functions which it implements
18191 to always fail with ENOSYS. Some functions are actually named
18192 something starting with __ and the normal name is an alias. */
18193 #if defined __stub_$ac_func || defined __stub___$ac_func
18200 return $ac_func ();
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_link") 2>conftest.er1
18214 grep -v '^ *+' conftest.er1 >conftest.err
18216 cat conftest.err >&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && {
18219 test -z "$ac_c_werror_flag" ||
18220 test ! -s conftest.err
18221 } && test -s conftest$ac_exeext &&
18222 $as_test_x conftest$ac_exeext; then
18223 eval "$as_ac_var=yes"
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 eval "$as_ac_var=no"
18231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18232 conftest$ac_exeext conftest.$ac_ext
18234 ac_res=`eval echo '${'$as_ac_var'}'`
18235 { echo "$as_me:$LINENO: result: $ac_res" >&5
18236 echo "${ECHO_T}$ac_res" >&6; }
18237 if test `eval echo '${'$as_ac_var'}'` = yes; then
18238 cat >>confdefs.h <<_ACEOF
18239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18247 if test X"$ac_cv_type_struct_timespec" != X"no"; then
18248 { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
18249 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
18250 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 cat >conftest.$ac_ext <<_ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259 $ac_includes_default
18263 static struct stat ac_aggr;
18264 if (ac_aggr.st_mtim)
18270 rm -f conftest.$ac_objext
18271 if { (ac_try="$ac_compile"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_compile") 2>conftest.er1
18279 grep -v '^ *+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } && {
18284 test -z "$ac_c_werror_flag" ||
18285 test ! -s conftest.err
18286 } && test -s conftest.$ac_objext; then
18287 ac_cv_member_struct_stat_st_mtim=yes
18289 echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18292 cat >conftest.$ac_ext <<_ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18298 $ac_includes_default
18302 static struct stat ac_aggr;
18303 if (sizeof ac_aggr.st_mtim)
18309 rm -f conftest.$ac_objext
18310 if { (ac_try="$ac_compile"
18311 case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_compile") 2>conftest.er1
18318 grep -v '^ *+' conftest.er1 >conftest.err
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } && {
18323 test -z "$ac_c_werror_flag" ||
18324 test ! -s conftest.err
18325 } && test -s conftest.$ac_objext; then
18326 ac_cv_member_struct_stat_st_mtim=yes
18328 echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18331 ac_cv_member_struct_stat_st_mtim=no
18334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18339 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
18340 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
18341 if test $ac_cv_member_struct_stat_st_mtim = yes; then
18342 cat >>confdefs.h <<\_ACEOF
18343 #define HAVE_ST_MTIM 1
18346 { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
18347 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
18348 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 cat >conftest.$ac_ext <<_ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18357 $ac_includes_default
18361 static struct stat ac_aggr;
18362 if (ac_aggr.st_mtim.st__tim)
18368 rm -f conftest.$ac_objext
18369 if { (ac_try="$ac_compile"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_compile") 2>conftest.er1
18377 grep -v '^ *+' conftest.er1 >conftest.err
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } && {
18382 test -z "$ac_c_werror_flag" ||
18383 test ! -s conftest.err
18384 } && test -s conftest.$ac_objext; then
18385 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 cat >conftest.$ac_ext <<_ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h. */
18396 $ac_includes_default
18400 static struct stat ac_aggr;
18401 if (sizeof ac_aggr.st_mtim.st__tim)
18407 rm -f conftest.$ac_objext
18408 if { (ac_try="$ac_compile"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_compile") 2>conftest.er1
18416 grep -v '^ *+' conftest.er1 >conftest.err
18418 cat conftest.err >&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest.$ac_objext; then
18424 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_cv_member_struct_stat_st_mtim_st__tim=no
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18438 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18439 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18440 cat >>confdefs.h <<\_ACEOF
18441 #define HAVE_ST__TIM 1
18447 { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18448 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18449 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18452 cat >conftest.$ac_ext <<_ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 $ac_includes_default
18462 static struct stat ac_aggr;
18463 if (ac_aggr.st_mtimespec)
18469 rm -f conftest.$ac_objext
18470 if { (ac_try="$ac_compile"
18471 case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_compile") 2>conftest.er1
18478 grep -v '^ *+' conftest.er1 >conftest.err
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } && {
18483 test -z "$ac_c_werror_flag" ||
18484 test ! -s conftest.err
18485 } && test -s conftest.$ac_objext; then
18486 ac_cv_member_struct_stat_st_mtimespec=yes
18488 echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18491 cat >conftest.$ac_ext <<_ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18497 $ac_includes_default
18501 static struct stat ac_aggr;
18502 if (sizeof ac_aggr.st_mtimespec)
18508 rm -f conftest.$ac_objext
18509 if { (ac_try="$ac_compile"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_compile") 2>conftest.er1
18517 grep -v '^ *+' conftest.er1 >conftest.err
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } && {
18522 test -z "$ac_c_werror_flag" ||
18523 test ! -s conftest.err
18524 } && test -s conftest.$ac_objext; then
18525 ac_cv_member_struct_stat_st_mtimespec=yes
18527 echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18530 ac_cv_member_struct_stat_st_mtimespec=no
18533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18539 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18540 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18541 cat >>confdefs.h <<\_ACEOF
18542 #define HAVE_ST_MTIMESPEC 1
18549 { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18550 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18551 cat >conftest.$ac_ext <<_ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18557 #include <sys/types.h>
18558 #include <sys/time.h>
18562 struct timespec ts1, ts2;
18563 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18564 #ifndef timespecsub
18565 #error missing timespecsub
18567 timespecsub(&ts1, &ts2);
18572 rm -f conftest.$ac_objext
18573 if { (ac_try="$ac_compile"
18574 case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_compile") 2>conftest.er1
18581 grep -v '^ *+' conftest.er1 >conftest.err
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } && {
18586 test -z "$ac_c_werror_flag" ||
18587 test ! -s conftest.err
18588 } && test -s conftest.$ac_objext; then
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE_TIMESPECSUB2 1
18593 { echo "$as_me:$LINENO: result: yes" >&5
18594 echo "${ECHO_T}yes" >&6; }
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18599 { echo "$as_me:$LINENO: result: no" >&5
18600 echo "${ECHO_T}no" >&6; }
18603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18605 cat >conftest.$ac_ext <<_ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 #include <sys/types.h>
18612 #include <$ac_header_dirent>
18616 DIR *d; (void)dirfd(d);
18621 rm -f conftest.$ac_objext conftest$ac_exeext
18622 if { (ac_try="$ac_link"
18623 case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_link") 2>conftest.er1
18630 grep -v '^ *+' conftest.er1 >conftest.err
18632 cat conftest.err >&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } && {
18635 test -z "$ac_c_werror_flag" ||
18636 test ! -s conftest.err
18637 } && test -s conftest$ac_exeext &&
18638 $as_test_x conftest$ac_exeext; then
18639 cat >>confdefs.h <<\_ACEOF
18640 #define HAVE_DIRFD 1
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 cat >conftest.$ac_ext <<_ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18653 #include <sys/types.h>
18654 #include <$ac_header_dirent>
18658 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_link") 2>conftest.er1
18672 grep -v '^ *+' conftest.er1 >conftest.err
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } && {
18677 test -z "$ac_c_werror_flag" ||
18678 test ! -s conftest.err
18679 } && test -s conftest$ac_exeext &&
18680 $as_test_x conftest$ac_exeext; then
18681 cat >>confdefs.h <<\_ACEOF
18682 #define HAVE_DD_FD 1
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18693 conftest$ac_exeext conftest.$ac_ext
18696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18697 conftest$ac_exeext conftest.$ac_ext
18698 if test -n "$NEED_SNPRINTF"; then
18699 case " $LIBOBJS " in
18700 *" snprintf.$ac_objext "* ) ;;
18701 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18706 { echo "$as_me:$LINENO: checking for socket" >&5
18707 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18708 if test "${ac_cv_func_socket+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18719 #define socket innocuous_socket
18721 /* System header to define __stub macros and hopefully few prototypes,
18722 which can conflict with char socket (); below.
18723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18724 <limits.h> exists even on freestanding compilers. */
18727 # include <limits.h>
18729 # include <assert.h>
18734 /* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18741 /* The GNU C library defines this for functions which it implements
18742 to always fail with ENOSYS. Some functions are actually named
18743 something starting with __ and the normal name is an alias. */
18744 #if defined __stub_socket || defined __stub___socket
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (ac_try="$ac_link"
18758 case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_link") 2>conftest.er1
18765 grep -v '^ *+' conftest.er1 >conftest.err
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } && {
18770 test -z "$ac_c_werror_flag" ||
18771 test ! -s conftest.err
18772 } && test -s conftest$ac_exeext &&
18773 $as_test_x conftest$ac_exeext; then
18774 ac_cv_func_socket=yes
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 ac_cv_func_socket=no
18782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18783 conftest$ac_exeext conftest.$ac_ext
18785 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18786 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18787 if test $ac_cv_func_socket = yes; then
18790 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18791 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18792 if test "${ac_cv_lib_socket_socket+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 ac_check_lib_save_LIBS=$LIBS
18796 LIBS="-lsocket $LIBS"
18797 cat >conftest.$ac_ext <<_ACEOF
18800 cat confdefs.h >>conftest.$ac_ext
18801 cat >>conftest.$ac_ext <<_ACEOF
18802 /* end confdefs.h. */
18804 /* Override any GCC internal prototype to avoid an error.
18805 Use char because int might match the return type of a GCC
18806 builtin and then its argument prototype would still apply. */
18819 rm -f conftest.$ac_objext conftest$ac_exeext
18820 if { (ac_try="$ac_link"
18821 case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826 (eval "$ac_link") 2>conftest.er1
18828 grep -v '^ *+' conftest.er1 >conftest.err
18830 cat conftest.err >&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } && {
18833 test -z "$ac_c_werror_flag" ||
18834 test ! -s conftest.err
18835 } && test -s conftest$ac_exeext &&
18836 $as_test_x conftest$ac_exeext; then
18837 ac_cv_lib_socket_socket=yes
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ac_cv_lib_socket_socket=no
18845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18846 conftest$ac_exeext conftest.$ac_ext
18847 LIBS=$ac_check_lib_save_LIBS
18849 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18850 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18851 if test $ac_cv_lib_socket_socket = yes; then
18852 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18854 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18855 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18856 if test "${ac_cv_lib_inet_socket+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 ac_check_lib_save_LIBS=$LIBS
18860 LIBS="-linet $LIBS"
18861 cat >conftest.$ac_ext <<_ACEOF
18864 cat confdefs.h >>conftest.$ac_ext
18865 cat >>conftest.$ac_ext <<_ACEOF
18866 /* end confdefs.h. */
18868 /* Override any GCC internal prototype to avoid an error.
18869 Use char because int might match the return type of a GCC
18870 builtin and then its argument prototype would still apply. */
18883 rm -f conftest.$ac_objext conftest$ac_exeext
18884 if { (ac_try="$ac_link"
18885 case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_link") 2>conftest.er1
18892 grep -v '^ *+' conftest.er1 >conftest.err
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } && {
18897 test -z "$ac_c_werror_flag" ||
18898 test ! -s conftest.err
18899 } && test -s conftest$ac_exeext &&
18900 $as_test_x conftest$ac_exeext; then
18901 ac_cv_lib_inet_socket=yes
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18906 ac_cv_lib_inet_socket=no
18909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18910 conftest$ac_exeext conftest.$ac_ext
18911 LIBS=$ac_check_lib_save_LIBS
18913 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18914 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18915 if test $ac_cv_lib_inet_socket = yes; then
18916 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18918 { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18919 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18920 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18921 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18922 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 ac_check_lib_save_LIBS=$LIBS
18926 LIBS="-lsocket -lnsl $LIBS"
18927 cat >conftest.$ac_ext <<_ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18934 /* Override any GCC internal prototype to avoid an error.
18935 Use char because int might match the return type of a GCC
18936 builtin and then its argument prototype would still apply. */
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_link") 2>conftest.er1
18958 grep -v '^ *+' conftest.er1 >conftest.err
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } && {
18963 test -z "$ac_c_werror_flag" ||
18964 test ! -s conftest.err
18965 } && test -s conftest$ac_exeext &&
18966 $as_test_x conftest$ac_exeext; then
18967 ac_cv_lib_socket_socket_lnsl=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_cv_lib_socket_socket_lnsl=no
18975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18976 conftest$ac_exeext conftest.$ac_ext
18977 LIBS=$ac_check_lib_save_LIBS
18979 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18980 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18981 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18982 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18991 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18992 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18993 if test "${ac_cv_func_inet_addr+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18996 cat >conftest.$ac_ext <<_ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19002 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
19003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19004 #define inet_addr innocuous_inet_addr
19006 /* System header to define __stub macros and hopefully few prototypes,
19007 which can conflict with char inet_addr (); below.
19008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19009 <limits.h> exists even on freestanding compilers. */
19012 # include <limits.h>
19014 # include <assert.h>
19019 /* Override any GCC internal prototype to avoid an error.
19020 Use char because int might match the return type of a GCC
19021 builtin and then its argument prototype would still apply. */
19026 /* The GNU C library defines this for functions which it implements
19027 to always fail with ENOSYS. Some functions are actually named
19028 something starting with __ and the normal name is an alias. */
19029 #if defined __stub_inet_addr || defined __stub___inet_addr
19036 return inet_addr ();
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (ac_try="$ac_link"
19043 case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_link") 2>conftest.er1
19050 grep -v '^ *+' conftest.er1 >conftest.err
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } && {
19055 test -z "$ac_c_werror_flag" ||
19056 test ! -s conftest.err
19057 } && test -s conftest$ac_exeext &&
19058 $as_test_x conftest$ac_exeext; then
19059 ac_cv_func_inet_addr=yes
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ac_cv_func_inet_addr=no
19067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19068 conftest$ac_exeext conftest.$ac_ext
19070 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
19071 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
19072 if test $ac_cv_func_inet_addr = yes; then
19075 { echo "$as_me:$LINENO: checking for __inet_addr" >&5
19076 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
19077 if test "${ac_cv_func___inet_addr+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 cat >conftest.$ac_ext <<_ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
19087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19088 #define __inet_addr innocuous___inet_addr
19090 /* System header to define __stub macros and hopefully few prototypes,
19091 which can conflict with char __inet_addr (); below.
19092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19093 <limits.h> exists even on freestanding compilers. */
19096 # include <limits.h>
19098 # include <assert.h>
19103 /* Override any GCC internal prototype to avoid an error.
19104 Use char because int might match the return type of a GCC
19105 builtin and then its argument prototype would still apply. */
19109 char __inet_addr ();
19110 /* The GNU C library defines this for functions which it implements
19111 to always fail with ENOSYS. Some functions are actually named
19112 something starting with __ and the normal name is an alias. */
19113 #if defined __stub___inet_addr || defined __stub_____inet_addr
19120 return __inet_addr ();
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (ac_try="$ac_link"
19127 case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_link") 2>conftest.er1
19134 grep -v '^ *+' conftest.er1 >conftest.err
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } && {
19139 test -z "$ac_c_werror_flag" ||
19140 test ! -s conftest.err
19141 } && test -s conftest$ac_exeext &&
19142 $as_test_x conftest$ac_exeext; then
19143 ac_cv_func___inet_addr=yes
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_cv_func___inet_addr=no
19151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19152 conftest$ac_exeext conftest.$ac_ext
19154 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
19155 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
19156 if test $ac_cv_func___inet_addr = yes; then
19159 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
19160 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
19161 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 ac_check_lib_save_LIBS=$LIBS
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19173 /* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19183 return inet_addr ();
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_link") 2>conftest.er1
19197 grep -v '^ *+' conftest.er1 >conftest.err
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest$ac_exeext &&
19205 $as_test_x conftest$ac_exeext; then
19206 ac_cv_lib_nsl_inet_addr=yes
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 ac_cv_lib_nsl_inet_addr=no
19214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19215 conftest$ac_exeext conftest.$ac_ext
19216 LIBS=$ac_check_lib_save_LIBS
19218 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
19219 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
19220 if test $ac_cv_lib_nsl_inet_addr = yes; then
19221 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19223 { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
19224 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
19225 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-linet $LIBS"
19230 cat >conftest.$ac_ext <<_ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19247 return inet_addr ();
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (ac_try="$ac_link"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_link") 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } && {
19266 test -z "$ac_c_werror_flag" ||
19267 test ! -s conftest.err
19268 } && test -s conftest$ac_exeext &&
19269 $as_test_x conftest$ac_exeext; then
19270 ac_cv_lib_inet_inet_addr=yes
19272 echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19275 ac_cv_lib_inet_inet_addr=no
19278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19279 conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19282 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
19283 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
19284 if test $ac_cv_lib_inet_inet_addr = yes; then
19285 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19287 { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
19288 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
19289 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
19290 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
19291 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 ac_check_lib_save_LIBS=$LIBS
19295 LIBS="-lsocket -lnsl $LIBS"
19296 cat >conftest.$ac_ext <<_ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19303 /* Override any GCC internal prototype to avoid an error.
19304 Use char because int might match the return type of a GCC
19305 builtin and then its argument prototype would still apply. */
19313 return inet_addr ();
19318 rm -f conftest.$ac_objext conftest$ac_exeext
19319 if { (ac_try="$ac_link"
19320 case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_link") 2>conftest.er1
19327 grep -v '^ *+' conftest.er1 >conftest.err
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } && {
19332 test -z "$ac_c_werror_flag" ||
19333 test ! -s conftest.err
19334 } && test -s conftest$ac_exeext &&
19335 $as_test_x conftest$ac_exeext; then
19336 ac_cv_lib_socket_inet_addr_lnsl=yes
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19341 ac_cv_lib_socket_inet_addr_lnsl=no
19344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19345 conftest$ac_exeext conftest.$ac_ext
19346 LIBS=$ac_check_lib_save_LIBS
19348 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
19349 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
19350 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
19351 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
19362 { echo "$as_me:$LINENO: checking for syslog" >&5
19363 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
19364 if test "${ac_cv_func_syslog+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 cat >conftest.$ac_ext <<_ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19373 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19375 #define syslog innocuous_syslog
19377 /* System header to define __stub macros and hopefully few prototypes,
19378 which can conflict with char syslog (); below.
19379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19380 <limits.h> exists even on freestanding compilers. */
19383 # include <limits.h>
19385 # include <assert.h>
19390 /* Override any GCC internal prototype to avoid an error.
19391 Use char because int might match the return type of a GCC
19392 builtin and then its argument prototype would still apply. */
19397 /* The GNU C library defines this for functions which it implements
19398 to always fail with ENOSYS. Some functions are actually named
19399 something starting with __ and the normal name is an alias. */
19400 #if defined __stub_syslog || defined __stub___syslog
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (ac_try="$ac_link"
19414 case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_link") 2>conftest.er1
19421 grep -v '^ *+' conftest.er1 >conftest.err
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } && {
19426 test -z "$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19428 } && test -s conftest$ac_exeext &&
19429 $as_test_x conftest$ac_exeext; then
19430 ac_cv_func_syslog=yes
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ac_cv_func_syslog=no
19438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19439 conftest$ac_exeext conftest.$ac_ext
19441 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19442 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19443 if test $ac_cv_func_syslog = yes; then
19446 { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19447 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19448 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 ac_check_lib_save_LIBS=$LIBS
19452 LIBS="-lsocket $LIBS"
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19460 /* Override any GCC internal prototype to avoid an error.
19461 Use char because int might match the return type of a GCC
19462 builtin and then its argument prototype would still apply. */
19475 rm -f conftest.$ac_objext conftest$ac_exeext
19476 if { (ac_try="$ac_link"
19477 case "(($ac_try" in
19478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479 *) ac_try_echo=$ac_try;;
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482 (eval "$ac_link") 2>conftest.er1
19484 grep -v '^ *+' conftest.er1 >conftest.err
19486 cat conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } && {
19489 test -z "$ac_c_werror_flag" ||
19490 test ! -s conftest.err
19491 } && test -s conftest$ac_exeext &&
19492 $as_test_x conftest$ac_exeext; then
19493 ac_cv_lib_socket_syslog=yes
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19498 ac_cv_lib_socket_syslog=no
19501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19502 conftest$ac_exeext conftest.$ac_ext
19503 LIBS=$ac_check_lib_save_LIBS
19505 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19506 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19507 if test $ac_cv_lib_socket_syslog = yes; then
19508 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19510 { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19511 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19512 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 ac_check_lib_save_LIBS=$LIBS
19517 cat >conftest.$ac_ext <<_ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19524 /* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19539 rm -f conftest.$ac_objext conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 2>conftest.er1
19548 grep -v '^ *+' conftest.er1 >conftest.err
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest$ac_exeext &&
19556 $as_test_x conftest$ac_exeext; then
19557 ac_cv_lib_nsl_syslog=yes
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19562 ac_cv_lib_nsl_syslog=no
19565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19566 conftest$ac_exeext conftest.$ac_ext
19567 LIBS=$ac_check_lib_save_LIBS
19569 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19570 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19571 if test $ac_cv_lib_nsl_syslog = yes; then
19572 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19574 { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19575 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19576 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 ac_check_lib_save_LIBS=$LIBS
19580 LIBS="-linet $LIBS"
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19588 /* Override any GCC internal prototype to avoid an error.
19589 Use char because int might match the return type of a GCC
19590 builtin and then its argument prototype would still apply. */
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (ac_try="$ac_link"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_link") 2>conftest.er1
19612 grep -v '^ *+' conftest.er1 >conftest.err
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } && {
19617 test -z "$ac_c_werror_flag" ||
19618 test ! -s conftest.err
19619 } && test -s conftest$ac_exeext &&
19620 $as_test_x conftest$ac_exeext; then
19621 ac_cv_lib_inet_syslog=yes
19623 echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 ac_cv_lib_inet_syslog=no
19629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19630 conftest$ac_exeext conftest.$ac_ext
19631 LIBS=$ac_check_lib_save_LIBS
19633 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19634 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19635 if test $ac_cv_lib_inet_syslog = yes; then
19636 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19646 for ac_func in getprogname
19648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19662 #define $ac_func innocuous_$ac_func
19664 /* System header to define __stub macros and hopefully few prototypes,
19665 which can conflict with char $ac_func (); below.
19666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19667 <limits.h> exists even on freestanding compilers. */
19670 # include <limits.h>
19672 # include <assert.h>
19677 /* Override any GCC internal prototype to avoid an error.
19678 Use char because int might match the return type of a GCC
19679 builtin and then its argument prototype would still apply. */
19684 /* The GNU C library defines this for functions which it implements
19685 to always fail with ENOSYS. Some functions are actually named
19686 something starting with __ and the normal name is an alias. */
19687 #if defined __stub_$ac_func || defined __stub___$ac_func
19694 return $ac_func ();
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_link") 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest$ac_exeext &&
19716 $as_test_x conftest$ac_exeext; then
19717 eval "$as_ac_var=yes"
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19722 eval "$as_ac_var=no"
19725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19726 conftest$ac_exeext conftest.$ac_ext
19728 ac_res=`eval echo '${'$as_ac_var'}'`
19729 { echo "$as_me:$LINENO: result: $ac_res" >&5
19730 echo "${ECHO_T}$ac_res" >&6; }
19731 if test `eval echo '${'$as_ac_var'}'` = yes; then
19732 cat >>confdefs.h <<_ACEOF
19733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19738 { echo "$as_me:$LINENO: checking for __progname" >&5
19739 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19740 if test "${sudo_cv___progname+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 cat >conftest.$ac_ext <<_ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19754 extern char *__progname; (void)puts(__progname);
19759 rm -f conftest.$ac_objext conftest$ac_exeext
19760 if { (ac_try="$ac_link"
19761 case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_link") 2>conftest.er1
19768 grep -v '^ *+' conftest.er1 >conftest.err
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } && {
19773 test -z "$ac_c_werror_flag" ||
19774 test ! -s conftest.err
19775 } && test -s conftest$ac_exeext &&
19776 $as_test_x conftest$ac_exeext; then
19777 sudo_cv___progname=yes
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19782 sudo_cv___progname=no
19785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19786 conftest$ac_exeext conftest.$ac_ext
19789 if test "$sudo_cv___progname" = "yes"; then
19790 cat >>confdefs.h <<\_ACEOF
19791 #define HAVE___PROGNAME 1
19795 case " $LIBOBJS " in
19796 *" getprogname.$ac_objext "* ) ;;
19797 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19802 { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19803 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19809 netsvc_conf='/etc/netsvc.conf'
19810 nsswitch_conf='/etc/nsswitch.conf'
19811 if test ${with_netsvc-"no"} != "no"; then
19812 cat >>confdefs.h <<EOF
19813 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
19816 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
19817 elif test ${with_nsswitch-"yes"} != "no"; then
19818 cat >>confdefs.h <<EOF
19819 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
19822 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
19826 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19827 for auth in $AUTH_EXCL_DEF; do
19829 AIX_AUTH) with_aixauth=maybe;;
19830 BSD_AUTH) with_bsdauth=maybe;;
19831 PAM) with_pam=maybe;;
19832 SIA) CHECKSIA=true;;
19837 if test ${with_pam-"no"} != "no"; then
19838 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19839 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19840 if test "${ac_cv_lib_dl_main+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19843 ac_check_lib_save_LIBS=$LIBS
19845 cat >conftest.$ac_ext <<_ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19861 rm -f conftest.$ac_objext conftest$ac_exeext
19862 if { (ac_try="$ac_link"
19863 case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_link") 2>conftest.er1
19870 grep -v '^ *+' conftest.er1 >conftest.err
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } && {
19875 test -z "$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19877 } && test -s conftest$ac_exeext &&
19878 $as_test_x conftest$ac_exeext; then
19879 ac_cv_lib_dl_main=yes
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_cv_lib_dl_main=no
19887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19888 conftest$ac_exeext conftest.$ac_ext
19889 LIBS=$ac_check_lib_save_LIBS
19891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19892 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19893 if test $ac_cv_lib_dl_main = yes; then
19894 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19896 SUDO_LIBS="${SUDO_LIBS} -lpam"
19899 ac_cv_lib_dl=ac_cv_lib_dl_main
19903 for ac_header in security/pam_appl.h pam/pam_appl.h
19905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 ac_res=`eval echo '${'$as_ac_Header'}'`
19913 { echo "$as_me:$LINENO: result: $ac_res" >&5
19914 echo "${ECHO_T}$ac_res" >&6; }
19916 # Is the header compilable?
19917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19919 cat >conftest.$ac_ext <<_ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 $ac_includes_default
19926 #include <$ac_header>
19928 rm -f conftest.$ac_objext
19929 if { (ac_try="$ac_compile"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_compile") 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest.$ac_objext; then
19945 ac_header_compiler=yes
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_header_compiler=no
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19955 echo "${ECHO_T}$ac_header_compiler" >&6; }
19957 # Is the header present?
19958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 #include <$ac_header>
19968 if { (ac_try="$ac_cpp conftest.$ac_ext"
19969 case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19976 grep -v '^ *+' conftest.er1 >conftest.err
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } >/dev/null && {
19981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19982 test ! -s conftest.err
19984 ac_header_preproc=yes
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_header_preproc=no
19992 rm -f conftest.err conftest.$ac_ext
19993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19994 echo "${ECHO_T}$ac_header_preproc" >&6; }
19996 # So? What about this header?
19997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20003 ac_header_preproc=yes
20006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20019 ## --------------------------------------- ##
20020 ## Report this to http://www.sudo.ws/bugs/ ##
20021 ## --------------------------------------- ##
20023 ) | sed "s/^/$as_me: WARNING: /" >&2
20026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 eval "$as_ac_Header=\$ac_header_preproc"
20033 ac_res=`eval echo '${'$as_ac_Header'}'`
20034 { echo "$as_me:$LINENO: result: $ac_res" >&5
20035 echo "${ECHO_T}$ac_res" >&6; }
20038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20039 cat >>confdefs.h <<_ACEOF
20040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20042 with_pam=yes; break
20047 if test "$with_pam" = "yes"; then
20048 cat >>confdefs.h <<\_ACEOF
20052 AUTH_OBJS="$AUTH_OBJS pam.o";
20054 { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
20055 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
20056 # Check whether --enable-pam_session was given.
20057 if test "${enable_pam_session+set}" = set; then
20058 enableval=$enable_pam_session; case "$enableval" in
20059 yes) { echo "$as_me:$LINENO: result: yes" >&5
20060 echo "${ECHO_T}yes" >&6; }
20062 no) { echo "$as_me:$LINENO: result: no" >&5
20063 echo "${ECHO_T}no" >&6; }
20065 cat >>confdefs.h <<\_ACEOF
20066 #define NO_PAM_SESSION
20070 *) { echo "$as_me:$LINENO: result: no" >&5
20071 echo "${ECHO_T}no" >&6; }
20072 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
20073 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
20077 { echo "$as_me:$LINENO: result: yes" >&5
20078 echo "${ECHO_T}yes" >&6; }
20082 *-*-linux*|*-*-solaris*)
20083 # dgettext() may be defined to dgettext_libintl in the
20084 # header file, so first check that it links w/ additional
20085 # libs, then try with -lintl
20086 cat >conftest.$ac_ext <<_ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20092 #include <libintl.h>
20096 (void)dgettext((char *)0, (char *)0);
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_link") 2>conftest.er1
20110 grep -v '^ *+' conftest.er1 >conftest.err
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest$ac_exeext &&
20118 $as_test_x conftest$ac_exeext; then
20119 cat >>confdefs.h <<\_ACEOF
20120 #define HAVE_DGETTEXT 1
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20128 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20129 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 ac_check_lib_save_LIBS=$LIBS
20133 LIBS="-lintl $LIBS"
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20141 /* Override any GCC internal prototype to avoid an error.
20142 Use char because int might match the return type of a GCC
20143 builtin and then its argument prototype would still apply. */
20151 return dgettext ();
20156 rm -f conftest.$ac_objext conftest$ac_exeext
20157 if { (ac_try="$ac_link"
20158 case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_link") 2>conftest.er1
20165 grep -v '^ *+' conftest.er1 >conftest.err
20167 cat conftest.err >&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); } && {
20170 test -z "$ac_c_werror_flag" ||
20171 test ! -s conftest.err
20172 } && test -s conftest$ac_exeext &&
20173 $as_test_x conftest$ac_exeext; then
20174 ac_cv_lib_intl_dgettext=yes
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20179 ac_cv_lib_intl_dgettext=no
20182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20183 conftest$ac_exeext conftest.$ac_ext
20184 LIBS=$ac_check_lib_save_LIBS
20186 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20187 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20188 if test $ac_cv_lib_intl_dgettext = yes; then
20189 LIBS="${LIBS} -lintl"
20190 cat >>confdefs.h <<\_ACEOF
20191 #define HAVE_DGETTEXT 1
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199 conftest$ac_exeext conftest.$ac_ext
20205 if test ${with_aixauth-'no'} != "no"; then
20206 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
20207 { echo "$as_me:$LINENO: using AIX general authentication" >&5
20208 echo "$as_me: using AIX general authentication" >&6;}
20209 cat >>confdefs.h <<\_ACEOF
20210 #define HAVE_AIXAUTH 1
20213 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
20214 SUDO_LIBS="${SUDO_LIBS} -ls"
20219 if test ${with_bsdauth-'no'} != "no"; then
20220 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20221 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20222 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20223 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20227 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20229 # Is the header compilable?
20230 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
20231 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20238 $ac_includes_default
20239 #include <bsd_auth.h>
20241 rm -f conftest.$ac_objext
20242 if { (ac_try="$ac_compile"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_compile") 2>conftest.er1
20250 grep -v '^ *+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest.$ac_objext; then
20258 ac_header_compiler=yes
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 ac_header_compiler=no
20266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20268 echo "${ECHO_T}$ac_header_compiler" >&6; }
20270 # Is the header present?
20271 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20272 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 #include <bsd_auth.h>
20281 if { (ac_try="$ac_cpp conftest.$ac_ext"
20282 case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20289 grep -v '^ *+' conftest.er1 >conftest.err
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } >/dev/null && {
20294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20297 ac_header_preproc=yes
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_header_preproc=no
20305 rm -f conftest.err conftest.$ac_ext
20306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20307 echo "${ECHO_T}$ac_header_preproc" >&6; }
20309 # So? What about this header?
20310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20312 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20313 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20315 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20316 ac_header_preproc=yes
20319 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20320 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20321 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
20322 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
20323 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20324 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20325 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
20326 echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
20327 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20328 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20329 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20330 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20332 ## --------------------------------------- ##
20333 ## Report this to http://www.sudo.ws/bugs/ ##
20334 ## --------------------------------------- ##
20336 ) | sed "s/^/$as_me: WARNING: /" >&2
20339 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20340 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20341 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 ac_cv_header_bsd_auth_h=$ac_header_preproc
20346 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20347 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20350 if test $ac_cv_header_bsd_auth_h = yes; then
20351 cat >>confdefs.h <<\_ACEOF
20352 #define HAVE_BSD_AUTH_H 1
20355 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20356 BSDAUTH_USAGE='[-a auth_type] '
20357 AUTH_EXCL=BSD_AUTH; BAMAN=""
20359 { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20360 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20361 { (exit 1); exit 1; }; }
20367 if test ${CHECKSIA-'false'} = "true"; then
20369 for ac_func in sia_ses_init
20371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 cat >conftest.$ac_ext <<_ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20385 #define $ac_func innocuous_$ac_func
20387 /* System header to define __stub macros and hopefully few prototypes,
20388 which can conflict with char $ac_func (); below.
20389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20390 <limits.h> exists even on freestanding compilers. */
20393 # include <limits.h>
20395 # include <assert.h>
20400 /* Override any GCC internal prototype to avoid an error.
20401 Use char because int might match the return type of a GCC
20402 builtin and then its argument prototype would still apply. */
20407 /* The GNU C library defines this for functions which it implements
20408 to always fail with ENOSYS. Some functions are actually named
20409 something starting with __ and the normal name is an alias. */
20410 #if defined __stub_$ac_func || defined __stub___$ac_func
20417 return $ac_func ();
20422 rm -f conftest.$ac_objext conftest$ac_exeext
20423 if { (ac_try="$ac_link"
20424 case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_link") 2>conftest.er1
20431 grep -v '^ *+' conftest.er1 >conftest.err
20433 cat conftest.err >&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } && {
20436 test -z "$ac_c_werror_flag" ||
20437 test ! -s conftest.err
20438 } && test -s conftest$ac_exeext &&
20439 $as_test_x conftest$ac_exeext; then
20440 eval "$as_ac_var=yes"
20442 echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20445 eval "$as_ac_var=no"
20448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20449 conftest$ac_exeext conftest.$ac_ext
20451 ac_res=`eval echo '${'$as_ac_var'}'`
20452 { echo "$as_me:$LINENO: result: $ac_res" >&5
20453 echo "${ECHO_T}$ac_res" >&6; }
20454 if test `eval echo '${'$as_ac_var'}'` = yes; then
20455 cat >>confdefs.h <<_ACEOF
20456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20464 if test "$found" = "true"; then
20466 AUTH_OBJS="$AUTH_OBJS sia.o"
20470 if test ${with_fwtk-'no'} != "no"; then
20471 if test "$with_fwtk" != "yes"; then
20473 if test X"$with_rpath" = X"yes"; then
20474 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20476 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20478 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20479 blibpath_add="${blibpath_add}:${with_fwtk}"
20482 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20485 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20486 AUTH_OBJS="$AUTH_OBJS fwtk.o"
20489 if test ${with_SecurID-'no'} != "no"; then
20490 if test "$with_SecurID" != "yes"; then
20492 elif test -d /usr/ace/examples; then
20493 with_SecurID=/usr/ace/examples
20495 with_SecurID=/usr/ace
20497 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20498 _LDFLAGS="${LDFLAGS}"
20500 if test X"$with_rpath" = X"yes"; then
20501 LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20503 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20505 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20506 blibpath_add="${blibpath_add}:${with_SecurID}"
20510 # Determine whether to use the new or old SecurID API
20512 { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20513 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20514 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20517 ac_check_lib_save_LIBS=$LIBS
20522 cat >conftest.$ac_ext <<_ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20529 /* Override any GCC internal prototype to avoid an error.
20530 Use char because int might match the return type of a GCC
20531 builtin and then its argument prototype would still apply. */
20544 rm -f conftest.$ac_objext conftest$ac_exeext
20545 if { (ac_try="$ac_link"
20546 case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_link") 2>conftest.er1
20553 grep -v '^ *+' conftest.er1 >conftest.err
20555 cat conftest.err >&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } && {
20558 test -z "$ac_c_werror_flag" ||
20559 test ! -s conftest.err
20560 } && test -s conftest$ac_exeext &&
20561 $as_test_x conftest$ac_exeext; then
20562 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20567 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20571 conftest$ac_exeext conftest.$ac_ext
20572 LIBS=$ac_check_lib_save_LIBS
20574 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20575 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20576 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20578 AUTH_OBJS="$AUTH_OBJS securid5.o";
20579 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20583 if test X"$with_rpath" = X"yes"; then
20584 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20586 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20588 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20589 blibpath_add="${blibpath_add}:${with_SecurID}"
20595 AUTH_OBJS="$AUTH_OBJS securid.o";
20596 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20600 LDFLAGS="${_LDFLAGS}"
20604 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20605 for auth in $AUTH_DEF; do
20607 passwd) : ${with_passwd='maybe'};;
20612 if test ${with_kerb4-'no'} != "no"; then
20613 cat >>confdefs.h <<\_ACEOF
20614 #define HAVE_KERB4 1
20617 O_LDFLAGS="$LDFLAGS"
20618 if test "$with_kerb4" = "yes"; then
20620 O_CPPFLAGS="$CPPFLAGS"
20621 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20622 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20623 cat >conftest.$ac_ext <<_ACEOF
20626 if { (ac_try="$ac_cpp conftest.$ac_ext"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20634 grep -v '^ *+' conftest.er1 >conftest.err
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } >/dev/null && {
20639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20650 rm -f conftest.err conftest.$ac_ext
20652 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20655 if test X"$with_rpath" = X"yes"; then
20656 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20658 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20660 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20661 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20665 if test X"$with_rpath" = X"yes"; then
20666 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20668 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20670 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20671 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20674 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20675 if test "${ac_cv_header_krb_h+set}" = set; then
20676 { echo "$as_me:$LINENO: checking for krb.h" >&5
20677 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20678 if test "${ac_cv_header_krb_h+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20682 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20684 # Is the header compilable?
20685 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20686 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20687 cat >conftest.$ac_ext <<_ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20693 $ac_includes_default
20696 rm -f conftest.$ac_objext
20697 if { (ac_try="$ac_compile"
20698 case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_compile") 2>conftest.er1
20705 grep -v '^ *+' conftest.er1 >conftest.err
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && {
20710 test -z "$ac_c_werror_flag" ||
20711 test ! -s conftest.err
20712 } && test -s conftest.$ac_objext; then
20713 ac_header_compiler=yes
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20718 ac_header_compiler=no
20721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20723 echo "${ECHO_T}$ac_header_compiler" >&6; }
20725 # Is the header present?
20726 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20727 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20728 cat >conftest.$ac_ext <<_ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20736 if { (ac_try="$ac_cpp conftest.$ac_ext"
20737 case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20744 grep -v '^ *+' conftest.er1 >conftest.err
20746 cat conftest.err >&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } >/dev/null && {
20749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20750 test ! -s conftest.err
20752 ac_header_preproc=yes
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_header_preproc=no
20760 rm -f conftest.err conftest.$ac_ext
20761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20762 echo "${ECHO_T}$ac_header_preproc" >&6; }
20764 # So? What about this header?
20765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20767 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20768 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20769 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20770 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20771 ac_header_preproc=yes
20774 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20775 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
20777 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20779 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
20781 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
20782 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20783 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20785 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20787 ## --------------------------------------- ##
20788 ## Report this to http://www.sudo.ws/bugs/ ##
20789 ## --------------------------------------- ##
20791 ) | sed "s/^/$as_me: WARNING: /" >&2
20794 { echo "$as_me:$LINENO: checking for krb.h" >&5
20795 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20796 if test "${ac_cv_header_krb_h+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 ac_cv_header_krb_h=$ac_header_preproc
20801 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20802 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20805 if test $ac_cv_header_krb_h = yes; then
20813 if test X"$found" = X"no"; then
20814 { 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
20815 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;}
20818 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20819 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20820 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 ac_check_lib_save_LIBS=$LIBS
20825 cat >conftest.$ac_ext <<_ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20832 /* Override any GCC internal prototype to avoid an error.
20833 Use char because int might match the return type of a GCC
20834 builtin and then its argument prototype would still apply. */
20838 char des_cbc_encrypt ();
20842 return des_cbc_encrypt ();
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_link") 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } && {
20861 test -z "$ac_c_werror_flag" ||
20862 test ! -s conftest.err
20863 } && test -s conftest$ac_exeext &&
20864 $as_test_x conftest$ac_exeext; then
20865 ac_cv_lib_des_des_cbc_encrypt=yes
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 ac_cv_lib_des_des_cbc_encrypt=no
20873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20874 conftest$ac_exeext conftest.$ac_ext
20875 LIBS=$ac_check_lib_save_LIBS
20877 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20878 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20879 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20883 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20884 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20885 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20888 ac_check_lib_save_LIBS=$LIBS
20889 LIBS="-ldes425 $LIBS"
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20897 /* Override any GCC internal prototype to avoid an error.
20898 Use char because int might match the return type of a GCC
20899 builtin and then its argument prototype would still apply. */
20903 char des_cbc_encrypt ();
20907 return des_cbc_encrypt ();
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (ac_try="$ac_link"
20914 case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_link") 2>conftest.er1
20921 grep -v '^ *+' conftest.er1 >conftest.err
20923 cat conftest.err >&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } && {
20926 test -z "$ac_c_werror_flag" ||
20927 test ! -s conftest.err
20928 } && test -s conftest$ac_exeext &&
20929 $as_test_x conftest$ac_exeext; then
20930 ac_cv_lib_des425_des_cbc_encrypt=yes
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ac_cv_lib_des425_des_cbc_encrypt=no
20938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20939 conftest$ac_exeext conftest.$ac_ext
20940 LIBS=$ac_check_lib_save_LIBS
20942 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20943 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20944 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20953 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20954 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20965 const char *tmp = krb4_version;
20970 rm -f conftest.$ac_objext
20971 if { (ac_try="$ac_compile"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_compile") 2>conftest.er1
20979 grep -v '^ *+' conftest.er1 >conftest.err
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } && {
20984 test -z "$ac_c_werror_flag" ||
20985 test ! -s conftest.err
20986 } && test -s conftest.$ac_objext; then
20988 { echo "$as_me:$LINENO: result: yes" >&5
20989 echo "${ECHO_T}yes" >&6; }
20990 K4LIBS="${K4LIBS} -lcom_err"
20991 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20992 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20993 if test "${ac_cv_lib_roken_main+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-lroken $LIBS"
20998 cat >conftest.$ac_ext <<_ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21014 rm -f conftest.$ac_objext conftest$ac_exeext
21015 if { (ac_try="$ac_link"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_link") 2>conftest.er1
21023 grep -v '^ *+' conftest.er1 >conftest.err
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest$ac_exeext &&
21031 $as_test_x conftest$ac_exeext; then
21032 ac_cv_lib_roken_main=yes
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21037 ac_cv_lib_roken_main=no
21040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21041 conftest$ac_exeext conftest.$ac_ext
21042 LIBS=$ac_check_lib_save_LIBS
21044 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21045 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21046 if test $ac_cv_lib_roken_main = yes; then
21047 K4LIBS="${K4LIBS} -lroken"
21052 echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21056 { echo "$as_me:$LINENO: result: no" >&5
21057 echo "${ECHO_T}no" >&6; }
21062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21063 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
21064 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
21065 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
21066 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-lkrb $K4LIBS $LIBS"
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21087 rm -f conftest.$ac_objext conftest$ac_exeext
21088 if { (ac_try="$ac_link"
21089 case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094 (eval "$ac_link") 2>conftest.er1
21096 grep -v '^ *+' conftest.er1 >conftest.err
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } && {
21101 test -z "$ac_c_werror_flag" ||
21102 test ! -s conftest.err
21103 } && test -s conftest$ac_exeext &&
21104 $as_test_x conftest$ac_exeext; then
21105 eval "$as_ac_Lib=yes"
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 eval "$as_ac_Lib=no"
21113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21114 conftest$ac_exeext conftest.$ac_ext
21115 LIBS=$ac_check_lib_save_LIBS
21117 ac_res=`eval echo '${'$as_ac_Lib'}'`
21118 { echo "$as_me:$LINENO: result: $ac_res" >&5
21119 echo "${ECHO_T}$ac_res" >&6; }
21120 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21121 K4LIBS="-lkrb $K4LIBS"
21124 as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
21125 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
21126 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
21127 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 ac_check_lib_save_LIBS=$LIBS
21131 LIBS="-lkrb4 $K4LIBS $LIBS"
21132 cat >conftest.$ac_ext <<_ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h. */
21148 rm -f conftest.$ac_objext conftest$ac_exeext
21149 if { (ac_try="$ac_link"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_link") 2>conftest.er1
21157 grep -v '^ *+' conftest.er1 >conftest.err
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } && {
21162 test -z "$ac_c_werror_flag" ||
21163 test ! -s conftest.err
21164 } && test -s conftest$ac_exeext &&
21165 $as_test_x conftest$ac_exeext; then
21166 eval "$as_ac_Lib=yes"
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 eval "$as_ac_Lib=no"
21174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21175 conftest$ac_exeext conftest.$ac_ext
21176 LIBS=$ac_check_lib_save_LIBS
21178 ac_res=`eval echo '${'$as_ac_Lib'}'`
21179 { echo "$as_me:$LINENO: result: $ac_res" >&5
21180 echo "${ECHO_T}$ac_res" >&6; }
21181 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21182 K4LIBS="-lkrb4 $K4LIBS"
21184 K4LIBS="-lkrb $K4LIBS"
21185 { 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
21186 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;}
21193 LDFLAGS="$O_LDFLAGS"
21194 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
21195 AUTH_OBJS="$AUTH_OBJS kerb4.o"
21198 if test ${with_kerb5-'no'} != "no"; then
21199 # Extract the first word of "krb5-config", so it can be a program name with args.
21200 set dummy krb5-config; ac_word=$2
21201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21203 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 if test -n "$KRB5CONFIG"; then
21207 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
21209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21210 for as_dir in $PATH
21213 test -z "$as_dir" && as_dir=.
21214 for ac_exec_ext in '' $ac_executable_extensions; do
21215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21216 ac_cv_prog_KRB5CONFIG="yes"
21217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21224 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
21227 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
21228 if test -n "$KRB5CONFIG"; then
21229 { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
21230 echo "${ECHO_T}$KRB5CONFIG" >&6; }
21232 { echo "$as_me:$LINENO: result: no" >&5
21233 echo "${ECHO_T}no" >&6; }
21237 if test -n "$KRB5CONFIG"; then
21238 cat >>confdefs.h <<\_ACEOF
21239 #define HAVE_KERB5 1
21242 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21243 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
21244 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
21245 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21246 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21247 cat >conftest.$ac_ext <<_ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21257 const char *tmp = heimdal_version;
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269 (eval "$ac_compile") 2>conftest.er1
21271 grep -v '^ *+' conftest.er1 >conftest.err
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && {
21276 test -z "$ac_c_werror_flag" ||
21277 test ! -s conftest.err
21278 } && test -s conftest.$ac_objext; then
21280 { echo "$as_me:$LINENO: result: yes" >&5
21281 echo "${ECHO_T}yes" >&6; }
21282 cat >>confdefs.h <<\_ACEOF
21283 #define HAVE_HEIMDAL 1
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21292 { echo "$as_me:$LINENO: result: no" >&5
21293 echo "${ECHO_T}no" >&6; }
21298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21301 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21302 cat >>confdefs.h <<\_ACEOF
21303 #define HAVE_KERB5 1
21306 if test "$with_kerb5" = "yes"; then
21308 O_CPPFLAGS="$CPPFLAGS"
21309 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21310 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21311 cat >conftest.$ac_ext <<_ACEOF
21314 if { (ac_try="$ac_cpp conftest.$ac_ext"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21322 grep -v '^ *+' conftest.er1 >conftest.err
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } >/dev/null && {
21327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21332 echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21338 rm -f conftest.err conftest.$ac_ext
21340 if test X"$found" = X"no"; then
21341 CPPFLAGS="$O_CPPFLAGS"
21342 { 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
21343 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;}
21347 if test X"$with_rpath" = X"yes"; then
21348 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21350 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21352 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21353 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21356 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21359 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21360 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21361 cat >conftest.$ac_ext <<_ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21371 const char *tmp = heimdal_version;
21376 rm -f conftest.$ac_objext
21377 if { (ac_try="$ac_compile"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_compile") 2>conftest.er1
21385 grep -v '^ *+' conftest.er1 >conftest.err
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } && {
21390 test -z "$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 } && test -s conftest.$ac_objext; then
21394 { echo "$as_me:$LINENO: result: yes" >&5
21395 echo "${ECHO_T}yes" >&6; }
21396 cat >>confdefs.h <<\_ACEOF
21397 #define HAVE_HEIMDAL 1
21400 # XXX - need to check whether -lcrypo is needed!
21401 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21402 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21403 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21404 if test "${ac_cv_lib_roken_main+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 ac_check_lib_save_LIBS=$LIBS
21408 LIBS="-lroken $LIBS"
21409 cat >conftest.$ac_ext <<_ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21425 rm -f conftest.$ac_objext conftest$ac_exeext
21426 if { (ac_try="$ac_link"
21427 case "(($ac_try" in
21428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429 *) ac_try_echo=$ac_try;;
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432 (eval "$ac_link") 2>conftest.er1
21434 grep -v '^ *+' conftest.er1 >conftest.err
21436 cat conftest.err >&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } && {
21439 test -z "$ac_c_werror_flag" ||
21440 test ! -s conftest.err
21441 } && test -s conftest$ac_exeext &&
21442 $as_test_x conftest$ac_exeext; then
21443 ac_cv_lib_roken_main=yes
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_cv_lib_roken_main=no
21451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21452 conftest$ac_exeext conftest.$ac_ext
21453 LIBS=$ac_check_lib_save_LIBS
21455 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21456 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21457 if test $ac_cv_lib_roken_main = yes; then
21458 SUDO_LIBS="${SUDO_LIBS} -lroken"
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21467 { echo "$as_me:$LINENO: result: no" >&5
21468 echo "${ECHO_T}no" >&6; }
21469 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21470 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21471 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21472 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21475 ac_check_lib_save_LIBS=$LIBS
21476 LIBS="-lkrb5support $LIBS"
21477 cat >conftest.$ac_ext <<_ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21493 rm -f conftest.$ac_objext conftest$ac_exeext
21494 if { (ac_try="$ac_link"
21495 case "(($ac_try" in
21496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497 *) ac_try_echo=$ac_try;;
21499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500 (eval "$ac_link") 2>conftest.er1
21502 grep -v '^ *+' conftest.er1 >conftest.err
21504 cat conftest.err >&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } && {
21507 test -z "$ac_c_werror_flag" ||
21508 test ! -s conftest.err
21509 } && test -s conftest$ac_exeext &&
21510 $as_test_x conftest$ac_exeext; then
21511 ac_cv_lib_krb5support_main=yes
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21516 ac_cv_lib_krb5support_main=no
21519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21520 conftest$ac_exeext conftest.$ac_ext
21521 LIBS=$ac_check_lib_save_LIBS
21523 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21524 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21525 if test $ac_cv_lib_krb5support_main = yes; then
21526 SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21535 LIBS="${LIBS} ${SUDO_LIBS}"
21539 for ac_func in krb5_verify_user krb5_init_secure_context krb5_get_init_creds_opt_alloc
21541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21555 #define $ac_func innocuous_$ac_func
21557 /* System header to define __stub macros and hopefully few prototypes,
21558 which can conflict with char $ac_func (); below.
21559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21560 <limits.h> exists even on freestanding compilers. */
21563 # include <limits.h>
21565 # include <assert.h>
21570 /* Override any GCC internal prototype to avoid an error.
21571 Use char because int might match the return type of a GCC
21572 builtin and then its argument prototype would still apply. */
21577 /* The GNU C library defines this for functions which it implements
21578 to always fail with ENOSYS. Some functions are actually named
21579 something starting with __ and the normal name is an alias. */
21580 #if defined __stub_$ac_func || defined __stub___$ac_func
21587 return $ac_func ();
21592 rm -f conftest.$ac_objext conftest$ac_exeext
21593 if { (ac_try="$ac_link"
21594 case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_link") 2>conftest.er1
21601 grep -v '^ *+' conftest.er1 >conftest.err
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } && {
21606 test -z "$ac_c_werror_flag" ||
21607 test ! -s conftest.err
21608 } && test -s conftest$ac_exeext &&
21609 $as_test_x conftest$ac_exeext; then
21610 eval "$as_ac_var=yes"
21612 echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21615 eval "$as_ac_var=no"
21618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21619 conftest$ac_exeext conftest.$ac_ext
21621 ac_res=`eval echo '${'$as_ac_var'}'`
21622 { echo "$as_me:$LINENO: result: $ac_res" >&5
21623 echo "${ECHO_T}$ac_res" >&6; }
21624 if test `eval echo '${'$as_ac_var'}'` = yes; then
21625 cat >>confdefs.h <<_ACEOF
21626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21632 { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a two argument2" >&5
21633 echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a two argument2... $ECHO_C" >&6; }
21634 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21638 cat >conftest.$ac_ext <<_ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h. */
21649 krb5_context context = NULL;
21650 krb5_get_init_creds_opt *opts = NULL;
21651 krb5_get_init_creds_opt_free(context, opts);
21657 rm -f conftest.$ac_objext
21658 if { (ac_try="$ac_compile"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_compile") 2>conftest.er1
21666 grep -v '^ *+' conftest.er1 >conftest.err
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && {
21671 test -z "$ac_c_werror_flag" ||
21672 test ! -s conftest.err
21673 } && test -s conftest.$ac_objext; then
21674 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21679 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21687 { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
21688 echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
21689 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
21690 cat >>confdefs.h <<\_ACEOF
21691 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
21698 if test ${with_AFS-'no'} = "yes"; then
21700 # looks like the "standard" place for AFS libs is /usr/afsws/lib
21701 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21702 for i in $AFSLIBDIRS; do
21703 if test -d ${i}; then
21705 if test X"$with_rpath" = X"yes"; then
21706 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21708 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21710 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21711 blibpath_add="${blibpath_add}:$i"
21714 FOUND_AFSLIBDIR=true
21717 if test -z "$FOUND_AFSLIBDIR"; then
21718 { 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
21719 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;}
21722 # Order is important here. Note that we build AFS_LIBS from right to left
21723 # since AFS_LIBS may be initialized with BSD compat libs that must go last
21724 AFS_LIBS="-laudit ${AFS_LIBS}"
21725 for i in $AFSLIBDIRS; do
21726 if test -f ${i}/util.a; then
21727 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21732 if test -z "$FOUND_UTIL_A"; then
21733 AFS_LIBS="-lutil ${AFS_LIBS}"
21735 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21737 # AFS includes may live in /usr/include on some machines...
21738 for i in /usr/afsws/include; do
21739 if test -d ${i}; then
21740 CPPFLAGS="${CPPFLAGS} -I${i}"
21741 FOUND_AFSINCDIR=true
21745 if test -z "$FOUND_AFSLIBDIR"; then
21746 { 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
21747 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;}
21750 AUTH_OBJS="$AUTH_OBJS afs.o"
21753 if test ${with_DCE-'no'} = "yes"; then
21754 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21755 SUDO_LIBS="${SUDO_LIBS} -ldce"
21756 AUTH_OBJS="$AUTH_OBJS dce.o"
21759 if test ${with_skey-'no'} = "yes"; then
21760 O_LDFLAGS="$LDFLAGS"
21761 if test "$with_skey" != "yes"; then
21762 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21764 if test X"$with_rpath" = X"yes"; then
21765 LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21767 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21769 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21770 blibpath_add="${blibpath_add}:${with_skey}/lib"
21774 if test X"$with_rpath" = X"yes"; then
21775 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21777 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21779 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21780 blibpath_add="${blibpath_add}:${with_skey}/lib"
21783 cat >conftest.$ac_ext <<_ACEOF
21786 if { (ac_try="$ac_cpp conftest.$ac_ext"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21794 grep -v '^ *+' conftest.er1 >conftest.err
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } >/dev/null && {
21799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21804 echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21810 rm -f conftest.err conftest.$ac_ext
21813 O_CPPFLAGS="$CPPFLAGS"
21814 for dir in "" "/usr/local" "/usr/contrib"; do
21815 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21816 cat >conftest.$ac_ext <<_ACEOF
21819 if { (ac_try="$ac_cpp conftest.$ac_ext"
21820 case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21827 grep -v '^ *+' conftest.er1 >conftest.err
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } >/dev/null && {
21832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21833 test ! -s conftest.err
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21843 rm -f conftest.err conftest.$ac_ext
21845 if test "$found" = "no" -o -z "$dir"; then
21846 CPPFLAGS="$O_CPPFLAGS"
21849 if test X"$with_rpath" = X"yes"; then
21850 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21852 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21854 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21855 blibpath_add="${blibpath_add}:${dir}/lib"
21859 if test X"$with_rpath" = X"yes"; then
21860 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21862 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21864 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21865 blibpath_add="${blibpath_add}:${dir}/lib"
21870 if test "$found" = "no"; then
21871 { 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
21872 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;}
21874 { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21875 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21876 if test "${ac_cv_lib_skey_main+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21879 ac_check_lib_save_LIBS=$LIBS
21880 LIBS="-lskey $LIBS"
21881 cat >conftest.$ac_ext <<_ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21897 rm -f conftest.$ac_objext conftest$ac_exeext
21898 if { (ac_try="$ac_link"
21899 case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904 (eval "$ac_link") 2>conftest.er1
21906 grep -v '^ *+' conftest.er1 >conftest.err
21908 cat conftest.err >&5
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); } && {
21911 test -z "$ac_c_werror_flag" ||
21912 test ! -s conftest.err
21913 } && test -s conftest$ac_exeext &&
21914 $as_test_x conftest$ac_exeext; then
21915 ac_cv_lib_skey_main=yes
21917 echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21920 ac_cv_lib_skey_main=no
21923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21924 conftest$ac_exeext conftest.$ac_ext
21925 LIBS=$ac_check_lib_save_LIBS
21927 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21928 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21929 if test $ac_cv_lib_skey_main = yes; then
21932 { 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
21933 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;}
21936 { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21937 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21938 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 ac_check_lib_save_LIBS=$LIBS
21942 LIBS="-lskey $LIBS"
21943 cat >conftest.$ac_ext <<_ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21950 /* Override any GCC internal prototype to avoid an error.
21951 Use char because int might match the return type of a GCC
21952 builtin and then its argument prototype would still apply. */
21956 char skeyaccess ();
21960 return skeyaccess ();
21965 rm -f conftest.$ac_objext conftest$ac_exeext
21966 if { (ac_try="$ac_link"
21967 case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_link") 2>conftest.er1
21974 grep -v '^ *+' conftest.er1 >conftest.err
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } && {
21979 test -z "$ac_c_werror_flag" ||
21980 test ! -s conftest.err
21981 } && test -s conftest$ac_exeext &&
21982 $as_test_x conftest$ac_exeext; then
21983 ac_cv_lib_skey_skeyaccess=yes
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 ac_cv_lib_skey_skeyaccess=no
21991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21992 conftest$ac_exeext conftest.$ac_ext
21993 LIBS=$ac_check_lib_save_LIBS
21995 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21996 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21997 if test $ac_cv_lib_skey_skeyaccess = yes; then
21998 cat >>confdefs.h <<\_ACEOF
21999 #define HAVE_SKEYACCESS 1
22004 LDFLAGS="$O_LDFLAGS"
22005 SUDO_LIBS="${SUDO_LIBS} -lskey"
22006 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22009 if test ${with_opie-'no'} = "yes"; then
22010 O_LDFLAGS="$LDFLAGS"
22011 if test "$with_opie" != "yes"; then
22012 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
22014 if test X"$with_rpath" = X"yes"; then
22015 LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22017 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
22019 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22020 blibpath_add="${blibpath_add}:${with_opie}/lib"
22024 if test X"$with_rpath" = X"yes"; then
22025 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22027 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
22029 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22030 blibpath_add="${blibpath_add}:${with_opie}/lib"
22033 cat >conftest.$ac_ext <<_ACEOF
22036 if { (ac_try="$ac_cpp conftest.$ac_ext"
22037 case "(($ac_try" in
22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22044 grep -v '^ *+' conftest.er1 >conftest.err
22046 cat conftest.err >&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); } >/dev/null && {
22049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22050 test ! -s conftest.err
22054 echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22060 rm -f conftest.err conftest.$ac_ext
22063 O_CPPFLAGS="$CPPFLAGS"
22064 for dir in "" "/usr/local" "/usr/contrib"; do
22065 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
22066 cat >conftest.$ac_ext <<_ACEOF
22069 if { (ac_try="$ac_cpp conftest.$ac_ext"
22070 case "(($ac_try" in
22071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072 *) ac_try_echo=$ac_try;;
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } >/dev/null && {
22082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22093 rm -f conftest.err conftest.$ac_ext
22095 if test "$found" = "no" -o -z "$dir"; then
22096 CPPFLAGS="$O_CPPFLAGS"
22099 if test X"$with_rpath" = X"yes"; then
22100 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
22102 LDFLAGS="${LDFLAGS} -L${dir}/lib"
22104 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22105 blibpath_add="${blibpath_add}:${dir}/lib"
22109 if test X"$with_rpath" = X"yes"; then
22110 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
22112 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
22114 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22115 blibpath_add="${blibpath_add}:${dir}/lib"
22120 if test "$found" = "no"; then
22121 { 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
22122 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;}
22124 { echo "$as_me:$LINENO: checking for main in -lopie" >&5
22125 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
22126 if test "${ac_cv_lib_opie_main+set}" = set; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22129 ac_check_lib_save_LIBS=$LIBS
22130 LIBS="-lopie $LIBS"
22131 cat >conftest.$ac_ext <<_ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h. */
22147 rm -f conftest.$ac_objext conftest$ac_exeext
22148 if { (ac_try="$ac_link"
22149 case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_link") 2>conftest.er1
22156 grep -v '^ *+' conftest.er1 >conftest.err
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } && {
22161 test -z "$ac_c_werror_flag" ||
22162 test ! -s conftest.err
22163 } && test -s conftest$ac_exeext &&
22164 $as_test_x conftest$ac_exeext; then
22165 ac_cv_lib_opie_main=yes
22167 echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22170 ac_cv_lib_opie_main=no
22173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22174 conftest$ac_exeext conftest.$ac_ext
22175 LIBS=$ac_check_lib_save_LIBS
22177 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
22178 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
22179 if test $ac_cv_lib_opie_main = yes; then
22182 { 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
22183 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;}
22186 LDFLAGS="$O_LDFLAGS"
22187 SUDO_LIBS="${SUDO_LIBS} -lopie"
22188 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22191 if test ${with_passwd-'no'} != "no"; then
22192 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
22193 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22194 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22195 if test "${ac_cv_search_crypt+set}" = set; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 ac_func_search_save_LIBS=$LIBS
22199 cat >conftest.$ac_ext <<_ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22206 /* Override any GCC internal prototype to avoid an error.
22207 Use char because int might match the return type of a GCC
22208 builtin and then its argument prototype would still apply. */
22221 for ac_lib in '' crypt crypt_d ufc; do
22222 if test -z "$ac_lib"; then
22223 ac_res="none required"
22226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22228 rm -f conftest.$ac_objext conftest$ac_exeext
22229 if { (ac_try="$ac_link"
22230 case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235 (eval "$ac_link") 2>conftest.er1
22237 grep -v '^ *+' conftest.er1 >conftest.err
22239 cat conftest.err >&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest$ac_exeext &&
22245 $as_test_x conftest$ac_exeext; then
22246 ac_cv_search_crypt=$ac_res
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22256 if test "${ac_cv_search_crypt+set}" = set; then
22260 if test "${ac_cv_search_crypt+set}" = set; then
22263 ac_cv_search_crypt=no
22265 rm conftest.$ac_ext
22266 LIBS=$ac_func_search_save_LIBS
22268 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22269 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22270 ac_res=$ac_cv_search_crypt
22271 if test "$ac_res" != no; then
22272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22273 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22278 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
22280 LIBS="$LIBS $shadow_libs"
22283 for ac_func in $shadow_funcs
22285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22299 #define $ac_func innocuous_$ac_func
22301 /* System header to define __stub macros and hopefully few prototypes,
22302 which can conflict with char $ac_func (); below.
22303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22304 <limits.h> exists even on freestanding compilers. */
22307 # include <limits.h>
22309 # include <assert.h>
22314 /* Override any GCC internal prototype to avoid an error.
22315 Use char because int might match the return type of a GCC
22316 builtin and then its argument prototype would still apply. */
22321 /* The GNU C library defines this for functions which it implements
22322 to always fail with ENOSYS. Some functions are actually named
22323 something starting with __ and the normal name is an alias. */
22324 #if defined __stub_$ac_func || defined __stub___$ac_func
22331 return $ac_func ();
22336 rm -f conftest.$ac_objext conftest$ac_exeext
22337 if { (ac_try="$ac_link"
22338 case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_link") 2>conftest.er1
22345 grep -v '^ *+' conftest.er1 >conftest.err
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest$ac_exeext &&
22353 $as_test_x conftest$ac_exeext; then
22354 eval "$as_ac_var=yes"
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22359 eval "$as_ac_var=no"
22362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22363 conftest$ac_exeext conftest.$ac_ext
22365 ac_res=`eval echo '${'$as_ac_var'}'`
22366 { echo "$as_me:$LINENO: result: $ac_res" >&5
22367 echo "${ECHO_T}$ac_res" >&6; }
22368 if test `eval echo '${'$as_ac_var'}'` = yes; then
22369 cat >>confdefs.h <<_ACEOF
22370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22376 if test "$found" = "yes"; then
22377 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22378 elif test -n "$shadow_libs_optional"; then
22379 LIBS="$LIBS $shadow_libs_optional"
22381 for ac_func in $shadow_funcs
22383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 cat >conftest.$ac_ext <<_ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22397 #define $ac_func innocuous_$ac_func
22399 /* System header to define __stub macros and hopefully few prototypes,
22400 which can conflict with char $ac_func (); below.
22401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22402 <limits.h> exists even on freestanding compilers. */
22405 # include <limits.h>
22407 # include <assert.h>
22412 /* Override any GCC internal prototype to avoid an error.
22413 Use char because int might match the return type of a GCC
22414 builtin and then its argument prototype would still apply. */
22419 /* The GNU C library defines this for functions which it implements
22420 to always fail with ENOSYS. Some functions are actually named
22421 something starting with __ and the normal name is an alias. */
22422 #if defined __stub_$ac_func || defined __stub___$ac_func
22429 return $ac_func ();
22434 rm -f conftest.$ac_objext conftest$ac_exeext
22435 if { (ac_try="$ac_link"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_link") 2>conftest.er1
22443 grep -v '^ *+' conftest.er1 >conftest.err
22445 cat conftest.err >&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest$ac_exeext &&
22451 $as_test_x conftest$ac_exeext; then
22452 eval "$as_ac_var=yes"
22454 echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22457 eval "$as_ac_var=no"
22460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22461 conftest$ac_exeext conftest.$ac_ext
22463 ac_res=`eval echo '${'$as_ac_var'}'`
22464 { echo "$as_me:$LINENO: result: $ac_res" >&5
22465 echo "${ECHO_T}$ac_res" >&6; }
22466 if test `eval echo '${'$as_ac_var'}'` = yes; then
22467 cat >>confdefs.h <<_ACEOF
22468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22474 if test "$found" = "yes"; then
22475 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22478 if test "$found" = "yes"; then
22479 case "$shadow_funcs" in
22480 *getprpwnam*) SECUREWARE=1;;
22482 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22488 if test "$CHECKSHADOW" = "true"; then
22489 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22490 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22491 if test "${ac_cv_search_getspnam+set}" = set; then
22492 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 ac_func_search_save_LIBS=$LIBS
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22502 /* Override any GCC internal prototype to avoid an error.
22503 Use char because int might match the return type of a GCC
22504 builtin and then its argument prototype would still apply. */
22512 return getspnam ();
22517 for ac_lib in '' gen; do
22518 if test -z "$ac_lib"; then
22519 ac_res="none required"
22522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22524 rm -f conftest.$ac_objext conftest$ac_exeext
22525 if { (ac_try="$ac_link"
22526 case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_link") 2>conftest.er1
22533 grep -v '^ *+' conftest.er1 >conftest.err
22535 cat conftest.err >&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } && {
22538 test -z "$ac_c_werror_flag" ||
22539 test ! -s conftest.err
22540 } && test -s conftest$ac_exeext &&
22541 $as_test_x conftest$ac_exeext; then
22542 ac_cv_search_getspnam=$ac_res
22544 echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22552 if test "${ac_cv_search_getspnam+set}" = set; then
22556 if test "${ac_cv_search_getspnam+set}" = set; then
22559 ac_cv_search_getspnam=no
22561 rm conftest.$ac_ext
22562 LIBS=$ac_func_search_save_LIBS
22564 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22565 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22566 ac_res=$ac_cv_search_getspnam
22567 if test "$ac_res" != no; then
22568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22569 cat >>confdefs.h <<\_ACEOF
22570 #define HAVE_GETSPNAM 1
22572 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22576 if test "$CHECKSHADOW" = "true"; then
22577 { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22578 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22579 if test "${ac_cv_search_getprpwnam+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22582 ac_func_search_save_LIBS=$LIBS
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22590 /* Override any GCC internal prototype to avoid an error.
22591 Use char because int might match the return type of a GCC
22592 builtin and then its argument prototype would still apply. */
22596 char getprpwnam ();
22600 return getprpwnam ();
22605 for ac_lib in '' sec security prot; do
22606 if test -z "$ac_lib"; then
22607 ac_res="none required"
22610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22612 rm -f conftest.$ac_objext conftest$ac_exeext
22613 if { (ac_try="$ac_link"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_link") 2>conftest.er1
22621 grep -v '^ *+' conftest.er1 >conftest.err
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } && {
22626 test -z "$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22628 } && test -s conftest$ac_exeext &&
22629 $as_test_x conftest$ac_exeext; then
22630 ac_cv_search_getprpwnam=$ac_res
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22640 if test "${ac_cv_search_getprpwnam+set}" = set; then
22644 if test "${ac_cv_search_getprpwnam+set}" = set; then
22647 ac_cv_search_getprpwnam=no
22649 rm conftest.$ac_ext
22650 LIBS=$ac_func_search_save_LIBS
22652 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22653 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22654 ac_res=$ac_cv_search_getprpwnam
22655 if test "$ac_res" != no; then
22656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22657 cat >>confdefs.h <<\_ACEOF
22658 #define HAVE_GETPRPWNAM 1
22660 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22664 if test -n "$SECUREWARE"; then
22668 for ac_func in bigcrypt set_auth_parameters initprivs
22670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22676 cat >conftest.$ac_ext <<_ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22684 #define $ac_func innocuous_$ac_func
22686 /* System header to define __stub macros and hopefully few prototypes,
22687 which can conflict with char $ac_func (); below.
22688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22689 <limits.h> exists even on freestanding compilers. */
22692 # include <limits.h>
22694 # include <assert.h>
22699 /* Override any GCC internal prototype to avoid an error.
22700 Use char because int might match the return type of a GCC
22701 builtin and then its argument prototype would still apply. */
22706 /* The GNU C library defines this for functions which it implements
22707 to always fail with ENOSYS. Some functions are actually named
22708 something starting with __ and the normal name is an alias. */
22709 #if defined __stub_$ac_func || defined __stub___$ac_func
22716 return $ac_func ();
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728 (eval "$ac_link") 2>conftest.er1
22730 grep -v '^ *+' conftest.er1 >conftest.err
22732 cat conftest.err >&5
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } && {
22735 test -z "$ac_c_werror_flag" ||
22736 test ! -s conftest.err
22737 } && test -s conftest$ac_exeext &&
22738 $as_test_x conftest$ac_exeext; then
22739 eval "$as_ac_var=yes"
22741 echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22744 eval "$as_ac_var=no"
22747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22748 conftest$ac_exeext conftest.$ac_ext
22750 ac_res=`eval echo '${'$as_ac_var'}'`
22751 { echo "$as_me:$LINENO: result: $ac_res" >&5
22752 echo "${ECHO_T}$ac_res" >&6; }
22753 if test `eval echo '${'$as_ac_var'}'` = yes; then
22754 cat >>confdefs.h <<_ACEOF
22755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22761 AUTH_OBJS="$AUTH_OBJS secureware.o"
22765 if test ${with_ldap-'no'} != "no"; then
22766 _LDFLAGS="$LDFLAGS"
22767 if test "$with_ldap" != "yes"; then
22769 if test X"$with_rpath" = X"yes"; then
22770 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22772 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22774 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22775 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22779 if test X"$with_rpath" = X"yes"; then
22780 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22782 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22784 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22785 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22788 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22792 SUDO_OBJS="${SUDO_OBJS} ldap.o"
22794 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22795 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22799 for l in -lldap -llber '-lssl -lcrypto'; do
22801 LDAP_LIBS="${LDAP_LIBS} $l"
22802 cat >conftest.$ac_ext <<_ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 #include <sys/types.h>
22814 (void)ldap_init(0, 0)
22819 rm -f conftest.$ac_objext conftest$ac_exeext
22820 if { (ac_try="$ac_link"
22821 case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_link") 2>conftest.er1
22828 grep -v '^ *+' conftest.er1 >conftest.err
22830 cat conftest.err >&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } && {
22833 test -z "$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 } && test -s conftest$ac_exeext &&
22836 $as_test_x conftest$ac_exeext; then
22839 echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22846 conftest$ac_exeext conftest.$ac_ext
22848 if test "$found" = "no"; then
22849 LIBS="${_LIBS} -lldap"
22851 { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22852 echo "${ECHO_T}not found, using -lldap" >&6; }
22854 { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22855 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22858 { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22859 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22860 if test "${ac_cv_search_ber_set_option+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22863 ac_func_search_save_LIBS=$LIBS
22864 cat >conftest.$ac_ext <<_ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h. */
22871 /* Override any GCC internal prototype to avoid an error.
22872 Use char because int might match the return type of a GCC
22873 builtin and then its argument prototype would still apply. */
22877 char ber_set_option ();
22881 return ber_set_option ();
22886 for ac_lib in '' lber; do
22887 if test -z "$ac_lib"; then
22888 ac_res="none required"
22891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22893 rm -f conftest.$ac_objext conftest$ac_exeext
22894 if { (ac_try="$ac_link"
22895 case "(($ac_try" in
22896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897 *) ac_try_echo=$ac_try;;
22899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22900 (eval "$ac_link") 2>conftest.er1
22902 grep -v '^ *+' conftest.er1 >conftest.err
22904 cat conftest.err >&5
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); } && {
22907 test -z "$ac_c_werror_flag" ||
22908 test ! -s conftest.err
22909 } && test -s conftest$ac_exeext &&
22910 $as_test_x conftest$ac_exeext; then
22911 ac_cv_search_ber_set_option=$ac_res
22913 echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22921 if test "${ac_cv_search_ber_set_option+set}" = set; then
22925 if test "${ac_cv_search_ber_set_option+set}" = set; then
22928 ac_cv_search_ber_set_option=no
22930 rm conftest.$ac_ext
22931 LIBS=$ac_func_search_save_LIBS
22933 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22934 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22935 ac_res=$ac_cv_search_ber_set_option
22936 if test "$ac_res" != no; then
22937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22943 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22944 LDAP_LIBS="$LDAP_LIBS -llber"
22946 { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22947 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22948 cat >conftest.$ac_ext <<_ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22954 #include <sys/types.h>
22959 (void)ldap_init(0, 0)
22964 rm -f conftest.$ac_objext conftest$ac_exeext
22965 if { (ac_try="$ac_link"
22966 case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_link") 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest$ac_exeext &&
22981 $as_test_x conftest$ac_exeext; then
22982 { echo "$as_me:$LINENO: result: no" >&5
22983 echo "${ECHO_T}no" >&6; }
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22989 { echo "$as_me:$LINENO: result: yes" >&5
22990 echo "${ECHO_T}yes" >&6; }
22991 cat >>confdefs.h <<\_ACEOF
22992 #define HAVE_LBER_H 1
22997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22998 conftest$ac_exeext conftest.$ac_ext
23002 for ac_header in sasl/sasl.h sasl.h
23004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23011 ac_res=`eval echo '${'$as_ac_Header'}'`
23012 { echo "$as_me:$LINENO: result: $ac_res" >&5
23013 echo "${ECHO_T}$ac_res" >&6; }
23015 # Is the header compilable?
23016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23018 cat >conftest.$ac_ext <<_ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 $ac_includes_default
23025 #include <$ac_header>
23027 rm -f conftest.$ac_objext
23028 if { (ac_try="$ac_compile"
23029 case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23034 (eval "$ac_compile") 2>conftest.er1
23036 grep -v '^ *+' conftest.er1 >conftest.err
23038 cat conftest.err >&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } && {
23041 test -z "$ac_c_werror_flag" ||
23042 test ! -s conftest.err
23043 } && test -s conftest.$ac_objext; then
23044 ac_header_compiler=yes
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23049 ac_header_compiler=no
23052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23054 echo "${ECHO_T}$ac_header_compiler" >&6; }
23056 # Is the header present?
23057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23059 cat >conftest.$ac_ext <<_ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h. */
23065 #include <$ac_header>
23067 if { (ac_try="$ac_cpp conftest.$ac_ext"
23068 case "(($ac_try" in
23069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23070 *) ac_try_echo=$ac_try;;
23072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23075 grep -v '^ *+' conftest.er1 >conftest.err
23077 cat conftest.err >&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } >/dev/null && {
23080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23081 test ! -s conftest.err
23083 ac_header_preproc=yes
23085 echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23088 ac_header_preproc=no
23091 rm -f conftest.err conftest.$ac_ext
23092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23093 echo "${ECHO_T}$ac_header_preproc" >&6; }
23095 # So? What about this header?
23096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23102 ac_header_preproc=yes
23105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23118 ## --------------------------------------- ##
23119 ## Report this to http://www.sudo.ws/bugs/ ##
23120 ## --------------------------------------- ##
23122 ) | sed "s/^/$as_me: WARNING: /" >&2
23125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23128 echo $ECHO_N "(cached) $ECHO_C" >&6
23130 eval "$as_ac_Header=\$ac_header_preproc"
23132 ac_res=`eval echo '${'$as_ac_Header'}'`
23133 { echo "$as_me:$LINENO: result: $ac_res" >&5
23134 echo "${ECHO_T}$ac_res" >&6; }
23137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23138 cat >>confdefs.h <<_ACEOF
23139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23142 for ac_func in ldap_sasl_interactive_bind_s
23144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23148 echo $ECHO_N "(cached) $ECHO_C" >&6
23150 cat >conftest.$ac_ext <<_ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23158 #define $ac_func innocuous_$ac_func
23160 /* System header to define __stub macros and hopefully few prototypes,
23161 which can conflict with char $ac_func (); below.
23162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23163 <limits.h> exists even on freestanding compilers. */
23166 # include <limits.h>
23168 # include <assert.h>
23173 /* Override any GCC internal prototype to avoid an error.
23174 Use char because int might match the return type of a GCC
23175 builtin and then its argument prototype would still apply. */
23180 /* The GNU C library defines this for functions which it implements
23181 to always fail with ENOSYS. Some functions are actually named
23182 something starting with __ and the normal name is an alias. */
23183 #if defined __stub_$ac_func || defined __stub___$ac_func
23190 return $ac_func ();
23195 rm -f conftest.$ac_objext conftest$ac_exeext
23196 if { (ac_try="$ac_link"
23197 case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_link") 2>conftest.er1
23204 grep -v '^ *+' conftest.er1 >conftest.err
23206 cat conftest.err >&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } && {
23209 test -z "$ac_c_werror_flag" ||
23210 test ! -s conftest.err
23211 } && test -s conftest$ac_exeext &&
23212 $as_test_x conftest$ac_exeext; then
23213 eval "$as_ac_var=yes"
23215 echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23218 eval "$as_ac_var=no"
23221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23222 conftest$ac_exeext conftest.$ac_ext
23224 ac_res=`eval echo '${'$as_ac_var'}'`
23225 { echo "$as_me:$LINENO: result: $ac_res" >&5
23226 echo "${ECHO_T}$ac_res" >&6; }
23227 if test `eval echo '${'$as_ac_var'}'` = yes; then
23228 cat >>confdefs.h <<_ACEOF
23229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23243 for ac_header in ldap_ssl.h mps/ldap_ssl.h
23245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23249 echo $ECHO_N "(cached) $ECHO_C" >&6
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23259 #include <$ac_header>
23261 rm -f conftest.$ac_objext
23262 if { (ac_try="$ac_compile"
23263 case "(($ac_try" in
23264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_compile") 2>conftest.er1
23270 grep -v '^ *+' conftest.er1 >conftest.err
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } && {
23275 test -z "$ac_c_werror_flag" ||
23276 test ! -s conftest.err
23277 } && test -s conftest.$ac_objext; then
23278 eval "$as_ac_Header=yes"
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 eval "$as_ac_Header=no"
23286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23288 ac_res=`eval echo '${'$as_ac_Header'}'`
23289 { echo "$as_me:$LINENO: result: $ac_res" >&5
23290 echo "${ECHO_T}$ac_res" >&6; }
23291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23292 cat >>confdefs.h <<_ACEOF
23293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23311 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
23313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23317 echo $ECHO_N "(cached) $ECHO_C" >&6
23319 cat >conftest.$ac_ext <<_ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23327 #define $ac_func innocuous_$ac_func
23329 /* System header to define __stub macros and hopefully few prototypes,
23330 which can conflict with char $ac_func (); below.
23331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23332 <limits.h> exists even on freestanding compilers. */
23335 # include <limits.h>
23337 # include <assert.h>
23342 /* Override any GCC internal prototype to avoid an error.
23343 Use char because int might match the return type of a GCC
23344 builtin and then its argument prototype would still apply. */
23349 /* The GNU C library defines this for functions which it implements
23350 to always fail with ENOSYS. Some functions are actually named
23351 something starting with __ and the normal name is an alias. */
23352 #if defined __stub_$ac_func || defined __stub___$ac_func
23359 return $ac_func ();
23364 rm -f conftest.$ac_objext conftest$ac_exeext
23365 if { (ac_try="$ac_link"
23366 case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_link") 2>conftest.er1
23373 grep -v '^ *+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } && {
23378 test -z "$ac_c_werror_flag" ||
23379 test ! -s conftest.err
23380 } && test -s conftest$ac_exeext &&
23381 $as_test_x conftest$ac_exeext; then
23382 eval "$as_ac_var=yes"
23384 echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 eval "$as_ac_var=no"
23390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23391 conftest$ac_exeext conftest.$ac_ext
23393 ac_res=`eval echo '${'$as_ac_var'}'`
23394 { echo "$as_me:$LINENO: result: $ac_res" >&5
23395 echo "${ECHO_T}$ac_res" >&6; }
23396 if test `eval echo '${'$as_ac_var'}'` = yes; then
23397 cat >>confdefs.h <<_ACEOF
23398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23405 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
23406 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
23407 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
23408 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
23409 echo $ECHO_N "(cached) $ECHO_C" >&6
23411 ac_check_lib_save_LIBS=$LIBS
23412 LIBS="-lgssapi $LIBS"
23413 cat >conftest.$ac_ext <<_ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h. */
23420 /* Override any GCC internal prototype to avoid an error.
23421 Use char because int might match the return type of a GCC
23422 builtin and then its argument prototype would still apply. */
23426 char gss_krb5_ccache_name ();
23430 return gss_krb5_ccache_name ();
23435 rm -f conftest.$ac_objext conftest$ac_exeext
23436 if { (ac_try="$ac_link"
23437 case "(($ac_try" in
23438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439 *) ac_try_echo=$ac_try;;
23441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23442 (eval "$ac_link") 2>conftest.er1
23444 grep -v '^ *+' conftest.er1 >conftest.err
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } && {
23449 test -z "$ac_c_werror_flag" ||
23450 test ! -s conftest.err
23451 } && test -s conftest$ac_exeext &&
23452 $as_test_x conftest$ac_exeext; then
23453 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
23455 echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23458 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
23461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23462 conftest$ac_exeext conftest.$ac_ext
23463 LIBS=$ac_check_lib_save_LIBS
23465 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
23466 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
23467 if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
23468 cat >>confdefs.h <<\_ACEOF
23469 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23472 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
23474 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
23475 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
23476 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
23477 echo $ECHO_N "(cached) $ECHO_C" >&6
23479 ac_check_lib_save_LIBS=$LIBS
23480 LIBS="-lgssapi_krb5 $LIBS"
23481 cat >conftest.$ac_ext <<_ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23488 /* Override any GCC internal prototype to avoid an error.
23489 Use char because int might match the return type of a GCC
23490 builtin and then its argument prototype would still apply. */
23494 char gss_krb5_ccache_name ();
23498 return gss_krb5_ccache_name ();
23503 rm -f conftest.$ac_objext conftest$ac_exeext
23504 if { (ac_try="$ac_link"
23505 case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_link") 2>conftest.er1
23512 grep -v '^ *+' conftest.er1 >conftest.err
23514 cat conftest.err >&5
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); } && {
23517 test -z "$ac_c_werror_flag" ||
23518 test ! -s conftest.err
23519 } && test -s conftest$ac_exeext &&
23520 $as_test_x conftest$ac_exeext; then
23521 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
23523 echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23526 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
23529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23530 conftest$ac_exeext conftest.$ac_ext
23531 LIBS=$ac_check_lib_save_LIBS
23533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
23534 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
23535 if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
23536 cat >>confdefs.h <<\_ACEOF
23537 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23540 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
23547 # gssapi headers may be separate or part of Kerberos V
23549 O_CPPFLAGS="$CPPFLAGS"
23550 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
23551 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
23552 cat >conftest.$ac_ext <<_ACEOF
23553 #include <gssapi/gssapi.h>
23555 if { (ac_try="$ac_cpp conftest.$ac_ext"
23556 case "(($ac_try" in
23557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558 *) ac_try_echo=$ac_try;;
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23563 grep -v '^ *+' conftest.er1 >conftest.err
23565 cat conftest.err >&5
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); } >/dev/null && {
23568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23569 test ! -s conftest.err
23571 found="gssapi/gssapi.h"; break
23573 echo "$as_me: failed program was:" >&5
23574 sed 's/^/| /' conftest.$ac_ext >&5
23576 cat >conftest.$ac_ext <<_ACEOF
23577 #include <gssapi.h>
23579 if { (ac_try="$ac_cpp conftest.$ac_ext"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } >/dev/null && {
23592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23595 found="gssapi.h"; break
23597 echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23603 rm -f conftest.err conftest.$ac_ext
23606 rm -f conftest.err conftest.$ac_ext
23608 if test X"$found" != X"no"; then
23610 for ac_header in $found
23612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23617 echo $ECHO_N "(cached) $ECHO_C" >&6
23619 ac_res=`eval echo '${'$as_ac_Header'}'`
23620 { echo "$as_me:$LINENO: result: $ac_res" >&5
23621 echo "${ECHO_T}$ac_res" >&6; }
23623 # Is the header compilable?
23624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23626 cat >conftest.$ac_ext <<_ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h. */
23632 $ac_includes_default
23633 #include <$ac_header>
23635 rm -f conftest.$ac_objext
23636 if { (ac_try="$ac_compile"
23637 case "(($ac_try" in
23638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639 *) ac_try_echo=$ac_try;;
23641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23642 (eval "$ac_compile") 2>conftest.er1
23644 grep -v '^ *+' conftest.er1 >conftest.err
23646 cat conftest.err >&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } && {
23649 test -z "$ac_c_werror_flag" ||
23650 test ! -s conftest.err
23651 } && test -s conftest.$ac_objext; then
23652 ac_header_compiler=yes
23654 echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23657 ac_header_compiler=no
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23662 echo "${ECHO_T}$ac_header_compiler" >&6; }
23664 # Is the header present?
23665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23667 cat >conftest.$ac_ext <<_ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23673 #include <$ac_header>
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 ac_header_preproc=yes
23693 echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23696 ac_header_preproc=no
23699 rm -f conftest.err conftest.$ac_ext
23700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23701 echo "${ECHO_T}$ac_header_preproc" >&6; }
23703 # So? What about this header?
23704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23710 ac_header_preproc=yes
23713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23726 ## --------------------------------------- ##
23727 ## Report this to http://www.sudo.ws/bugs/ ##
23728 ## --------------------------------------- ##
23730 ) | sed "s/^/$as_me: WARNING: /" >&2
23733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23736 echo $ECHO_N "(cached) $ECHO_C" >&6
23738 eval "$as_ac_Header=\$ac_header_preproc"
23740 ac_res=`eval echo '${'$as_ac_Header'}'`
23741 { echo "$as_me:$LINENO: result: $ac_res" >&5
23742 echo "${ECHO_T}$ac_res" >&6; }
23745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23746 cat >>confdefs.h <<_ACEOF
23747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23754 if test X"$found" = X"gssapi/gssapi.h"; then
23756 for ac_header in gssapi/gssapi_krb5.h
23758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23765 ac_res=`eval echo '${'$as_ac_Header'}'`
23766 { echo "$as_me:$LINENO: result: $ac_res" >&5
23767 echo "${ECHO_T}$ac_res" >&6; }
23769 # Is the header compilable?
23770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23772 cat >conftest.$ac_ext <<_ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h. */
23778 $ac_includes_default
23779 #include <$ac_header>
23781 rm -f conftest.$ac_objext
23782 if { (ac_try="$ac_compile"
23783 case "(($ac_try" in
23784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23785 *) ac_try_echo=$ac_try;;
23787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23788 (eval "$ac_compile") 2>conftest.er1
23790 grep -v '^ *+' conftest.er1 >conftest.err
23792 cat conftest.err >&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } && {
23795 test -z "$ac_c_werror_flag" ||
23796 test ! -s conftest.err
23797 } && test -s conftest.$ac_objext; then
23798 ac_header_compiler=yes
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23803 ac_header_compiler=no
23806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23808 echo "${ECHO_T}$ac_header_compiler" >&6; }
23810 # Is the header present?
23811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23813 cat >conftest.$ac_ext <<_ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23819 #include <$ac_header>
23821 if { (ac_try="$ac_cpp conftest.$ac_ext"
23822 case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23829 grep -v '^ *+' conftest.er1 >conftest.err
23831 cat conftest.err >&5
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); } >/dev/null && {
23834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23835 test ! -s conftest.err
23837 ac_header_preproc=yes
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23842 ac_header_preproc=no
23845 rm -f conftest.err conftest.$ac_ext
23846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23847 echo "${ECHO_T}$ac_header_preproc" >&6; }
23849 # So? What about this header?
23850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23856 ac_header_preproc=yes
23859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23872 ## --------------------------------------- ##
23873 ## Report this to http://www.sudo.ws/bugs/ ##
23874 ## --------------------------------------- ##
23876 ) | sed "s/^/$as_me: WARNING: /" >&2
23879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 eval "$as_ac_Header=\$ac_header_preproc"
23886 ac_res=`eval echo '${'$as_ac_Header'}'`
23887 { echo "$as_me:$LINENO: result: $ac_res" >&5
23888 echo "${ECHO_T}$ac_res" >&6; }
23891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23892 cat >>confdefs.h <<_ACEOF
23893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23902 CPPFLAGS="$O_CPPFLAGS"
23903 { 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
23904 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;}
23908 SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
23910 LDFLAGS="$_LDFLAGS"
23913 if test X"$LIBVAS_RPATH" != X""; then
23914 if test -n "$blibpath"; then
23915 blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
23917 LDFLAGS="$LDFLAGS -R$LIBVAS_RPATH"
23921 if test -n "$blibpath"; then
23922 if test -n "$blibpath_add"; then
23923 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
23924 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
23925 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
23929 { echo "$as_me:$LINENO: checking for log file location" >&5
23930 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
23931 if test -n "$with_logpath"; then
23932 { echo "$as_me:$LINENO: result: $with_logpath" >&5
23933 echo "${ECHO_T}$with_logpath" >&6; }
23934 cat >>confdefs.h <<EOF
23935 #define _PATH_SUDO_LOGFILE "$with_logpath"
23938 elif test -d "/var/log"; then
23939 { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
23940 echo "${ECHO_T}/var/log/sudo.log" >&6; }
23941 cat >>confdefs.h <<\EOF
23942 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
23945 elif test -d "/var/adm"; then
23946 { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
23947 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
23948 cat >>confdefs.h <<\EOF
23949 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
23952 elif test -d "/usr/adm"; then
23953 { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
23954 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
23955 cat >>confdefs.h <<\EOF
23956 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
23960 { echo "$as_me:$LINENO: result: unknown" >&5
23961 echo "${ECHO_T}unknown" >&6; }
23964 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
23965 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
23966 if test -n "$with_timedir"; then
23967 { echo "$as_me:$LINENO: result: $with_timedir" >&5
23968 echo "${ECHO_T}$with_timedir" >&6; }
23969 cat >>confdefs.h <<EOF
23970 #define _PATH_SUDO_TIMEDIR "$with_timedir"
23973 timedir="$with_timedir"
23974 elif test -d "/var/run"; then
23975 { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
23976 echo "${ECHO_T}/var/run/sudo" >&6; }
23977 cat >>confdefs.h <<\EOF
23978 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
23981 timedir="/var/run/sudo"
23982 elif test -d "/var/adm"; then
23983 { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
23984 echo "${ECHO_T}/var/adm/sudo" >&6; }
23985 cat >>confdefs.h <<\EOF
23986 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
23989 timedir="/var/adm/sudo"
23991 { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
23992 echo "${ECHO_T}/usr/adm/sudo" >&6; }
23993 cat >>confdefs.h <<\EOF
23994 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
23997 timedir="/usr/adm/sudo"
24001 case "$with_passwd" in
24003 AUTH_OBJS="$AUTH_OBJS passwd.o"
24006 cat >>confdefs.h <<\_ACEOF
24007 #define WITHOUT_PASSWD 1
24010 if test -z "$AUTH_OBJS"; then
24011 { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
24012 echo "$as_me: error: no authentication methods defined." >&2;}
24013 { (exit 1); exit 1; }; }
24017 AUTH_OBJS=${AUTH_OBJS# }
24018 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
24019 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
24020 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
24022 if test -n "$LIBS"; then
24027 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
24028 test $l = $sl && dupe=1
24030 test $dupe = 0 && LIBS="${LIBS} $l"
24034 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
24036 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
24037 oexec_prefix="$exec_prefix"
24038 if test "$exec_prefix" = '$(prefix)'; then
24039 if test "$prefix" = "NONE"; then
24040 exec_prefix="$ac_default_prefix"
24042 exec_prefix="$prefix"
24045 if test X"$with_noexec" != X"no"; then
24046 PROGS="${PROGS} sudo_noexec.la"
24047 INSTALL_NOEXEC="install-noexec"
24049 eval noexec_file="$with_noexec"
24051 cat >>confdefs.h <<_ACEOF
24052 #define _PATH_SUDO_NOEXEC "$noexec_file"
24056 if test X"$with_selinux" != X"no"; then
24057 eval sesh_file="$libexecdir/sesh"
24059 cat >>confdefs.h <<_ACEOF
24060 #define _PATH_SUDO_SESH "$sesh_file"
24064 exec_prefix="$oexec_prefix"
24067 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
24069 cat >confcache <<\_ACEOF
24070 # This file is a shell script that caches the results of configure
24071 # tests run on this system so they can be shared between configure
24072 # scripts and configure runs, see configure's option --config-cache.
24073 # It is not useful on other systems. If it contains results you don't
24074 # want to keep, you may remove or edit it.
24076 # config.status only pays attention to the cache file if you give it
24077 # the --recheck option to rerun configure.
24079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24081 # following values.
24085 # The following way of writing the cache mishandles newlines in values,
24086 # but we know of no workaround that is simple, portable, and efficient.
24087 # So, we kill variables containing newlines.
24088 # Ultrix sh set writes to stderr and can't be redirected directly,
24089 # and sets the high bit in the cache file unless we assign to the vars.
24091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24092 eval ac_val=\$$ac_var
24096 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24097 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24100 _ | IFS | as_nl) ;; #(
24101 *) $as_unset $ac_var ;;
24107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24108 *${as_nl}ac_space=\ *)
24109 # `set' does not quote correctly, so add quotes (double-quote
24110 # substitution turns \\\\ into \\, and sed turns \\ into \).
24113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24116 # `set' quotes correctly as required by POSIX, so do not add quotes.
24117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24131 if test -w "$cache_file"; then
24132 test "x$cache_file" != "x/dev/null" &&
24133 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24134 echo "$as_me: updating cache $cache_file" >&6;}
24135 cat confcache >$cache_file
24137 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24138 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24144 # Let make expand exec_prefix.
24145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24147 DEFS=-DHAVE_CONFIG_H
24151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24152 # 1. Remove the extension, and $U if already installed.
24153 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24154 ac_i=`echo "$ac_i" | sed "$ac_script"`
24155 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24156 # will be set to the directory where LIBOBJS objects are built.
24157 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24158 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24160 LIBOBJS=$ac_libobjs
24162 LTLIBOBJS=$ac_ltlibobjs
24166 : ${CONFIG_STATUS=./config.status}
24167 ac_clean_files_save=$ac_clean_files
24168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24171 cat >$CONFIG_STATUS <<_ACEOF
24173 # Generated by $as_me.
24174 # Run this file to recreate the current configuration.
24175 # Compiler output produced by configure, useful for debugging
24176 # configure, is in config.log if it exists.
24179 ac_cs_recheck=false
24181 SHELL=\${CONFIG_SHELL-$SHELL}
24184 cat >>$CONFIG_STATUS <<\_ACEOF
24185 ## --------------------- ##
24186 ## M4sh Initialization. ##
24187 ## --------------------- ##
24189 # Be more Bourne compatible
24190 DUALCASE=1; export DUALCASE # for MKS sh
24191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24194 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24195 # is contrary to our usage. Disable this feature.
24196 alias -g '${1+"$@"}'='"$@"'
24197 setopt NO_GLOB_SUBST
24199 case `(set -o) 2>/dev/null` in
24200 *posix*) set -o posix ;;
24209 # Avoid depending upon Character Ranges.
24210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24213 as_cr_digits='0123456789'
24214 as_cr_alnum=$as_cr_Letters$as_cr_digits
24216 # The user is always right.
24217 if test "${PATH_SEPARATOR+set}" != set; then
24218 echo "#! /bin/sh" >conf$$.sh
24219 echo "exit 0" >>conf$$.sh
24221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24229 # Support unset when possible.
24230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24238 # We need space, tab and new line, in precisely that order. Quoting is
24239 # there to prevent editors from complaining about space-tab.
24240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24241 # splitting by setting IFS to empty value.)
24246 # Find who we are. Look in the path if we contain no directory separator.
24248 *[\\/]* ) as_myself=$0 ;;
24249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24250 for as_dir in $PATH
24253 test -z "$as_dir" && as_dir=.
24254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24260 # We did not find ourselves, most probably we were run as `sh COMMAND'
24261 # in which case we are not to be found in the path.
24262 if test "x$as_myself" = x; then
24265 if test ! -f "$as_myself"; then
24266 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24267 { (exit 1); exit 1; }
24270 # Work around bugs in pre-3.0 UWIN ksh.
24271 for as_var in ENV MAIL MAILPATH
24272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24282 LC_TELEPHONE LC_TIME
24284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24285 eval $as_var=C; export $as_var
24287 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24291 # Required to use basename.
24292 if expr a : '\(a\)' >/dev/null 2>&1 &&
24293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24300 as_basename=basename
24306 # Name of the executable.
24307 as_me=`$as_basename -- "$0" ||
24308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24309 X"$0" : 'X\(//\)$' \| \
24310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24312 sed '/^.*\/\([^/][^/]*\)\/*$/{
24331 as_lineno_1=$LINENO
24332 as_lineno_2=$LINENO
24333 test "x$as_lineno_1" != "x$as_lineno_2" &&
24334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24337 # uniformly replaced by the line number. The first 'sed' inserts a
24338 # line-number line after each line using $LINENO; the second 'sed'
24339 # does the real work. The second script uses 'N' to pair each
24340 # line-number line with the line containing $LINENO, and appends
24341 # trailing '-' during substitution so that $LINENO is not a special
24342 # case at line end.
24343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24344 # scripts with optimization help from Paolo Bonzini. Blame Lee
24345 # E. McMahon (1931-1989) for sed's syntax. :-)
24357 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24360 ' >$as_me.lineno &&
24361 chmod +x "$as_me.lineno" ||
24362 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24363 { (exit 1); exit 1; }; }
24365 # Don't try to exec as it changes $[0], causing all sort of problems
24366 # (the dirname of $[0] is not the place where we might find the
24367 # original and so on. Autoconf is especially sensitive to this).
24368 . "./$as_me.lineno"
24369 # Exit status is that of the last command.
24374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24380 ECHO_C= ECHO_N= ECHO_T=
24381 case `echo -n x` in
24383 case `echo 'x\c'` in
24384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24391 if expr a : '\(a\)' >/dev/null 2>&1 &&
24392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24398 rm -f conf$$ conf$$.exe conf$$.file
24399 if test -d conf$$.dir; then
24400 rm -f conf$$.dir/conf$$.file
24406 if ln -s conf$$.file conf$$ 2>/dev/null; then
24408 # ... but there are two gotchas:
24409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24411 # In both cases, we have to default to `cp -p'.
24412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24414 elif ln conf$$.file conf$$ 2>/dev/null; then
24419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24420 rmdir conf$$.dir 2>/dev/null
24422 if mkdir -p . 2>/dev/null; then
24425 test -d ./-p && rmdir ./-p
24429 if test -x / >/dev/null 2>&1; then
24430 as_test_x='test -x'
24432 if ls -dL / >/dev/null 2>&1; then
24439 if test -d "$1"; then
24445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24446 ???[sx]*):;;*)false;;esac;fi
24450 as_executable_p=$as_test_x
24452 # Sed expression to map a string onto a valid CPP name.
24453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24455 # Sed expression to map a string onto a valid variable name.
24456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24461 # Save the log message, to keep $[0] and so on meaningful, and to
24462 # report actual input values of CONFIG_FILES etc. instead of their
24463 # values after options handling.
24465 This file was extended by sudo $as_me 1.7.2, which was
24466 generated by GNU Autoconf 2.61. Invocation command line was
24468 CONFIG_FILES = $CONFIG_FILES
24469 CONFIG_HEADERS = $CONFIG_HEADERS
24470 CONFIG_LINKS = $CONFIG_LINKS
24471 CONFIG_COMMANDS = $CONFIG_COMMANDS
24474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24479 cat >>$CONFIG_STATUS <<_ACEOF
24480 # Files that config.status was made for.
24481 config_files="$ac_config_files"
24482 config_headers="$ac_config_headers"
24486 cat >>$CONFIG_STATUS <<\_ACEOF
24488 \`$as_me' instantiates files from templates according to the
24489 current configuration.
24491 Usage: $0 [OPTIONS] [FILE]...
24493 -h, --help print this help, then exit
24494 -V, --version print version number and configuration settings, then exit
24495 -q, --quiet do not print progress messages
24496 -d, --debug don't remove temporary files
24497 --recheck update $as_me by reconfiguring in the same conditions
24498 --file=FILE[:TEMPLATE]
24499 instantiate the configuration file FILE
24500 --header=FILE[:TEMPLATE]
24501 instantiate the configuration header FILE
24503 Configuration files:
24506 Configuration headers:
24509 Report bugs to <bug-autoconf@gnu.org>."
24512 cat >>$CONFIG_STATUS <<_ACEOF
24514 sudo config.status 1.7.2
24515 configured by $0, generated by GNU Autoconf 2.61,
24516 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24518 Copyright (C) 2006 Free Software Foundation, Inc.
24519 This config.status script is free software; the Free Software Foundation
24520 gives unlimited permission to copy, distribute and modify it."
24526 cat >>$CONFIG_STATUS <<\_ACEOF
24527 # If no file are specified by the user, then we need to provide default
24528 # value. By we need to know if files were specified by the user.
24534 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24535 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24546 # Handling of the options.
24547 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24549 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24550 echo "$ac_cs_version"; exit ;;
24551 --debug | --debu | --deb | --de | --d | -d )
24553 --file | --fil | --fi | --f )
24555 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24556 ac_need_defaults=false;;
24557 --header | --heade | --head | --hea )
24559 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24560 ac_need_defaults=false;;
24562 # Conflict between --help and --header
24563 { echo "$as_me: error: ambiguous option: $1
24564 Try \`$0 --help' for more information." >&2
24565 { (exit 1); exit 1; }; };;
24566 --help | --hel | -h )
24567 echo "$ac_cs_usage"; exit ;;
24568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24569 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24572 # This is an error.
24573 -*) { echo "$as_me: error: unrecognized option: $1
24574 Try \`$0 --help' for more information." >&2
24575 { (exit 1); exit 1; }; } ;;
24577 *) ac_config_targets="$ac_config_targets $1"
24578 ac_need_defaults=false ;;
24584 ac_configure_extra_args=
24586 if $ac_cs_silent; then
24588 ac_configure_extra_args="$ac_configure_extra_args --silent"
24592 cat >>$CONFIG_STATUS <<_ACEOF
24593 if \$ac_cs_recheck; then
24594 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24595 CONFIG_SHELL=$SHELL
24596 export CONFIG_SHELL
24597 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24601 cat >>$CONFIG_STATUS <<\_ACEOF
24605 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24606 ## Running $as_me. ##
24612 cat >>$CONFIG_STATUS <<_ACEOF
24615 cat >>$CONFIG_STATUS <<\_ACEOF
24617 # Handling of arguments.
24618 for ac_config_target in $ac_config_targets
24620 case $ac_config_target in
24621 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24622 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
24623 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24624 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
24625 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
24626 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
24627 "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
24628 "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
24630 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24631 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24632 { (exit 1); exit 1; }; };;
24637 # If the user did not use the arguments to specify the items to instantiate,
24638 # then the envvar interface is used. Set only those that are not.
24639 # We use the long form for the default assignment because of an extremely
24640 # bizarre bug on SunOS 4.1.3.
24641 if $ac_need_defaults; then
24642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24646 # Have a temporary directory for convenience. Make it in the build tree
24647 # simply because there is no reason against having it here, and in addition,
24648 # creating and moving files from /tmp can sometimes cause problems.
24649 # Hook for its removal unless debugging.
24650 # Note that there is a small window in which the directory will not be cleaned:
24651 # after its creation but before its name has been assigned to `$tmp'.
24655 trap 'exit_status=$?
24656 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24658 trap '{ (exit 1); exit 1; }' 1 2 13 15
24660 # Create a (secure) tmp directory for tmp files.
24663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24664 test -n "$tmp" && test -d "$tmp"
24667 tmp=./conf$$-$RANDOM
24668 (umask 077 && mkdir "$tmp")
24671 echo "$me: cannot create a temporary directory in ." >&2
24672 { (exit 1); exit 1; }
24676 # Set up the sed scripts for CONFIG_FILES section.
24679 # No need to generate the scripts if there are no CONFIG_FILES.
24680 # This happens for instance when ./config.status config.h
24681 if test -n "$CONFIG_FILES"; then
24688 for ac_last_try in false false false false false :; do
24689 cat >conf$$subs.sed <<_ACEOF
24690 SHELL!$SHELL$ac_delim
24691 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24692 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24693 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24694 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24695 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24696 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24697 exec_prefix!$exec_prefix$ac_delim
24698 prefix!$prefix$ac_delim
24699 program_transform_name!$program_transform_name$ac_delim
24700 bindir!$bindir$ac_delim
24701 sbindir!$sbindir$ac_delim
24702 libexecdir!$libexecdir$ac_delim
24703 datarootdir!$datarootdir$ac_delim
24704 datadir!$datadir$ac_delim
24705 sysconfdir!$sysconfdir$ac_delim
24706 sharedstatedir!$sharedstatedir$ac_delim
24707 localstatedir!$localstatedir$ac_delim
24708 includedir!$includedir$ac_delim
24709 oldincludedir!$oldincludedir$ac_delim
24710 docdir!$docdir$ac_delim
24711 infodir!$infodir$ac_delim
24712 htmldir!$htmldir$ac_delim
24713 dvidir!$dvidir$ac_delim
24714 pdfdir!$pdfdir$ac_delim
24715 psdir!$psdir$ac_delim
24716 libdir!$libdir$ac_delim
24717 localedir!$localedir$ac_delim
24718 mandir!$mandir$ac_delim
24719 DEFS!$DEFS$ac_delim
24720 ECHO_C!$ECHO_C$ac_delim
24721 ECHO_N!$ECHO_N$ac_delim
24722 ECHO_T!$ECHO_T$ac_delim
24723 LIBS!$LIBS$ac_delim
24724 build_alias!$build_alias$ac_delim
24725 host_alias!$host_alias$ac_delim
24726 target_alias!$target_alias$ac_delim
24727 HAVE_BSM_AUDIT!$HAVE_BSM_AUDIT$ac_delim
24728 LIBTOOL!$LIBTOOL$ac_delim
24729 CFLAGS!$CFLAGS$ac_delim
24730 PROGS!$PROGS$ac_delim
24731 CPPFLAGS!$CPPFLAGS$ac_delim
24732 LDFLAGS!$LDFLAGS$ac_delim
24733 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
24734 SUDO_OBJS!$SUDO_OBJS$ac_delim
24735 SUDO_LIBS!$SUDO_LIBS$ac_delim
24736 NET_LIBS!$NET_LIBS$ac_delim
24737 AFS_LIBS!$AFS_LIBS$ac_delim
24738 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
24739 OSDEFS!$OSDEFS$ac_delim
24740 AUTH_OBJS!$AUTH_OBJS$ac_delim
24741 MANTYPE!$MANTYPE$ac_delim
24742 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
24743 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
24744 SUDOERS_UID!$SUDOERS_UID$ac_delim
24745 SUDOERS_GID!$SUDOERS_GID$ac_delim
24747 SELINUX!$SELINUX$ac_delim
24748 BAMAN!$BAMAN$ac_delim
24749 LCMAN!$LCMAN$ac_delim
24750 SEMAN!$SEMAN$ac_delim
24751 devdir!$devdir$ac_delim
24752 mansectsu!$mansectsu$ac_delim
24753 mansectform!$mansectform$ac_delim
24754 mansrcdir!$mansrcdir$ac_delim
24755 NOEXECFILE!$NOEXECFILE$ac_delim
24756 NOEXECDIR!$NOEXECDIR$ac_delim
24757 noexec_file!$noexec_file$ac_delim
24758 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
24759 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
24760 BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
24761 SELINUX_USAGE!$SELINUX_USAGE$ac_delim
24762 LDAP!$LDAP$ac_delim
24763 LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
24764 NONUNIX_GROUPS_IMPL!$NONUNIX_GROUPS_IMPL$ac_delim
24765 timedir!$timedir$ac_delim
24766 timeout!$timeout$ac_delim
24767 password_timeout!$password_timeout$ac_delim
24768 sudo_umask!$sudo_umask$ac_delim
24769 passprompt!$passprompt$ac_delim
24770 long_otp_prompt!$long_otp_prompt$ac_delim
24771 lecture!$lecture$ac_delim
24772 logfac!$logfac$ac_delim
24773 goodpri!$goodpri$ac_delim
24774 badpri!$badpri$ac_delim
24775 loglen!$loglen$ac_delim
24776 ignore_dot!$ignore_dot$ac_delim
24777 mail_no_user!$mail_no_user$ac_delim
24778 mail_no_host!$mail_no_host$ac_delim
24779 mail_no_perms!$mail_no_perms$ac_delim
24780 mailto!$mailto$ac_delim
24781 mailsub!$mailsub$ac_delim
24782 badpass_message!$badpass_message$ac_delim
24783 fqdn!$fqdn$ac_delim
24784 runas_default!$runas_default$ac_delim
24785 env_editor!$env_editor$ac_delim
24786 passwd_tries!$passwd_tries$ac_delim
24789 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24791 elif $ac_last_try; then
24792 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24794 { (exit 1); exit 1; }; }
24796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24801 if test -n "$ac_eof"; then
24802 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24803 ac_eof=`expr $ac_eof + 1`
24806 cat >>$CONFIG_STATUS <<_ACEOF
24807 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24812 s/^/s,@/; s/!/@,|#_!!_#|/
24815 s/'"$ac_delim"'$/,g/; t
24817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24818 ' >>$CONFIG_STATUS <conf$$subs.sed
24819 rm -f conf$$subs.sed
24820 cat >>$CONFIG_STATUS <<_ACEOF
24826 for ac_last_try in false false false false false :; do
24827 cat >conf$$subs.sed <<_ACEOF
24828 tty_tickets!$tty_tickets$ac_delim
24829 insults!$insults$ac_delim
24830 root_sudo!$root_sudo$ac_delim
24831 path_info!$path_info$ac_delim
24832 ldap_conf!$ldap_conf$ac_delim
24833 ldap_secret!$ldap_secret$ac_delim
24834 nsswitch_conf!$nsswitch_conf$ac_delim
24835 netsvc_conf!$netsvc_conf$ac_delim
24836 EGREPPROG!$EGREPPROG$ac_delim
24838 ac_ct_CC!$ac_ct_CC$ac_delim
24839 EXEEXT!$EXEEXT$ac_delim
24840 OBJEXT!$OBJEXT$ac_delim
24842 build!$build$ac_delim
24843 build_cpu!$build_cpu$ac_delim
24844 build_vendor!$build_vendor$ac_delim
24845 build_os!$build_os$ac_delim
24846 host!$host$ac_delim
24847 host_cpu!$host_cpu$ac_delim
24848 host_vendor!$host_vendor$ac_delim
24849 host_os!$host_os$ac_delim
24851 GREP!$GREP$ac_delim
24852 EGREP!$EGREP$ac_delim
24853 LN_S!$LN_S$ac_delim
24854 ECHO!$ECHO$ac_delim
24856 RANLIB!$RANLIB$ac_delim
24857 STRIP!$STRIP$ac_delim
24858 DSYMUTIL!$DSYMUTIL$ac_delim
24859 NMEDIT!$NMEDIT$ac_delim
24860 UNAMEPROG!$UNAMEPROG$ac_delim
24861 TRPROG!$TRPROG$ac_delim
24862 NROFFPROG!$NROFFPROG$ac_delim
24863 YACC!$YACC$ac_delim
24864 YFLAGS!$YFLAGS$ac_delim
24865 FLEX!$FLEX$ac_delim
24866 LIBOBJS!$LIBOBJS$ac_delim
24867 KRB5CONFIG!$KRB5CONFIG$ac_delim
24868 LTLIBOBJS!$LTLIBOBJS$ac_delim
24871 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
24873 elif $ac_last_try; then
24874 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24875 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24876 { (exit 1); exit 1; }; }
24878 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24882 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24883 if test -n "$ac_eof"; then
24884 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24885 ac_eof=`expr $ac_eof + 1`
24888 cat >>$CONFIG_STATUS <<_ACEOF
24889 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24893 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24894 s/^/s,@/; s/!/@,|#_!!_#|/
24897 s/'"$ac_delim"'$/,g/; t
24899 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24900 ' >>$CONFIG_STATUS <conf$$subs.sed
24901 rm -f conf$$subs.sed
24902 cat >>$CONFIG_STATUS <<_ACEOF
24909 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24910 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24911 # trailing colons and then remove the whole line if VPATH becomes empty
24912 # (actually we leave an empty line to preserve line numbers).
24913 if test "x$srcdir" = x.; then
24914 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24915 s/:*\$(srcdir):*/:/
24916 s/:*\${srcdir}:*/:/
24918 s/^\([^=]*=[ ]*\):*/\1/
24924 cat >>$CONFIG_STATUS <<\_ACEOF
24925 fi # test -n "$CONFIG_FILES"
24928 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24931 :[FHLC]) ac_mode=$ac_tag; continue;;
24933 case $ac_mode$ac_tag in
24935 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24936 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24937 { (exit 1); exit 1; }; };;
24938 :[FH]-) ac_tag=-:-;;
24939 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24956 -) ac_f="$tmp/stdin";;
24957 *) # Look for the file first in the build tree, then in the source tree
24958 # (if the path is not absolute). The absolute path cannot be DOS-style,
24959 # because $ac_f cannot contain `:'.
24963 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24965 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24966 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24967 { (exit 1); exit 1; }; };;
24969 ac_file_inputs="$ac_file_inputs $ac_f"
24972 # Let's still pretend it is `configure' which instantiates (i.e., don't
24973 # use $as_me), people would be surprised to read:
24974 # /* config.h. Generated by config.status. */
24975 configure_input="Generated from "`IFS=:
24976 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24977 if test x"$ac_file" != x-; then
24978 configure_input="$ac_file. $configure_input"
24979 { echo "$as_me:$LINENO: creating $ac_file" >&5
24980 echo "$as_me: creating $ac_file" >&6;}
24984 *:-:* | *:-) cat >"$tmp/stdin";;
24989 ac_dir=`$as_dirname -- "$ac_file" ||
24990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24991 X"$ac_file" : 'X\(//\)[^/]' \| \
24992 X"$ac_file" : 'X\(//\)$' \| \
24993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24999 /^X\(\/\/\)[^/].*/{
25014 -*) as_dir=./$as_dir;;
25016 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25020 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25021 *) as_qdir=$as_dir;;
25023 as_dirs="'$as_qdir' $as_dirs"
25024 as_dir=`$as_dirname -- "$as_dir" ||
25025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25026 X"$as_dir" : 'X\(//\)[^/]' \| \
25027 X"$as_dir" : 'X\(//\)$' \| \
25028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25034 /^X\(\/\/\)[^/].*/{
25047 test -d "$as_dir" && break
25049 test -z "$as_dirs" || eval "mkdir $as_dirs"
25050 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25051 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25052 { (exit 1); exit 1; }; }; }
25056 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25059 # A ".." for each directory in $ac_dir_suffix.
25060 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25061 case $ac_top_builddir_sub in
25062 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25063 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25066 ac_abs_top_builddir=$ac_pwd
25067 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25068 # for backward compatibility:
25069 ac_top_builddir=$ac_top_build_prefix
25072 .) # We are building in place.
25074 ac_top_srcdir=$ac_top_builddir_sub
25075 ac_abs_top_srcdir=$ac_pwd ;;
25076 [\\/]* | ?:[\\/]* ) # Absolute name.
25077 ac_srcdir=$srcdir$ac_dir_suffix;
25078 ac_top_srcdir=$srcdir
25079 ac_abs_top_srcdir=$srcdir ;;
25080 *) # Relative name.
25081 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25082 ac_top_srcdir=$ac_top_build_prefix$srcdir
25083 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25085 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25096 cat >>$CONFIG_STATUS <<\_ACEOF
25097 # If the template does not know about datarootdir, expand it.
25098 # FIXME: This hack should be removed a few years after 2.60.
25099 ac_datarootdir_hack=; ac_datarootdir_seen=
25101 case `sed -n '/datarootdir/ {
25110 ' $ac_file_inputs` in
25111 *datarootdir*) ac_datarootdir_seen=yes;;
25112 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25113 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25114 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25116 cat >>$CONFIG_STATUS <<_ACEOF
25117 ac_datarootdir_hack='
25118 s&@datadir@&$datadir&g
25119 s&@docdir@&$docdir&g
25120 s&@infodir@&$infodir&g
25121 s&@localedir@&$localedir&g
25122 s&@mandir@&$mandir&g
25123 s&\\\${datarootdir}&$datarootdir&g' ;;
25127 # Neutralize VPATH when `$srcdir' = `.'.
25128 # Shell code in configure.ac might set extrasub.
25129 # FIXME: do we really want to maintain this feature?
25130 cat >>$CONFIG_STATUS <<_ACEOF
25134 cat >>$CONFIG_STATUS <<\_ACEOF
25136 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25137 s&@configure_input@&$configure_input&;t t
25138 s&@top_builddir@&$ac_top_builddir_sub&;t t
25139 s&@srcdir@&$ac_srcdir&;t t
25140 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25141 s&@top_srcdir@&$ac_top_srcdir&;t t
25142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25143 s&@builddir@&$ac_builddir&;t t
25144 s&@abs_builddir@&$ac_abs_builddir&;t t
25145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25146 $ac_datarootdir_hack
25147 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25149 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25150 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25151 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25152 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25153 which seems to be undefined. Please make sure it is defined." >&5
25154 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25155 which seems to be undefined. Please make sure it is defined." >&2;}
25159 -) cat "$tmp/out"; rm -f "$tmp/out";;
25160 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25169 # Transform confdefs.h into a sed script `conftest.defines', that
25170 # substitutes the proper values into config.h.in to produce config.h.
25171 rm -f conftest.defines conftest.tail
25172 # First, append a space to every undef/define line, to ease matching.
25173 echo 's/$/ /' >conftest.defines
25174 # Then, protect against being on the right side of a sed subst, or in
25175 # an unquoted here document, in config.status. If some macros were
25176 # called several times there might be several #defines for the same
25177 # symbol, which is useless. But do not sort them, since the last
25178 # AC_DEFINE must be honored.
25179 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25180 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25181 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25182 # PARAMS is the parameter list in the macro definition--in most cases, it's
25183 # just an empty string.
25184 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25185 ac_dB='\\)[ (].*,\\1define\\2'
25193 s/^[ ]*#[ ]*define[ ][ ]*//
25198 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25199 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25200 ' >>conftest.defines
25202 # Remove the space that was appended to ease matching.
25203 # Then replace #undef with comments. This is necessary, for
25204 # example, in the case of _POSIX_SOURCE, which is predefined and required
25205 # on some systems where configure will not decide to define it.
25206 # (The regexp can be short, since the line contains either #define or #undef.)
25208 s,^[ #]*u.*,/* & */,' >>conftest.defines
25210 # Break up conftest.defines:
25211 ac_max_sed_lines=50
25213 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25214 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25215 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25217 ac_in='$ac_file_inputs'
25218 ac_out='"$tmp/out1"'
25219 ac_nxt='"$tmp/out2"'
25223 # Write a here document:
25224 cat >>$CONFIG_STATUS <<_ACEOF
25225 # First, check the format of the line:
25226 cat >"\$tmp/defines.sed" <<\\CEOF
25227 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25228 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25232 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25234 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25235 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25236 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25237 grep . conftest.tail >/dev/null || break
25238 rm -f conftest.defines
25239 mv conftest.tail conftest.defines
25241 rm -f conftest.defines conftest.tail
25243 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25244 cat >>$CONFIG_STATUS <<\_ACEOF
25245 if test x"$ac_file" != x-; then
25246 echo "/* $configure_input */" >"$tmp/config.h"
25247 cat "$ac_result" >>"$tmp/config.h"
25248 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25249 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25250 echo "$as_me: $ac_file is unchanged" >&6;}
25253 mv "$tmp/config.h" $ac_file
25256 echo "/* $configure_input */"
25260 # Compute $ac_file's index in $config_headers.
25263 for _am_header in $config_headers :; do
25264 case $_am_header in
25265 $_am_arg | $_am_arg:* )
25268 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25271 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25272 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25273 X"$_am_arg" : 'X\(//\)[^/]' \| \
25274 X"$_am_arg" : 'X\(//\)$' \| \
25275 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25281 /^X\(\/\/\)[^/].*/{
25293 s/.*/./; q'`/stamp-h$_am_stamp_count
25302 { (exit 0); exit 0; }
25304 chmod +x $CONFIG_STATUS
25305 ac_clean_files=$ac_clean_files_save
25308 # configure is writing to config.log, and then calls config.status.
25309 # config.status does its own redirection, appending to config.log.
25310 # Unfortunately, on DOS this fails, as config.log is still kept open
25311 # by configure, so config.status won't be able to write to it; its
25312 # output is simply discarded. So we exec the FD to /dev/null,
25313 # effectively closing config.log, so it can be properly (re)opened and
25314 # appended to by config.status. When coming back to configure, we
25315 # need to make the FD available again.
25316 if test "$no_create" != yes; then
25318 ac_config_status_args=
25319 test "$silent" = yes &&
25320 ac_config_status_args="$ac_config_status_args --quiet"
25322 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25324 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25325 # would make configure fail if this is the last instruction.
25326 $ac_cs_success || { (exit 1); exit 1; }
25330 if test "$with_pam" = "yes"; then
25333 { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
25334 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}