2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.6.9.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 exec 7<&0 </dev/null 6>&1
705 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
706 # so uname gets run too.
707 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712 ac_default_prefix=/usr/local
714 ac_config_libobj_dir=.
720 SHELL=${CONFIG_SHELL-/bin/sh}
722 # Identity of this package.
724 PACKAGE_TARNAME='sudo'
725 PACKAGE_VERSION='1.6.9'
726 PACKAGE_STRING='sudo 1.6.9'
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
889 ac_precious_vars='build_alias
902 # Initialize some variables set by options.
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
914 program_transform_name=s,x,x,
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1192 -site=* | --site=* | --sit=*)
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
1237 # Obsolete; use --with-x.
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 # Be sure to have absolute directory names.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1305 target=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371 { (exit 1); exit 1; }; }
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376 { (exit 1); exit 1; }; }
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1402 \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of sudo 1.6.9:";;
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --disable-authentication
1476 Do not require authentication by default
1477 --disable-root-mailer Don't run the mailer as root, run as the user
1478 --disable-setreuid Don't try to use the setreuid() function
1479 --disable-setresuid Don't try to use the setresuid() function
1480 --disable-shadow Never use shadow passwords
1481 --disable-root-sudo Don't allow root to run sudo
1482 --enable-log-host Log the hostname in the log file
1483 --enable-noargs-shell If sudo is given no arguments run a shell
1484 --enable-shell-sets-home
1485 set $HOME to target user in shell mode
1486 --disable-path-info Print 'command not allowed' not 'command not found'
1487 --enable-static[=PKGS] build static libraries [default=no]
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-fast-install[=PKGS]
1490 optimize for fast installation [default=yes]
1491 --disable-libtool-lock avoid locking (might break parallel builds)
1492 --disable-sia Disable SIA on Digital UNIX
1493 --disable-pam-session Disable PAM session support
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-otp-only deprecated
1499 --with-alertmail deprecated
1500 --with-CC C compiler to use
1501 --with-rpath pass -R flag in addition to -L for lib paths
1502 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1503 --with-incpath additional places to look for include files
1504 --with-libpath additional places to look for libraries
1505 --with-libraries additional libraries to link with
1506 --with-devel add development options
1507 --with-efence link with -lefence for malloc() debugging
1508 --with-csops add CSOps standard options
1509 --without-passwd don't use passwd/shadow file for authentication
1510 --with-skey=DIR enable S/Key support
1511 --with-opie=DIR enable OPIE support
1512 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1513 --with-SecurID[=DIR] enable SecurID support
1514 --with-fwtk[=DIR] enable FWTK AuthSRV support
1515 --with-kerb4[=DIR] enable Kerberos IV support
1516 --with-kerb5[=DIR] enable Kerberos V support
1517 --with-aixauth enable AIX general authentication support
1518 --with-pam enable PAM support
1519 --with-AFS enable AFS support
1520 --with-DCE enable DCE support
1521 --with-logincap enable BSD login class support
1522 --with-bsdauth enable BSD authentication support
1523 --with-project enable Solaris project support
1524 --without-lecture don't print lecture for first-time sudoer
1525 --with-logging log via syslog, file, or both
1526 --with-logfac syslog facility to log with (default is "local2")
1527 --with-goodpri syslog priority for commands (def is "notice")
1528 --with-badpri syslog priority for failures (def is "alert")
1529 --with-logpath path to the sudo log file
1530 --with-loglen maximum length of a log file line (default is 80)
1531 --with-ignore-dot ignore '.' in the PATH
1532 --without-mail-if-no-user do not send mail if user not in sudoers
1533 --with-mail-if-no-host send mail if user in sudoers but not for this host
1534 --with-mail-if-noperms send mail if user not allowed to run command
1535 --with-mailto who should get sudo mail (default is "root")
1536 --with-mailsubject subject of sudo mail
1537 --with-passprompt default password prompt
1538 --with-badpass-message message the user sees when the password is wrong
1539 --with-fqdn expect fully qualified hosts in sudoers
1540 --with-timedir path to the sudo timestamp dir
1541 --with-sendmail=path set path to sendmail
1542 --without-sendmail do not send mail at all
1543 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1544 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1545 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1546 --with-umask umask with which the prog should run (default is 022)
1547 --without-umask Preserves the umask of the user invoking sudo.
1548 --with-runas-default User to run commands as (default is "root")
1549 --with-exempt=group no passwd needed for users in this group
1550 --with-editor=path Default editor for visudo (defaults to vi)
1551 --with-env-editor Use the environment variable EDITOR for visudo
1552 --with-passwd-tries number of tries to enter password (default is 3)
1553 --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
1554 --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1555 --with-tty-tickets use a different ticket file for each tty
1556 --with-insults insult the user for entering an incorrect password
1557 --with-all-insults include all the sudo insult sets
1558 --with-classic-insults include the insults from the "classic" sudo
1559 --with-csops-insults include CSOps insults
1560 --with-hal-insults include 2001-like insults
1561 --with-goons-insults include the insults from the "Goon Show"
1562 --with-ldap[=DIR] enable LDAP support
1563 --with-ldap-conf-file path to LDAP configuration file
1564 --with-ldap-secret-file path to LDAP secret pasdword file
1565 --with-pc-insults replace politically incorrect insults with less offensive ones
1566 --with-secure-path override the user's path with a built-in one
1567 --without-interfaces don't try to read the ip addr of ether interfaces
1568 --with-stow properly handle GNU stow packaging
1569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 --with-pic try to use only PIC/non-PIC objects [default=use
1572 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1583 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1584 the first program found out of: `bison -y', `byacc', `yacc'.
1585 YFLAGS The list of arguments that will be passed by default to $YACC.
1586 This script will default YFLAGS to the empty string to avoid a
1587 default value of `-d' given by some make applications.
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" || continue
1603 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1606 # A ".." for each directory in $ac_dir_suffix.
1607 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1608 case $ac_top_builddir_sub in
1609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 ac_abs_top_builddir=$ac_pwd
1614 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1615 # for backward compatibility:
1616 ac_top_builddir=$ac_top_build_prefix
1619 .) # We are building in place.
1621 ac_top_srcdir=$ac_top_builddir_sub
1622 ac_abs_top_srcdir=$ac_pwd ;;
1623 [\\/]* | ?:[\\/]* ) # Absolute name.
1624 ac_srcdir=$srcdir$ac_dir_suffix;
1625 ac_top_srcdir=$srcdir
1626 ac_abs_top_srcdir=$srcdir ;;
1628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1629 ac_top_srcdir=$ac_top_build_prefix$srcdir
1630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634 cd "$ac_dir" || { ac_status=$?; continue; }
1635 # Check for guested configure.
1636 if test -f "$ac_srcdir/configure.gnu"; then
1638 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639 elif test -f "$ac_srcdir/configure"; then
1641 $SHELL "$ac_srcdir/configure" --help=recursive
1643 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645 cd "$ac_pwd" || { ac_status=$?; break; }
1649 test -n "$ac_init_help" && exit $ac_status
1650 if $ac_init_version; then
1652 sudo configure 1.6.9
1653 generated by GNU Autoconf 2.61
1655 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1656 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1657 This configure script is free software; the Free Software Foundation
1658 gives unlimited permission to copy, distribute and modify it.
1662 cat >config.log <<_ACEOF
1663 This file contains any messages produced by compilers while
1664 running configure, to aid debugging if configure makes a mistake.
1666 It was created by sudo $as_me 1.6.9, which was
1667 generated by GNU Autoconf 2.61. Invocation command line was
1679 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1680 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1681 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1682 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1683 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1685 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1686 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1688 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1689 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1690 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1691 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1692 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1693 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1694 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 echo "PATH: $as_dir"
1719 # Keep a trace of the command line.
1720 # Strip out --no-create and --no-recursion so they do not pile up.
1721 # Strip out --silent because we don't want to record it for future runs.
1722 # Also quote any args containing shell meta-characters.
1723 # Make two passes to allow for proper duplicate-argument suppression.
1727 ac_must_keep_next=false
1733 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735 | -silent | --silent | --silen | --sile | --sil)
1738 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1741 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1743 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1744 if test $ac_must_keep_next = true; then
1745 ac_must_keep_next=false # Got value, back to normal.
1748 *=* | --config-cache | -C | -disable-* | --disable-* \
1749 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1750 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1751 | -with-* | --with-* | -without-* | --without-* | --x)
1752 case "$ac_configure_args0 " in
1753 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1756 -* ) ac_must_keep_next=true ;;
1759 ac_configure_args="$ac_configure_args '$ac_arg'"
1764 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1765 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1767 # When interrupted or exit'd, cleanup temporary files, and complete
1768 # config.log. We remove comments because anyway the quotes in there
1769 # would cause problems or look ugly.
1770 # WARNING: Use '\'' to represent an apostrophe within the trap.
1771 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1772 trap 'exit_status=$?
1773 # Save into config.log some information that might help in debugging.
1778 ## ---------------- ##
1779 ## Cache variables. ##
1780 ## ---------------- ##
1783 # The following way of writing the cache mishandles newlines in values,
1785 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1786 eval ac_val=\$$ac_var
1790 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1791 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1794 _ | IFS | as_nl) ;; #(
1795 *) $as_unset $ac_var ;;
1800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1801 *${as_nl}ac_space=\ *)
1803 "s/'\''/'\''\\\\'\'''\''/g;
1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1815 ## ----------------- ##
1816 ## Output variables. ##
1817 ## ----------------- ##
1820 for ac_var in $ac_subst_vars
1822 eval ac_val=\$$ac_var
1824 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 echo "$ac_var='\''$ac_val'\''"
1830 if test -n "$ac_subst_files"; then
1832 ## ------------------- ##
1833 ## File substitutions. ##
1834 ## ------------------- ##
1837 for ac_var in $ac_subst_files
1839 eval ac_val=\$$ac_var
1841 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 echo "$ac_var='\''$ac_val'\''"
1848 if test -s confdefs.h; then
1858 test "$ac_signal" != 0 &&
1859 echo "$as_me: caught signal $ac_signal"
1860 echo "$as_me: exit $exit_status"
1862 rm -f core *.core core.conftest.* &&
1863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1866 for ac_signal in 1 2 13 15; do
1867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1872 rm -f -r conftest* confdefs.h
1874 # Predefined preprocessor variables.
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_NAME "$PACKAGE_NAME"
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_STRING "$PACKAGE_STRING"
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901 # Let the site file select an alternate cache file if it wants to.
1902 # Prefer explicitly selected file to automatically selected ones.
1903 if test -n "$CONFIG_SITE"; then
1904 set x "$CONFIG_SITE"
1905 elif test "x$prefix" != xNONE; then
1906 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1908 set x "$ac_default_prefix/share/config.site" \
1909 "$ac_default_prefix/etc/config.site"
1914 if test -r "$ac_site_file"; then
1915 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1916 echo "$as_me: loading site script $ac_site_file" >&6;}
1917 sed 's/^/| /' "$ac_site_file" >&5
1922 if test -r "$cache_file"; then
1923 # Some versions of bash will fail to source /dev/null (special
1924 # files actually), so we avoid doing that.
1925 if test -f "$cache_file"; then
1926 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1927 echo "$as_me: loading cache $cache_file" >&6;}
1929 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1930 *) . "./$cache_file";;
1934 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1935 echo "$as_me: creating cache $cache_file" >&6;}
1939 # Check that the precious variables saved in the cache have kept the same
1941 ac_cache_corrupted=false
1942 for ac_var in $ac_precious_vars; do
1943 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1944 eval ac_new_set=\$ac_env_${ac_var}_set
1945 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1946 eval ac_new_val=\$ac_env_${ac_var}_value
1947 case $ac_old_set,$ac_new_set in
1949 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1950 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1951 ac_cache_corrupted=: ;;
1953 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1954 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1955 ac_cache_corrupted=: ;;
1958 if test "x$ac_old_val" != "x$ac_new_val"; then
1959 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1960 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1961 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1962 echo "$as_me: former value: $ac_old_val" >&2;}
1963 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1964 echo "$as_me: current value: $ac_new_val" >&2;}
1965 ac_cache_corrupted=:
1968 # Pass precious variables to config.status.
1969 if test "$ac_new_set" = set; then
1971 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1972 *) ac_arg=$ac_var=$ac_new_val ;;
1974 case " $ac_configure_args " in
1975 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1976 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1980 if $ac_cache_corrupted; then
1981 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1982 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1983 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1984 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1985 { (exit 1); exit 1; }; }
2013 ac_cpp='$CPP $CPPFLAGS'
2014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019 ac_config_headers="$ac_config_headers config.h pathnames.h"
2021 { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
2022 echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
2077 passprompt="Password:"
2089 mailsub='*** SECURITY information for %h ***'
2090 badpass_message='Sorry, try again.'
2103 : ${SUDOERS_MODE='0440'}
2104 : ${SUDOERS_UID='0'}
2105 : ${SUDOERS_GID='0'}
2117 shadow_libs_optional=
2119 test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
2120 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2121 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2122 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2126 # Check whether --with-otp-only was given.
2127 if test "${with_otp_only+set}" = set; then
2128 withval=$with_otp_only; case $with_otp_only in
2129 yes) with_passwd="no"
2130 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2131 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2138 # Check whether --with-alertmail was given.
2139 if test "${with_alertmail+set}" = set; then
2140 withval=$with_alertmail; case $with_alertmail in
2141 *) with_mailto="$with_alertmail"
2142 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2143 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2151 # Check whether --with-CC was given.
2152 if test "${with_CC+set}" = set; then
2153 withval=$with_CC; case $with_CC in
2154 yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2155 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2156 { (exit 1); exit 1; }; }
2158 no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2159 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2160 { (exit 1); exit 1; }; }
2169 # Check whether --with-rpath was given.
2170 if test "${with_rpath+set}" = set; then
2171 withval=$with_rpath; case $with_rpath in
2173 *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2174 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2175 { (exit 1); exit 1; }; }
2182 # Check whether --with-blibpath was given.
2183 if test "${with_blibpath+set}" = set; then
2184 withval=$with_blibpath; case $with_blibpath in
2186 *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2187 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2194 # Check whether --with-incpath was given.
2195 if test "${with_incpath+set}" = set; then
2196 withval=$with_incpath; case $with_incpath in
2197 yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2198 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2199 { (exit 1); exit 1; }; }
2201 no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2202 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2203 { (exit 1); exit 1; }; }
2205 *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2206 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2207 for i in ${with_incpath}; do
2208 CPPFLAGS="${CPPFLAGS} -I${i}"
2216 # Check whether --with-libpath was given.
2217 if test "${with_libpath+set}" = set; then
2218 withval=$with_libpath; case $with_libpath in
2219 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2220 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2221 { (exit 1); exit 1; }; }
2223 no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2224 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2225 { (exit 1); exit 1; }; }
2227 *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2228 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2235 # Check whether --with-libraries was given.
2236 if test "${with_libraries+set}" = set; then
2237 withval=$with_libraries; case $with_libraries in
2238 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2239 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2240 { (exit 1); exit 1; }; }
2242 no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2243 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2244 { (exit 1); exit 1; }; }
2246 *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2247 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2254 # Check whether --with-devel was given.
2255 if test "${with_devel+set}" = set; then
2256 withval=$with_devel; case $with_devel in
2257 yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2258 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2259 PROGS="${PROGS} testsudoers"
2260 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2264 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2265 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2272 # Check whether --with-efence was given.
2273 if test "${with_efence+set}" = set; then
2274 withval=$with_efence; case $with_efence in
2275 yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2276 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2277 LIBS="${LIBS} -lefence"
2278 if test -f /usr/local/lib/libefence.a; then
2279 with_libpath="${with_libpath} /usr/local/lib"
2283 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2284 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2291 # Check whether --with-csops was given.
2292 if test "${with_csops+set}" = set; then
2293 withval=$with_csops; case $with_csops in
2294 yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2295 echo "$as_me: Adding CSOps standard options" >&6;}
2299 with_classic_insults=yes
2300 with_csops_insults=yes
2303 : ${mansectform='5'}
2306 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2307 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2314 # Check whether --with-passwd was given.
2315 if test "${with_passwd+set}" = set; then
2316 withval=$with_passwd; case $with_passwd in
2317 yes|no) { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2318 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2319 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2320 echo "${ECHO_T}$with_passwd" >&6; }
2322 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2324 *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2325 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2326 { (exit 1); exit 1; }; }
2333 # Check whether --with-skey was given.
2334 if test "${with_skey+set}" = set; then
2335 withval=$with_skey; case $with_skey in
2338 *) cat >>confdefs.h <<\_ACEOF
2342 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2343 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2344 { echo "$as_me:$LINENO: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6; }
2346 AUTH_REG="$AUTH_REG S/Key"
2353 # Check whether --with-opie was given.
2354 if test "${with_opie+set}" = set; then
2355 withval=$with_opie; case $with_opie in
2358 *) cat >>confdefs.h <<\_ACEOF
2362 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2363 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2364 { echo "$as_me:$LINENO: result: yes" >&5
2365 echo "${ECHO_T}yes" >&6; }
2366 AUTH_REG="$AUTH_REG NRL_OPIE"
2373 # Check whether --with-long-otp-prompt was given.
2374 if test "${with_long_otp_prompt+set}" = set; then
2375 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2376 yes) cat >>confdefs.h <<\_ACEOF
2377 #define LONG_OTP_PROMPT 1
2380 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2381 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2382 { echo "$as_me:$LINENO: result: yes" >&5
2383 echo "${ECHO_T}yes" >&6; }
2386 no) long_otp_prompt=off
2388 *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2389 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2390 { (exit 1); exit 1; }; }
2397 # Check whether --with-SecurID was given.
2398 if test "${with_SecurID+set}" = set; then
2399 withval=$with_SecurID; case $with_SecurID in
2400 no) with_SecurID="";;
2401 *) cat >>confdefs.h <<\_ACEOF
2402 #define HAVE_SECURID 1
2405 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2406 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2407 { echo "$as_me:$LINENO: result: yes" >&5
2408 echo "${ECHO_T}yes" >&6; }
2409 AUTH_EXCL="$AUTH_EXCL SecurID"
2416 # Check whether --with-fwtk was given.
2417 if test "${with_fwtk+set}" = set; then
2418 withval=$with_fwtk; case $with_fwtk in
2420 *) cat >>confdefs.h <<\_ACEOF
2424 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2425 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2426 { echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6; }
2428 AUTH_EXCL="$AUTH_EXCL FWTK"
2435 # Check whether --with-kerb4 was given.
2436 if test "${with_kerb4+set}" = set; then
2437 withval=$with_kerb4; case $with_kerb4 in
2439 *) { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2440 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2441 { echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6; }
2443 AUTH_REG="$AUTH_REG kerb4"
2450 # Check whether --with-kerb5 was given.
2451 if test "${with_kerb5+set}" = set; then
2452 withval=$with_kerb5; case $with_kerb5 in
2454 *) { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2455 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2456 { echo "$as_me:$LINENO: result: yes" >&5
2457 echo "${ECHO_T}yes" >&6; }
2458 AUTH_REG="$AUTH_REG kerb5"
2465 # Check whether --with-aixauth was given.
2466 if test "${with_aixauth+set}" = set; then
2467 withval=$with_aixauth; case $with_aixauth in
2468 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2470 *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2471 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2472 { (exit 1); exit 1; }; }
2479 # Check whether --with-pam was given.
2480 if test "${with_pam+set}" = set; then
2481 withval=$with_pam; case $with_pam in
2482 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
2484 *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2485 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2486 { (exit 1); exit 1; }; }
2493 # Check whether --with-AFS was given.
2494 if test "${with_AFS+set}" = set; then
2495 withval=$with_AFS; case $with_AFS in
2496 yes) cat >>confdefs.h <<\_ACEOF
2500 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2501 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2502 { echo "$as_me:$LINENO: result: yes" >&5
2503 echo "${ECHO_T}yes" >&6; }
2504 AUTH_REG="$AUTH_REG AFS"
2507 *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2508 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2509 { (exit 1); exit 1; }; }
2516 # Check whether --with-DCE was given.
2517 if test "${with_DCE+set}" = set; then
2518 withval=$with_DCE; case $with_DCE in
2519 yes) cat >>confdefs.h <<\_ACEOF
2523 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2524 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2525 { echo "$as_me:$LINENO: result: yes" >&5
2526 echo "${ECHO_T}yes" >&6; }
2527 AUTH_REG="$AUTH_REG DCE"
2530 *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2531 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2532 { (exit 1); exit 1; }; }
2539 # Check whether --with-logincap was given.
2540 if test "${with_logincap+set}" = set; then
2541 withval=$with_logincap; case $with_logincap in
2543 *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2544 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2545 { (exit 1); exit 1; }; }
2552 # Check whether --with-bsdauth was given.
2553 if test "${with_bsdauth+set}" = set; then
2554 withval=$with_bsdauth; case $with_bsdauth in
2555 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2557 *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2558 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2559 { (exit 1); exit 1; }; }
2566 # Check whether --with-project was given.
2567 if test "${with_project+set}" = set; then
2568 withval=$with_project; case $with_project in
2571 *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2572 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2573 { (exit 1); exit 1; }; }
2579 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2580 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2582 # Check whether --with-lecture was given.
2583 if test "${with_lecture+set}" = set; then
2584 withval=$with_lecture; case $with_lecture in
2585 yes|short|always) lecture=once
2587 no|none|never) lecture=never
2589 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2590 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2591 { (exit 1); exit 1; }; }
2596 if test "$lecture" = "once"; then
2597 { echo "$as_me:$LINENO: result: yes" >&5
2598 echo "${ECHO_T}yes" >&6; }
2600 cat >>confdefs.h <<\_ACEOF
2601 #define NO_LECTURE 1
2604 { echo "$as_me:$LINENO: result: no" >&5
2605 echo "${ECHO_T}no" >&6; }
2608 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2609 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2611 # Check whether --with-logging was given.
2612 if test "${with_logging+set}" = set; then
2613 withval=$with_logging; case $with_logging in
2614 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2615 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2616 { (exit 1); exit 1; }; }
2618 no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2619 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2620 { (exit 1); exit 1; }; }
2622 syslog) cat >>confdefs.h <<\_ACEOF
2623 #define LOGGING SLOG_SYSLOG
2626 { echo "$as_me:$LINENO: result: syslog" >&5
2627 echo "${ECHO_T}syslog" >&6; }
2629 file) cat >>confdefs.h <<\_ACEOF
2630 #define LOGGING SLOG_FILE
2633 { echo "$as_me:$LINENO: result: file" >&5
2634 echo "${ECHO_T}file" >&6; }
2636 both) cat >>confdefs.h <<\_ACEOF
2637 #define LOGGING SLOG_BOTH
2640 { echo "$as_me:$LINENO: result: both" >&5
2641 echo "${ECHO_T}both" >&6; }
2643 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2644 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2645 { (exit 1); exit 1; }; }
2649 cat >>confdefs.h <<\_ACEOF
2650 #define LOGGING SLOG_SYSLOG
2652 { echo "$as_me:$LINENO: result: syslog" >&5
2653 echo "${ECHO_T}syslog" >&6; }
2657 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2658 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2660 # Check whether --with-logfac was given.
2661 if test "${with_logfac+set}" = set; then
2662 withval=$with_logfac; case $with_logfac in
2663 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2664 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2665 { (exit 1); exit 1; }; }
2667 no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2668 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2669 { (exit 1); exit 1; }; }
2671 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
2673 *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2674 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2675 { (exit 1); exit 1; }; }
2681 cat >>confdefs.h <<_ACEOF
2682 #define LOGFAC "$logfac"
2685 { echo "$as_me:$LINENO: result: $logfac" >&5
2686 echo "${ECHO_T}$logfac" >&6; }
2688 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2689 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2691 # Check whether --with-goodpri was given.
2692 if test "${with_goodpri+set}" = set; then
2693 withval=$with_goodpri; case $with_goodpri in
2694 yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2695 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2696 { (exit 1); exit 1; }; }
2698 no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2699 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2700 { (exit 1); exit 1; }; }
2702 alert|crit|debug|emerg|err|info|notice|warning)
2703 goodpri=$with_goodpri
2705 *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2706 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2707 { (exit 1); exit 1; }; }
2713 cat >>confdefs.h <<_ACEOF
2714 #define PRI_SUCCESS "$goodpri"
2717 { echo "$as_me:$LINENO: result: $goodpri" >&5
2718 echo "${ECHO_T}$goodpri" >&6; }
2720 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2721 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2723 # Check whether --with-badpri was given.
2724 if test "${with_badpri+set}" = set; then
2725 withval=$with_badpri; case $with_badpri in
2726 yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2727 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2728 { (exit 1); exit 1; }; }
2730 no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2731 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2732 { (exit 1); exit 1; }; }
2734 alert|crit|debug|emerg|err|info|notice|warning)
2737 *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2738 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2739 { (exit 1); exit 1; }; }
2745 cat >>confdefs.h <<_ACEOF
2746 #define PRI_FAILURE "$badpri"
2749 { echo "$as_me:$LINENO: result: $badpri" >&5
2750 echo "${ECHO_T}$badpri" >&6; }
2753 # Check whether --with-logpath was given.
2754 if test "${with_logpath+set}" = set; then
2755 withval=$with_logpath; case $with_logpath in
2756 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2757 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2758 { (exit 1); exit 1; }; }
2760 no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2761 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2762 { (exit 1); exit 1; }; }
2768 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2769 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2771 # Check whether --with-loglen was given.
2772 if test "${with_loglen+set}" = set; then
2773 withval=$with_loglen; case $with_loglen in
2774 yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2775 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2776 { (exit 1); exit 1; }; }
2778 no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2779 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2780 { (exit 1); exit 1; }; }
2782 [0-9]*) loglen=$with_loglen
2784 *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2785 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2786 { (exit 1); exit 1; }; }
2792 cat >>confdefs.h <<_ACEOF
2793 #define MAXLOGFILELEN $loglen
2796 { echo "$as_me:$LINENO: result: $loglen" >&5
2797 echo "${ECHO_T}$loglen" >&6; }
2799 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2800 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2802 # Check whether --with-ignore-dot was given.
2803 if test "${with_ignore_dot+set}" = set; then
2804 withval=$with_ignore_dot; case $with_ignore_dot in
2809 *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2810 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2811 { (exit 1); exit 1; }; }
2816 if test "$ignore_dot" = "on"; then
2817 cat >>confdefs.h <<\_ACEOF
2818 #define IGNORE_DOT_PATH 1
2821 { echo "$as_me:$LINENO: result: yes" >&5
2822 echo "${ECHO_T}yes" >&6; }
2824 { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2828 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2829 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2831 # Check whether --with-mail-if-no-user was given.
2832 if test "${with_mail_if_no_user+set}" = set; then
2833 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2834 yes) mail_no_user=on
2836 no) mail_no_user=off
2838 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2839 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2840 { (exit 1); exit 1; }; }
2845 if test "$mail_no_user" = "on"; then
2846 cat >>confdefs.h <<\_ACEOF
2847 #define SEND_MAIL_WHEN_NO_USER 1
2850 { echo "$as_me:$LINENO: result: yes" >&5
2851 echo "${ECHO_T}yes" >&6; }
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2857 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2858 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2860 # Check whether --with-mail-if-no-host was given.
2861 if test "${with_mail_if_no_host+set}" = set; then
2862 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2863 yes) mail_no_host=on
2865 no) mail_no_host=off
2867 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2868 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2869 { (exit 1); exit 1; }; }
2874 if test "$mail_no_host" = "on"; then
2875 cat >>confdefs.h <<\_ACEOF
2876 #define SEND_MAIL_WHEN_NO_HOST 1
2879 { echo "$as_me:$LINENO: result: yes" >&5
2880 echo "${ECHO_T}yes" >&6; }
2882 { echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6; }
2886 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2887 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2889 # Check whether --with-mail-if-noperms was given.
2890 if test "${with_mail_if_noperms+set}" = set; then
2891 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2892 yes) mail_noperms=on
2894 no) mail_noperms=off
2896 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2897 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2898 { (exit 1); exit 1; }; }
2903 if test "$mail_noperms" = "on"; then
2904 cat >>confdefs.h <<\_ACEOF
2905 #define SEND_MAIL_WHEN_NOT_OK 1
2908 { echo "$as_me:$LINENO: result: yes" >&5
2909 echo "${ECHO_T}yes" >&6; }
2911 { echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6; }
2915 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2916 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2918 # Check whether --with-mailto was given.
2919 if test "${with_mailto+set}" = set; then
2920 withval=$with_mailto; case $with_mailto in
2921 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2922 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2923 { (exit 1); exit 1; }; }
2925 no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2926 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2927 { (exit 1); exit 1; }; }
2929 *) mailto=$with_mailto
2935 cat >>confdefs.h <<_ACEOF
2936 #define MAILTO "$mailto"
2939 { echo "$as_me:$LINENO: result: $mailto" >&5
2940 echo "${ECHO_T}$mailto" >&6; }
2943 # Check whether --with-mailsubject was given.
2944 if test "${with_mailsubject+set}" = set; then
2945 withval=$with_mailsubject; case $with_mailsubject in
2946 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2947 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2948 { (exit 1); exit 1; }; }
2950 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2951 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2953 *) mailsub="$with_mailsubject"
2954 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
2955 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
2956 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
2957 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
2963 cat >>confdefs.h <<_ACEOF
2964 #define MAILSUBJECT "$mailsub"
2968 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
2969 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
2971 # Check whether --with-passprompt was given.
2972 if test "${with_passprompt+set}" = set; then
2973 withval=$with_passprompt; case $with_passprompt in
2974 yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
2975 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2976 { (exit 1); exit 1; }; }
2978 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2979 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
2981 *) passprompt="$with_passprompt"
2985 { echo "$as_me:$LINENO: result: $passprompt" >&5
2986 echo "${ECHO_T}$passprompt" >&6; }
2988 cat >>confdefs.h <<_ACEOF
2989 #define PASSPROMPT "$passprompt"
2993 { echo "$as_me:$LINENO: checking for bad password message" >&5
2994 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
2996 # Check whether --with-badpass-message was given.
2997 if test "${with_badpass_message+set}" = set; then
2998 withval=$with_badpass_message; case $with_badpass_message in
2999 yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3000 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3001 { (exit 1); exit 1; }; }
3003 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3004 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3006 *) badpass_message="$with_badpass_message"
3012 cat >>confdefs.h <<_ACEOF
3013 #define INCORRECT_PASSWORD "$badpass_message"
3016 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3017 echo "${ECHO_T}$badpass_message" >&6; }
3019 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3020 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3022 # Check whether --with-fqdn was given.
3023 if test "${with_fqdn+set}" = set; then
3024 withval=$with_fqdn; case $with_fqdn in
3029 *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3030 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3031 { (exit 1); exit 1; }; }
3036 if test "$fqdn" = "on"; then
3037 cat >>confdefs.h <<\_ACEOF
3041 { echo "$as_me:$LINENO: result: yes" >&5
3042 echo "${ECHO_T}yes" >&6; }
3044 { echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6; }
3049 # Check whether --with-timedir was given.
3050 if test "${with_timedir+set}" = set; then
3051 withval=$with_timedir; case $with_timedir in
3052 yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3053 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3054 { (exit 1); exit 1; }; }
3056 no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3057 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3058 { (exit 1); exit 1; }; }
3065 # Check whether --with-sendmail was given.
3066 if test "${with_sendmail+set}" = set; then
3067 withval=$with_sendmail; case $with_sendmail in
3068 yes) with_sendmail=""
3071 *) cat >>confdefs.h <<EOF
3072 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3081 # Check whether --with-sudoers-mode was given.
3082 if test "${with_sudoers_mode+set}" = set; then
3083 withval=$with_sudoers_mode; case $with_sudoers_mode in
3084 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3085 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3086 { (exit 1); exit 1; }; }
3088 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3089 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3090 { (exit 1); exit 1; }; }
3092 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
3094 0*) SUDOERS_MODE=$with_sudoers_mode
3096 *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3097 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3098 { (exit 1); exit 1; }; }
3105 # Check whether --with-sudoers-uid was given.
3106 if test "${with_sudoers_uid+set}" = set; then
3107 withval=$with_sudoers_uid; case $with_sudoers_uid in
3108 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3109 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3110 { (exit 1); exit 1; }; }
3112 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3113 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3114 { (exit 1); exit 1; }; }
3116 [0-9]*) SUDOERS_UID=$with_sudoers_uid
3118 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3119 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3120 { (exit 1); exit 1; }; }
3127 # Check whether --with-sudoers-gid was given.
3128 if test "${with_sudoers_gid+set}" = set; then
3129 withval=$with_sudoers_gid; case $with_sudoers_gid in
3130 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3131 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3132 { (exit 1); exit 1; }; }
3134 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3135 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3136 { (exit 1); exit 1; }; }
3138 [0-9]*) SUDOERS_GID=$with_sudoers_gid
3140 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3141 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3142 { (exit 1); exit 1; }; }
3148 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3149 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3151 # Check whether --with-umask was given.
3152 if test "${with_umask+set}" = set; then
3153 withval=$with_umask; case $with_umask in
3154 yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3155 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3156 { (exit 1); exit 1; }; }
3160 [0-9]*) sudo_umask=$with_umask
3162 *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3163 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3164 { (exit 1); exit 1; }; }
3170 cat >>confdefs.h <<_ACEOF
3171 #define SUDO_UMASK $sudo_umask
3174 if test "$sudo_umask" = "0777"; then
3175 { echo "$as_me:$LINENO: result: user" >&5
3176 echo "${ECHO_T}user" >&6; }
3178 { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3179 echo "${ECHO_T}$sudo_umask" >&6; }
3182 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3183 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3185 # Check whether --with-runas-default was given.
3186 if test "${with_runas_default+set}" = set; then
3187 withval=$with_runas_default; case $with_runas_default in
3188 yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3189 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3190 { (exit 1); exit 1; }; }
3192 no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3193 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3194 { (exit 1); exit 1; }; }
3196 *) runas_default="$with_runas_default"
3202 cat >>confdefs.h <<_ACEOF
3203 #define RUNAS_DEFAULT "$runas_default"
3206 { echo "$as_me:$LINENO: result: $runas_default" >&5
3207 echo "${ECHO_T}$runas_default" >&6; }
3210 # Check whether --with-exempt was given.
3211 if test "${with_exempt+set}" = set; then
3212 withval=$with_exempt; case $with_exempt in
3213 yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3214 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3215 { (exit 1); exit 1; }; }
3217 no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3218 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3219 { (exit 1); exit 1; }; }
3222 cat >>confdefs.h <<_ACEOF
3223 #define EXEMPTGROUP "$with_exempt"
3226 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3227 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3228 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3229 echo "${ECHO_T}$with_exempt" >&6; }
3235 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3236 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3238 # Check whether --with-editor was given.
3239 if test "${with_editor+set}" = set; then
3240 withval=$with_editor; case $with_editor in
3241 yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3242 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3243 { (exit 1); exit 1; }; }
3245 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3246 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3247 { (exit 1); exit 1; }; }
3250 cat >>confdefs.h <<_ACEOF
3251 #define EDITOR "$with_editor"
3254 { echo "$as_me:$LINENO: result: $with_editor" >&5
3255 echo "${ECHO_T}$with_editor" >&6; }
3259 cat >>confdefs.h <<\_ACEOF
3260 #define EDITOR _PATH_VI
3262 { echo "$as_me:$LINENO: result: vi" >&5
3263 echo "${ECHO_T}vi" >&6; }
3267 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3268 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3270 # Check whether --with-env-editor was given.
3271 if test "${with_env_editor+set}" = set; then
3272 withval=$with_env_editor; case $with_env_editor in
3277 *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3278 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3279 { (exit 1); exit 1; }; }
3284 if test "$env_editor" = "on"; then
3285 cat >>confdefs.h <<\_ACEOF
3286 #define ENV_EDITOR 1
3289 { echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3292 { echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6; }
3296 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3297 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3299 # Check whether --with-passwd-tries was given.
3300 if test "${with_passwd_tries+set}" = set; then
3301 withval=$with_passwd_tries; case $with_passwd_tries in
3303 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3304 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3305 { (exit 1); exit 1; }; }
3307 [1-9]*) passwd_tries=$with_passwd_tries
3309 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3310 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3311 { (exit 1); exit 1; }; }
3317 cat >>confdefs.h <<_ACEOF
3318 #define TRIES_FOR_PASSWORD $passwd_tries
3321 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3322 echo "${ECHO_T}$passwd_tries" >&6; }
3324 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3325 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3327 # Check whether --with-timeout was given.
3328 if test "${with_timeout+set}" = set; then
3329 withval=$with_timeout; case $with_timeout in
3333 [0-9]*) timeout=$with_timeout
3335 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3336 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3337 { (exit 1); exit 1; }; }
3343 cat >>confdefs.h <<_ACEOF
3344 #define TIMEOUT $timeout
3347 { echo "$as_me:$LINENO: result: $timeout" >&5
3348 echo "${ECHO_T}$timeout" >&6; }
3350 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3351 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3353 # Check whether --with-password-timeout was given.
3354 if test "${with_password_timeout+set}" = set; then
3355 withval=$with_password_timeout; case $with_password_timeout in
3357 no) password_timeout=0
3359 [0-9]*) password_timeout=$with_password_timeout
3361 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3362 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3363 { (exit 1); exit 1; }; }
3369 cat >>confdefs.h <<_ACEOF
3370 #define PASSWORD_TIMEOUT $password_timeout
3373 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3374 echo "${ECHO_T}$password_timeout" >&6; }
3376 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3377 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3379 # Check whether --with-tty-tickets was given.
3380 if test "${with_tty_tickets+set}" = set; then
3381 withval=$with_tty_tickets; case $with_tty_tickets in
3386 *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3387 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3388 { (exit 1); exit 1; }; }
3393 if test "$tty_tickets" = "on"; then
3394 cat >>confdefs.h <<\_ACEOF
3395 #define USE_TTY_TICKETS 1
3398 { echo "$as_me:$LINENO: result: yes" >&5
3399 echo "${ECHO_T}yes" >&6; }
3401 { echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6; }
3405 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3406 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3408 # Check whether --with-insults was given.
3409 if test "${with_insults+set}" = set; then
3410 withval=$with_insults; case $with_insults in
3412 with_classic_insults=yes
3413 with_csops_insults=yes
3417 *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3418 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3419 { (exit 1); exit 1; }; }
3424 if test "$insults" = "on"; then
3425 cat >>confdefs.h <<\_ACEOF
3426 #define USE_INSULTS 1
3429 { echo "$as_me:$LINENO: result: yes" >&5
3430 echo "${ECHO_T}yes" >&6; }
3432 { echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6; }
3437 # Check whether --with-all-insults was given.
3438 if test "${with_all_insults+set}" = set; then
3439 withval=$with_all_insults; case $with_all_insults in
3440 yes) with_classic_insults=yes
3441 with_csops_insults=yes
3442 with_hal_insults=yes
3443 with_goons_insults=yes
3446 *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3447 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3448 { (exit 1); exit 1; }; }
3455 # Check whether --with-classic-insults was given.
3456 if test "${with_classic_insults+set}" = set; then
3457 withval=$with_classic_insults; case $with_classic_insults in
3458 yes) cat >>confdefs.h <<\_ACEOF
3459 #define CLASSIC_INSULTS 1
3464 *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3465 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3466 { (exit 1); exit 1; }; }
3473 # Check whether --with-csops-insults was given.
3474 if test "${with_csops_insults+set}" = set; then
3475 withval=$with_csops_insults; case $with_csops_insults in
3476 yes) cat >>confdefs.h <<\_ACEOF
3477 #define CSOPS_INSULTS 1
3482 *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3483 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3484 { (exit 1); exit 1; }; }
3491 # Check whether --with-hal-insults was given.
3492 if test "${with_hal_insults+set}" = set; then
3493 withval=$with_hal_insults; case $with_hal_insults in
3494 yes) cat >>confdefs.h <<\_ACEOF
3495 #define HAL_INSULTS 1
3500 *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3501 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3502 { (exit 1); exit 1; }; }
3509 # Check whether --with-goons-insults was given.
3510 if test "${with_goons_insults+set}" = set; then
3511 withval=$with_goons_insults; case $with_goons_insults in
3512 yes) cat >>confdefs.h <<\_ACEOF
3513 #define GOONS_INSULTS 1
3518 *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3519 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3520 { (exit 1); exit 1; }; }
3527 # Check whether --with-ldap was given.
3528 if test "${with_ldap+set}" = set; then
3529 withval=$with_ldap; case $with_ldap in
3531 *) cat >>confdefs.h <<\_ACEOF
3535 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3536 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3537 { echo "$as_me:$LINENO: result: yes" >&5
3538 echo "${ECHO_T}yes" >&6; }
3544 # Check whether --with-ldap-conf-file was given.
3545 if test "${with_ldap_conf_file+set}" = set; then
3546 withval=$with_ldap_conf_file;
3547 cat >>confdefs.h <<_ACEOF
3548 #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3554 # Check whether --with-ldap-secret-file was given.
3555 if test "${with_ldap_secret_file+set}" = set; then
3556 withval=$with_ldap_secret_file;
3557 cat >>confdefs.h <<_ACEOF
3558 #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
3565 # Check whether --with-pc-insults was given.
3566 if test "${with_pc_insults+set}" = set; then
3567 withval=$with_pc_insults; case $with_pc_insults in
3568 yes) cat >>confdefs.h <<\_ACEOF
3569 #define PC_INSULTS 1
3574 *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3575 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3576 { (exit 1); exit 1; }; }
3582 if test "$insults" = "on"; then
3583 { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3584 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3586 test "$with_goons_insults" = "yes" && i="goons ${i}"
3587 test "$with_hal_insults" = "yes" && i="hal ${i}"
3588 test "$with_csops_insults" = "yes" && i="csops ${i}"
3589 test "$with_classic_insults" = "yes" && i="classic ${i}"
3590 { echo "$as_me:$LINENO: result: $i" >&5
3591 echo "${ECHO_T}$i" >&6; }
3594 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3595 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3597 # Check whether --with-secure-path was given.
3598 if test "${with_secure_path+set}" = set; then
3599 withval=$with_secure_path; case $with_secure_path in
3600 yes) cat >>confdefs.h <<_ACEOF
3601 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3604 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3605 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3607 no) { echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6; }
3610 *) cat >>confdefs.h <<_ACEOF
3611 #define SECURE_PATH "$with_secure_path"
3614 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3615 echo "${ECHO_T}$with_secure_path" >&6; }
3619 { echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6; }
3624 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3625 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3627 # Check whether --with-interfaces was given.
3628 if test "${with_interfaces+set}" = set; then
3629 withval=$with_interfaces; case $with_interfaces in
3630 yes) { echo "$as_me:$LINENO: result: yes" >&5
3631 echo "${ECHO_T}yes" >&6; }
3633 no) cat >>confdefs.h <<\_ACEOF
3634 #define STUB_LOAD_INTERFACES 1
3637 { echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6; }
3640 *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3641 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3642 { (exit 1); exit 1; }; }
3646 { echo "$as_me:$LINENO: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6; }
3651 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3652 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3654 # Check whether --with-stow was given.
3655 if test "${with_stow+set}" = set; then
3656 withval=$with_stow; case $with_stow in
3657 yes) { echo "$as_me:$LINENO: result: yes" >&5
3658 echo "${ECHO_T}yes" >&6; }
3659 cat >>confdefs.h <<\_ACEOF
3664 no) { echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6; }
3667 *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3668 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3669 { (exit 1); exit 1; }; }
3673 { echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6; }
3679 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3680 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3681 # Check whether --enable-authentication was given.
3682 if test "${enable_authentication+set}" = set; then
3683 enableval=$enable_authentication; case "$enableval" in
3684 yes) { echo "$as_me:$LINENO: result: yes" >&5
3685 echo "${ECHO_T}yes" >&6; }
3687 no) { echo "$as_me:$LINENO: result: no" >&5
3688 echo "${ECHO_T}no" >&6; }
3689 cat >>confdefs.h <<\_ACEOF
3690 #define NO_AUTHENTICATION 1
3694 *) { echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6; }
3696 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3697 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3702 { echo "$as_me:$LINENO: result: yes" >&5
3703 echo "${ECHO_T}yes" >&6; }
3707 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3708 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3709 # Check whether --enable-root-mailer was given.
3710 if test "${enable_root_mailer+set}" = set; then
3711 enableval=$enable_root_mailer; case "$enableval" in
3712 yes) { echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6; }
3715 no) { echo "$as_me:$LINENO: result: yes" >&5
3716 echo "${ECHO_T}yes" >&6; }
3717 cat >>confdefs.h <<\_ACEOF
3718 #define NO_ROOT_MAILER 1
3722 *) { echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6; }
3724 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3725 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3730 { echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6; }
3735 # Check whether --enable-setreuid was given.
3736 if test "${enable_setreuid+set}" = set; then
3737 enableval=$enable_setreuid; case "$enableval" in
3738 no) SKIP_SETREUID=yes
3746 # Check whether --enable-setresuid was given.
3747 if test "${enable_setresuid+set}" = set; then
3748 enableval=$enable_setresuid; case "$enableval" in
3749 no) SKIP_SETRESUID=yes
3757 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3758 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3759 # Check whether --enable-shadow was given.
3760 if test "${enable_shadow+set}" = set; then
3761 enableval=$enable_shadow; case "$enableval" in
3762 yes) { echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6; }
3765 no) { echo "$as_me:$LINENO: result: yes" >&5
3766 echo "${ECHO_T}yes" >&6; }
3769 *) { echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6; }
3771 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3772 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3777 { echo "$as_me:$LINENO: result: no" >&5
3778 echo "${ECHO_T}no" >&6; }
3782 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3783 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3784 # Check whether --enable-root-sudo was given.
3785 if test "${enable_root_sudo+set}" = set; then
3786 enableval=$enable_root_sudo; case "$enableval" in
3787 yes) { echo "$as_me:$LINENO: result: yes" >&5
3788 echo "${ECHO_T}yes" >&6; }
3790 no) cat >>confdefs.h <<\_ACEOF
3791 #define NO_ROOT_SUDO 1
3794 { echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6; }
3798 *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3799 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3800 { (exit 1); exit 1; }; }
3805 { echo "$as_me:$LINENO: result: yes" >&5
3806 echo "${ECHO_T}yes" >&6; }
3810 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3811 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3812 # Check whether --enable-log-host was given.
3813 if test "${enable_log_host+set}" = set; then
3814 enableval=$enable_log_host; case "$enableval" in
3815 yes) { echo "$as_me:$LINENO: result: yes" >&5
3816 echo "${ECHO_T}yes" >&6; }
3817 cat >>confdefs.h <<\_ACEOF
3818 #define HOST_IN_LOG 1
3822 no) { echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6; }
3825 *) { echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6; }
3827 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3828 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3833 { echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6; }
3838 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3839 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3840 # Check whether --enable-noargs-shell was given.
3841 if test "${enable_noargs_shell+set}" = set; then
3842 enableval=$enable_noargs_shell; case "$enableval" in
3843 yes) { echo "$as_me:$LINENO: result: yes" >&5
3844 echo "${ECHO_T}yes" >&6; }
3845 cat >>confdefs.h <<\_ACEOF
3846 #define SHELL_IF_NO_ARGS 1
3850 no) { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
3853 *) { echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6; }
3855 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3856 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3861 { echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6; }
3866 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3867 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3868 # Check whether --enable-shell-sets-home was given.
3869 if test "${enable_shell_sets_home+set}" = set; then
3870 enableval=$enable_shell_sets_home; case "$enableval" in
3871 yes) { echo "$as_me:$LINENO: result: yes" >&5
3872 echo "${ECHO_T}yes" >&6; }
3873 cat >>confdefs.h <<\_ACEOF
3874 #define SHELL_SETS_HOME 1
3878 no) { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3881 *) { echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6; }
3883 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3884 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3894 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3895 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
3896 # Check whether --enable-path_info was given.
3897 if test "${enable_path_info+set}" = set; then
3898 enableval=$enable_path_info; case "$enableval" in
3899 yes) { echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6; }
3902 no) { echo "$as_me:$LINENO: result: yes" >&5
3903 echo "${ECHO_T}yes" >&6; }
3904 cat >>confdefs.h <<\_ACEOF
3905 #define DONT_LEAK_PATH_INFO 1
3910 *) { echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6; }
3912 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3913 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
3918 { echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6; }
3923 # Extract the first word of "egrep", so it can be a program name with args.
3924 set dummy egrep; ac_word=$2
3925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3927 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 if test -n "$EGREPPROG"; then
3931 ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3940 ac_cv_prog_EGREPPROG="egrep"
3941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 EGREPPROG=$ac_cv_prog_EGREPPROG
3951 if test -n "$EGREPPROG"; then
3952 { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
3953 echo "${ECHO_T}$EGREPPROG" >&6; }
3955 { echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6; }
3960 if test -z "$EGREPPROG"; then
3961 { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
3962 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
3963 { (exit 1); exit 1; }; }
3966 if test "$with_devel" != "yes"; then
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3980 if test "${ac_cv_prog_CC+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$CC"; then
3984 ac_cv_prog_CC="$CC" # Let the user override the test.
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 if test -n "$CC"; then
4005 { echo "$as_me:$LINENO: result: $CC" >&5
4006 echo "${ECHO_T}$CC" >&6; }
4008 { echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6; }
4014 if test -z "$ac_cv_prog_CC"; then
4016 # Extract the first word of "gcc", so it can be a program name with args.
4017 set dummy gcc; ac_word=$2
4018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 if test -n "$ac_ct_CC"; then
4024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_prog_ac_ct_CC="gcc"
4034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4044 if test -n "$ac_ct_CC"; then
4045 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4046 echo "${ECHO_T}$ac_ct_CC" >&6; }
4048 { echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6; }
4052 if test "x$ac_ct_CC" = x; then
4055 case $cross_compiling:$ac_tool_warned in
4057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4058 whose name does not start with the host triplet. If you think this
4059 configuration is useful to you, please write to autoconf@gnu.org." >&5
4060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4061 whose name does not start with the host triplet. If you think this
4062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4063 ac_tool_warned=yes ;;
4071 if test -z "$CC"; then
4072 if test -n "$ac_tool_prefix"; then
4073 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}cc; ac_word=$2
4075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4077 if test "${ac_cv_prog_CC+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -n "$CC"; then
4081 ac_cv_prog_CC="$CC" # Let the user override the test.
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090 ac_cv_prog_CC="${ac_tool_prefix}cc"
4091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 if test -n "$CC"; then
4102 { echo "$as_me:$LINENO: result: $CC" >&5
4103 echo "${ECHO_T}$CC" >&6; }
4105 { echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6; }
4112 if test -z "$CC"; then
4113 # Extract the first word of "cc", so it can be a program name with args.
4114 set dummy cc; ac_word=$2
4115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4117 if test "${ac_cv_prog_CC+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 if test -n "$CC"; then
4121 ac_cv_prog_CC="$CC" # Let the user override the test.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4132 ac_prog_rejected=yes
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 if test $ac_prog_rejected = yes; then
4144 # We found a bogon in the path, so make sure we never use it.
4145 set dummy $ac_cv_prog_CC
4147 if test $# != 0; then
4148 # We chose a different compiler from the bogus one.
4149 # However, it has the same basename, so the bogon will be chosen
4150 # first if we set CC to just the basename; use the full file name.
4152 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4158 if test -n "$CC"; then
4159 { echo "$as_me:$LINENO: result: $CC" >&5
4160 echo "${ECHO_T}$CC" >&6; }
4162 { echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6; }
4168 if test -z "$CC"; then
4169 if test -n "$ac_tool_prefix"; then
4170 for ac_prog in cl.exe
4172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4176 if test "${ac_cv_prog_CC+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 if test -n "$CC"; then
4180 ac_cv_prog_CC="$CC" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 if test -n "$CC"; then
4201 { echo "$as_me:$LINENO: result: $CC" >&5
4202 echo "${ECHO_T}$CC" >&6; }
4204 { echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6; }
4209 test -n "$CC" && break
4212 if test -z "$CC"; then
4214 for ac_prog in cl.exe
4216 # Extract the first word of "$ac_prog", so it can be a program name with args.
4217 set dummy $ac_prog; ac_word=$2
4218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 if test -n "$ac_ct_CC"; then
4224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233 ac_cv_prog_ac_ct_CC="$ac_prog"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4244 if test -n "$ac_ct_CC"; then
4245 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4246 echo "${ECHO_T}$ac_ct_CC" >&6; }
4248 { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4253 test -n "$ac_ct_CC" && break
4256 if test "x$ac_ct_CC" = x; then
4259 case $cross_compiling:$ac_tool_warned in
4261 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4262 whose name does not start with the host triplet. If you think this
4263 configuration is useful to you, please write to autoconf@gnu.org." >&5
4264 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4265 whose name does not start with the host triplet. If you think this
4266 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4267 ac_tool_warned=yes ;;
4276 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4277 See \`config.log' for more details." >&5
4278 echo "$as_me: error: no acceptable C compiler found in \$PATH
4279 See \`config.log' for more details." >&2;}
4280 { (exit 1); exit 1; }; }
4282 # Provide some information about the compiler.
4283 echo "$as_me:$LINENO: checking for C compiler version" >&5
4284 ac_compiler=`set X $ac_compile; echo $2`
4285 { (ac_try="$ac_compiler --version >&5"
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_compiler --version >&5") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }
4295 { (ac_try="$ac_compiler -v >&5"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_compiler -v >&5") 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }
4305 { (ac_try="$ac_compiler -V >&5"
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_compiler -V >&5") 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4331 ac_clean_files_save=$ac_clean_files
4332 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4333 # Try to create an executable without -o first, disregard a.out.
4334 # It will help us diagnose broken compilers, and finding out an intuition
4336 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4337 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4338 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4340 # List of possible output files, starting from the most likely.
4341 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4342 # only as a last resort. b.out is created by i960 compilers.
4343 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4345 # The IRIX 6 linker writes into existing files which may not be
4346 # executable, retaining their permissions. Remove them first so a
4347 # subsequent execution test works.
4349 for ac_file in $ac_files
4352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4353 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4358 if { (ac_try="$ac_link_default"
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_link_default") 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; then
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4373 for ac_file in $ac_files ''
4375 test -f "$ac_file" || continue
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4380 # We found the default executable, but exeext='' is most
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4398 test "$ac_cv_exeext" = no && ac_cv_exeext=
4404 { echo "$as_me:$LINENO: result: $ac_file" >&5
4405 echo "${ECHO_T}$ac_file" >&6; }
4406 if test -z "$ac_file"; then
4407 echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4411 See \`config.log' for more details." >&5
4412 echo "$as_me: error: C compiler cannot create executables
4413 See \`config.log' for more details." >&2;}
4414 { (exit 77); exit 77; }; }
4417 ac_exeext=$ac_cv_exeext
4419 # Check that the compiler produces executables we can run. If not, either
4420 # the compiler is broken, or we cross compile.
4421 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4422 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4423 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4424 # If not cross compiling, check that we can run a simple program.
4425 if test "$cross_compiling" != yes; then
4426 if { ac_try='./$ac_file'
4427 { (case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432 (eval "$ac_try") 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4438 if test "$cross_compiling" = maybe; then
4441 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4442 If you meant to cross compile, use \`--host'.
4443 See \`config.log' for more details." >&5
4444 echo "$as_me: error: cannot run C compiled programs.
4445 If you meant to cross compile, use \`--host'.
4446 See \`config.log' for more details." >&2;}
4447 { (exit 1); exit 1; }; }
4451 { echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6; }
4454 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4455 ac_clean_files=$ac_clean_files_save
4456 # Check that the compiler produces executables we can run. If not, either
4457 # the compiler is broken, or we cross compile.
4458 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4459 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4460 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4461 echo "${ECHO_T}$cross_compiling" >&6; }
4463 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4464 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4465 if { (ac_try="$ac_link"
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_link") 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; then
4475 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4476 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4477 # work properly (i.e., refer to `conftest.exe'), while it won't with
4479 for ac_file in conftest.exe conftest conftest.*; do
4480 test -f "$ac_file" || continue
4482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4483 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4489 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4490 See \`config.log' for more details." >&5
4491 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4492 See \`config.log' for more details." >&2;}
4493 { (exit 1); exit 1; }; }
4496 rm -f conftest$ac_cv_exeext
4497 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4498 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4500 rm -f conftest.$ac_ext
4501 EXEEXT=$ac_cv_exeext
4503 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4504 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4505 if test "${ac_cv_objext+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4523 rm -f conftest.o conftest.obj
4524 if { (ac_try="$ac_compile"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_compile") 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 for ac_file in conftest.o conftest.obj conftest.*; do
4535 test -f "$ac_file" || continue;
4537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4538 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4547 See \`config.log' for more details." >&5
4548 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4549 See \`config.log' for more details." >&2;}
4550 { (exit 1); exit 1; }; }
4553 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4555 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4556 echo "${ECHO_T}$ac_cv_objext" >&6; }
4557 OBJEXT=$ac_cv_objext
4559 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4560 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4561 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 cat >conftest.$ac_ext <<_ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4582 rm -f conftest.$ac_objext
4583 if { (ac_try="$ac_compile"
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_compile") 2>conftest.er1
4591 grep -v '^ *+' conftest.er1 >conftest.err
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } && {
4596 test -z "$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4598 } && test -s conftest.$ac_objext; then
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4611 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4612 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4613 GCC=`test $ac_compiler_gnu = yes && echo yes`
4614 ac_test_CFLAGS=${CFLAGS+set}
4615 ac_save_CFLAGS=$CFLAGS
4616 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4617 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4618 if test "${ac_cv_prog_cc_g+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 ac_save_c_werror_flag=$ac_c_werror_flag
4622 ac_c_werror_flag=yes
4625 cat >conftest.$ac_ext <<_ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4663 cat >conftest.$ac_ext <<_ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4678 rm -f conftest.$ac_objext
4679 if { (ac_try="$ac_compile"
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685 (eval "$ac_compile") 2>conftest.er1
4687 grep -v '^ *+' conftest.er1 >conftest.err
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } && {
4692 test -z "$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 } && test -s conftest.$ac_objext; then
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 ac_c_werror_flag=$ac_save_c_werror_flag
4702 cat >conftest.$ac_ext <<_ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4717 rm -f conftest.$ac_objext
4718 if { (ac_try="$ac_compile"
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_compile") 2>conftest.er1
4726 grep -v '^ *+' conftest.er1 >conftest.err
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } && {
4731 test -z "$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4733 } && test -s conftest.$ac_objext; then
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 ac_c_werror_flag=$ac_save_c_werror_flag
4751 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4752 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4753 if test "$ac_test_CFLAGS" = set; then
4754 CFLAGS=$ac_save_CFLAGS
4755 elif test $ac_cv_prog_cc_g = yes; then
4756 if test "$GCC" = yes; then
4762 if test "$GCC" = yes; then
4768 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4769 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_cc_c89+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 ac_cv_prog_cc_c89=no
4775 cat >conftest.$ac_ext <<_ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4783 #include <sys/types.h>
4784 #include <sys/stat.h>
4785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4786 struct buf { int x; };
4787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4788 static char *e (p, i)
4794 static char *f (char * (*g) (char **, int), char **p, ...)
4799 s = g (p, va_arg (v,int));
4804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4805 function prototypes and stuff, but not '\xHH' hex character constants.
4806 These don't provoke an error unfortunately, instead are silently treated
4807 as 'x'. The following induces an error, until -std is added to get
4808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4809 array size at least. It's necessary to write '\x00'==0 to get something
4810 that's true only with -std. */
4811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4813 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4814 inside strings and character constants. */
4816 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4818 int test (int i, double x);
4819 struct s1 {int (*f) (int a);};
4820 struct s2 {int (*f) (double a);};
4821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4835 CC="$ac_save_CC $ac_arg"
4836 rm -f conftest.$ac_objext
4837 if { (ac_try="$ac_compile"
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_compile") 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } && {
4850 test -z "$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 } && test -s conftest.$ac_objext; then
4853 ac_cv_prog_cc_c89=$ac_arg
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4861 rm -f core conftest.err conftest.$ac_objext
4862 test "x$ac_cv_prog_cc_c89" != "xno" && break
4864 rm -f conftest.$ac_ext
4869 case "x$ac_cv_prog_cc_c89" in
4871 { echo "$as_me:$LINENO: result: none needed" >&5
4872 echo "${ECHO_T}none needed" >&6; } ;;
4874 { echo "$as_me:$LINENO: result: unsupported" >&5
4875 echo "${ECHO_T}unsupported" >&6; } ;;
4877 CC="$CC $ac_cv_prog_cc_c89"
4878 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4879 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4884 ac_cpp='$CPP $CPPFLAGS'
4885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4891 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4892 if test "${ac_cv_search_strerror+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 ac_func_search_save_LIBS=$LIBS
4896 cat >conftest.$ac_ext <<_ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4903 /* Override any GCC internal prototype to avoid an error.
4904 Use char because int might match the return type of a GCC
4905 builtin and then its argument prototype would still apply. */
4918 for ac_lib in '' cposix; do
4919 if test -z "$ac_lib"; then
4920 ac_res="none required"
4923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4925 rm -f conftest.$ac_objext conftest$ac_exeext
4926 if { (ac_try="$ac_link"
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_link") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest$ac_exeext &&
4942 $as_test_x conftest$ac_exeext; then
4943 ac_cv_search_strerror=$ac_res
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4953 if test "${ac_cv_search_strerror+set}" = set; then
4957 if test "${ac_cv_search_strerror+set}" = set; then
4960 ac_cv_search_strerror=no
4963 LIBS=$ac_func_search_save_LIBS
4965 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4966 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4967 ac_res=$ac_cv_search_strerror
4968 if test "$ac_res" != no; then
4969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4979 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4980 # On Suns, sometimes $CPP names a directory.
4981 if test -n "$CPP" && test -d "$CPP"; then
4984 if test -z "$CPP"; then
4985 if test "${ac_cv_prog_CPP+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 # Double quotes because CPP needs to be expanded
4989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4992 for ac_c_preproc_warn_flag in '' yes
4994 # Use a header file that comes with gcc, so configuring glibc
4995 # with a fresh cross-compiler works.
4996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 # <limits.h> exists even on freestanding compilers.
4998 # On the NeXT, cc -E runs the code through the compiler's parser,
4999 # not just through cpp. "Syntax error" is here to catch this case.
5000 cat >conftest.$ac_ext <<_ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5007 # include <limits.h>
5009 # include <assert.h>
5013 if { (ac_try="$ac_cpp conftest.$ac_ext"
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null && {
5026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5027 test ! -s conftest.err
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 # Broken: fails on valid input.
5038 rm -f conftest.err conftest.$ac_ext
5040 # OK, works on sane cases. Now check whether nonexistent headers
5041 # can be detected and how.
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <ac_nonexistent.h>
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null && {
5063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5066 # Broken: success on invalid input.
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 # Passes both tests.
5077 rm -f conftest.err conftest.$ac_ext
5080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081 rm -f conftest.err conftest.$ac_ext
5082 if $ac_preproc_ok; then
5094 { echo "$as_me:$LINENO: result: $CPP" >&5
5095 echo "${ECHO_T}$CPP" >&6; }
5097 for ac_c_preproc_warn_flag in '' yes
5099 # Use a header file that comes with gcc, so configuring glibc
5100 # with a fresh cross-compiler works.
5101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102 # <limits.h> exists even on freestanding compilers.
5103 # On the NeXT, cc -E runs the code through the compiler's parser,
5104 # not just through cpp. "Syntax error" is here to catch this case.
5105 cat >conftest.$ac_ext <<_ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5112 # include <limits.h>
5114 # include <assert.h>
5118 if { (ac_try="$ac_cpp conftest.$ac_ext"
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5126 grep -v '^ *+' conftest.er1 >conftest.err
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null && {
5131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5132 test ! -s conftest.err
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 # Broken: fails on valid input.
5143 rm -f conftest.err conftest.$ac_ext
5145 # OK, works on sane cases. Now check whether nonexistent headers
5146 # can be detected and how.
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 #include <ac_nonexistent.h>
5155 if { (ac_try="$ac_cpp conftest.$ac_ext"
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5163 grep -v '^ *+' conftest.er1 >conftest.err
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5171 # Broken: success on invalid input.
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5177 # Passes both tests.
5182 rm -f conftest.err conftest.$ac_ext
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.err conftest.$ac_ext
5187 if $ac_preproc_ok; then
5190 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5191 See \`config.log' for more details." >&5
5192 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details." >&2;}
5194 { (exit 1); exit 1; }; }
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5206 if test -f "$ac_dir/install-sh"; then
5208 ac_install_sh="$ac_aux_dir/install-sh -c"
5210 elif test -f "$ac_dir/install.sh"; then
5212 ac_install_sh="$ac_aux_dir/install.sh -c"
5214 elif test -f "$ac_dir/shtool"; then
5216 ac_install_sh="$ac_aux_dir/shtool install -c"
5220 if test -z "$ac_aux_dir"; then
5221 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5222 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5223 { (exit 1); exit 1; }; }
5226 # These three variables are undocumented and unsupported,
5227 # and are intended to be withdrawn in a future Autoconf release.
5228 # They can cause serious problems if a builder's source tree is in a directory
5229 # whose full name contains unusual characters.
5230 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5231 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5232 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5235 # Make sure we can run config.sub.
5236 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5237 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5238 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5239 { (exit 1); exit 1; }; }
5241 { echo "$as_me:$LINENO: checking build system type" >&5
5242 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5243 if test "${ac_cv_build+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 ac_build_alias=$build_alias
5247 test "x$ac_build_alias" = x &&
5248 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5249 test "x$ac_build_alias" = x &&
5250 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5251 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5252 { (exit 1); exit 1; }; }
5253 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5254 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5255 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5256 { (exit 1); exit 1; }; }
5259 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5260 echo "${ECHO_T}$ac_cv_build" >&6; }
5261 case $ac_cv_build in
5263 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5264 echo "$as_me: error: invalid value of canonical build" >&2;}
5265 { (exit 1); exit 1; }; };;
5268 ac_save_IFS=$IFS; IFS='-'
5274 # Remember, the first character of IFS is used to create $*,
5275 # except with old shells:
5278 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5281 { echo "$as_me:$LINENO: checking host system type" >&5
5282 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5283 if test "${ac_cv_host+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 if test "x$host_alias" = x; then
5287 ac_cv_host=$ac_cv_build
5289 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5290 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5291 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5292 { (exit 1); exit 1; }; }
5296 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5297 echo "${ECHO_T}$ac_cv_host" >&6; }
5300 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5301 echo "$as_me: error: invalid value of canonical host" >&2;}
5302 { (exit 1); exit 1; }; };;
5305 ac_save_IFS=$IFS; IFS='-'
5311 # Remember, the first character of IFS is used to create $*,
5312 # except with old shells:
5315 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5318 { echo "$as_me:$LINENO: checking target system type" >&5
5319 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5320 if test "${ac_cv_target+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 if test "x$target_alias" = x; then
5324 ac_cv_target=$ac_cv_host
5326 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5327 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5328 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5329 { (exit 1); exit 1; }; }
5333 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5334 echo "${ECHO_T}$ac_cv_target" >&6; }
5335 case $ac_cv_target in
5337 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5338 echo "$as_me: error: invalid value of canonical target" >&2;}
5339 { (exit 1); exit 1; }; };;
5341 target=$ac_cv_target
5342 ac_save_IFS=$IFS; IFS='-'
5348 # Remember, the first character of IFS is used to create $*,
5349 # except with old shells:
5352 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5355 # The aliases save the names the user supplied, while $host etc.
5356 # will get canonicalized.
5357 test -n "$target_alias" &&
5358 test "$program_prefix$program_suffix$program_transform_name" = \
5360 program_prefix=${target_alias}-
5361 # Check whether --enable-static was given.
5362 if test "${enable_static+set}" = set; then
5363 enableval=$enable_static; p=${PACKAGE-default}
5365 yes) enable_static=yes ;;
5366 no) enable_static=no ;;
5369 # Look at the argument we got. We use all the common list separators.
5370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5371 for pkg in $enableval; do
5373 if test "X$pkg" = "X$p"; then
5386 # Check whether --enable-shared was given.
5387 if test "${enable_shared+set}" = set; then
5388 enableval=$enable_shared; p=${PACKAGE-default}
5390 yes) enable_shared=yes ;;
5391 no) enable_shared=no ;;
5394 # Look at the argument we got. We use all the common list separators.
5395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5396 for pkg in $enableval; do
5398 if test "X$pkg" = "X$p"; then
5410 # Check whether --enable-fast-install was given.
5411 if test "${enable_fast_install+set}" = set; then
5412 enableval=$enable_fast_install; p=${PACKAGE-default}
5414 yes) enable_fast_install=yes ;;
5415 no) enable_fast_install=no ;;
5417 enable_fast_install=no
5418 # Look at the argument we got. We use all the common list separators.
5419 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5420 for pkg in $enableval; do
5422 if test "X$pkg" = "X$p"; then
5423 enable_fast_install=yes
5430 enable_fast_install=yes
5434 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5435 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5436 if test "${lt_cv_path_SED+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 # Loop through the user's path and test for sed and gsed.
5440 # Then use that list of sed's as ones to test for truncation.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for lt_ac_prog in sed gsed; do
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5449 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5457 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5458 # along with /bin/sed that truncates output.
5459 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5460 test ! -f $lt_ac_sed && continue
5461 cat /dev/null > conftest.in
5463 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5464 # Check for GNU sed and select it if it is found.
5465 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5466 lt_cv_path_SED=$lt_ac_sed
5470 cat conftest.in conftest.in >conftest.tmp
5471 mv conftest.tmp conftest.in
5472 cp conftest.in conftest.nl
5474 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5475 cmp -s conftest.out conftest.nl || break
5476 # 10000 chars as input seems more than enough
5477 test $lt_ac_count -gt 10 && break
5478 lt_ac_count=`expr $lt_ac_count + 1`
5479 if test $lt_ac_count -gt $lt_ac_max; then
5480 lt_ac_max=$lt_ac_count
5481 lt_cv_path_SED=$lt_ac_sed
5490 { echo "$as_me:$LINENO: result: $SED" >&5
5491 echo "${ECHO_T}$SED" >&6; }
5493 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5494 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5495 if test "${ac_cv_path_GREP+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 # Extract the first word of "grep ggrep" to use in msg output
5499 if test -z "$GREP"; then
5500 set dummy grep ggrep; ac_prog_name=$2
5501 if test "${ac_cv_path_GREP+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 ac_path_GREP_found=false
5505 # Loop through the user's path and test for each of PROGNAME-LIST
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5510 test -z "$as_dir" && as_dir=.
5511 for ac_prog in grep ggrep; do
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5514 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5515 # Check for GNU ac_path_GREP and select it if it is found.
5516 # Check for GNU $ac_path_GREP
5517 case `"$ac_path_GREP" --version 2>&1` in
5519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5522 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5525 cat "conftest.in" "conftest.in" >"conftest.tmp"
5526 mv "conftest.tmp" "conftest.in"
5527 cp "conftest.in" "conftest.nl"
5528 echo 'GREP' >> "conftest.nl"
5529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531 ac_count=`expr $ac_count + 1`
5532 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5533 # Best one so far, save it but keep looking for a better one
5534 ac_cv_path_GREP="$ac_path_GREP"
5535 ac_path_GREP_max=$ac_count
5537 # 10*(2^10) chars as input seems more than enough
5538 test $ac_count -gt 10 && break
5540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5544 $ac_path_GREP_found && break 3
5554 GREP="$ac_cv_path_GREP"
5555 if test -z "$GREP"; then
5556 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5557 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5558 { (exit 1); exit 1; }; }
5562 ac_cv_path_GREP=$GREP
5567 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5568 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5569 GREP="$ac_cv_path_GREP"
5572 { echo "$as_me:$LINENO: checking for egrep" >&5
5573 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5574 if test "${ac_cv_path_EGREP+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5578 then ac_cv_path_EGREP="$GREP -E"
5580 # Extract the first word of "egrep" to use in msg output
5581 if test -z "$EGREP"; then
5582 set dummy egrep; ac_prog_name=$2
5583 if test "${ac_cv_path_EGREP+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 ac_path_EGREP_found=false
5587 # Loop through the user's path and test for each of PROGNAME-LIST
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5592 test -z "$as_dir" && as_dir=.
5593 for ac_prog in egrep; do
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5596 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5597 # Check for GNU ac_path_EGREP and select it if it is found.
5598 # Check for GNU $ac_path_EGREP
5599 case `"$ac_path_EGREP" --version 2>&1` in
5601 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5604 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5607 cat "conftest.in" "conftest.in" >"conftest.tmp"
5608 mv "conftest.tmp" "conftest.in"
5609 cp "conftest.in" "conftest.nl"
5610 echo 'EGREP' >> "conftest.nl"
5611 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5613 ac_count=`expr $ac_count + 1`
5614 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5615 # Best one so far, save it but keep looking for a better one
5616 ac_cv_path_EGREP="$ac_path_EGREP"
5617 ac_path_EGREP_max=$ac_count
5619 # 10*(2^10) chars as input seems more than enough
5620 test $ac_count -gt 10 && break
5622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5626 $ac_path_EGREP_found && break 3
5636 EGREP="$ac_cv_path_EGREP"
5637 if test -z "$EGREP"; then
5638 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5639 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5640 { (exit 1); exit 1; }; }
5644 ac_cv_path_EGREP=$EGREP
5650 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5651 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5652 EGREP="$ac_cv_path_EGREP"
5656 # Check whether --with-gnu-ld was given.
5657 if test "${with_gnu_ld+set}" = set; then
5658 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5664 if test "$GCC" = yes; then
5665 # Check if gcc -print-prog-name=ld gives a path.
5666 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5667 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5670 # gcc leaves a trailing carriage return which upsets mingw
5671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5676 # Accept absolute paths.
5678 re_direlt='/[^/][^/]*/\.\./'
5679 # Canonicalize the pathname of ld
5680 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5681 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5682 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5684 test -z "$LD" && LD="$ac_prog"
5687 # If it fails, then pretend we aren't using GCC.
5691 # If it is relative, then search for the first ld in PATH.
5695 elif test "$with_gnu_ld" = yes; then
5696 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5697 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5699 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5700 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5702 if test "${lt_cv_path_LD+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 if test -z "$LD"; then
5706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5707 for ac_dir in $PATH; do
5709 test -z "$ac_dir" && ac_dir=.
5710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5711 lt_cv_path_LD="$ac_dir/$ac_prog"
5712 # Check to see if the program is GNU ld. I'd rather use --version,
5713 # but apparently some variants of GNU ld only accept -v.
5714 # Break only if it was the GNU/non-GNU ld that we prefer.
5715 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5716 *GNU* | *'with BFD'*)
5717 test "$with_gnu_ld" != no && break
5720 test "$with_gnu_ld" != yes && break
5727 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5732 if test -n "$LD"; then
5733 { echo "$as_me:$LINENO: result: $LD" >&5
5734 echo "${ECHO_T}$LD" >&6; }
5736 { echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6; }
5739 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5740 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5741 { (exit 1); exit 1; }; }
5742 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5743 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5744 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5748 case `$LD -v 2>&1 </dev/null` in
5749 *GNU* | *'with BFD'*)
5750 lt_cv_prog_gnu_ld=yes
5753 lt_cv_prog_gnu_ld=no
5757 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5758 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5759 with_gnu_ld=$lt_cv_prog_gnu_ld
5762 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5763 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5764 if test "${lt_cv_ld_reload_flag+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 lt_cv_ld_reload_flag='-r'
5769 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5770 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5771 reload_flag=$lt_cv_ld_reload_flag
5772 case $reload_flag in
5774 *) reload_flag=" $reload_flag" ;;
5776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5779 if test "$GCC" = yes; then
5780 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5782 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5787 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5788 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5789 if test "${lt_cv_path_NM+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 if test -n "$NM"; then
5793 # Let the user override the test.
5796 lt_nm_to_check="${ac_tool_prefix}nm"
5797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5798 lt_nm_to_check="$lt_nm_to_check nm"
5800 for lt_tmp_nm in $lt_nm_to_check; do
5801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5804 test -z "$ac_dir" && ac_dir=.
5805 tmp_nm="$ac_dir/$lt_tmp_nm"
5806 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5807 # Check to see if the nm accepts a BSD-compat flag.
5808 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5809 # nm: unknown option "B" ignored
5810 # Tru64's nm complains that /dev/null is an invalid object file
5811 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5812 */dev/null* | *'Invalid file or object type'*)
5813 lt_cv_path_NM="$tmp_nm -B"
5817 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5819 lt_cv_path_NM="$tmp_nm -p"
5823 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5824 continue # so that we can try to find one that supports BSD flags
5833 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5836 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5837 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5840 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5841 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5843 if test "$LN_S" = "ln -s"; then
5844 { echo "$as_me:$LINENO: result: yes" >&5
5845 echo "${ECHO_T}yes" >&6; }
5847 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5848 echo "${ECHO_T}no, using $LN_S" >&6; }
5851 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5852 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5853 if test "${lt_cv_deplibs_check_method+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 lt_cv_file_magic_cmd='$MAGIC_CMD'
5857 lt_cv_file_magic_test_file=
5858 lt_cv_deplibs_check_method='unknown'
5859 # Need to set the preceding variable on all platforms that support
5860 # interlibrary dependencies.
5861 # 'none' -- dependencies not supported.
5862 # `unknown' -- same as none, but documents that we really don't know.
5863 # 'pass_all' -- all dependencies passed with no checks.
5864 # 'test_compile' -- check by making test program.
5865 # 'file_magic [[regex]]' -- check by looking for files in library path
5866 # which responds to the $file_magic_cmd with a given extended regex.
5867 # If you have `file' or equivalent on your system and you're not sure
5868 # whether `pass_all' will *always* work, you probably want this one.
5872 lt_cv_deplibs_check_method=pass_all
5876 lt_cv_deplibs_check_method=pass_all
5880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5881 lt_cv_file_magic_cmd='/usr/bin/file -L'
5882 lt_cv_file_magic_test_file=/shlib/libc.so
5886 # func_win32_libid is a shell function defined in ltmain.sh
5887 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5888 lt_cv_file_magic_cmd='func_win32_libid'
5892 # Base MSYS/MinGW do not provide the 'file' command needed by
5893 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5894 # unless we find 'file', for example because we are cross-compiling.
5895 if ( file / ) >/dev/null 2>&1; then
5896 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5897 lt_cv_file_magic_cmd='func_win32_libid'
5899 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5900 lt_cv_file_magic_cmd='$OBJDUMP -f'
5904 darwin* | rhapsody*)
5905 lt_cv_deplibs_check_method=pass_all
5908 freebsd* | dragonfly*)
5909 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5912 # Not sure whether the presence of OpenBSD here was a mistake.
5913 # Let's accept both of them until this is cleared up.
5914 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5915 lt_cv_file_magic_cmd=/usr/bin/file
5916 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5920 lt_cv_deplibs_check_method=pass_all
5925 lt_cv_deplibs_check_method=pass_all
5928 hpux10.20* | hpux11*)
5929 lt_cv_file_magic_cmd=/usr/bin/file
5932 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5933 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5936 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]'
5937 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5940 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5941 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5947 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5951 irix5* | irix6* | nonstopux*)
5953 *-32|*"-32 ") libmagic=32-bit;;
5954 *-n32|*"-n32 ") libmagic=N32;;
5955 *-64|*"-64 ") libmagic=64-bit;;
5956 *) libmagic=never-match;;
5958 lt_cv_deplibs_check_method=pass_all
5961 # This must be Linux ELF.
5962 linux* | k*bsd*-gnu)
5963 lt_cv_deplibs_check_method=pass_all
5967 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5976 lt_cv_file_magic_cmd=/usr/bin/file
5977 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5981 lt_cv_deplibs_check_method=unknown
5985 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5992 osf3* | osf4* | osf5*)
5993 lt_cv_deplibs_check_method=pass_all
5997 lt_cv_deplibs_check_method=pass_all
6001 lt_cv_deplibs_check_method=pass_all
6005 case $host_vendor in
6007 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]'
6008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6011 lt_cv_deplibs_check_method=pass_all
6014 lt_cv_file_magic_cmd='/bin/file'
6015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6018 lt_cv_file_magic_cmd='/bin/file'
6019 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6020 lt_cv_file_magic_test_file=/lib/libc.so
6023 lt_cv_deplibs_check_method=pass_all
6026 lt_cv_deplibs_check_method=pass_all
6031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6032 lt_cv_deplibs_check_method=pass_all
6037 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6038 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6039 file_magic_cmd=$lt_cv_file_magic_cmd
6040 deplibs_check_method=$lt_cv_deplibs_check_method
6041 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6046 # If no C compiler was specified, use CC.
6049 # If no C compiler flags were specified, use CFLAGS.
6050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6052 # Allow CC to be a program name with arguments.
6055 # Check whether --enable-libtool-lock was given.
6056 if test "${enable_libtool_lock+set}" = set; then
6057 enableval=$enable_libtool_lock;
6060 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6062 # Some flags need to be propagated to the compiler or linker for good
6066 # Find out which ABI we are using.
6067 echo 'int i;' > conftest.$ac_ext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069 (eval $ac_compile) 2>&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; then
6073 case `/usr/bin/file conftest.$ac_objext` in
6085 # Find out which ABI we are using.
6086 echo '#line 6086 "configure"' > conftest.$ac_ext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; then
6092 if test "$lt_cv_prog_gnu_ld" = yes; then
6093 case `/usr/bin/file conftest.$ac_objext` in
6095 LD="${LD-ld} -melf32bsmip"
6098 LD="${LD-ld} -melf32bmipn32"
6101 LD="${LD-ld} -melf64bmip"
6105 case `/usr/bin/file conftest.$ac_objext` in
6121 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6122 s390*-*linux*|sparc*-*linux*)
6123 # Find out which ABI we are using.
6124 echo 'int i;' > conftest.$ac_ext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126 (eval $ac_compile) 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; then
6130 case `/usr/bin/file conftest.o` in
6133 x86_64-*kfreebsd*-gnu)
6134 LD="${LD-ld} -m elf_i386_fbsd"
6137 LD="${LD-ld} -m elf_i386"
6139 ppc64-*linux*|powerpc64-*linux*)
6140 LD="${LD-ld} -m elf32ppclinux"
6143 LD="${LD-ld} -m elf_s390"
6146 LD="${LD-ld} -m elf32_sparc"
6152 x86_64-*kfreebsd*-gnu)
6153 LD="${LD-ld} -m elf_x86_64_fbsd"
6156 LD="${LD-ld} -m elf_x86_64"
6158 ppc*-*linux*|powerpc*-*linux*)
6159 LD="${LD-ld} -m elf64ppc"
6162 LD="${LD-ld} -m elf64_s390"
6165 LD="${LD-ld} -m elf64_sparc"
6175 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6176 SAVE_CFLAGS="$CFLAGS"
6177 CFLAGS="$CFLAGS -belf"
6178 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6179 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6180 if test "${lt_cv_cc_needs_belf+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 ac_cpp='$CPP $CPPFLAGS'
6185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6204 rm -f conftest.$ac_objext conftest$ac_exeext
6205 if { (ac_try="$ac_link"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_link") 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest$ac_exeext &&
6221 $as_test_x conftest$ac_exeext; then
6222 lt_cv_cc_needs_belf=yes
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 lt_cv_cc_needs_belf=no
6230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6231 conftest$ac_exeext conftest.$ac_ext
6233 ac_cpp='$CPP $CPPFLAGS'
6234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6240 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6241 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6242 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6243 CFLAGS="$SAVE_CFLAGS"
6247 # Find out which ABI we are using.
6248 echo 'int i;' > conftest.$ac_ext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; then
6254 case `/usr/bin/file conftest.o` in
6256 case $lt_cv_prog_gnu_ld in
6257 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6258 *) LD="${LD-ld} -64" ;;
6269 need_locks="$enable_libtool_lock"
6273 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6274 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6275 if test "${ac_cv_header_stdc+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6297 rm -f conftest.$ac_objext
6298 if { (ac_try="$ac_compile"
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest.$ac_objext; then
6314 ac_cv_header_stdc=yes
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 ac_cv_header_stdc=no
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 if test $ac_cv_header_stdc = yes; then
6325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6336 $EGREP "memchr" >/dev/null 2>&1; then
6339 ac_cv_header_stdc=no
6345 if test $ac_cv_header_stdc = yes; then
6346 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6347 cat >conftest.$ac_ext <<_ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6357 $EGREP "free" >/dev/null 2>&1; then
6360 ac_cv_header_stdc=no
6366 if test $ac_cv_header_stdc = yes; then
6367 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6368 if test "$cross_compiling" = yes; then
6371 cat >conftest.$ac_ext <<_ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6379 #if ((' ' & 0x0FF) == 0x020)
6380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6383 # define ISLOWER(c) \
6384 (('a' <= (c) && (c) <= 'i') \
6385 || ('j' <= (c) && (c) <= 'r') \
6386 || ('s' <= (c) && (c) <= 'z'))
6387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6395 for (i = 0; i < 256; i++)
6396 if (XOR (islower (i), ISLOWER (i))
6397 || toupper (i) != TOUPPER (i))
6402 rm -f conftest$ac_exeext
6403 if { (ac_try="$ac_link"
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_link") 2>&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6413 { (case "(($ac_try" in
6414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415 *) ac_try_echo=$ac_try;;
6417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418 (eval "$ac_try") 2>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6424 echo "$as_me: program exited with status $ac_status" >&5
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6429 ac_cv_header_stdc=no
6431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6437 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6438 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6439 if test $ac_cv_header_stdc = yes; then
6441 cat >>confdefs.h <<\_ACEOF
6442 #define STDC_HEADERS 1
6447 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6457 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6458 inttypes.h stdint.h unistd.h
6460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 cat >conftest.$ac_ext <<_ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 $ac_includes_default
6474 #include <$ac_header>
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6485 grep -v '^ *+' conftest.er1 >conftest.err
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.$ac_objext; then
6493 eval "$as_ac_Header=yes"
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 eval "$as_ac_Header=no"
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 ac_res=`eval echo '${'$as_ac_Header'}'`
6504 { echo "$as_me:$LINENO: result: $ac_res" >&5
6505 echo "${ECHO_T}$ac_res" >&6; }
6506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6507 cat >>confdefs.h <<_ACEOF
6508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517 for ac_header in dlfcn.h
6519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 ac_res=`eval echo '${'$as_ac_Header'}'`
6527 { echo "$as_me:$LINENO: result: $ac_res" >&5
6528 echo "${ECHO_T}$ac_res" >&6; }
6530 # Is the header compilable?
6531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6533 cat >conftest.$ac_ext <<_ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 $ac_includes_default
6540 #include <$ac_header>
6542 rm -f conftest.$ac_objext
6543 if { (ac_try="$ac_compile"
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_compile") 2>conftest.er1
6551 grep -v '^ *+' conftest.er1 >conftest.err
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && {
6556 test -z "$ac_c_werror_flag" ||
6557 test ! -s conftest.err
6558 } && test -s conftest.$ac_objext; then
6559 ac_header_compiler=yes
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 ac_header_compiler=no
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6569 echo "${ECHO_T}$ac_header_compiler" >&6; }
6571 # Is the header present?
6572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <$ac_header>
6582 if { (ac_try="$ac_cpp conftest.$ac_ext"
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6590 grep -v '^ *+' conftest.er1 >conftest.err
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } >/dev/null && {
6595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6598 ac_header_preproc=yes
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 ac_header_preproc=no
6606 rm -f conftest.err conftest.$ac_ext
6607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6608 echo "${ECHO_T}$ac_header_preproc" >&6; }
6610 # So? What about this header?
6611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6617 ac_header_preproc=yes
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 eval "$as_ac_Header=\$ac_header_preproc"
6642 ac_res=`eval echo '${'$as_ac_Header'}'`
6643 { echo "$as_me:$LINENO: result: $ac_res" >&5
6644 echo "${ECHO_T}$ac_res" >&6; }
6647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6648 cat >>confdefs.h <<_ACEOF
6649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6657 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6659 # find the maximum length of command line arguments
6660 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6661 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6662 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 # On DJGPP, this test can blow up pretty badly due to problems in libc
6671 # (any single argument exceeding 2000 bytes causes a buffer overrun
6672 # during glob expansion). Even if it were fixed, the result of this
6673 # check would be larger than it should be.
6674 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6678 # Under GNU Hurd, this test is not required because there is
6679 # no limit to the length of command line arguments.
6680 # Libtool will interpret -1 as no limit whatsoever
6681 lt_cv_sys_max_cmd_len=-1;
6685 # On Win9x/ME, this test blows up -- it succeeds, but takes
6686 # about 5 minutes as the teststring grows exponentially.
6687 # Worse, since 9x/ME are not pre-emptively multitasking,
6688 # you end up with a "frozen" computer, even though with patience
6689 # the test eventually succeeds (with a max line length of 256k).
6690 # Instead, let's just punt: use the minimum linelength reported by
6691 # all of the supported platforms: 8192 (on NT/2K/XP).
6692 lt_cv_sys_max_cmd_len=8192;
6696 # On AmigaOS with pdksh, this test takes hours, literally.
6697 # So we just punt and use a minimum line length of 8192.
6698 lt_cv_sys_max_cmd_len=8192;
6701 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6702 # This has been around since 386BSD, at least. Likely further.
6703 if test -x /sbin/sysctl; then
6704 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6705 elif test -x /usr/sbin/sysctl; then
6706 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6708 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6710 # And add a safety zone
6711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6716 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6717 lt_cv_sys_max_cmd_len=196608
6721 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6722 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6723 # nice to cause kernel panics so lets avoid the loop below.
6724 # First set a reasonable default.
6725 lt_cv_sys_max_cmd_len=16384
6727 if test -x /sbin/sysconfig; then
6728 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6729 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6734 lt_cv_sys_max_cmd_len=102400
6736 sysv5* | sco5v6* | sysv4.2uw2*)
6737 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6738 if test -n "$kargmax"; then
6739 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6741 lt_cv_sys_max_cmd_len=32768
6745 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6746 if test -n "$lt_cv_sys_max_cmd_len"; then
6747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6750 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6751 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6752 = "XX$teststring") >/dev/null 2>&1 &&
6753 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6754 lt_cv_sys_max_cmd_len=$new_result &&
6755 test $i != 17 # 1/2 MB should be enough
6758 teststring=$teststring$teststring
6761 # Add a significant safety factor because C++ compilers can tack on massive
6762 # amounts of additional arguments before passing them to the linker.
6763 # It appears as though 1/2 is a usable value.
6764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6771 if test -n $lt_cv_sys_max_cmd_len ; then
6772 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6773 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6775 { echo "$as_me:$LINENO: result: none" >&5
6776 echo "${ECHO_T}none" >&6; }
6783 # Check for command to grab the raw symbol name followed by C symbol from nm.
6784 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6785 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6786 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 # These are sane defaults that work on at least a few old systems.
6791 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6793 # Character class describing NM global symbol codes.
6794 symcode='[BCDEGRST]'
6796 # Regexp to match symbols that can be accessed directly from C.
6797 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6799 # Transform an extracted symbol line into a proper C declaration
6800 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6802 # Transform an extracted symbol line into symbol name and symbol address
6803 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'"
6805 # Define system-specific variables.
6810 cygwin* | mingw* | pw32*)
6811 symcode='[ABCDGISTW]'
6813 hpux*) # Its linker distinguishes data from code symbols
6814 if test "$host_cpu" = ia64; then
6815 symcode='[ABCDEGRST]'
6817 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6818 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'"
6820 linux* | k*bsd*-gnu)
6821 if test "$host_cpu" = ia64; then
6822 symcode='[ABCDGIRSTW]'
6823 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6824 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'"
6828 symcode='[BCDEGRST]'
6831 symcode='[BCDEGQRST]'
6842 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6850 # Handle CRLF in mingw tool chain
6854 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6858 # If we're using GNU nm, then use its standard symbol codes.
6859 case `$NM -V 2>&1` in
6860 *GNU* | *'with BFD'*)
6861 symcode='[ABCDGIRSTW]' ;;
6864 # Try without a prefix undercore, then with it.
6865 for ac_symprfx in "" "_"; do
6867 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6868 symxfrm="\\1 $ac_symprfx\\2 \\2"
6870 # Write the raw and C identifiers.
6871 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6873 # Check to see that the pipe works correctly.
6877 cat > conftest.$ac_ext <<EOF
6882 void nm_test_func(){}
6886 int main(){nm_test_var='a';nm_test_func();return(0);}
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890 (eval $ac_compile) 2>&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; then
6894 # Now try to grab the symbols.
6896 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6897 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && test -s "$nlist"; then
6901 # Try sorting and uniquifying the output.
6902 if sort "$nlist" | uniq > "$nlist"T; then
6903 mv -f "$nlist"T "$nlist"
6908 # Make sure that we snagged all the symbols we need.
6909 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6910 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6911 cat <<EOF > conftest.$ac_ext
6917 # Now generate the symbol file.
6918 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6920 cat <<EOF >> conftest.$ac_ext
6921 #if defined (__STDC__) && __STDC__
6922 # define lt_ptr_t void *
6924 # define lt_ptr_t char *
6928 /* The mapping between symbol names and symbols. */
6933 lt_preloaded_symbols[] =
6936 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6937 cat <<\EOF >> conftest.$ac_ext
6945 # Now try linking the two files.
6946 mv conftest.$ac_objext conftstm.$ac_objext
6947 lt_save_LIBS="$LIBS"
6948 lt_save_CFLAGS="$CFLAGS"
6949 LIBS="conftstm.$ac_objext"
6950 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6952 (eval $ac_link) 2>&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6958 LIBS="$lt_save_LIBS"
6959 CFLAGS="$lt_save_CFLAGS"
6961 echo "cannot find nm_test_func in $nlist" >&5
6964 echo "cannot find nm_test_var in $nlist" >&5
6967 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6970 echo "$progname: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6973 rm -f conftest* conftst*
6975 # Do not use the global_symbol_pipe unless it works.
6976 if test "$pipe_works" = yes; then
6979 lt_cv_sys_global_symbol_pipe=
6985 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6986 lt_cv_sys_global_symbol_to_cdecl=
6988 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6989 { echo "$as_me:$LINENO: result: failed" >&5
6990 echo "${ECHO_T}failed" >&6; }
6992 { echo "$as_me:$LINENO: result: ok" >&5
6993 echo "${ECHO_T}ok" >&6; }
6996 { echo "$as_me:$LINENO: checking for objdir" >&5
6997 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6998 if test "${lt_cv_objdir+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 rm -f .libs 2>/dev/null
7002 mkdir .libs 2>/dev/null
7003 if test -d .libs; then
7006 # MS-DOS does not allow filenames that begin with a dot.
7009 rmdir .libs 2>/dev/null
7011 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7012 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7013 objdir=$lt_cv_objdir
7021 # AIX sometimes has problems with the GCC collect2 program. For some
7022 # reason, if we set the COLLECT_NAMES environment variable, the problems
7023 # vanish in a puff of smoke.
7024 if test "X${COLLECT_NAMES+set}" != Xset; then
7026 export COLLECT_NAMES
7031 # Sed substitution that helps us do robust quoting. It backslashifies
7032 # metacharacters that are still active within double-quoted strings.
7033 Xsed='sed -e 1s/^X//'
7034 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7036 # Same as above, but do not quote variable references.
7037 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7039 # Sed substitution to delay expansion of an escaped shell variable in a
7040 # double_quote_subst'ed string.
7041 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7043 # Sed substitution to avoid accidental globbing in evaled expressions
7044 no_glob_subst='s/\*/\\\*/g'
7050 default_ofile=libtool
7051 can_build_shared=yes
7053 # All known linkers require a `.a' archive for static linking (except MSVC,
7054 # which needs '.lib').
7056 ltmain="$ac_aux_dir/ltmain.sh"
7057 ofile="$default_ofile"
7058 with_gnu_ld="$lt_cv_prog_gnu_ld"
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}ar; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_prog_AR+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 if test -n "$AR"; then
7069 ac_cv_prog_AR="$AR" # Let the user override the test.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_prog_AR="${ac_tool_prefix}ar"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 if test -n "$AR"; then
7090 { echo "$as_me:$LINENO: result: $AR" >&5
7091 echo "${ECHO_T}$AR" >&6; }
7093 { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7099 if test -z "$ac_cv_prog_AR"; then
7101 # Extract the first word of "ar", so it can be a program name with args.
7102 set dummy ar; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 if test -n "$ac_ct_AR"; then
7109 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_prog_ac_ct_AR="ar"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7129 if test -n "$ac_ct_AR"; then
7130 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7131 echo "${ECHO_T}$ac_ct_AR" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7137 if test "x$ac_ct_AR" = x; then
7140 case $cross_compiling:$ac_tool_warned in
7142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7143 whose name does not start with the host triplet. If you think this
7144 configuration is useful to you, please write to autoconf@gnu.org." >&5
7145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7146 whose name does not start with the host triplet. If you think this
7147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7148 ac_tool_warned=yes ;;
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_RANLIB+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 if test -n "$RANLIB"; then
7165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 RANLIB=$ac_cv_prog_RANLIB
7185 if test -n "$RANLIB"; then
7186 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7187 echo "${ECHO_T}$RANLIB" >&6; }
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7195 if test -z "$ac_cv_prog_RANLIB"; then
7196 ac_ct_RANLIB=$RANLIB
7197 # Extract the first word of "ranlib", so it can be a program name with args.
7198 set dummy ranlib; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 if test -n "$ac_ct_RANLIB"; then
7205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_ac_ct_RANLIB="ranlib"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7225 if test -n "$ac_ct_RANLIB"; then
7226 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7227 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7233 if test "x$ac_ct_RANLIB" = x; then
7236 case $cross_compiling:$ac_tool_warned in
7238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7239 whose name does not start with the host triplet. If you think this
7240 configuration is useful to you, please write to autoconf@gnu.org." >&5
7241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7242 whose name does not start with the host triplet. If you think this
7243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7244 ac_tool_warned=yes ;;
7246 RANLIB=$ac_ct_RANLIB
7249 RANLIB="$ac_cv_prog_RANLIB"
7252 if test -n "$ac_tool_prefix"; then
7253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7254 set dummy ${ac_tool_prefix}strip; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_prog_STRIP+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 if test -n "$STRIP"; then
7261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 STRIP=$ac_cv_prog_STRIP
7281 if test -n "$STRIP"; then
7282 { echo "$as_me:$LINENO: result: $STRIP" >&5
7283 echo "${ECHO_T}$STRIP" >&6; }
7285 { echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6; }
7291 if test -z "$ac_cv_prog_STRIP"; then
7293 # Extract the first word of "strip", so it can be a program name with args.
7294 set dummy strip; ac_word=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 if test -n "$ac_ct_STRIP"; then
7301 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_prog_ac_ct_STRIP="strip"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7321 if test -n "$ac_ct_STRIP"; then
7322 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7323 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7325 { echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6; }
7329 if test "x$ac_ct_STRIP" = x; then
7332 case $cross_compiling:$ac_tool_warned in
7334 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7335 whose name does not start with the host triplet. If you think this
7336 configuration is useful to you, please write to autoconf@gnu.org." >&5
7337 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7338 whose name does not start with the host triplet. If you think this
7339 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7340 ac_tool_warned=yes ;;
7345 STRIP="$ac_cv_prog_STRIP"
7350 old_CFLAGS="$CFLAGS"
7352 # Set sane defaults for various variables
7353 test -z "$AR" && AR=ar
7354 test -z "$AR_FLAGS" && AR_FLAGS=cru
7355 test -z "$AS" && AS=as
7356 test -z "$CC" && CC=cc
7357 test -z "$LTCC" && LTCC=$CC
7358 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7359 test -z "$DLLTOOL" && DLLTOOL=dlltool
7360 test -z "$LD" && LD=ld
7361 test -z "$LN_S" && LN_S="ln -s"
7362 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7363 test -z "$NM" && NM=nm
7364 test -z "$SED" && SED=sed
7365 test -z "$OBJDUMP" && OBJDUMP=objdump
7366 test -z "$RANLIB" && RANLIB=:
7367 test -z "$STRIP" && STRIP=:
7368 test -z "$ac_objext" && ac_objext=o
7370 # Determine commands to create old-style static archives.
7371 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7372 old_postinstall_cmds='chmod 644 $oldlib'
7373 old_postuninstall_cmds=
7375 if test -n "$RANLIB"; then
7378 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7384 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7387 for cc_temp in $compiler""; do
7389 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7390 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7395 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7398 # Only perform the check for file, if the check method requires it
7399 case $deplibs_check_method in
7401 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7402 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7403 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7404 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7412 lt_save_MAGIC_CMD="$MAGIC_CMD"
7413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7415 for ac_dir in $ac_dummy; do
7417 test -z "$ac_dir" && ac_dir=.
7418 if test -f $ac_dir/${ac_tool_prefix}file; then
7419 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7420 if test -n "$file_magic_test_file"; then
7421 case $deplibs_check_method in
7423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7426 $EGREP "$file_magic_regex" > /dev/null; then
7431 *** Warning: the command libtool uses to detect shared libraries,
7432 *** $file_magic_cmd, produces output that libtool cannot recognize.
7433 *** The result is that libtool may fail to recognize shared libraries
7434 *** as such. This will affect the creation of libtool libraries that
7435 *** depend on shared libraries, but programs linked with such libtool
7436 *** libraries will work regardless of this problem. Nevertheless, you
7437 *** may want to report the problem to your system manager and/or to
7438 *** bug-libtool@gnu.org
7448 MAGIC_CMD="$lt_save_MAGIC_CMD"
7453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7454 if test -n "$MAGIC_CMD"; then
7455 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7456 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7462 if test -z "$lt_cv_path_MAGIC_CMD"; then
7463 if test -n "$ac_tool_prefix"; then
7464 { echo "$as_me:$LINENO: checking for file" >&5
7465 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7466 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7474 lt_save_MAGIC_CMD="$MAGIC_CMD"
7475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7477 for ac_dir in $ac_dummy; do
7479 test -z "$ac_dir" && ac_dir=.
7480 if test -f $ac_dir/file; then
7481 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7482 if test -n "$file_magic_test_file"; then
7483 case $deplibs_check_method in
7485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7488 $EGREP "$file_magic_regex" > /dev/null; then
7493 *** Warning: the command libtool uses to detect shared libraries,
7494 *** $file_magic_cmd, produces output that libtool cannot recognize.
7495 *** The result is that libtool may fail to recognize shared libraries
7496 *** as such. This will affect the creation of libtool libraries that
7497 *** depend on shared libraries, but programs linked with such libtool
7498 *** libraries will work regardless of this problem. Nevertheless, you
7499 *** may want to report the problem to your system manager and/or to
7500 *** bug-libtool@gnu.org
7510 MAGIC_CMD="$lt_save_MAGIC_CMD"
7515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7516 if test -n "$MAGIC_CMD"; then
7517 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7518 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7520 { echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6; }
7536 # Check whether --enable-libtool-lock was given.
7537 if test "${enable_libtool_lock+set}" = set; then
7538 enableval=$enable_libtool_lock;
7541 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7544 # Check whether --with-pic was given.
7545 if test "${with_pic+set}" = set; then
7546 withval=$with_pic; pic_mode="$withval"
7551 test -z "$pic_mode" && pic_mode=default
7553 # Use C for the default configuration in the libtool script
7557 ac_cpp='$CPP $CPPFLAGS'
7558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563 # Source file extension for C test sources.
7566 # Object file extension for compiled C test sources.
7570 # Code to be used in simple compile tests
7571 lt_simple_compile_test_code="int some_variable = 0;"
7573 # Code to be used in simple link tests
7574 lt_simple_link_test_code='int main(){return(0);}'
7577 # If no C compiler was specified, use CC.
7580 # If no C compiler flags were specified, use CFLAGS.
7581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7583 # Allow CC to be a program name with arguments.
7587 # save warnings/boilerplate of simple test code
7588 ac_outfile=conftest.$ac_objext
7589 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7590 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7591 _lt_compiler_boilerplate=`cat conftest.err`
7594 ac_outfile=conftest.$ac_objext
7595 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7596 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7597 _lt_linker_boilerplate=`cat conftest.err`
7602 ## There is no encapsulation within the following macros, do not change
7603 ## the running order or otherwise move them around unless you know exactly
7604 ## what you are doing...
7606 lt_prog_compiler_no_builtin_flag=
7608 if test "$GCC" = yes; then
7609 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7612 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7613 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7614 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 lt_cv_prog_compiler_rtti_exceptions=no
7618 ac_outfile=conftest.$ac_objext
7619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7620 lt_compiler_flag="-fno-rtti -fno-exceptions"
7621 # Insert the option either (1) after the last *FLAGS variable, or
7622 # (2) before a word containing "conftest.", or (3) at the end.
7623 # Note that $ac_compile itself does not contain backslashes and begins
7624 # with a dollar sign (not a hyphen), so the echo should work correctly.
7625 # The option is referenced via a variable to avoid confusing sed.
7626 lt_compile=`echo "$ac_compile" | $SED \
7627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7629 -e 's:$: $lt_compiler_flag:'`
7630 (eval echo "\"\$as_me:7630: $lt_compile\"" >&5)
7631 (eval "$lt_compile" 2>conftest.err)
7633 cat conftest.err >&5
7634 echo "$as_me:7634: \$? = $ac_status" >&5
7635 if (exit $ac_status) && test -s "$ac_outfile"; then
7636 # The compiler can only warn and ignore the option if not recognized
7637 # So say no if there are warnings other than the usual output.
7638 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7641 lt_cv_prog_compiler_rtti_exceptions=yes
7647 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7648 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7650 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7651 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7658 lt_prog_compiler_wl=
7659 lt_prog_compiler_pic=
7660 lt_prog_compiler_static=
7662 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7663 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7665 if test "$GCC" = yes; then
7666 lt_prog_compiler_wl='-Wl,'
7667 lt_prog_compiler_static='-static'
7671 # All AIX code is PIC.
7672 if test "$host_cpu" = ia64; then
7673 # AIX 5 now supports IA64 processor
7674 lt_prog_compiler_static='-Bstatic'
7679 # FIXME: we need at least 68020 code to build shared libraries, but
7680 # adding the `-m68020' flag to GCC prevents building anything better,
7682 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7685 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7686 # PIC is the default for these OSes.
7689 mingw* | cygwin* | pw32* | os2*)
7690 # This hack is so that the source file can tell whether it is being
7691 # built for inclusion in a dll (and should export symbols for example).
7692 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7693 # (--disable-auto-import) libraries
7694 lt_prog_compiler_pic='-DDLL_EXPORT'
7697 darwin* | rhapsody*)
7698 # PIC is the default on this platform
7699 # Common symbols not allowed in MH_DYLIB files
7700 lt_prog_compiler_pic='-fno-common'
7704 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7705 # Instead, we relocate shared libraries at runtime.
7709 # Just because we use GCC doesn't mean we suddenly get shared libraries
7710 # on systems that don't support them.
7711 lt_prog_compiler_can_build_shared=no
7716 if test -d /usr/nec; then
7717 lt_prog_compiler_pic=-Kconform_pic
7722 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7729 lt_prog_compiler_pic='-fPIC'
7735 lt_prog_compiler_pic='-fPIC'
7739 # PORTME Check for flag to pass linker flags through the system compiler.
7742 lt_prog_compiler_wl='-Wl,'
7743 if test "$host_cpu" = ia64; then
7744 # AIX 5 now supports IA64 processor
7745 lt_prog_compiler_static='-Bstatic'
7747 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7751 # PIC is the default on this platform
7752 # Common symbols not allowed in MH_DYLIB files
7753 case $cc_basename in
7755 lt_prog_compiler_pic='-qnocommon'
7756 lt_prog_compiler_wl='-Wl,'
7761 mingw* | cygwin* | pw32* | os2*)
7762 # This hack is so that the source file can tell whether it is being
7763 # built for inclusion in a dll (and should export symbols for example).
7764 lt_prog_compiler_pic='-DDLL_EXPORT'
7767 hpux9* | hpux10* | hpux11*)
7768 lt_prog_compiler_wl='-Wl,'
7769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7776 lt_prog_compiler_pic='+Z'
7779 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7780 lt_prog_compiler_static='${wl}-a ${wl}archive'
7783 irix5* | irix6* | nonstopux*)
7784 lt_prog_compiler_wl='-Wl,'
7785 # PIC (with -KPIC) is the default.
7786 lt_prog_compiler_static='-non_shared'
7790 lt_prog_compiler_pic='-KPIC'
7791 lt_prog_compiler_static='-Bstatic'
7794 linux* | k*bsd*-gnu)
7795 case $cc_basename in
7797 lt_prog_compiler_wl='-Wl,'
7798 lt_prog_compiler_pic='-KPIC'
7799 lt_prog_compiler_static='-static'
7801 pgcc* | pgf77* | pgf90* | pgf95*)
7802 # Portland Group compilers (*not* the Pentium gcc compiler,
7803 # which looks to be a dead project)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='-fpic'
7806 lt_prog_compiler_static='-Bstatic'
7809 lt_prog_compiler_wl='-Wl,'
7810 # All Alpha code is PIC.
7811 lt_prog_compiler_static='-non_shared'
7814 case `$CC -V 2>&1 | sed 5q` in
7817 lt_prog_compiler_pic='-KPIC'
7818 lt_prog_compiler_static='-Bstatic'
7819 lt_prog_compiler_wl='-Wl,'
7822 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7823 lt_prog_compiler_pic='-KPIC'
7824 lt_prog_compiler_static='-Bstatic'
7825 lt_prog_compiler_wl=''
7832 osf3* | osf4* | osf5*)
7833 lt_prog_compiler_wl='-Wl,'
7834 # All OSF/1 code is PIC.
7835 lt_prog_compiler_static='-non_shared'
7839 lt_prog_compiler_static='-non_shared'
7843 lt_prog_compiler_pic='-KPIC'
7844 lt_prog_compiler_static='-Bstatic'
7845 case $cc_basename in
7847 lt_prog_compiler_wl='-Qoption ld ';;
7849 lt_prog_compiler_wl='-Wl,';;
7854 lt_prog_compiler_wl='-Qoption ld '
7855 lt_prog_compiler_pic='-PIC'
7856 lt_prog_compiler_static='-Bstatic'
7859 sysv4 | sysv4.2uw2* | sysv4.3*)
7860 lt_prog_compiler_wl='-Wl,'
7861 lt_prog_compiler_pic='-KPIC'
7862 lt_prog_compiler_static='-Bstatic'
7866 if test -d /usr/nec ;then
7867 lt_prog_compiler_pic='-Kconform_pic'
7868 lt_prog_compiler_static='-Bstatic'
7872 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7873 lt_prog_compiler_wl='-Wl,'
7874 lt_prog_compiler_pic='-KPIC'
7875 lt_prog_compiler_static='-Bstatic'
7879 lt_prog_compiler_wl='-Wl,'
7880 lt_prog_compiler_can_build_shared=no
7884 lt_prog_compiler_pic='-pic'
7885 lt_prog_compiler_static='-Bstatic'
7889 lt_prog_compiler_can_build_shared=no
7894 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7895 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7898 # Check to make sure the PIC flag actually works.
7900 if test -n "$lt_prog_compiler_pic"; then
7902 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7903 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7904 if test "${lt_prog_compiler_pic_works+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 lt_prog_compiler_pic_works=no
7908 ac_outfile=conftest.$ac_objext
7909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7910 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7911 # Insert the option either (1) after the last *FLAGS variable, or
7912 # (2) before a word containing "conftest.", or (3) at the end.
7913 # Note that $ac_compile itself does not contain backslashes and begins
7914 # with a dollar sign (not a hyphen), so the echo should work correctly.
7915 # The option is referenced via a variable to avoid confusing sed.
7916 lt_compile=`echo "$ac_compile" | $SED \
7917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7919 -e 's:$: $lt_compiler_flag:'`
7920 (eval echo "\"\$as_me:7920: $lt_compile\"" >&5)
7921 (eval "$lt_compile" 2>conftest.err)
7923 cat conftest.err >&5
7924 echo "$as_me:7924: \$? = $ac_status" >&5
7925 if (exit $ac_status) && test -s "$ac_outfile"; then
7926 # The compiler can only warn and ignore the option if not recognized
7927 # So say no if there are warnings other than the usual output.
7928 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7931 lt_prog_compiler_pic_works=yes
7937 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7938 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7940 if test x"$lt_prog_compiler_pic_works" = xyes; then
7941 case $lt_prog_compiler_pic in
7943 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7946 lt_prog_compiler_pic=
7947 lt_prog_compiler_can_build_shared=no
7952 # For platforms which do not support PIC, -DPIC is meaningless:
7954 lt_prog_compiler_pic=
7957 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7962 # Check to make sure the static flag actually works.
7964 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7965 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7966 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7967 if test "${lt_prog_compiler_static_works+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 lt_prog_compiler_static_works=no
7971 save_LDFLAGS="$LDFLAGS"
7972 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7973 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7975 # The linker can only warn and ignore the option if not recognized
7976 # So say no if there are warnings
7977 if test -s conftest.err; then
7978 # Append any errors to the config.log.
7979 cat conftest.err 1>&5
7980 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7982 if diff conftest.exp conftest.er2 >/dev/null; then
7983 lt_prog_compiler_static_works=yes
7986 lt_prog_compiler_static_works=yes
7990 LDFLAGS="$save_LDFLAGS"
7993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7994 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7996 if test x"$lt_prog_compiler_static_works" = xyes; then
7999 lt_prog_compiler_static=
8003 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8004 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8005 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 lt_cv_prog_compiler_c_o=no
8009 $rm -r conftest 2>/dev/null
8013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8015 lt_compiler_flag="-o out/conftest2.$ac_objext"
8016 # Insert the option either (1) after the last *FLAGS variable, or
8017 # (2) before a word containing "conftest.", or (3) at the end.
8018 # Note that $ac_compile itself does not contain backslashes and begins
8019 # with a dollar sign (not a hyphen), so the echo should work correctly.
8020 lt_compile=`echo "$ac_compile" | $SED \
8021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8023 -e 's:$: $lt_compiler_flag:'`
8024 (eval echo "\"\$as_me:8024: $lt_compile\"" >&5)
8025 (eval "$lt_compile" 2>out/conftest.err)
8027 cat out/conftest.err >&5
8028 echo "$as_me:8028: \$? = $ac_status" >&5
8029 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8031 # The compiler can only warn and ignore the option if not recognized
8032 # So say no if there are warnings
8033 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8036 lt_cv_prog_compiler_c_o=yes
8041 # SGI C++ compiler will create directory out/ii_files/ for
8042 # template instantiation
8043 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8044 $rm out/* && rmdir out
8050 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8051 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8054 hard_links="nottested"
8055 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8056 # do not overwrite the value of need_locks provided by the user
8057 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8058 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8063 ln conftest.a conftest.b 2>&5 || hard_links=no
8064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8065 { echo "$as_me:$LINENO: result: $hard_links" >&5
8066 echo "${ECHO_T}$hard_links" >&6; }
8067 if test "$hard_links" = no; then
8068 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8069 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8076 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8077 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8080 allow_undefined_flag=
8081 enable_shared_with_static_runtimes=no
8083 archive_expsym_cmds=
8084 old_archive_From_new_cmds=
8085 old_archive_from_expsyms_cmds=
8086 export_dynamic_flag_spec=
8087 whole_archive_flag_spec=
8088 thread_safe_flag_spec=
8089 hardcode_libdir_flag_spec=
8090 hardcode_libdir_flag_spec_ld=
8091 hardcode_libdir_separator=
8094 hardcode_shlibpath_var=unsupported
8095 link_all_deplibs=unknown
8096 hardcode_automatic=no
8099 always_export_symbols=no
8100 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8101 # include_expsyms should be a list of space-separated symbols to be *always*
8102 # included in the symbol list
8104 # exclude_expsyms can be an extended regexp of symbols to exclude
8105 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8106 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8107 # as well as any symbol that contains `d'.
8108 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8109 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8110 # platforms (ab)use it in PIC code, but their linkers get confused if
8111 # the symbol is explicitly referenced. Since portable code cannot
8112 # rely on this symbol name, it's probably fine to never include it in
8113 # preloaded symbol tables.
8114 extract_expsyms_cmds=
8115 # Just being paranoid about ensuring that cc_basename is set.
8116 for cc_temp in $compiler""; do
8118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8127 cygwin* | mingw* | pw32*)
8128 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8129 # When not using gcc, we currently assume that we are using
8130 # Microsoft Visual C++.
8131 if test "$GCC" != yes; then
8136 # we just hope/assume this is gcc and not c89 (= MSVC++)
8145 if test "$with_gnu_ld" = yes; then
8146 # If archive_cmds runs LD, not CC, wlarc should be empty
8149 # Set some defaults for GNU ld with shared library support. These
8150 # are reset later if shared libraries are not supported. Putting them
8151 # here allows them to be overridden if necessary.
8152 runpath_var=LD_RUN_PATH
8153 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8154 export_dynamic_flag_spec='${wl}--export-dynamic'
8155 # ancient GNU ld didn't support --whole-archive et. al.
8156 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8157 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8159 whole_archive_flag_spec=
8161 supports_anon_versioning=no
8162 case `$LD -v 2>/dev/null` in
8163 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8164 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8165 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8166 *\ 2.11.*) ;; # other 2.11 versions
8167 *) supports_anon_versioning=yes ;;
8170 # See if GNU ld supports shared libraries.
8172 aix3* | aix4* | aix5*)
8173 # On AIX/PPC, the GNU linker is very broken
8174 if test "$host_cpu" != ia64; then
8178 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8179 *** to be unable to reliably create shared libraries on AIX.
8180 *** Therefore, libtool is disabling shared libraries support. If you
8181 *** really care for shared libraries, you may want to modify your PATH
8182 *** so that a non-GNU linker is found, and then restart.
8189 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)'
8190 hardcode_libdir_flag_spec='-L$libdir'
8191 hardcode_minus_L=yes
8193 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8194 # that the semantics of dynamic libraries on AmigaOS, at least up
8195 # to version 4, is to share data among multiple programs linked
8196 # with the same dynamic library. Since this doesn't match the
8197 # behavior of shared libraries on other platforms, we can't use
8203 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8204 allow_undefined_flag=unsupported
8205 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8206 # support --undefined. This deserves some investigation. FIXME
8207 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213 cygwin* | mingw* | pw32*)
8214 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8215 # as there is no search path for DLLs.
8216 hardcode_libdir_flag_spec='-L$libdir'
8217 allow_undefined_flag=unsupported
8218 always_export_symbols=no
8219 enable_shared_with_static_runtimes=yes
8220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8222 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8224 # If the export-symbols file already is a .def file (1st line
8225 # is EXPORTS), use it as is; otherwise, prepend...
8226 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8227 cp $export_symbols $output_objdir/$soname.def;
8229 echo EXPORTS > $output_objdir/$soname.def;
8230 cat $export_symbols >> $output_objdir/$soname.def;
8232 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8240 hardcode_shlibpath_var=no
8241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8242 export_dynamic_flag_spec='${wl}-E'
8243 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8244 # Instead, shared libraries are loaded at an image base (0x10000000 by
8245 # default) and relocated if they conflict, which is a slow very memory
8246 # consuming and fragmenting process. To avoid this, we pick a random,
8247 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8248 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8249 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8250 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'
8253 gnu* | linux* | k*bsd*-gnu)
8254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8256 case $cc_basename,$host_cpu in
8257 pgcc*) # Portland Group C compiler
8258 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'
8259 tmp_addflag=' $pic_flag'
8261 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8262 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'
8263 tmp_addflag=' $pic_flag -Mnomain' ;;
8264 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8265 tmp_addflag=' -i_dynamic' ;;
8266 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8267 tmp_addflag=' -i_dynamic -nofor_main' ;;
8268 ifc* | ifort*) # Intel Fortran compiler
8269 tmp_addflag=' -nofor_main' ;;
8271 case `$CC -V 2>&1 | sed 5q` in
8272 *Sun\ C*) # Sun C 5.9
8273 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'
8274 tmp_sharedflag='-G' ;;
8275 *Sun\ F*) # Sun Fortran 8.3
8276 tmp_sharedflag='-G' ;;
8278 tmp_sharedflag='-shared' ;;
8280 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8282 if test $supports_anon_versioning = yes; then
8283 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8284 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8285 $echo "local: *; };" >> $output_objdir/$libname.ver~
8286 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8295 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8304 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8308 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8309 *** create shared libraries on Solaris systems. Therefore, libtool
8310 *** is disabling shared libraries support. We urge you to upgrade GNU
8311 *** binutils to release 2.9.1 or newer. Another option is to modify
8312 *** your PATH or compiler configuration so that the native linker is
8313 *** used, and then restart.
8316 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8325 case `$LD -v 2>&1` in
8326 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8330 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8331 *** reliably create shared libraries on SCO systems. Therefore, libtool
8332 *** is disabling shared libraries support. We urge you to upgrade GNU
8333 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8334 *** your PATH or compiler configuration so that the native linker is
8335 *** used, and then restart.
8340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8341 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8352 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8355 hardcode_shlibpath_var=no
8359 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8361 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8368 if test "$ld_shlibs" = no; then
8370 hardcode_libdir_flag_spec=
8371 export_dynamic_flag_spec=
8372 whole_archive_flag_spec=
8375 # PORTME fill in a description of your system's linker (not GNU ld)
8378 allow_undefined_flag=unsupported
8379 always_export_symbols=yes
8380 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'
8381 # Note: this linker hardcodes the directories in LIBPATH if there
8382 # are no directories specified by -L.
8383 hardcode_minus_L=yes
8384 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8385 # Neither direct hardcoding nor static linking is supported with a
8387 hardcode_direct=unsupported
8392 if test "$host_cpu" = ia64; then
8393 # On IA64, the linker does run time linking by default, so we don't
8394 # have to do anything special.
8395 aix_use_runtimelinking=no
8396 exp_sym_flag='-Bexport'
8399 # If we're using GNU nm, then we don't want the "-C" option.
8400 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8401 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8402 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'
8404 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'
8406 aix_use_runtimelinking=no
8408 # Test if we are trying to use run time linking or normal
8409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8410 # need to do runtime linking.
8411 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8412 for ld_flag in $LDFLAGS; do
8413 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8414 aix_use_runtimelinking=yes
8421 exp_sym_flag='-bexport'
8422 no_entry_flag='-bnoentry'
8425 # When large executables or shared objects are built, AIX ld can
8426 # have problems creating the table of contents. If linking a library
8427 # or program results in "error TOC overflow" add -mminimal-toc to
8428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8433 hardcode_libdir_separator=':'
8434 link_all_deplibs=yes
8436 if test "$GCC" = yes; then
8437 case $host_os in aix4.[012]|aix4.[012].*)
8438 # We only want to do this on AIX 4.2 and lower, the check
8439 # below for broken collect2 doesn't work under 4.3+
8440 collect2name=`${CC} -print-prog-name=collect2`
8441 if test -f "$collect2name" && \
8442 strings "$collect2name" | grep resolve_lib_name >/dev/null
8444 # We have reworked collect2
8447 # We have old collect2
8448 hardcode_direct=unsupported
8449 # It fails to find uninstalled libraries when the uninstalled
8450 # path is not listed in the libpath. Setting hardcode_minus_L
8451 # to unsupported forces relinking
8452 hardcode_minus_L=yes
8453 hardcode_libdir_flag_spec='-L$libdir'
8454 hardcode_libdir_separator=
8458 shared_flag='-shared'
8459 if test "$aix_use_runtimelinking" = yes; then
8460 shared_flag="$shared_flag "'${wl}-G'
8464 if test "$host_cpu" = ia64; then
8465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8466 # chokes on -Wl,-G. The following line is correct:
8469 if test "$aix_use_runtimelinking" = yes; then
8470 shared_flag='${wl}-G'
8472 shared_flag='${wl}-bM:SRE'
8477 # It seems that -bexpall does not export symbols beginning with
8478 # underscore (_), so it is better to generate a list of symbols to export.
8479 always_export_symbols=yes
8480 if test "$aix_use_runtimelinking" = yes; then
8481 # Warning - without using the other runtime loading flags (-brtl),
8482 # -berok will link without error, but may produce a broken library.
8483 allow_undefined_flag='-berok'
8484 # Determine the default libpath from the value encoded in an empty executable.
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (ac_try="$ac_link"
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_link") 2>conftest.er1
8509 grep -v '^ *+' conftest.er1 >conftest.err
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } && {
8514 test -z "$ac_c_werror_flag" ||
8515 test ! -s conftest.err
8516 } && test -s conftest$ac_exeext &&
8517 $as_test_x conftest$ac_exeext; then
8519 lt_aix_libpath_sed='
8520 /Import File Strings/,/^$/ {
8526 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8527 # Check for a 64-bit object if we didn't find anything.
8528 if test -z "$aix_libpath"; then
8529 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8539 conftest$ac_exeext conftest.$ac_ext
8540 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8542 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8543 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"
8545 if test "$host_cpu" = ia64; then
8546 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8547 allow_undefined_flag="-z nodefs"
8548 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"
8550 # Determine the default libpath from the value encoded in an empty executable.
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8566 rm -f conftest.$ac_objext conftest$ac_exeext
8567 if { (ac_try="$ac_link"
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_link") 2>conftest.er1
8575 grep -v '^ *+' conftest.er1 >conftest.err
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } && {
8580 test -z "$ac_c_werror_flag" ||
8581 test ! -s conftest.err
8582 } && test -s conftest$ac_exeext &&
8583 $as_test_x conftest$ac_exeext; then
8585 lt_aix_libpath_sed='
8586 /Import File Strings/,/^$/ {
8592 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8593 # Check for a 64-bit object if we didn't find anything.
8594 if test -z "$aix_libpath"; then
8595 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8605 conftest$ac_exeext conftest.$ac_ext
8606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8608 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8609 # Warning - without using the other run time loading flags,
8610 # -berok will link without error, but may produce a broken library.
8611 no_undefined_flag=' ${wl}-bernotok'
8612 allow_undefined_flag=' ${wl}-berok'
8613 # Exported symbols can be pulled into shared objects from archives
8614 whole_archive_flag_spec='$convenience'
8615 archive_cmds_need_lc=yes
8616 # This is similar to how AIX traditionally builds its shared libraries.
8617 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'
8623 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)'
8624 hardcode_libdir_flag_spec='-L$libdir'
8625 hardcode_minus_L=yes
8626 # see comment about different semantics on the GNU ld section
8631 export_dynamic_flag_spec=-rdynamic
8634 cygwin* | mingw* | pw32*)
8635 # When not using gcc, we currently assume that we are using
8636 # Microsoft Visual C++.
8637 # hardcode_libdir_flag_spec is actually meaningless, as there is
8638 # no search path for DLLs.
8639 hardcode_libdir_flag_spec=' '
8640 allow_undefined_flag=unsupported
8641 # Tell ltmain to make .lib files, not .a files.
8643 # Tell ltmain to make .dll files, not .so files.
8645 # FIXME: Setting linknames here is a bad hack.
8646 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8647 # The linker will automatically build a .lib file if we build a DLL.
8648 old_archive_From_new_cmds='true'
8649 # FIXME: Should let the user specify the lib program.
8650 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8651 fix_srcfile_path='`cygpath -w "$srcfile"`'
8652 enable_shared_with_static_runtimes=yes
8655 darwin* | rhapsody*)
8657 rhapsody* | darwin1.[012])
8658 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8661 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8662 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8664 case ${MACOSX_DEPLOYMENT_TARGET} in
8666 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8669 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8675 archive_cmds_need_lc=no
8677 hardcode_automatic=yes
8678 hardcode_shlibpath_var=unsupported
8679 whole_archive_flag_spec=''
8680 link_all_deplibs=yes
8681 if test "$GCC" = yes ; then
8682 output_verbose_link_cmd='echo'
8683 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8684 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8685 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8686 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8687 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}'
8689 case $cc_basename in
8691 output_verbose_link_cmd='echo'
8692 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8693 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8694 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8695 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}'
8696 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}'
8706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8707 hardcode_libdir_flag_spec='-L$libdir'
8708 hardcode_shlibpath_var=no
8715 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8716 # support. Future versions do this automatically, but an explicit c++rt0.o
8717 # does not break anything, and helps significantly (at the cost of a little
8720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8721 hardcode_libdir_flag_spec='-R$libdir'
8723 hardcode_shlibpath_var=no
8726 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8730 hardcode_minus_L=yes
8731 hardcode_shlibpath_var=no
8734 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8735 freebsd* | dragonfly*)
8736 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8737 hardcode_libdir_flag_spec='-R$libdir'
8739 hardcode_shlibpath_var=no
8743 if test "$GCC" = yes; then
8744 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'
8746 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'
8748 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8749 hardcode_libdir_separator=:
8752 # hardcode_minus_L: Not really in the search PATH,
8753 # but as the default location of the library.
8754 hardcode_minus_L=yes
8755 export_dynamic_flag_spec='${wl}-E'
8759 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8762 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8764 if test "$with_gnu_ld" = no; then
8765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8766 hardcode_libdir_separator=:
8769 export_dynamic_flag_spec='${wl}-E'
8771 # hardcode_minus_L: Not really in the search PATH,
8772 # but as the default location of the library.
8773 hardcode_minus_L=yes
8778 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8781 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8787 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8803 if test "$with_gnu_ld" = no; then
8804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8805 hardcode_libdir_separator=:
8809 hardcode_libdir_flag_spec_ld='+b $libdir'
8811 hardcode_shlibpath_var=no
8815 export_dynamic_flag_spec='${wl}-E'
8817 # hardcode_minus_L: Not really in the search PATH,
8818 # but as the default location of the library.
8819 hardcode_minus_L=yes
8825 irix5* | irix6* | nonstopux*)
8826 if test "$GCC" = yes; then
8827 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'
8829 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'
8830 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833 hardcode_libdir_separator=:
8834 link_all_deplibs=yes
8838 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8841 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8843 hardcode_libdir_flag_spec='-R$libdir'
8845 hardcode_shlibpath_var=no
8849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852 hardcode_libdir_separator=:
8853 hardcode_shlibpath_var=no
8857 if test -f /usr/libexec/ld.so; then
8859 hardcode_shlibpath_var=no
8860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8862 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8863 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8864 export_dynamic_flag_spec='${wl}-E'
8867 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8869 hardcode_libdir_flag_spec='-R$libdir'
8872 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8883 hardcode_libdir_flag_spec='-L$libdir'
8884 hardcode_minus_L=yes
8885 allow_undefined_flag=unsupported
8886 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'
8887 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8891 if test "$GCC" = yes; then
8892 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8893 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'
8895 allow_undefined_flag=' -expect_unresolved \*'
8896 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'
8898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8899 hardcode_libdir_separator=:
8902 osf4* | osf5*) # as osf3* with the addition of -msym flag
8903 if test "$GCC" = yes; then
8904 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8905 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'
8906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8908 allow_undefined_flag=' -expect_unresolved \*'
8909 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'
8910 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8911 $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'
8913 # Both c and cxx compiler support -rpath directly
8914 hardcode_libdir_flag_spec='-rpath $libdir'
8916 hardcode_libdir_separator=:
8920 no_undefined_flag=' -z text'
8921 if test "$GCC" = yes; then
8923 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8924 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8925 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8928 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8929 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8932 hardcode_libdir_flag_spec='-R$libdir'
8933 hardcode_shlibpath_var=no
8935 solaris2.[0-5] | solaris2.[0-5].*) ;;
8937 # The compiler driver will combine and reorder linker options,
8938 # but understands `-z linker_flag'. GCC discards it without `$wl',
8939 # but is careful enough not to reorder.
8940 # Supported since Solaris 2.6 (maybe 2.5.1?)
8941 if test "$GCC" = yes; then
8942 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8944 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8948 link_all_deplibs=yes
8952 if test "x$host_vendor" = xsequent; then
8953 # Use $CC to link under sequent, because it throws in some extra .o
8954 # files that make .init and .fini sections work.
8955 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8957 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8959 hardcode_libdir_flag_spec='-L$libdir'
8961 hardcode_minus_L=yes
8962 hardcode_shlibpath_var=no
8966 case $host_vendor in
8968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8969 hardcode_direct=yes # is this really true???
8972 ## LD is ld it makes a PLAMLIB
8973 ## CC just makes a GrossModule.
8974 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8975 reload_cmds='$CC -r -o $output$reload_objs'
8979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8983 runpath_var='LD_RUN_PATH'
8984 hardcode_shlibpath_var=no
8988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8989 hardcode_shlibpath_var=no
8990 export_dynamic_flag_spec='-Bexport'
8994 if test -d /usr/nec; then
8995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996 hardcode_shlibpath_var=no
8997 runpath_var=LD_RUN_PATH
8998 hardcode_runpath_var=yes
9003 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9004 no_undefined_flag='${wl}-z,text'
9005 archive_cmds_need_lc=no
9006 hardcode_shlibpath_var=no
9007 runpath_var='LD_RUN_PATH'
9009 if test "$GCC" = yes; then
9010 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9011 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9018 sysv5* | sco3.2v5* | sco5v6*)
9019 # Note: We can NOT use -z defs as we might desire, because we do not
9020 # link with -lc, and that would cause any symbols used from libc to
9021 # always be unresolved, which means just about no library would
9022 # ever link correctly. If we're not using GNU ld we use -z text
9023 # though, which does catch some bad symbols but isn't as heavy-handed
9025 no_undefined_flag='${wl}-z,text'
9026 allow_undefined_flag='${wl}-z,nodefs'
9027 archive_cmds_need_lc=no
9028 hardcode_shlibpath_var=no
9029 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9030 hardcode_libdir_separator=':'
9031 link_all_deplibs=yes
9032 export_dynamic_flag_spec='${wl}-Bexport'
9033 runpath_var='LD_RUN_PATH'
9035 if test "$GCC" = yes; then
9036 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9037 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9040 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9046 hardcode_libdir_flag_spec='-L$libdir'
9047 hardcode_shlibpath_var=no
9056 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9057 echo "${ECHO_T}$ld_shlibs" >&6; }
9058 test "$ld_shlibs" = no && can_build_shared=no
9061 # Do we need to explicitly link libc?
9063 case "x$archive_cmds_need_lc" in
9065 # Assume -lc should be added
9066 archive_cmds_need_lc=yes
9068 if test "$enable_shared" = yes && test "$GCC" = yes; then
9069 case $archive_cmds in
9071 # FIXME: we may have to deal with multi-command sequences.
9074 # Test whether the compiler implicitly links with -lc since on some
9075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9076 # to ld, don't add -lc before -lgcc.
9077 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9078 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9083 (eval $ac_compile) 2>&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } 2>conftest.err; then
9089 libobjs=conftest.$ac_objext
9091 wl=$lt_prog_compiler_wl
9092 pic_flag=$lt_prog_compiler_pic
9098 lt_save_allow_undefined_flag=$allow_undefined_flag
9099 allow_undefined_flag=
9100 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9101 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }
9106 archive_cmds_need_lc=no
9108 archive_cmds_need_lc=yes
9110 allow_undefined_flag=$lt_save_allow_undefined_flag
9112 cat conftest.err 1>&5
9115 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9116 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9123 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9124 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9126 libname_spec='lib$name'
9134 shlibpath_overrides_runpath=unknown
9136 dynamic_linker="$host_os ld.so"
9137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9139 if test "$GCC" = yes; then
9141 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9142 *) lt_awk_arg="/^libraries:/" ;;
9144 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9145 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9146 # if the path contains ";" then we assume it to be the separator
9147 # otherwise default to the standard path separator (i.e. ":") - it is
9148 # assumed that no part of a normal pathname contains ";" but that should
9149 # okay in the real world where ";" in dirpaths is itself problematic.
9150 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9152 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9154 # Ok, now we have the path, separated by spaces, we can step through it
9155 # and add multilib dir if necessary.
9156 lt_tmp_lt_search_path_spec=
9157 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9158 for lt_sys_path in $lt_search_path_spec; do
9159 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9160 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9162 test -d "$lt_sys_path" && \
9163 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9166 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9167 BEGIN {RS=" "; FS="/|\n";} {
9170 for (lt_i = NF; lt_i > 0; lt_i--) {
9171 if ($lt_i != "" && $lt_i != ".") {
9172 if ($lt_i == "..") {
9175 if (lt_count == 0) {
9176 lt_foo="/" $lt_i lt_foo;
9183 if (lt_foo != "") { lt_freq[lt_foo]++; }
9184 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9186 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9188 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9191 hardcode_into_libs=no
9193 # when you set need_version to no, make sure it does not cause -set_version
9194 # flags to be left without arguments
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9201 shlibpath_var=LIBPATH
9203 # AIX 3 has no versioning support, so we append a major version to the name.
9204 soname_spec='${libname}${release}${shared_ext}$major'
9211 hardcode_into_libs=yes
9212 if test "$host_cpu" = ia64; then
9213 # AIX 5 supports IA64
9214 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9215 shlibpath_var=LD_LIBRARY_PATH
9217 # With GCC up to 2.95.x, collect2 would create an import file
9218 # for dependence libraries. The import file would start with
9219 # the line `#! .'. This would cause the generated library to
9220 # depend on `.', always an invalid library. This was fixed in
9221 # development snapshots of GCC prior to 3.0.
9223 aix4 | aix4.[01] | aix4.[01].*)
9224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9226 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9233 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9234 # soname into executable. Probably we can add versioning support to
9235 # collect2, so additional links can be useful in future.
9236 if test "$aix_use_runtimelinking" = yes; then
9237 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9238 # instead of lib<name>.a to let people know that these are not
9239 # typical AIX shared libraries.
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242 # We preserve .a as extension for shared libraries through AIX4.2
9243 # and later when we are not doing run time linking.
9244 library_names_spec='${libname}${release}.a $libname.a'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LIBPATH
9252 library_names_spec='$libname.ixlibrary $libname.a'
9253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9254 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'
9258 library_names_spec='${libname}${shared_ext}'
9259 dynamic_linker="$host_os ld.so"
9260 shlibpath_var=LIBRARY_PATH
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9272 # the default ld.so.conf also contains /usr/contrib/lib and
9273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9274 # libtool to hard-code these into programs
9277 cygwin* | mingw* | pw32*)
9278 version_type=windows
9283 case $GCC,$host_os in
9284 yes,cygwin* | yes,mingw* | yes,pw32*)
9285 library_names_spec='$libname.dll.a'
9286 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9287 postinstall_cmds='base_file=`basename \${file}`~
9288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9289 dldir=$destdir/`dirname \$dlpath`~
9290 test -d \$dldir || mkdir -p \$dldir~
9291 $install_prog $dir/$dlname \$dldir/$dlname~
9292 chmod a+x \$dldir/$dlname'
9293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9294 dlpath=$dir/\$dldll~
9296 shlibpath_overrides_runpath=yes
9300 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9301 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9302 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9305 # MinGW DLLs use traditional 'lib' prefix
9306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9307 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9308 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9309 # It is most probably a Windows format PATH printed by
9310 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9311 # path with ; separators, and with drive letters. We can handle the
9312 # drive letters (cygwin fileutils understands them), so leave them,
9313 # especially as we might pass files found there to a mingw objdump,
9314 # which wouldn't understand a cygwinified path. Ahh.
9315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9321 # pw32 DLLs use 'pw' prefix rather than 'lib'
9322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9331 dynamic_linker='Win32 ld.exe'
9332 # FIXME: first we should search . and the directory the executable is in
9336 darwin* | rhapsody*)
9337 dynamic_linker="$host_os dyld"
9341 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9342 soname_spec='${libname}${release}${major}$shared_ext'
9343 shlibpath_overrides_runpath=yes
9344 shlibpath_var=DYLD_LIBRARY_PATH
9345 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9347 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9348 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 shlibpath_var=LD_LIBRARY_PATH
9364 freebsd* | dragonfly*)
9365 # DragonFly does not have aout. When/if they implement a new
9366 # versioning mechanism, adjust this.
9367 if test -x /usr/bin/objformat; then
9368 objformat=`/usr/bin/objformat`
9371 freebsd[123]*) objformat=aout ;;
9375 version_type=freebsd-$objformat
9376 case $version_type in
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9387 shlibpath_var=LD_LIBRARY_PATH
9390 shlibpath_overrides_runpath=yes
9392 freebsd3.[01]* | freebsdelf3.[01]*)
9393 shlibpath_overrides_runpath=yes
9394 hardcode_into_libs=yes
9396 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9397 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9398 shlibpath_overrides_runpath=no
9399 hardcode_into_libs=yes
9401 *) # from 4.6 on, and DragonFly
9402 shlibpath_overrides_runpath=yes
9403 hardcode_into_libs=yes
9412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9413 soname_spec='${libname}${release}${shared_ext}$major'
9414 shlibpath_var=LD_LIBRARY_PATH
9415 hardcode_into_libs=yes
9418 hpux9* | hpux10* | hpux11*)
9419 # Give a soname corresponding to the major version so that dld.sl refuses to
9420 # link against other versions.
9427 hardcode_into_libs=yes
9428 dynamic_linker="$host_os dld.so"
9429 shlibpath_var=LD_LIBRARY_PATH
9430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 if test "X$HPUX_IA64_MODE" = X32; then
9434 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9436 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9442 hardcode_into_libs=yes
9443 dynamic_linker="$host_os dld.sl"
9444 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9445 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9453 dynamic_linker="$host_os dld.sl"
9454 shlibpath_var=SHLIB_PATH
9455 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457 soname_spec='${libname}${release}${shared_ext}$major'
9460 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9461 postinstall_cmds='chmod 555 $lib'
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9469 soname_spec='${libname}${release}${shared_ext}$major'
9470 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9471 shlibpath_var=LD_LIBRARY_PATH
9472 shlibpath_overrides_runpath=no
9473 hardcode_into_libs=yes
9476 irix5* | irix6* | nonstopux*)
9478 nonstopux*) version_type=nonstopux ;;
9480 if test "$lt_cv_prog_gnu_ld" = yes; then
9488 soname_spec='${libname}${release}${shared_ext}$major'
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9491 irix5* | nonstopux*)
9495 case $LD in # libtool.m4 will add one of these switches to LD
9496 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9497 libsuff= shlibsuff= libmagic=32-bit;;
9498 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9499 libsuff=32 shlibsuff=N32 libmagic=N32;;
9500 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9501 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9502 *) libsuff= shlibsuff= libmagic=never-match;;
9506 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9507 shlibpath_overrides_runpath=no
9508 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9509 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9510 hardcode_into_libs=yes
9513 # No shared lib support for Linux oldld, aout, or coff.
9514 linux*oldld* | linux*aout* | linux*coff*)
9518 # This must be Linux ELF.
9519 linux* | k*bsd*-gnu)
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524 soname_spec='${libname}${release}${shared_ext}$major'
9525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 shlibpath_overrides_runpath=no
9528 # This implies no fast_install, which is unacceptable.
9529 # Some rework will be needed to allow for fast_install
9530 # before this can be enabled.
9531 hardcode_into_libs=yes
9533 # Append ld.so.conf contents to the search path
9534 if test -f /etc/ld.so.conf; then
9535 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' ' '`
9536 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9539 # We used to test for /lib/ld.so.1 and disable shared libraries on
9540 # powerpc, because MkLinux only supported shared libraries with the
9541 # GNU dynamic linker. Since this was broken with cross compilers,
9542 # most powerpc-linux boxes support dynamic linking these days and
9543 # people can always --disable-shared, the test was removed, and we
9544 # assume the GNU/Linux dynamic linker is in use.
9545 dynamic_linker='GNU/Linux ld.so'
9552 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9555 dynamic_linker='NetBSD (a.out) ld.so'
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 dynamic_linker='NetBSD ld.elf_so'
9561 shlibpath_var=LD_LIBRARY_PATH
9562 shlibpath_overrides_runpath=yes
9563 hardcode_into_libs=yes
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569 shlibpath_var=LD_LIBRARY_PATH
9570 shlibpath_overrides_runpath=yes
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath=yes
9585 sys_lib_dlsearch_path_spec="/usr/lib"
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9593 openbsd2.[89] | openbsd2.[89].*)
9594 shlibpath_overrides_runpath=no
9597 shlibpath_overrides_runpath=yes
9601 shlibpath_overrides_runpath=yes
9606 libname_spec='$name'
9609 library_names_spec='$libname${shared_ext} $libname.a'
9610 dynamic_linker='OS/2 ld.exe'
9611 shlibpath_var=LIBPATH
9614 osf3* | osf4* | osf5*)
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9622 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 soname_spec='${libname}${release}${shared_ext}$major'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 shlibpath_overrides_runpath=yes
9637 hardcode_into_libs=yes
9638 # ldd complains unless libraries are executable
9639 postinstall_cmds='chmod +x $lib'
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9645 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9646 shlibpath_var=LD_LIBRARY_PATH
9647 shlibpath_overrides_runpath=yes
9648 if test "$with_gnu_ld" = yes; then
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 shlibpath_var=LD_LIBRARY_PATH
9659 case $host_vendor in
9661 shlibpath_overrides_runpath=no
9663 export_dynamic_flag_spec='${wl}-Blargedynsym'
9664 runpath_var=LD_RUN_PATH
9672 shlibpath_overrides_runpath=no
9673 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9679 if test -d /usr/nec ;then
9681 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9682 soname_spec='$libname${shared_ext}.$major'
9683 shlibpath_var=LD_LIBRARY_PATH
9687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9688 version_type=freebsd-elf
9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9692 soname_spec='${libname}${release}${shared_ext}$major'
9693 shlibpath_var=LD_LIBRARY_PATH
9694 hardcode_into_libs=yes
9695 if test "$with_gnu_ld" = yes; then
9696 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9697 shlibpath_overrides_runpath=no
9699 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9700 shlibpath_overrides_runpath=yes
9703 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9707 sys_lib_dlsearch_path_spec='/usr/lib'
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9714 shlibpath_var=LD_LIBRARY_PATH
9721 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9722 echo "${ECHO_T}$dynamic_linker" >&6; }
9723 test "$dynamic_linker" = no && can_build_shared=no
9725 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9726 if test "$GCC" = yes; then
9727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9730 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9731 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9733 if test -n "$hardcode_libdir_flag_spec" || \
9734 test -n "$runpath_var" || \
9735 test "X$hardcode_automatic" = "Xyes" ; then
9737 # We can hardcode non-existant directories.
9738 if test "$hardcode_direct" != no &&
9739 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9740 # have to relink, otherwise we might link with an installed library
9741 # when we should be linking with a yet-to-be-installed one
9742 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9743 test "$hardcode_minus_L" != no; then
9744 # Linking always hardcodes the temporary library directory.
9745 hardcode_action=relink
9747 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9748 hardcode_action=immediate
9751 # We cannot hardcode anything, or else we can only hardcode existing
9753 hardcode_action=unsupported
9755 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9756 echo "${ECHO_T}$hardcode_action" >&6; }
9758 if test "$hardcode_action" = relink; then
9759 # Fast installation is not supported
9760 enable_fast_install=no
9761 elif test "$shlibpath_overrides_runpath" = yes ||
9762 test "$enable_shared" = no; then
9763 # Fast installation is not necessary
9764 enable_fast_install=needless
9769 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9770 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9771 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9774 { echo "$as_me:$LINENO: result: yes" >&5
9775 echo "${ECHO_T}yes" >&6; }
9777 # FIXME - insert some real tests, host_os isn't really good enough
9780 if test -n "$STRIP" ; then
9781 striplib="$STRIP -x"
9782 old_striplib="$STRIP -S"
9783 { echo "$as_me:$LINENO: result: yes" >&5
9784 echo "${ECHO_T}yes" >&6; }
9786 { echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6; }
9791 { echo "$as_me:$LINENO: result: no" >&5
9792 echo "${ECHO_T}no" >&6; }
9797 if test "x$enable_dlopen" != xyes; then
9798 enable_dlopen=unknown
9799 enable_dlopen_self=unknown
9800 enable_dlopen_self_static=unknown
9807 lt_cv_dlopen="load_add_on"
9809 lt_cv_dlopen_self=yes
9813 lt_cv_dlopen="LoadLibrary"
9818 lt_cv_dlopen="dlopen"
9823 # if libdl is installed we need to link against it
9824 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9825 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9826 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 ac_check_lib_save_LIBS=$LIBS
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9838 /* Override any GCC internal prototype to avoid an error.
9839 Use char because int might match the return type of a GCC
9840 builtin and then its argument prototype would still apply. */
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_link") 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } && {
9867 test -z "$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9869 } && test -s conftest$ac_exeext &&
9870 $as_test_x conftest$ac_exeext; then
9871 ac_cv_lib_dl_dlopen=yes
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 ac_cv_lib_dl_dlopen=no
9879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880 conftest$ac_exeext conftest.$ac_ext
9881 LIBS=$ac_check_lib_save_LIBS
9883 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9884 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9885 if test $ac_cv_lib_dl_dlopen = yes; then
9886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9891 lt_cv_dlopen_self=yes
9898 { echo "$as_me:$LINENO: checking for shl_load" >&5
9899 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9900 if test "${ac_cv_func_shl_load+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9911 #define shl_load innocuous_shl_load
9913 /* System header to define __stub macros and hopefully few prototypes,
9914 which can conflict with char shl_load (); below.
9915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916 <limits.h> exists even on freestanding compilers. */
9919 # include <limits.h>
9921 # include <assert.h>
9926 /* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9933 /* The GNU C library defines this for functions which it implements
9934 to always fail with ENOSYS. Some functions are actually named
9935 something starting with __ and the normal name is an alias. */
9936 #if defined __stub_shl_load || defined __stub___shl_load
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest$ac_exeext &&
9965 $as_test_x conftest$ac_exeext; then
9966 ac_cv_func_shl_load=yes
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 ac_cv_func_shl_load=no
9974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9975 conftest$ac_exeext conftest.$ac_ext
9977 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9978 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9979 if test $ac_cv_func_shl_load = yes; then
9980 lt_cv_dlopen="shl_load"
9982 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9983 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9984 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 ac_check_lib_save_LIBS=$LIBS
9989 cat >conftest.$ac_ext <<_ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9996 /* Override any GCC internal prototype to avoid an error.
9997 Use char because int might match the return type of a GCC
9998 builtin and then its argument prototype would still apply. */
10006 return shl_load ();
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (ac_try="$ac_link"
10013 case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_link") 2>conftest.er1
10020 grep -v '^ *+' conftest.er1 >conftest.err
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && {
10025 test -z "$ac_c_werror_flag" ||
10026 test ! -s conftest.err
10027 } && test -s conftest$ac_exeext &&
10028 $as_test_x conftest$ac_exeext; then
10029 ac_cv_lib_dld_shl_load=yes
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 ac_cv_lib_dld_shl_load=no
10037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10038 conftest$ac_exeext conftest.$ac_ext
10039 LIBS=$ac_check_lib_save_LIBS
10041 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10042 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10043 if test $ac_cv_lib_dld_shl_load = yes; then
10044 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10046 { echo "$as_me:$LINENO: checking for dlopen" >&5
10047 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10048 if test "${ac_cv_func_dlopen+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 cat >conftest.$ac_ext <<_ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10059 #define dlopen innocuous_dlopen
10061 /* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char dlopen (); below.
10063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10064 <limits.h> exists even on freestanding compilers. */
10067 # include <limits.h>
10069 # include <assert.h>
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10081 /* The GNU C library defines this for functions which it implements
10082 to always fail with ENOSYS. Some functions are actually named
10083 something starting with __ and the normal name is an alias. */
10084 #if defined __stub_dlopen || defined __stub___dlopen
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
10105 grep -v '^ *+' conftest.er1 >conftest.err
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest$ac_exeext &&
10113 $as_test_x conftest$ac_exeext; then
10114 ac_cv_func_dlopen=yes
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_func_dlopen=no
10122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123 conftest$ac_exeext conftest.$ac_ext
10125 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10126 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10127 if test $ac_cv_func_dlopen = yes; then
10128 lt_cv_dlopen="dlopen"
10130 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10131 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10132 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 ac_check_lib_save_LIBS=$LIBS
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10144 /* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (ac_try="$ac_link"
10161 case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_link") 2>conftest.er1
10168 grep -v '^ *+' conftest.er1 >conftest.err
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest$ac_exeext &&
10176 $as_test_x conftest$ac_exeext; then
10177 ac_cv_lib_dl_dlopen=yes
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_cv_lib_dl_dlopen=no
10185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10189 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10190 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10191 if test $ac_cv_lib_dl_dlopen = yes; then
10192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10194 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10195 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10196 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-lsvld $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10232 grep -v '^ *+' conftest.er1 >conftest.err
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_c_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest$ac_exeext &&
10240 $as_test_x conftest$ac_exeext; then
10241 ac_cv_lib_svld_dlopen=yes
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ac_cv_lib_svld_dlopen=no
10249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10250 conftest$ac_exeext conftest.$ac_ext
10251 LIBS=$ac_check_lib_save_LIBS
10253 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10254 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10255 if test $ac_cv_lib_svld_dlopen = yes; then
10256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10258 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10259 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10260 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 ac_check_lib_save_LIBS=$LIBS
10265 cat >conftest.$ac_ext <<_ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10272 /* Override any GCC internal prototype to avoid an error.
10273 Use char because int might match the return type of a GCC
10274 builtin and then its argument prototype would still apply. */
10282 return dld_link ();
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (ac_try="$ac_link"
10289 case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_link") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest$ac_exeext &&
10304 $as_test_x conftest$ac_exeext; then
10305 ac_cv_lib_dld_dld_link=yes
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_cv_lib_dld_dld_link=no
10313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10318 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10319 if test $ac_cv_lib_dld_dld_link = yes; then
10320 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10341 if test "x$lt_cv_dlopen" != xno; then
10347 case $lt_cv_dlopen in
10349 save_CPPFLAGS="$CPPFLAGS"
10350 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10352 save_LDFLAGS="$LDFLAGS"
10353 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10356 LIBS="$lt_cv_dlopen_libs $LIBS"
10358 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10359 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10360 if test "${lt_cv_dlopen_self+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 if test "$cross_compiling" = yes; then :
10364 lt_cv_dlopen_self=cross
10366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10367 lt_status=$lt_dlunknown
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10369 "configure"
10370 #include "confdefs.h"
10379 # define LT_DLGLOBAL RTLD_GLOBAL
10382 # define LT_DLGLOBAL DL_GLOBAL
10384 # define LT_DLGLOBAL 0
10388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10389 find out it does not work in some platform. */
10390 #ifndef LT_DLLAZY_OR_NOW
10392 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10395 # define LT_DLLAZY_OR_NOW DL_LAZY
10398 # define LT_DLLAZY_OR_NOW RTLD_NOW
10401 # define LT_DLLAZY_OR_NOW DL_NOW
10403 # define LT_DLLAZY_OR_NOW 0
10411 extern "C" void exit (int);
10414 void fnord() { int i=42;}
10417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418 int status = $lt_dlunknown;
10422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10423 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424 /* dlclose (self); */
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10437 (./conftest; exit; ) >&5 2>/dev/null
10439 case x$lt_status in
10440 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10441 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10442 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10445 # compilation failed
10446 lt_cv_dlopen_self=no
10453 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10454 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10456 if test "x$lt_cv_dlopen_self" = xyes; then
10457 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10458 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10459 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10460 if test "${lt_cv_dlopen_self_static+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 if test "$cross_compiling" = yes; then :
10464 lt_cv_dlopen_self_static=cross
10466 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10467 lt_status=$lt_dlunknown
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10469 "configure"
10470 #include "confdefs.h"
10479 # define LT_DLGLOBAL RTLD_GLOBAL
10482 # define LT_DLGLOBAL DL_GLOBAL
10484 # define LT_DLGLOBAL 0
10488 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10489 find out it does not work in some platform. */
10490 #ifndef LT_DLLAZY_OR_NOW
10492 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10495 # define LT_DLLAZY_OR_NOW DL_LAZY
10498 # define LT_DLLAZY_OR_NOW RTLD_NOW
10501 # define LT_DLLAZY_OR_NOW DL_NOW
10503 # define LT_DLLAZY_OR_NOW 0
10511 extern "C" void exit (int);
10514 void fnord() { int i=42;}
10517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10518 int status = $lt_dlunknown;
10522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10523 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10524 /* dlclose (self); */
10532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10533 (eval $ac_link) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10537 (./conftest; exit; ) >&5 2>/dev/null
10539 case x$lt_status in
10540 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10541 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10542 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10545 # compilation failed
10546 lt_cv_dlopen_self_static=no
10553 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10554 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10557 CPPFLAGS="$save_CPPFLAGS"
10558 LDFLAGS="$save_LDFLAGS"
10563 case $lt_cv_dlopen_self in
10564 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10565 *) enable_dlopen_self=unknown ;;
10568 case $lt_cv_dlopen_self_static in
10569 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10570 *) enable_dlopen_self_static=unknown ;;
10575 # Report which library types will actually be built
10576 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10577 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10578 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10579 echo "${ECHO_T}$can_build_shared" >&6; }
10581 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10582 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10583 test "$can_build_shared" = "no" && enable_shared=no
10585 # On AIX, shared libraries and static libraries use the same namespace, and
10586 # are all built from PIC.
10589 test "$enable_shared" = yes && enable_static=no
10590 if test -n "$RANLIB"; then
10591 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10592 postinstall_cmds='$RANLIB $lib'
10597 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10598 test "$enable_shared" = yes && enable_static=no
10602 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10603 echo "${ECHO_T}$enable_shared" >&6; }
10605 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10606 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10607 # Make sure either enable_shared or enable_static is yes.
10608 test "$enable_shared" = yes || enable_static=yes
10609 { echo "$as_me:$LINENO: result: $enable_static" >&5
10610 echo "${ECHO_T}$enable_static" >&6; }
10612 # The else clause should only fire when bootstrapping the
10613 # libtool distribution, otherwise you forgot to ship ltmain.sh
10614 # with your package, and you will get complaints that there are
10615 # no rules to generate ltmain.sh.
10616 if test -f "$ltmain"; then
10617 # See if we are running on zsh, and set the options which allow our commands through
10618 # without removal of \ escapes.
10619 if test -n "${ZSH_VERSION+set}" ; then
10620 setopt NO_GLOB_SUBST
10622 # Now quote all the things that may contain metacharacters while being
10623 # careful not to overquote the AC_SUBSTed values. We take copies of the
10624 # variables and quote the copies for generation of the libtool script.
10625 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10627 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10628 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10629 deplibs_check_method reload_flag reload_cmds need_locks \
10630 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10631 lt_cv_sys_global_symbol_to_c_name_address \
10632 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10633 old_postinstall_cmds old_postuninstall_cmds \
10637 lt_prog_compiler_wl \
10638 lt_prog_compiler_pic \
10639 lt_prog_compiler_static \
10640 lt_prog_compiler_no_builtin_flag \
10641 export_dynamic_flag_spec \
10642 thread_safe_flag_spec \
10643 whole_archive_flag_spec \
10644 enable_shared_with_static_runtimes \
10646 old_archive_from_new_cmds \
10651 compiler_lib_search_path \
10653 archive_expsym_cmds \
10655 postuninstall_cmds \
10656 old_archive_from_expsyms_cmds \
10657 allow_undefined_flag \
10658 no_undefined_flag \
10659 export_symbols_cmds \
10660 hardcode_libdir_flag_spec \
10661 hardcode_libdir_flag_spec_ld \
10662 hardcode_libdir_separator \
10663 hardcode_automatic \
10665 module_expsym_cmds \
10666 lt_cv_prog_compiler_c_o \
10669 include_expsyms; do
10672 old_archive_cmds | \
10673 old_archive_from_new_cmds | \
10675 archive_expsym_cmds | \
10677 module_expsym_cmds | \
10678 old_archive_from_expsyms_cmds | \
10679 export_symbols_cmds | \
10680 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10681 postinstall_cmds | postuninstall_cmds | \
10682 old_postinstall_cmds | old_postuninstall_cmds | \
10683 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10684 # Double-quote double-evaled strings.
10685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10688 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10694 *'\$0 --fallback-echo"')
10695 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10699 cfgfile="${ofile}T"
10700 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10702 { echo "$as_me:$LINENO: creating $ofile" >&5
10703 echo "$as_me: creating $ofile" >&6;}
10705 cat <<__EOF__ >> "$cfgfile"
10708 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10709 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10710 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10712 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10713 # Free Software Foundation, Inc.
10715 # This file is part of GNU Libtool:
10716 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10718 # This program is free software; you can redistribute it and/or modify
10719 # it under the terms of the GNU General Public License as published by
10720 # the Free Software Foundation; either version 2 of the License, or
10721 # (at your option) any later version.
10723 # This program is distributed in the hope that it will be useful, but
10724 # WITHOUT ANY WARRANTY; without even the implied warranty of
10725 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10726 # General Public License for more details.
10728 # You should have received a copy of the GNU General Public License
10729 # along with this program; if not, write to the Free Software
10730 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10732 # As a special exception to the GNU General Public License, if you
10733 # distribute this file as part of a program that contains a
10734 # configuration script generated by Autoconf, you may include it under
10735 # the same distribution terms that you use for the rest of that program.
10737 # A sed program that does not truncate output.
10740 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10741 Xsed="$SED -e 1s/^X//"
10743 # The HP-UX ksh and POSIX shell print the target directory to stdout
10744 # if CDPATH is set.
10745 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10747 # The names of the tagged configurations supported by this script.
10750 # ### BEGIN LIBTOOL CONFIG
10752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10754 # Shell to use when invoking shell scripts.
10757 # Whether or not to build shared libraries.
10758 build_libtool_libs=$enable_shared
10760 # Whether or not to build static libraries.
10761 build_old_libs=$enable_static
10763 # Whether or not to add -lc for building shared libraries.
10764 build_libtool_need_lc=$archive_cmds_need_lc
10766 # Whether or not to disallow shared libs when runtime libs are static
10767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10769 # Whether or not to optimize for fast installation.
10770 fast_install=$enable_fast_install
10773 host_alias=$host_alias
10777 # The build system.
10778 build_alias=$build_alias
10782 # An echo program that does not interpret backslashes.
10787 AR_FLAGS=$lt_AR_FLAGS
10792 # LTCC compiler flags.
10793 LTCFLAGS=$lt_LTCFLAGS
10795 # A language-specific compiler.
10798 # Is the compiler the GNU C compiler?
10804 # The linker used to build libraries.
10807 # Whether we need hard or soft links.
10810 # A BSD-compatible nm program.
10813 # A symbol stripping program
10816 # Used to examine libraries when file_magic_cmd begins "file"
10817 MAGIC_CMD=$MAGIC_CMD
10819 # Used on cygwin: DLL creation program.
10822 # Used on cygwin: object dumper.
10825 # Used on cygwin: assembler.
10828 # The name of the directory that contains temporary libtool files.
10831 # How to create reloadable object files.
10832 reload_flag=$lt_reload_flag
10833 reload_cmds=$lt_reload_cmds
10835 # How to pass a linker flag through the compiler.
10836 wl=$lt_lt_prog_compiler_wl
10838 # Object file suffix (normally "o").
10839 objext="$ac_objext"
10841 # Old archive suffix (normally "a").
10844 # Shared library suffix (normally ".so").
10845 shrext_cmds='$shrext_cmds'
10847 # Executable file suffix (normally "").
10850 # Additional compiler flags for building library objects.
10851 pic_flag=$lt_lt_prog_compiler_pic
10854 # What is the maximum length of a command?
10855 max_cmd_len=$lt_cv_sys_max_cmd_len
10857 # Does compiler simultaneously support -c and -o options?
10858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10860 # Must we lock files when doing compilation?
10861 need_locks=$lt_need_locks
10863 # Do we need the lib prefix for modules?
10864 need_lib_prefix=$need_lib_prefix
10866 # Do we need a version for libraries?
10867 need_version=$need_version
10869 # Whether dlopen is supported.
10870 dlopen_support=$enable_dlopen
10872 # Whether dlopen of programs is supported.
10873 dlopen_self=$enable_dlopen_self
10875 # Whether dlopen of statically linked programs is supported.
10876 dlopen_self_static=$enable_dlopen_self_static
10878 # Compiler flag to prevent dynamic linking.
10879 link_static_flag=$lt_lt_prog_compiler_static
10881 # Compiler flag to turn off builtin functions.
10882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10884 # Compiler flag to allow reflexive dlopens.
10885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10887 # Compiler flag to generate shared objects directly from archives.
10888 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10890 # Compiler flag to generate thread-safe objects.
10891 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10893 # Library versioning type.
10894 version_type=$version_type
10896 # Format of library name prefix.
10897 libname_spec=$lt_libname_spec
10899 # List of archive names. First name is the real one, the rest are links.
10900 # The last name is the one that the linker finds with -lNAME.
10901 library_names_spec=$lt_library_names_spec
10903 # The coded name of the library, if different from the real name.
10904 soname_spec=$lt_soname_spec
10906 # Commands used to build and install an old-style archive.
10908 old_archive_cmds=$lt_old_archive_cmds
10909 old_postinstall_cmds=$lt_old_postinstall_cmds
10910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10912 # Create an old-style archive from a shared archive.
10913 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10915 # Create a temporary old-style archive to link instead of a shared archive.
10916 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10918 # Commands used to build and install a shared archive.
10919 archive_cmds=$lt_archive_cmds
10920 archive_expsym_cmds=$lt_archive_expsym_cmds
10921 postinstall_cmds=$lt_postinstall_cmds
10922 postuninstall_cmds=$lt_postuninstall_cmds
10924 # Commands used to build a loadable module (assumed same as above if empty)
10925 module_cmds=$lt_module_cmds
10926 module_expsym_cmds=$lt_module_expsym_cmds
10928 # Commands to strip libraries.
10929 old_striplib=$lt_old_striplib
10930 striplib=$lt_striplib
10932 # Dependencies to place before the objects being linked to create a
10934 predep_objects=$lt_predep_objects
10936 # Dependencies to place after the objects being linked to create a
10938 postdep_objects=$lt_postdep_objects
10940 # Dependencies to place before the objects being linked to create a
10942 predeps=$lt_predeps
10944 # Dependencies to place after the objects being linked to create a
10946 postdeps=$lt_postdeps
10948 # The library search path used internally by the compiler when linking
10949 # a shared library.
10950 compiler_lib_search_path=$lt_compiler_lib_search_path
10952 # Method to check whether dependent libraries are shared objects.
10953 deplibs_check_method=$lt_deplibs_check_method
10955 # Command to use when deplibs_check_method == file_magic.
10956 file_magic_cmd=$lt_file_magic_cmd
10958 # Flag that allows shared libraries with undefined symbols to be built.
10959 allow_undefined_flag=$lt_allow_undefined_flag
10961 # Flag that forces no undefined symbols.
10962 no_undefined_flag=$lt_no_undefined_flag
10964 # Commands used to finish a libtool library installation in a directory.
10965 finish_cmds=$lt_finish_cmds
10967 # Same as above, but a single script fragment to be evaled but not shown.
10968 finish_eval=$lt_finish_eval
10970 # Take the output of nm and produce a listing of raw symbols and C names.
10971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10973 # Transform the output of nm in a proper C declaration
10974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10976 # Transform the output of nm in a C name address pair
10977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10979 # This is the shared library runtime path variable.
10980 runpath_var=$runpath_var
10982 # This is the shared library path variable.
10983 shlibpath_var=$shlibpath_var
10985 # Is shlibpath searched before the hard-coded library search path?
10986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10988 # How to hardcode a shared library path into an executable.
10989 hardcode_action=$hardcode_action
10991 # Whether we should hardcode library paths into libraries.
10992 hardcode_into_libs=$hardcode_into_libs
10994 # Flag to hardcode \$libdir into a binary during linking.
10995 # This must work even if \$libdir does not exist.
10996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10998 # If ld is used when linking, flag to hardcode \$libdir into
10999 # a binary during linking. This must work even if \$libdir does
11001 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11003 # Whether we need a single -rpath flag with a separated argument.
11004 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11006 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11007 # resulting binary.
11008 hardcode_direct=$hardcode_direct
11010 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11011 # resulting binary.
11012 hardcode_minus_L=$hardcode_minus_L
11014 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11015 # the resulting binary.
11016 hardcode_shlibpath_var=$hardcode_shlibpath_var
11018 # Set to yes if building a shared library automatically hardcodes DIR into the library
11019 # and all subsequent libraries and executables linked against it.
11020 hardcode_automatic=$hardcode_automatic
11022 # Variables whose values should be saved in libtool wrapper scripts and
11023 # restored at relink time.
11024 variables_saved_for_relink="$variables_saved_for_relink"
11026 # Whether libtool must link a program against all its dependency libraries.
11027 link_all_deplibs=$link_all_deplibs
11029 # Compile-time system search path for libraries
11030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11032 # Run-time system search path for libraries
11033 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11035 # Fix the shell variable \$srcfile for the compiler.
11036 fix_srcfile_path=$lt_fix_srcfile_path
11038 # Set to yes if exported symbols are required.
11039 always_export_symbols=$always_export_symbols
11041 # The commands to list exported symbols.
11042 export_symbols_cmds=$lt_export_symbols_cmds
11044 # The commands to extract the exported symbol list from a shared archive.
11045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11047 # Symbols that should not be listed in the preloaded symbols.
11048 exclude_expsyms=$lt_exclude_expsyms
11050 # Symbols that must always be exported.
11051 include_expsyms=$lt_include_expsyms
11053 # ### END LIBTOOL CONFIG
11060 cat <<\EOF >> "$cfgfile"
11062 # AIX sometimes has problems with the GCC collect2 program. For some
11063 # reason, if we set the COLLECT_NAMES environment variable, the problems
11064 # vanish in a puff of smoke.
11065 if test "X${COLLECT_NAMES+set}" != Xset; then
11067 export COLLECT_NAMES
11073 # We use sed instead of cat because bash on DJGPP gets confused if
11074 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11075 # text mode, it properly converts lines to CR/LF. This bash problem
11076 # is reportedly fixed, but why not run on old versions too?
11077 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11079 mv -f "$cfgfile" "$ofile" || \
11080 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11084 # If there is no Makefile yet, we rely on a make rule to execute
11085 # `config.status --recheck' to rerun these tests and create the
11086 # libtool script then.
11087 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11088 if test -f "$ltmain_in"; then
11089 test -f Makefile && make "$ltmain"
11095 ac_cpp='$CPP $CPPFLAGS'
11096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11104 # This can be used to rebuild libtool when needed
11105 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11107 # Always use our own libtool.
11108 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11110 # Prevent multiple expansion
11121 if test "$enable_shared" = "no"; then
11124 eval _shrext="$shrext_cmds"
11126 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11127 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11129 # Check whether --with-noexec was given.
11130 if test "${with_noexec+set}" = set; then
11131 withval=$with_noexec; case $with_noexec in
11132 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
11138 with_noexec="$libexecdir/sudo_noexec$_shrext"
11141 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11142 echo "${ECHO_T}$with_noexec" >&6; }
11143 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11145 if test "$with_devel" = "yes" -a -n "$GCC"; then
11146 CFLAGS="${CFLAGS} -Wall"
11149 # Extract the first word of "uname", so it can be a program name with args.
11150 set dummy uname; ac_word=$2
11151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11153 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 if test -n "$UNAMEPROG"; then
11157 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160 for as_dir in $PATH
11163 test -z "$as_dir" && as_dir=.
11164 for ac_exec_ext in '' $ac_executable_extensions; do
11165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11166 ac_cv_prog_UNAMEPROG="uname"
11167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11177 if test -n "$UNAMEPROG"; then
11178 { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11179 echo "${ECHO_T}$UNAMEPROG" >&6; }
11181 { echo "$as_me:$LINENO: result: no" >&5
11182 echo "${ECHO_T}no" >&6; }
11186 # Extract the first word of "tr", so it can be a program name with args.
11187 set dummy tr; ac_word=$2
11188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11190 if test "${ac_cv_prog_TRPROG+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 if test -n "$TRPROG"; then
11194 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203 ac_cv_prog_TRPROG="tr"
11204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 TRPROG=$ac_cv_prog_TRPROG
11214 if test -n "$TRPROG"; then
11215 { echo "$as_me:$LINENO: result: $TRPROG" >&5
11216 echo "${ECHO_T}$TRPROG" >&6; }
11218 { echo "$as_me:$LINENO: result: no" >&5
11219 echo "${ECHO_T}no" >&6; }
11223 # Extract the first word of "nroff", so it can be a program name with args.
11224 set dummy nroff; ac_word=$2
11225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11227 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 if test -n "$NROFFPROG"; then
11231 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11240 ac_cv_prog_NROFFPROG="nroff"
11241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 NROFFPROG=$ac_cv_prog_NROFFPROG
11251 if test -n "$NROFFPROG"; then
11252 { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11253 echo "${ECHO_T}$NROFFPROG" >&6; }
11255 { echo "$as_me:$LINENO: result: no" >&5
11256 echo "${ECHO_T}no" >&6; }
11260 if test -z "$NROFFPROG"; then
11262 mansrcdir='$(srcdir)'
11265 if test -n "$sudo_cv_prev_host"; then
11266 if test "$sudo_cv_prev_host" != "$host"; then
11267 { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11268 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11269 { (exit 1); exit 1; }; }
11271 { echo "$as_me:$LINENO: checking previous host type" >&5
11272 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11273 if test "${sudo_cv_prev_host+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 sudo_cv_prev_host="$host"
11279 { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11280 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11283 # this will produce no output since there is no cached value
11284 if test "${sudo_cv_prev_host+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 sudo_cv_prev_host="$host"
11292 if test -n "$host_os"; then
11293 OS=`echo $host_os | sed 's/[0-9].*//'`
11294 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11295 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11304 # getcwd(3) opens a pipe to getpwd(1)!?!
11307 # system headers lack prototypes but gcc helps...
11308 if test -n "$GCC"; then
11309 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11312 shadow_funcs="getpwanam issecure"
11315 # To get the crypt(3) prototype (so we pass -Wall)
11316 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11317 # AFS support needs -lucb
11318 if test "$with_AFS" = "yes"; then
11319 AFS_LIBS="-lc -lucb"
11321 : ${mansectsu='1m'}
11322 : ${mansectform='4'}
11323 : ${with_rpath='yes'}
11324 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11327 # To get all prototypes (so we pass -Wall)
11328 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11329 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11330 if test X"$with_blibpath" != X"no"; then
11331 { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11332 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11333 O_LDFLAGS="$LDFLAGS"
11334 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11335 cat >conftest.$ac_ext <<_ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11350 rm -f conftest.$ac_objext conftest$ac_exeext
11351 if { (ac_try="$ac_link"
11352 case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_link") 2>conftest.er1
11359 grep -v '^ *+' conftest.er1 >conftest.err
11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } && {
11364 test -z "$ac_c_werror_flag" ||
11365 test ! -s conftest.err
11366 } && test -s conftest$ac_exeext &&
11367 $as_test_x conftest$ac_exeext; then
11369 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11370 blibpath="$with_blibpath"
11371 elif test -n "$GCC"; then
11372 blibpath="/usr/lib:/lib:/usr/local/lib"
11374 blibpath="/usr/lib:/lib"
11376 { echo "$as_me:$LINENO: result: yes" >&5
11377 echo "${ECHO_T}yes" >&6; }
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 { echo "$as_me:$LINENO: result: no" >&5
11384 echo "${ECHO_T}no" >&6; }
11387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11388 conftest$ac_exeext conftest.$ac_ext
11390 LDFLAGS="$O_LDFLAGS"
11392 # Use authenticate(3) as the default authentication method
11393 if test X"$with_aixauth" = X""; then
11395 for ac_func in authenticate
11397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11411 #define $ac_func innocuous_$ac_func
11413 /* System header to define __stub macros and hopefully few prototypes,
11414 which can conflict with char $ac_func (); below.
11415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11416 <limits.h> exists even on freestanding compilers. */
11419 # include <limits.h>
11421 # include <assert.h>
11426 /* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11433 /* The GNU C library defines this for functions which it implements
11434 to always fail with ENOSYS. Some functions are actually named
11435 something starting with __ and the normal name is an alias. */
11436 #if defined __stub_$ac_func || defined __stub___$ac_func
11443 return $ac_func ();
11448 rm -f conftest.$ac_objext conftest$ac_exeext
11449 if { (ac_try="$ac_link"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_link") 2>conftest.er1
11457 grep -v '^ *+' conftest.er1 >conftest.err
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && {
11462 test -z "$ac_c_werror_flag" ||
11463 test ! -s conftest.err
11464 } && test -s conftest$ac_exeext &&
11465 $as_test_x conftest$ac_exeext; then
11466 eval "$as_ac_var=yes"
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 eval "$as_ac_var=no"
11474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11475 conftest$ac_exeext conftest.$ac_ext
11477 ac_res=`eval echo '${'$as_ac_var'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480 if test `eval echo '${'$as_ac_var'}'` = yes; then
11481 cat >>confdefs.h <<_ACEOF
11482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11484 AUTH_EXCL_DEF="AIX_AUTH"
11491 : ${mansectsu='1m'}
11492 : ${mansectform='4'}
11495 # AFS support needs -lBSD
11496 if test "$with_AFS" = "yes"; then
11497 AFS_LIBS="-lc -lBSD"
11499 : ${mansectsu='1m'}
11500 : ${mansectform='4'}
11504 cat >>confdefs.h <<\_ACEOF
11505 #define BROKEN_SYSLOG 1
11509 # Not sure if setuid binaries are safe in < 9.x
11510 if test -n "$GCC"; then
11511 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
11513 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
11517 cat >>confdefs.h <<\_ACEOF
11518 #define BROKEN_SYSLOG 1
11522 shadow_funcs="getspwuid"
11524 # DCE support (requires ANSI C compiler)
11525 if test "$with_DCE" = "yes"; then
11526 # order of libs in 9.X is important. -lc_r must be last
11527 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
11528 LIBS="${LIBS} -ldce -lM -lc_r"
11529 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
11533 shadow_funcs="getprpwnam iscomsec"
11534 shadow_libs="-lsec"
11537 shadow_funcs="getspnam iscomsec"
11538 shadow_libs="-lsec"
11539 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11544 # ignore envariables wrt dynamic lib path
11545 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
11547 : ${CHECKSIA='true'}
11548 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
11549 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
11550 # Check whether --enable-sia was given.
11551 if test "${enable_sia+set}" = set; then
11552 enableval=$enable_sia; case "$enableval" in
11553 yes) { echo "$as_me:$LINENO: result: no" >&5
11554 echo "${ECHO_T}no" >&6; }
11557 no) { echo "$as_me:$LINENO: result: yes" >&5
11558 echo "${ECHO_T}yes" >&6; }
11561 *) { echo "$as_me:$LINENO: result: no" >&5
11562 echo "${ECHO_T}no" >&6; }
11563 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
11564 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
11569 { echo "$as_me:$LINENO: result: no" >&5
11570 echo "${ECHO_T}no" >&6; }
11574 shadow_funcs="getprpwnam dispcrypt"
11575 # OSF/1 4.x and higher need -ldb too
11576 if test $OSMAJOR -lt 4; then
11577 shadow_libs="-lsecurity -laud -lm"
11579 shadow_libs="-lsecurity -ldb -laud -lm"
11582 # use SIA by default, if we have it
11583 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
11586 # Some versions of Digital Unix ship with a broken
11587 # copy of prot.h, which we need for shadow passwords.
11588 # XXX - make should remove this as part of distclean
11590 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
11591 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
11592 cat >conftest.$ac_ext <<_ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11599 #include <sys/types.h>
11600 #include <sys/security.h>
11611 rm -f conftest.$ac_objext
11612 if { (ac_try="$ac_compile"
11613 case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_compile") 2>conftest.er1
11620 grep -v '^ *+' conftest.er1 >conftest.err
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && {
11625 test -z "$ac_c_werror_flag" ||
11626 test ! -s conftest.err
11627 } && test -s conftest.$ac_objext; then
11628 { echo "$as_me:$LINENO: result: no" >&5
11629 echo "${ECHO_T}no" >&6; }
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
11635 echo "${ECHO_T}yes, fixing locally" >&6; }
11636 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642 : ${mansectform='4'}
11645 OSDEFS="${OSDEFS} -D_BSD_TYPES"
11646 if test -z "$NROFFPROG"; then
11647 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)'
11648 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11649 if test -d /usr/share/catman/local; then
11650 mandir="/usr/share/catman/local"
11652 mandir="/usr/catman/local"
11656 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11657 if test -d "/usr/share/man/local"; then
11658 mandir="/usr/share/man/local"
11660 mandir="/usr/man/local"
11664 # IRIX <= 4 needs -lsun
11665 if test "$OSMAJOR" -le 4; then
11666 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
11667 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
11668 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 ac_check_lib_save_LIBS=$LIBS
11673 cat >conftest.$ac_ext <<_ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11680 /* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11690 return getpwnam ();
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_link") 2>conftest.er1
11704 grep -v '^ *+' conftest.er1 >conftest.err
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && {
11709 test -z "$ac_c_werror_flag" ||
11710 test ! -s conftest.err
11711 } && test -s conftest$ac_exeext &&
11712 $as_test_x conftest$ac_exeext; then
11713 ac_cv_lib_sun_getpwnam=yes
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 ac_cv_lib_sun_getpwnam=no
11721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11722 conftest$ac_exeext conftest.$ac_ext
11723 LIBS=$ac_check_lib_save_LIBS
11725 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
11726 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
11727 if test $ac_cv_lib_sun_getpwnam = yes; then
11728 LIBS="${LIBS} -lsun"
11732 : ${mansectsu='1m'}
11733 : ${mansectform='4'}
11736 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
11737 # Some Linux versions need to link with -lshadow
11738 shadow_funcs="getspnam"
11739 shadow_libs_optional="-lshadow"
11740 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11743 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
11744 if test -z "$GCC"; then
11745 CFLAGS="${CFLAGS} -D__STDC__"
11748 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
11749 shadow_funcs="getprpwnam"
11750 shadow_libs="-lprot"
11754 shadow_funcs="getauthuid"
11755 shadow_libs="-lauth"
11758 LIBS="${LIBS} -lsun -lbsd"
11759 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
11760 OSDEFS="${OSDEFS} -D_MIPS"
11761 : ${mansectsu='1m'}
11762 : ${mansectform='4'}
11765 OSDEFS="${OSDEFS} -D_ISC"
11767 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
11768 LIBS="${LIBS} -lcrypt"
11770 shadow_funcs="getspnam"
11771 shadow_libs="-lsec"
11773 : ${mansectsu='1m'}
11774 : ${mansectform='4'}
11777 shadow_funcs="getprpwnam"
11778 shadow_libs="-lprot -lx"
11779 : ${mansectsu='1m'}
11780 : ${mansectform='4'}
11782 m88k-motorola-sysv*)
11783 # motorolla's cc (a variant of gcc) does -O but not -O2
11784 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
11785 : ${mansectsu='1m'}
11786 : ${mansectform='4'}
11789 shadow_funcs="getspnam"
11790 shadow_libs="-lsec"
11791 : ${mansectsu='1m'}
11792 : ${mansectform='4'}
11793 : ${with_rpath='yes'}
11795 *-ncr-sysv4*|*-ncr-sysvr4*)
11796 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
11797 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
11798 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 ac_check_lib_save_LIBS=$LIBS
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11816 char strcasecmp ();
11820 return strcasecmp ();
11825 rm -f conftest.$ac_objext conftest$ac_exeext
11826 if { (ac_try="$ac_link"
11827 case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_link") 2>conftest.er1
11834 grep -v '^ *+' conftest.er1 >conftest.err
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } && {
11839 test -z "$ac_c_werror_flag" ||
11840 test ! -s conftest.err
11841 } && test -s conftest$ac_exeext &&
11842 $as_test_x conftest$ac_exeext; then
11843 ac_cv_lib_c89_strcasecmp=yes
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_cv_lib_c89_strcasecmp=no
11851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11855 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
11856 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
11857 if test $ac_cv_lib_c89_strcasecmp = yes; then
11858 cat >>confdefs.h <<\_ACEOF
11859 #define HAVE_STRCASECMP 1
11861 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
11864 : ${mansectsu='1m'}
11865 : ${mansectform='4'}
11866 : ${with_rpath='yes'}
11868 *-ccur-sysv4*|*-ccur-sysvr4*)
11869 LIBS="${LIBS} -lgen"
11870 SUDO_LIBS="${SUDO_LIBS} -lgen"
11871 : ${mansectsu='1m'}
11872 : ${mansectform='4'}
11873 : ${with_rpath='yes'}
11877 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
11878 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
11880 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
11881 echo "$as_me: using shlicc as CC" >&6;}
11882 ac_cv_prog_CC=shlicc
11883 CC="$ac_cv_prog_CC"
11887 # Check for newer BSD auth API (just check for >= 3.0?)
11888 if test -z "$with_bsdauth"; then
11890 for ac_func in auth_challenge
11892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 cat >conftest.$ac_ext <<_ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11906 #define $ac_func innocuous_$ac_func
11908 /* System header to define __stub macros and hopefully few prototypes,
11909 which can conflict with char $ac_func (); below.
11910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911 <limits.h> exists even on freestanding compilers. */
11914 # include <limits.h>
11916 # include <assert.h>
11921 /* Override any GCC internal prototype to avoid an error.
11922 Use char because int might match the return type of a GCC
11923 builtin and then its argument prototype would still apply. */
11928 /* The GNU C library defines this for functions which it implements
11929 to always fail with ENOSYS. Some functions are actually named
11930 something starting with __ and the normal name is an alias. */
11931 #if defined __stub_$ac_func || defined __stub___$ac_func
11938 return $ac_func ();
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_link") 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } && {
11957 test -z "$ac_c_werror_flag" ||
11958 test ! -s conftest.err
11959 } && test -s conftest$ac_exeext &&
11960 $as_test_x conftest$ac_exeext; then
11961 eval "$as_ac_var=yes"
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 eval "$as_ac_var=no"
11969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11970 conftest$ac_exeext conftest.$ac_ext
11972 ac_res=`eval echo '${'$as_ac_var'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974 echo "${ECHO_T}$ac_res" >&6; }
11975 if test `eval echo '${'$as_ac_var'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11979 AUTH_EXCL_DEF="BSD_AUTH"
11986 # FreeBSD has a real setreuid(2) starting with 2.1 and
11987 # backported to 2.0.5. We just take 2.1 and above...
11993 if test "$with_skey" = "yes"; then
11994 SUDO_LIBS="${SUDO_LIBS} -lmd"
11996 CHECKSHADOW="false"
11997 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11998 : ${with_logincap='maybe'}
12001 # OpenBSD has a real setreuid(2) starting with 3.3 but
12002 # we will use setreuid(2) instead.
12004 CHECKSHADOW="false"
12005 # OpenBSD >= 3.0 supports BSD auth
12006 if test -z "$with_bsdauth"; then
12011 AUTH_EXCL_DEF="BSD_AUTH"
12015 : ${with_logincap='maybe'}
12018 # NetBSD has a real setreuid(2) starting with 1.3.2
12020 0.9*|1.012*|1.3|1.3.1)
12024 CHECKSHADOW="false"
12025 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12026 : ${with_logincap='maybe'}
12029 if test "$with_skey" = "yes"; then
12030 SUDO_LIBS="${SUDO_LIBS} -lmd"
12032 CHECKSHADOW="false"
12033 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12034 : ${with_logincap='yes'}
12037 CHECKSHADOW="false"
12041 CHECKSHADOW="false"
12042 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12043 : ${with_logincap='yes'}
12046 # lockf() on is broken on the NeXT -- use flock instead
12047 ac_cv_func_lockf=no
12048 ac_cv_func_flock=yes
12051 : ${mansectsu='1m'}
12052 : ${mansectform='4'}
12053 : ${with_rpath='yes'}
12056 : ${mansectsu='1m'}
12057 : ${mansectform='4'}
12060 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12064 AUTH_REG=${AUTH_REG# }
12065 AUTH_EXCL=${AUTH_EXCL# }
12066 if test -n "$AUTH_EXCL"; then
12068 if test $# != 1; then
12069 { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12070 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12071 { (exit 1); exit 1; }; }
12073 if test -n "$AUTH_REG"; then
12074 { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12075 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12076 { (exit 1); exit 1; }; }
12079 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12080 { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12081 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12082 { (exit 1); exit 1; }; }
12086 : ${mansectform='5'}
12088 if test -n "$with_libpath"; then
12089 for i in ${with_libpath}; do
12091 if test X"$with_rpath" = X"yes"; then
12092 LDFLAGS="${LDFLAGS} -L$i -R$i"
12094 LDFLAGS="${LDFLAGS} -L$i"
12096 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12097 blibpath_add="${blibpath_add}:$i"
12102 if test -n "$with_libraries"; then
12103 for i in ${with_libraries}; do
12110 LIBS="${LIBS} ${i}"
12114 if test $ac_cv_c_compiler_gnu = yes; then
12115 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12116 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12117 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 ac_pattern="Autoconf.*'x'"
12121 cat >conftest.$ac_ext <<_ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12131 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12132 ac_cv_prog_gcc_traditional=yes
12134 ac_cv_prog_gcc_traditional=no
12139 if test $ac_cv_prog_gcc_traditional = no; then
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 #include <termio.h>
12149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12150 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12151 ac_cv_prog_gcc_traditional=yes
12157 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12158 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12159 if test $ac_cv_prog_gcc_traditional = yes; then
12160 CC="$CC -traditional"
12164 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12165 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12166 if test "${ac_cv_c_const+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12179 /* FIXME: Include the comments suggested by Paul. */
12180 #ifndef __cplusplus
12181 /* Ultrix mips cc rejects this. */
12182 typedef int charset[2];
12184 /* SunOS 4.1.1 cc rejects this. */
12185 char const *const *pcpcc;
12187 /* NEC SVR4.0.2 mips cc rejects this. */
12188 struct point {int x, y;};
12189 static struct point const zero = {0,0};
12190 /* AIX XL C 1.02.0.0 rejects this.
12191 It does not let you subtract one const X* pointer from another in
12192 an arm of an if-expression whose if-part is not a constant
12194 const char *g = "string";
12195 pcpcc = &g + (g ? g-g : 0);
12196 /* HPUX 7.0 cc rejects these. */
12198 ppc = (char**) pcpcc;
12199 pcpcc = (char const *const *) ppc;
12200 { /* SCO 3.2v4 cc rejects this. */
12202 char const *s = 0 ? (char *) 0 : (char const *) 0;
12207 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12208 int x[] = {25, 17};
12209 const int *foo = &x[0];
12212 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12213 typedef const int *iptr;
12217 { /* AIX XL C 1.02.0.0 rejects this saying
12218 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12219 struct s { int j; const int *ap[3]; };
12220 struct s *b; b->j = 5;
12222 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12223 const int foo = 10;
12224 if (!foo) return 0;
12226 return !cs[0] && !zero.x;
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12261 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12262 if test $ac_cv_c_const = no; then
12264 cat >>confdefs.h <<\_ACEOF
12270 { echo "$as_me:$LINENO: checking for working volatile" >&5
12271 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12272 if test "${ac_cv_c_volatile+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12287 int * volatile y = (int *) 0;
12293 rm -f conftest.$ac_objext
12294 if { (ac_try="$ac_compile"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_compile") 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && {
12307 test -z "$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12309 } && test -s conftest.$ac_objext; then
12310 ac_cv_c_volatile=yes
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 ac_cv_c_volatile=no
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12321 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12322 if test $ac_cv_c_volatile = no; then
12324 cat >>confdefs.h <<\_ACEOF
12330 for ac_prog in 'bison -y' byacc
12332 # Extract the first word of "$ac_prog", so it can be a program name with args.
12333 set dummy $ac_prog; ac_word=$2
12334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12336 if test "${ac_cv_prog_YACC+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 if test -n "$YACC"; then
12340 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12349 ac_cv_prog_YACC="$ac_prog"
12350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 YACC=$ac_cv_prog_YACC
12360 if test -n "$YACC"; then
12361 { echo "$as_me:$LINENO: result: $YACC" >&5
12362 echo "${ECHO_T}$YACC" >&6; }
12364 { echo "$as_me:$LINENO: result: no" >&5
12365 echo "${ECHO_T}no" >&6; }
12369 test -n "$YACC" && break
12371 test -n "$YACC" || YACC="yacc"
12373 { echo "$as_me:$LINENO: checking for mv" >&5
12374 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
12375 if test -f "/usr/bin/mv"; then
12376 { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12377 echo "${ECHO_T}/usr/bin/mv" >&6; }
12378 cat >>confdefs.h <<\EOF
12379 #define _PATH_MV "/usr/bin/mv"
12382 elif test -f "/bin/mv"; then
12383 { echo "$as_me:$LINENO: result: /bin/mv" >&5
12384 echo "${ECHO_T}/bin/mv" >&6; }
12385 cat >>confdefs.h <<\EOF
12386 #define _PATH_MV "/bin/mv"
12389 elif test -f "/usr/ucb/mv"; then
12390 { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12391 echo "${ECHO_T}/usr/ucb/mv" >&6; }
12392 cat >>confdefs.h <<\EOF
12393 #define _PATH_MV "/usr/ucb/mv"
12396 elif test -f "/usr/sbin/mv"; then
12397 { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12398 echo "${ECHO_T}/usr/sbin/mv" >&6; }
12399 cat >>confdefs.h <<\EOF
12400 #define _PATH_MV "/usr/sbin/mv"
12404 { echo "$as_me:$LINENO: result: not found" >&5
12405 echo "${ECHO_T}not found" >&6; }
12408 { echo "$as_me:$LINENO: checking for bourne shell" >&5
12409 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
12410 if test -f "/bin/sh"; then
12411 { echo "$as_me:$LINENO: result: /bin/sh" >&5
12412 echo "${ECHO_T}/bin/sh" >&6; }
12413 cat >>confdefs.h <<\EOF
12414 #define _PATH_BSHELL "/bin/sh"
12417 elif test -f "/usr/bin/sh"; then
12418 { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12419 echo "${ECHO_T}/usr/bin/sh" >&6; }
12420 cat >>confdefs.h <<\EOF
12421 #define _PATH_BSHELL "/usr/bin/sh"
12424 elif test -f "/sbin/sh"; then
12425 { echo "$as_me:$LINENO: result: /sbin/sh" >&5
12426 echo "${ECHO_T}/sbin/sh" >&6; }
12427 cat >>confdefs.h <<\EOF
12428 #define _PATH_BSHELL "/sbin/sh"
12431 elif test -f "/usr/sbin/sh"; then
12432 { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
12433 echo "${ECHO_T}/usr/sbin/sh" >&6; }
12434 cat >>confdefs.h <<\EOF
12435 #define _PATH_BSHELL "/usr/sbin/sh"
12438 elif test -f "/bin/ksh"; then
12439 { echo "$as_me:$LINENO: result: /bin/ksh" >&5
12440 echo "${ECHO_T}/bin/ksh" >&6; }
12441 cat >>confdefs.h <<\EOF
12442 #define _PATH_BSHELL "/bin/ksh"
12445 elif test -f "/usr/bin/ksh"; then
12446 { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
12447 echo "${ECHO_T}/usr/bin/ksh" >&6; }
12448 cat >>confdefs.h <<\EOF
12449 #define _PATH_BSHELL "/usr/bin/ksh"
12452 elif test -f "/bin/bash"; then
12453 { echo "$as_me:$LINENO: result: /bin/bash" >&5
12454 echo "${ECHO_T}/bin/bash" >&6; }
12455 cat >>confdefs.h <<\EOF
12456 #define _PATH_BSHELL "/bin/bash"
12459 elif test -f "/usr/bin/bash"; then
12460 { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
12461 echo "${ECHO_T}/usr/bin/bash" >&6; }
12462 cat >>confdefs.h <<\EOF
12463 #define _PATH_BSHELL "/usr/bin/bash"
12467 { echo "$as_me:$LINENO: result: not found" >&5
12468 echo "${ECHO_T}not found" >&6; }
12471 if test -z "$with_sendmail"; then
12472 { echo "$as_me:$LINENO: checking for sendmail" >&5
12473 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
12474 if test -f "/usr/sbin/sendmail"; then
12475 { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
12476 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
12477 cat >>confdefs.h <<\EOF
12478 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
12481 elif test -f "/usr/lib/sendmail"; then
12482 { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
12483 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
12484 cat >>confdefs.h <<\EOF
12485 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
12488 elif test -f "/usr/etc/sendmail"; then
12489 { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
12490 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
12491 cat >>confdefs.h <<\EOF
12492 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
12495 elif test -f "/usr/ucblib/sendmail"; then
12496 { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
12497 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
12498 cat >>confdefs.h <<\EOF
12499 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
12502 elif test -f "/usr/local/lib/sendmail"; then
12503 { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
12504 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
12505 cat >>confdefs.h <<\EOF
12506 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
12509 elif test -f "/usr/local/bin/sendmail"; then
12510 { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
12511 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
12512 cat >>confdefs.h <<\EOF
12513 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
12517 { echo "$as_me:$LINENO: result: not found" >&5
12518 echo "${ECHO_T}not found" >&6; }
12522 if test -z "$with_editor"; then
12523 { echo "$as_me:$LINENO: checking for vi" >&5
12524 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
12525 if test -f "/usr/bin/vi"; then
12526 { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
12527 echo "${ECHO_T}/usr/bin/vi" >&6; }
12528 cat >>confdefs.h <<\EOF
12529 #define _PATH_VI "/usr/bin/vi"
12532 elif test -f "/usr/ucb/vi"; then
12533 { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
12534 echo "${ECHO_T}/usr/ucb/vi" >&6; }
12535 cat >>confdefs.h <<\EOF
12536 #define _PATH_VI "/usr/ucb/vi"
12539 elif test -f "/usr/bsd/vi"; then
12540 { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
12541 echo "${ECHO_T}/usr/bsd/vi" >&6; }
12542 cat >>confdefs.h <<\EOF
12543 #define _PATH_VI "/usr/bsd/vi"
12546 elif test -f "/bin/vi"; then
12547 { echo "$as_me:$LINENO: result: /bin/vi" >&5
12548 echo "${ECHO_T}/bin/vi" >&6; }
12549 cat >>confdefs.h <<\EOF
12550 #define _PATH_VI "/bin/vi"
12553 elif test -f "/usr/local/bin/vi"; then
12554 { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
12555 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
12556 cat >>confdefs.h <<\EOF
12557 #define _PATH_VI "/usr/local/bin/vi"
12561 { echo "$as_me:$LINENO: result: not found" >&5
12562 echo "${ECHO_T}not found" >&6; }
12566 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12568 if test "${ac_cv_header_stdc+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 cat >conftest.$ac_ext <<_ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 #include <stdlib.h>
12578 #include <stdarg.h>
12579 #include <string.h>
12590 rm -f conftest.$ac_objext
12591 if { (ac_try="$ac_compile"
12592 case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_compile") 2>conftest.er1
12599 grep -v '^ *+' conftest.er1 >conftest.err
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } && {
12604 test -z "$ac_c_werror_flag" ||
12605 test ! -s conftest.err
12606 } && test -s conftest.$ac_objext; then
12607 ac_cv_header_stdc=yes
12609 echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12612 ac_cv_header_stdc=no
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617 if test $ac_cv_header_stdc = yes; then
12618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12619 cat >conftest.$ac_ext <<_ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12625 #include <string.h>
12628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12629 $EGREP "memchr" >/dev/null 2>&1; then
12632 ac_cv_header_stdc=no
12638 if test $ac_cv_header_stdc = yes; then
12639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12640 cat >conftest.$ac_ext <<_ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h. */
12646 #include <stdlib.h>
12649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12650 $EGREP "free" >/dev/null 2>&1; then
12653 ac_cv_header_stdc=no
12659 if test $ac_cv_header_stdc = yes; then
12660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12661 if test "$cross_compiling" = yes; then
12664 cat >conftest.$ac_ext <<_ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12671 #include <stdlib.h>
12672 #if ((' ' & 0x0FF) == 0x020)
12673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12676 # define ISLOWER(c) \
12677 (('a' <= (c) && (c) <= 'i') \
12678 || ('j' <= (c) && (c) <= 'r') \
12679 || ('s' <= (c) && (c) <= 'z'))
12680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12688 for (i = 0; i < 256; i++)
12689 if (XOR (islower (i), ISLOWER (i))
12690 || toupper (i) != TOUPPER (i))
12695 rm -f conftest$ac_exeext
12696 if { (ac_try="$ac_link"
12697 case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_link") 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12706 { (case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_try") 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12717 echo "$as_me: program exited with status $ac_status" >&5
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12721 ( exit $ac_status )
12722 ac_cv_header_stdc=no
12724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12730 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12731 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
12732 if test $ac_cv_header_stdc = yes; then
12734 cat >>confdefs.h <<\_ACEOF
12735 #define STDC_HEADERS 1
12745 ac_header_dirent=no
12746 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12747 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12748 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12749 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
12750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 cat >conftest.$ac_ext <<_ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 #include <sys/types.h>
12771 rm -f conftest.$ac_objext
12772 if { (ac_try="$ac_compile"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_compile") 2>conftest.er1
12780 grep -v '^ *+' conftest.er1 >conftest.err
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest.$ac_objext; then
12788 eval "$as_ac_Header=yes"
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12793 eval "$as_ac_Header=no"
12796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 ac_res=`eval echo '${'$as_ac_Header'}'`
12799 { echo "$as_me:$LINENO: result: $ac_res" >&5
12800 echo "${ECHO_T}$ac_res" >&6; }
12801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12802 cat >>confdefs.h <<_ACEOF
12803 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12806 ac_header_dirent=$ac_hdr; break
12810 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12811 if test $ac_header_dirent = dirent.h; then
12812 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12813 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12814 if test "${ac_cv_search_opendir+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 ac_func_search_save_LIBS=$LIBS
12818 cat >conftest.$ac_ext <<_ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h. */
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply. */
12840 for ac_lib in '' dir; do
12841 if test -z "$ac_lib"; then
12842 ac_res="none required"
12845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12847 rm -f conftest.$ac_objext conftest$ac_exeext
12848 if { (ac_try="$ac_link"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854 (eval "$ac_link") 2>conftest.er1
12856 grep -v '^ *+' conftest.er1 >conftest.err
12858 cat conftest.err >&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } && {
12861 test -z "$ac_c_werror_flag" ||
12862 test ! -s conftest.err
12863 } && test -s conftest$ac_exeext &&
12864 $as_test_x conftest$ac_exeext; then
12865 ac_cv_search_opendir=$ac_res
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12875 if test "${ac_cv_search_opendir+set}" = set; then
12879 if test "${ac_cv_search_opendir+set}" = set; then
12882 ac_cv_search_opendir=no
12884 rm conftest.$ac_ext
12885 LIBS=$ac_func_search_save_LIBS
12887 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12888 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12889 ac_res=$ac_cv_search_opendir
12890 if test "$ac_res" != no; then
12891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12896 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12897 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12898 if test "${ac_cv_search_opendir+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 ac_func_search_save_LIBS=$LIBS
12902 cat >conftest.$ac_ext <<_ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12909 /* Override any GCC internal prototype to avoid an error.
12910 Use char because int might match the return type of a GCC
12911 builtin and then its argument prototype would still apply. */
12924 for ac_lib in '' x; do
12925 if test -z "$ac_lib"; then
12926 ac_res="none required"
12929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (ac_try="$ac_link"
12933 case "(($ac_try" in
12934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12935 *) ac_try_echo=$ac_try;;
12937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12938 (eval "$ac_link") 2>conftest.er1
12940 grep -v '^ *+' conftest.er1 >conftest.err
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } && {
12945 test -z "$ac_c_werror_flag" ||
12946 test ! -s conftest.err
12947 } && test -s conftest$ac_exeext &&
12948 $as_test_x conftest$ac_exeext; then
12949 ac_cv_search_opendir=$ac_res
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12959 if test "${ac_cv_search_opendir+set}" = set; then
12963 if test "${ac_cv_search_opendir+set}" = set; then
12966 ac_cv_search_opendir=no
12968 rm conftest.$ac_ext
12969 LIBS=$ac_func_search_save_LIBS
12971 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12972 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12973 ac_res=$ac_cv_search_opendir
12974 if test "$ac_res" != no; then
12975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12981 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12982 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12983 if test "${ac_cv_header_time+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 cat >conftest.$ac_ext <<_ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h. */
12992 #include <sys/types.h>
12993 #include <sys/time.h>
12999 if ((struct tm *) 0)
13005 rm -f conftest.$ac_objext
13006 if { (ac_try="$ac_compile"
13007 case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_compile") 2>conftest.er1
13014 grep -v '^ *+' conftest.er1 >conftest.err
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } && {
13019 test -z "$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 } && test -s conftest.$ac_objext; then
13022 ac_cv_header_time=yes
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13027 ac_cv_header_time=no
13030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13032 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13033 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13034 if test $ac_cv_header_time = yes; then
13036 cat >>confdefs.h <<\_ACEOF
13037 #define TIME_WITH_SYS_TIME 1
13049 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13058 ac_res=`eval echo '${'$as_ac_Header'}'`
13059 { echo "$as_me:$LINENO: result: $ac_res" >&5
13060 echo "${ECHO_T}$ac_res" >&6; }
13062 # Is the header compilable?
13063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13065 cat >conftest.$ac_ext <<_ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13071 $ac_includes_default
13072 #include <$ac_header>
13074 rm -f conftest.$ac_objext
13075 if { (ac_try="$ac_compile"
13076 case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081 (eval "$ac_compile") 2>conftest.er1
13083 grep -v '^ *+' conftest.er1 >conftest.err
13085 cat conftest.err >&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } && {
13088 test -z "$ac_c_werror_flag" ||
13089 test ! -s conftest.err
13090 } && test -s conftest.$ac_objext; then
13091 ac_header_compiler=yes
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13096 ac_header_compiler=no
13099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13101 echo "${ECHO_T}$ac_header_compiler" >&6; }
13103 # Is the header present?
13104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13106 cat >conftest.$ac_ext <<_ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13112 #include <$ac_header>
13114 if { (ac_try="$ac_cpp conftest.$ac_ext"
13115 case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13122 grep -v '^ *+' conftest.er1 >conftest.err
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } >/dev/null && {
13127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13128 test ! -s conftest.err
13130 ac_header_preproc=yes
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_header_preproc=no
13138 rm -f conftest.err conftest.$ac_ext
13139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13140 echo "${ECHO_T}$ac_header_preproc" >&6; }
13142 # So? What about this header?
13143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13149 ac_header_preproc=yes
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 eval "$as_ac_Header=\$ac_header_preproc"
13174 ac_res=`eval echo '${'$as_ac_Header'}'`
13175 { echo "$as_me:$LINENO: result: $ac_res" >&5
13176 echo "${ECHO_T}$ac_res" >&6; }
13179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13180 cat >>confdefs.h <<_ACEOF
13181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13189 for ac_header in err.h
13191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 ac_res=`eval echo '${'$as_ac_Header'}'`
13199 { echo "$as_me:$LINENO: result: $ac_res" >&5
13200 echo "${ECHO_T}$ac_res" >&6; }
13202 # Is the header compilable?
13203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13205 cat >conftest.$ac_ext <<_ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211 $ac_includes_default
13212 #include <$ac_header>
13214 rm -f conftest.$ac_objext
13215 if { (ac_try="$ac_compile"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_compile") 2>conftest.er1
13223 grep -v '^ *+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } && {
13228 test -z "$ac_c_werror_flag" ||
13229 test ! -s conftest.err
13230 } && test -s conftest.$ac_objext; then
13231 ac_header_compiler=yes
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ac_header_compiler=no
13239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13241 echo "${ECHO_T}$ac_header_compiler" >&6; }
13243 # Is the header present?
13244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13246 cat >conftest.$ac_ext <<_ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 #include <$ac_header>
13254 if { (ac_try="$ac_cpp conftest.$ac_ext"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13262 grep -v '^ *+' conftest.er1 >conftest.err
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } >/dev/null && {
13267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13270 ac_header_preproc=yes
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13275 ac_header_preproc=no
13278 rm -f conftest.err conftest.$ac_ext
13279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13280 echo "${ECHO_T}$ac_header_preproc" >&6; }
13282 # So? What about this header?
13283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13289 ac_header_preproc=yes
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 eval "$as_ac_Header=\$ac_header_preproc"
13314 ac_res=`eval echo '${'$as_ac_Header'}'`
13315 { echo "$as_me:$LINENO: result: $ac_res" >&5
13316 echo "${ECHO_T}$ac_res" >&6; }
13319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13320 cat >>confdefs.h <<_ACEOF
13321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13325 case " $LIBOBJS " in
13326 *" err.$ac_objext "* ) ;;
13327 *) LIBOBJS="$LIBOBJS err.$ac_objext"
13335 if test "$OS" != "ultrix"; then
13336 { echo "$as_me:$LINENO: checking POSIX termios" >&5
13337 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13338 if test "${ac_cv_sys_posix_termios+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 #include <sys/types.h>
13348 #include <unistd.h>
13349 #include <termios.h>
13354 /* SunOS 4.0.3 has termios.h but not the library calls. */
13360 rm -f conftest.$ac_objext conftest$ac_exeext
13361 if { (ac_try="$ac_link"
13362 case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367 (eval "$ac_link") 2>conftest.er1
13369 grep -v '^ *+' conftest.er1 >conftest.err
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } && {
13374 test -z "$ac_c_werror_flag" ||
13375 test ! -s conftest.err
13376 } && test -s conftest$ac_exeext &&
13377 $as_test_x conftest$ac_exeext; then
13378 ac_cv_sys_posix_termios=yes
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 ac_cv_sys_posix_termios=no
13386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13387 conftest$ac_exeext conftest.$ac_ext
13389 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13390 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13392 if test "$ac_cv_sys_posix_termios" = "yes"; then
13393 cat >>confdefs.h <<\_ACEOF
13394 #define HAVE_TERMIOS_H 1
13399 for ac_header in termio.h
13401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 ac_res=`eval echo '${'$as_ac_Header'}'`
13409 { echo "$as_me:$LINENO: result: $ac_res" >&5
13410 echo "${ECHO_T}$ac_res" >&6; }
13412 # Is the header compilable?
13413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13415 cat >conftest.$ac_ext <<_ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 $ac_includes_default
13422 #include <$ac_header>
13424 rm -f conftest.$ac_objext
13425 if { (ac_try="$ac_compile"
13426 case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_compile") 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && {
13438 test -z "$ac_c_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest.$ac_objext; then
13441 ac_header_compiler=yes
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13446 ac_header_compiler=no
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13451 echo "${ECHO_T}$ac_header_compiler" >&6; }
13453 # Is the header present?
13454 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 #include <$ac_header>
13464 if { (ac_try="$ac_cpp conftest.$ac_ext"
13465 case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13472 grep -v '^ *+' conftest.er1 >conftest.err
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } >/dev/null && {
13477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13478 test ! -s conftest.err
13480 ac_header_preproc=yes
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13485 ac_header_preproc=no
13488 rm -f conftest.err conftest.$ac_ext
13489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13490 echo "${ECHO_T}$ac_header_preproc" >&6; }
13492 # So? What about this header?
13493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13499 ac_header_preproc=yes
13502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 eval "$as_ac_Header=\$ac_header_preproc"
13524 ac_res=`eval echo '${'$as_ac_Header'}'`
13525 { echo "$as_me:$LINENO: result: $ac_res" >&5
13526 echo "${ECHO_T}$ac_res" >&6; }
13529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13530 cat >>confdefs.h <<_ACEOF
13531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13540 if test ${with_logincap-'no'} != "no"; then
13542 for ac_header in login_cap.h
13544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 ac_res=`eval echo '${'$as_ac_Header'}'`
13552 { echo "$as_me:$LINENO: result: $ac_res" >&5
13553 echo "${ECHO_T}$ac_res" >&6; }
13555 # Is the header compilable?
13556 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13558 cat >conftest.$ac_ext <<_ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564 $ac_includes_default
13565 #include <$ac_header>
13567 rm -f conftest.$ac_objext
13568 if { (ac_try="$ac_compile"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_compile") 2>conftest.er1
13576 grep -v '^ *+' conftest.er1 >conftest.err
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && {
13581 test -z "$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13583 } && test -s conftest.$ac_objext; then
13584 ac_header_compiler=yes
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_header_compiler=no
13592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13594 echo "${ECHO_T}$ac_header_compiler" >&6; }
13596 # Is the header present?
13597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13599 cat >conftest.$ac_ext <<_ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 #include <$ac_header>
13607 if { (ac_try="$ac_cpp conftest.$ac_ext"
13608 case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13615 grep -v '^ *+' conftest.er1 >conftest.err
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } >/dev/null && {
13620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13623 ac_header_preproc=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_header_preproc=no
13631 rm -f conftest.err conftest.$ac_ext
13632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633 echo "${ECHO_T}$ac_header_preproc" >&6; }
13635 # So? What about this header?
13636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13642 ac_header_preproc=yes
13645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 eval "$as_ac_Header=\$ac_header_preproc"
13667 ac_res=`eval echo '${'$as_ac_Header'}'`
13668 { echo "$as_me:$LINENO: result: $ac_res" >&5
13669 echo "${ECHO_T}$ac_res" >&6; }
13672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13673 cat >>confdefs.h <<_ACEOF
13674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13678 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
13687 if test ${with_project-'no'} != "no"; then
13688 if test "${ac_cv_header_project_h+set}" = set; then
13689 { echo "$as_me:$LINENO: checking for project.h" >&5
13690 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13691 if test "${ac_cv_header_project_h+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13695 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13697 # Is the header compilable?
13698 { echo "$as_me:$LINENO: checking project.h usability" >&5
13699 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
13700 cat >conftest.$ac_ext <<_ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 $ac_includes_default
13707 #include <project.h>
13709 rm -f conftest.$ac_objext
13710 if { (ac_try="$ac_compile"
13711 case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_compile") 2>conftest.er1
13718 grep -v '^ *+' conftest.er1 >conftest.err
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } && {
13723 test -z "$ac_c_werror_flag" ||
13724 test ! -s conftest.err
13725 } && test -s conftest.$ac_objext; then
13726 ac_header_compiler=yes
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 ac_header_compiler=no
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13736 echo "${ECHO_T}$ac_header_compiler" >&6; }
13738 # Is the header present?
13739 { echo "$as_me:$LINENO: checking project.h presence" >&5
13740 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
13741 cat >conftest.$ac_ext <<_ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747 #include <project.h>
13749 if { (ac_try="$ac_cpp conftest.$ac_ext"
13750 case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13757 grep -v '^ *+' conftest.er1 >conftest.err
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } >/dev/null && {
13762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13763 test ! -s conftest.err
13765 ac_header_preproc=yes
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13770 ac_header_preproc=no
13773 rm -f conftest.err conftest.$ac_ext
13774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13775 echo "${ECHO_T}$ac_header_preproc" >&6; }
13777 # So? What about this header?
13778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13780 { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
13781 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13782 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
13783 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
13784 ac_header_preproc=yes
13787 { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
13788 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
13790 echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
13792 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
13794 echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
13796 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
13798 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
13802 { echo "$as_me:$LINENO: checking for project.h" >&5
13803 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13804 if test "${ac_cv_header_project_h+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 ac_cv_header_project_h=$ac_header_preproc
13809 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13810 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13813 if test $ac_cv_header_project_h = yes; then
13814 cat >>confdefs.h <<\_ACEOF
13815 #define HAVE_PROJECT_H 1
13818 SUDO_LIBS="${SUDO_LIBS} -lproject"
13825 { echo "$as_me:$LINENO: checking for mode_t" >&5
13826 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
13827 if test "${ac_cv_type_mode_t+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 typedef mode_t ac__type_new_;
13841 if ((ac__type_new_ *) 0)
13843 if (sizeof (ac__type_new_))
13849 rm -f conftest.$ac_objext
13850 if { (ac_try="$ac_compile"
13851 case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_compile") 2>conftest.er1
13858 grep -v '^ *+' conftest.er1 >conftest.err
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } && {
13863 test -z "$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13865 } && test -s conftest.$ac_objext; then
13866 ac_cv_type_mode_t=yes
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13871 ac_cv_type_mode_t=no
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13876 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13877 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
13878 if test $ac_cv_type_mode_t = yes; then
13882 cat >>confdefs.h <<_ACEOF
13888 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13889 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
13890 if test "${ac_cv_type_uid_t+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 cat >conftest.$ac_ext <<_ACEOF
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13899 #include <sys/types.h>
13902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13903 $EGREP "uid_t" >/dev/null 2>&1; then
13904 ac_cv_type_uid_t=yes
13906 ac_cv_type_uid_t=no
13911 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13912 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
13913 if test $ac_cv_type_uid_t = no; then
13915 cat >>confdefs.h <<\_ACEOF
13920 cat >>confdefs.h <<\_ACEOF
13926 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
13927 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
13928 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 #include <sys/types.h>
13938 #include <signal.h>
13940 typedef sig_atomic_t ac__type_new_;
13944 if ((ac__type_new_ *) 0)
13946 if (sizeof (ac__type_new_))
13952 rm -f conftest.$ac_objext
13953 if { (ac_try="$ac_compile"
13954 case "(($ac_try" in
13955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956 *) ac_try_echo=$ac_try;;
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_compile") 2>conftest.er1
13961 grep -v '^ *+' conftest.er1 >conftest.err
13963 cat conftest.err >&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } && {
13966 test -z "$ac_c_werror_flag" ||
13967 test ! -s conftest.err
13968 } && test -s conftest.$ac_objext; then
13969 ac_cv_type_sig_atomic_t=yes
13971 echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13974 ac_cv_type_sig_atomic_t=no
13977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
13980 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
13981 if test $ac_cv_type_sig_atomic_t = yes; then
13983 cat >>confdefs.h <<_ACEOF
13984 #define HAVE_SIG_ATOMIC_T 1
13989 cat >>confdefs.h <<\_ACEOF
13990 #define sig_atomic_t int
13995 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
13996 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
13997 if test "${ac_cv_type_sigaction_t+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 #include <sys/types.h>
14007 #include <signal.h>
14009 typedef sigaction_t ac__type_new_;
14013 if ((ac__type_new_ *) 0)
14015 if (sizeof (ac__type_new_))
14021 rm -f conftest.$ac_objext
14022 if { (ac_try="$ac_compile"
14023 case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_compile") 2>conftest.er1
14030 grep -v '^ *+' conftest.er1 >conftest.err
14032 cat conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && {
14035 test -z "$ac_c_werror_flag" ||
14036 test ! -s conftest.err
14037 } && test -s conftest.$ac_objext; then
14038 ac_cv_type_sigaction_t=yes
14040 echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.$ac_ext >&5
14043 ac_cv_type_sigaction_t=no
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14049 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14050 if test $ac_cv_type_sigaction_t = yes; then
14052 cat >>confdefs.h <<_ACEOF
14053 #define HAVE_SIGACTION_T 1
14056 cat >>confdefs.h <<\_ACEOF
14057 #define HAVE_SIGACTION_T 1
14062 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14063 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14064 if test "${ac_cv_type_struct_timespec+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 #include <sys/types.h>
14074 #if TIME_WITH_SYS_TIME
14075 # include <sys/time.h>
14079 typedef struct timespec ac__type_new_;
14083 if ((ac__type_new_ *) 0)
14085 if (sizeof (ac__type_new_))
14091 rm -f conftest.$ac_objext
14092 if { (ac_try="$ac_compile"
14093 case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_compile") 2>conftest.er1
14100 grep -v '^ *+' conftest.er1 >conftest.err
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && {
14105 test -z "$ac_c_werror_flag" ||
14106 test ! -s conftest.err
14107 } && test -s conftest.$ac_objext; then
14108 ac_cv_type_struct_timespec=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_type_struct_timespec=no
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14118 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14119 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14120 if test $ac_cv_type_struct_timespec = yes; then
14121 cat >>confdefs.h <<\_ACEOF
14122 #define HAVE_TIMESPEC 1
14127 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14128 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14129 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 cat >conftest.$ac_ext <<_ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 #include <sys/types.h>
14139 #include <netinet/in.h>
14141 typedef struct in6_addr ac__type_new_;
14145 if ((ac__type_new_ *) 0)
14147 if (sizeof (ac__type_new_))
14153 rm -f conftest.$ac_objext
14154 if { (ac_try="$ac_compile"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_compile") 2>conftest.er1
14162 grep -v '^ *+' conftest.er1 >conftest.err
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest.$ac_objext; then
14170 ac_cv_type_struct_in6_addr=yes
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 ac_cv_type_struct_in6_addr=no
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14181 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14182 if test $ac_cv_type_struct_in6_addr = yes; then
14184 cat >>confdefs.h <<_ACEOF
14185 #define HAVE_STRUCT_IN6_ADDR 1
14188 cat >>confdefs.h <<\_ACEOF
14189 #define HAVE_IN6_ADDR 1
14194 { echo "$as_me:$LINENO: checking for size_t" >&5
14195 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14196 if test "${sudo_cv_type_size_t+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 cat >conftest.$ac_ext <<_ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14205 #include <sys/types.h>
14208 #include <stdlib.h>
14211 #include <unistd.h>
14214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14215 $EGREP "size_t" >/dev/null 2>&1; then
14216 sudo_cv_type_size_t=yes
14218 sudo_cv_type_size_t=no
14223 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14224 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14225 if test $sudo_cv_type_size_t = no; then
14227 cat >>confdefs.h <<\_ACEOF
14233 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14234 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14235 if test "${sudo_cv_type_ssize_t+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <sys/types.h>
14247 #include <stdlib.h>
14250 #include <unistd.h>
14253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14254 $EGREP "ssize_t" >/dev/null 2>&1; then
14255 sudo_cv_type_ssize_t=yes
14257 sudo_cv_type_ssize_t=no
14262 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14263 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14264 if test $sudo_cv_type_ssize_t = no; then
14266 cat >>confdefs.h <<\_ACEOF
14267 #define ssize_t int
14272 { echo "$as_me:$LINENO: checking for dev_t" >&5
14273 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
14274 if test "${sudo_cv_type_dev_t+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <sys/types.h>
14286 #include <stdlib.h>
14289 #include <unistd.h>
14292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14293 $EGREP "dev_t" >/dev/null 2>&1; then
14294 sudo_cv_type_dev_t=yes
14296 sudo_cv_type_dev_t=no
14301 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14302 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
14303 if test $sudo_cv_type_dev_t = no; then
14305 cat >>confdefs.h <<\_ACEOF
14311 { echo "$as_me:$LINENO: checking for ino_t" >&5
14312 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14313 if test "${sudo_cv_type_ino_t+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 cat >conftest.$ac_ext <<_ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 #include <sys/types.h>
14325 #include <stdlib.h>
14328 #include <unistd.h>
14331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14332 $EGREP "ino_t" >/dev/null 2>&1; then
14333 sudo_cv_type_ino_t=yes
14335 sudo_cv_type_ino_t=no
14340 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14341 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14342 if test $sudo_cv_type_ino_t = no; then
14344 cat >>confdefs.h <<\_ACEOF
14345 #define ino_t unsigned int
14350 { echo "$as_me:$LINENO: checking for full void implementation" >&5
14351 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6; }
14352 cat >conftest.$ac_ext <<_ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14363 foo = (void *)0; (void *)"test";
14368 rm -f conftest.$ac_objext
14369 if { (ac_try="$ac_compile"
14370 case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_compile") 2>conftest.er1
14377 grep -v '^ *+' conftest.er1 >conftest.err
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } && {
14382 test -z "$ac_c_werror_flag" ||
14383 test ! -s conftest.err
14384 } && test -s conftest.$ac_objext; then
14386 cat >>confdefs.h <<\_ACEOF
14390 { echo "$as_me:$LINENO: result: yes" >&5
14391 echo "${ECHO_T}yes" >&6; }
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 cat >>confdefs.h <<\_ACEOF
14400 { echo "$as_me:$LINENO: result: no" >&5
14401 echo "${ECHO_T}no" >&6; }
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14407 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14408 if test "${sudo_cv_uid_t_len+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 if test "$cross_compiling" = yes; then
14413 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14414 See \`config.log' for more details." >&5
14415 echo "$as_me: error: cannot run test program while cross compiling
14416 See \`config.log' for more details." >&2;}
14417 { (exit 1); exit 1; }; }
14419 cat >conftest.$ac_ext <<_ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14427 #include <limits.h>
14428 #include <sys/types.h>
14429 #include <sys/param.h>
14433 uid_t u = (uid_t) -1;
14435 if ((f = fopen("conftestdata", "w")) == NULL)
14438 (void) sprintf(b, "%lu", (unsigned long) u);
14439 (void) fprintf(f, "%d\n", strlen(b));
14444 rm -f conftest$ac_exeext
14445 if { (ac_try="$ac_link"
14446 case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_link") 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14455 { (case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_try") 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 sudo_cv_uid_t_len=`cat conftestdata`
14466 echo "$as_me: program exited with status $ac_status" >&5
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 ( exit $ac_status )
14471 sudo_cv_uid_t_len=10
14473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14481 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14482 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14484 cat >>confdefs.h <<_ACEOF
14485 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14489 { echo "$as_me:$LINENO: checking for long long" >&5
14490 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14491 if test "${ac_cv_type_long_long+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 cat >conftest.$ac_ext <<_ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 $ac_includes_default
14501 typedef long long ac__type_new_;
14505 if ((ac__type_new_ *) 0)
14507 if (sizeof (ac__type_new_))
14513 rm -f conftest.$ac_objext
14514 if { (ac_try="$ac_compile"
14515 case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_compile") 2>conftest.er1
14522 grep -v '^ *+' conftest.er1 >conftest.err
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } && {
14527 test -z "$ac_c_werror_flag" ||
14528 test ! -s conftest.err
14529 } && test -s conftest.$ac_objext; then
14530 ac_cv_type_long_long=yes
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 ac_cv_type_long_long=no
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14541 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14542 if test $ac_cv_type_long_long = yes; then
14544 cat >>confdefs.h <<_ACEOF
14545 #define HAVE_LONG_LONG 1
14549 cat >>confdefs.h <<\_ACEOF
14550 #define HAVE_LONG_LONG 1
14553 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
14554 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
14555 if test "${sudo_cv_type_long_is_quad+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 if test "$cross_compiling" = yes; then
14559 sudo_cv_type_long_is_quad=no
14561 cat >conftest.$ac_ext <<_ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14569 if (sizeof(long long) == sizeof(long)) exit(0);
14573 rm -f conftest$ac_exeext
14574 if { (ac_try="$ac_link"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_link") 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14584 { (case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_try") 2>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; }; then
14593 sudo_cv_type_long_is_quad=yes
14595 echo "$as_me: program exited with status $ac_status" >&5
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14599 ( exit $ac_status )
14600 sudo_cv_type_long_is_quad=no
14602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14606 rm -f core core.* *.core
14608 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
14609 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
14610 if test $sudo_cv_type_long_is_quad = yes; then
14612 cat >>confdefs.h <<\_ACEOF
14613 #define LONG_IS_QUAD 1
14620 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
14621 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
14622 if test "${sudo_cv_sock_sa_len+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 if test "$cross_compiling" = yes; then
14626 sudo_cv_sock_sa_len=no
14628 cat >conftest.$ac_ext <<_ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14634 #include <sys/types.h>
14635 #include <sys/socket.h>
14642 rm -f conftest$ac_exeext
14643 if { (ac_try="$ac_link"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14653 { (case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_try") 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 sudo_cv_sock_sa_len=yes
14664 echo "$as_me: program exited with status $ac_status" >&5
14665 echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14668 ( exit $ac_status )
14669 sudo_cv_sock_sa_len=no
14671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14675 rm -f core core.* *.core
14677 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
14678 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
14679 if test $sudo_cv_sock_sa_len = yes; then
14681 cat >>confdefs.h <<\_ACEOF
14682 #define HAVE_SA_LEN 1
14689 *) { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14690 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14691 if test "${ac_cv_type_signal+set}" = set; then
14692 echo $ECHO_N "(cached) $ECHO_C" >&6
14694 cat >conftest.$ac_ext <<_ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14700 #include <sys/types.h>
14701 #include <signal.h>
14706 return *(signal (0, 0)) (0) == 1;
14711 rm -f conftest.$ac_objext
14712 if { (ac_try="$ac_compile"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_compile") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } && {
14725 test -z "$ac_c_werror_flag" ||
14726 test ! -s conftest.err
14727 } && test -s conftest.$ac_objext; then
14728 ac_cv_type_signal=int
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 ac_cv_type_signal=void
14736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14738 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14739 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14741 cat >>confdefs.h <<_ACEOF
14742 #define RETSIGTYPE $ac_cv_type_signal
14762 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
14763 strftime setrlimit initgroups getgroups fstat gettimeofday \
14764 setlocale getaddrinfo
14766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 cat >conftest.$ac_ext <<_ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14780 #define $ac_func innocuous_$ac_func
14782 /* System header to define __stub macros and hopefully few prototypes,
14783 which can conflict with char $ac_func (); below.
14784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14785 <limits.h> exists even on freestanding compilers. */
14788 # include <limits.h>
14790 # include <assert.h>
14795 /* Override any GCC internal prototype to avoid an error.
14796 Use char because int might match the return type of a GCC
14797 builtin and then its argument prototype would still apply. */
14802 /* The GNU C library defines this for functions which it implements
14803 to always fail with ENOSYS. Some functions are actually named
14804 something starting with __ and the normal name is an alias. */
14805 #if defined __stub_$ac_func || defined __stub___$ac_func
14812 return $ac_func ();
14817 rm -f conftest.$ac_objext conftest$ac_exeext
14818 if { (ac_try="$ac_link"
14819 case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_link") 2>conftest.er1
14826 grep -v '^ *+' conftest.er1 >conftest.err
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } && {
14831 test -z "$ac_c_werror_flag" ||
14832 test ! -s conftest.err
14833 } && test -s conftest$ac_exeext &&
14834 $as_test_x conftest$ac_exeext; then
14835 eval "$as_ac_var=yes"
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 eval "$as_ac_var=no"
14843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14844 conftest$ac_exeext conftest.$ac_ext
14846 ac_res=`eval echo '${'$as_ac_var'}'`
14847 { echo "$as_me:$LINENO: result: $ac_res" >&5
14848 echo "${ECHO_T}$ac_res" >&6; }
14849 if test `eval echo '${'$as_ac_var'}'` = yes; then
14850 cat >>confdefs.h <<_ACEOF
14851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14857 if test -z "$SKIP_SETRESUID"; then
14859 for ac_func in setresuid
14861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14875 #define $ac_func innocuous_$ac_func
14877 /* System header to define __stub macros and hopefully few prototypes,
14878 which can conflict with char $ac_func (); below.
14879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14880 <limits.h> exists even on freestanding compilers. */
14883 # include <limits.h>
14885 # include <assert.h>
14890 /* Override any GCC internal prototype to avoid an error.
14891 Use char because int might match the return type of a GCC
14892 builtin and then its argument prototype would still apply. */
14897 /* The GNU C library defines this for functions which it implements
14898 to always fail with ENOSYS. Some functions are actually named
14899 something starting with __ and the normal name is an alias. */
14900 #if defined __stub_$ac_func || defined __stub___$ac_func
14907 return $ac_func ();
14912 rm -f conftest.$ac_objext conftest$ac_exeext
14913 if { (ac_try="$ac_link"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_link") 2>conftest.er1
14921 grep -v '^ *+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest$ac_exeext &&
14929 $as_test_x conftest$ac_exeext; then
14930 eval "$as_ac_var=yes"
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 eval "$as_ac_var=no"
14938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14939 conftest$ac_exeext conftest.$ac_ext
14941 ac_res=`eval echo '${'$as_ac_var'}'`
14942 { echo "$as_me:$LINENO: result: $ac_res" >&5
14943 echo "${ECHO_T}$ac_res" >&6; }
14944 if test `eval echo '${'$as_ac_var'}'` = yes; then
14945 cat >>confdefs.h <<_ACEOF
14946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14953 if test -z "$SKIP_SETREUID"; then
14955 for ac_func in setreuid
14957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14963 cat >conftest.$ac_ext <<_ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14971 #define $ac_func innocuous_$ac_func
14973 /* System header to define __stub macros and hopefully few prototypes,
14974 which can conflict with char $ac_func (); below.
14975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14976 <limits.h> exists even on freestanding compilers. */
14979 # include <limits.h>
14981 # include <assert.h>
14986 /* Override any GCC internal prototype to avoid an error.
14987 Use char because int might match the return type of a GCC
14988 builtin and then its argument prototype would still apply. */
14993 /* The GNU C library defines this for functions which it implements
14994 to always fail with ENOSYS. Some functions are actually named
14995 something starting with __ and the normal name is an alias. */
14996 #if defined __stub_$ac_func || defined __stub___$ac_func
15003 return $ac_func ();
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (ac_try="$ac_link"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_link") 2>conftest.er1
15017 grep -v '^ *+' conftest.er1 >conftest.err
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && {
15022 test -z "$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest$ac_exeext &&
15025 $as_test_x conftest$ac_exeext; then
15026 eval "$as_ac_var=yes"
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 eval "$as_ac_var=no"
15034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15035 conftest$ac_exeext conftest.$ac_ext
15037 ac_res=`eval echo '${'$as_ac_var'}'`
15038 { echo "$as_me:$LINENO: result: $ac_res" >&5
15039 echo "${ECHO_T}$ac_res" >&6; }
15040 if test `eval echo '${'$as_ac_var'}'` = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15049 if test -z "$SKIP_SETEUID"; then
15051 for ac_func in seteuid
15053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15067 #define $ac_func innocuous_$ac_func
15069 /* System header to define __stub macros and hopefully few prototypes,
15070 which can conflict with char $ac_func (); below.
15071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15072 <limits.h> exists even on freestanding compilers. */
15075 # include <limits.h>
15077 # include <assert.h>
15082 /* Override any GCC internal prototype to avoid an error.
15083 Use char because int might match the return type of a GCC
15084 builtin and then its argument prototype would still apply. */
15089 /* The GNU C library defines this for functions which it implements
15090 to always fail with ENOSYS. Some functions are actually named
15091 something starting with __ and the normal name is an alias. */
15092 #if defined __stub_$ac_func || defined __stub___$ac_func
15099 return $ac_func ();
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (ac_try="$ac_link"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_link") 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest$ac_exeext &&
15121 $as_test_x conftest$ac_exeext; then
15122 eval "$as_ac_var=yes"
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 eval "$as_ac_var=no"
15130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15131 conftest$ac_exeext conftest.$ac_ext
15133 ac_res=`eval echo '${'$as_ac_var'}'`
15134 { echo "$as_me:$LINENO: result: $ac_res" >&5
15135 echo "${ECHO_T}$ac_res" >&6; }
15136 if test `eval echo '${'$as_ac_var'}'` = yes; then
15137 cat >>confdefs.h <<_ACEOF
15138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15145 if test X"$with_interfaces" != X"no"; then
15147 for ac_func in getifaddrs
15149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15163 #define $ac_func innocuous_$ac_func
15165 /* System header to define __stub macros and hopefully few prototypes,
15166 which can conflict with char $ac_func (); below.
15167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168 <limits.h> exists even on freestanding compilers. */
15171 # include <limits.h>
15173 # include <assert.h>
15178 /* Override any GCC internal prototype to avoid an error.
15179 Use char because int might match the return type of a GCC
15180 builtin and then its argument prototype would still apply. */
15185 /* The GNU C library defines this for functions which it implements
15186 to always fail with ENOSYS. Some functions are actually named
15187 something starting with __ and the normal name is an alias. */
15188 #if defined __stub_$ac_func || defined __stub___$ac_func
15195 return $ac_func ();
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_link") 2>conftest.er1
15209 grep -v '^ *+' conftest.er1 >conftest.err
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } && {
15214 test -z "$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15216 } && test -s conftest$ac_exeext &&
15217 $as_test_x conftest$ac_exeext; then
15218 eval "$as_ac_var=yes"
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 eval "$as_ac_var=no"
15226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15227 conftest$ac_exeext conftest.$ac_ext
15229 ac_res=`eval echo '${'$as_ac_var'}'`
15230 { echo "$as_me:$LINENO: result: $ac_res" >&5
15231 echo "${ECHO_T}$ac_res" >&6; }
15232 if test `eval echo '${'$as_ac_var'}'` = yes; then
15233 cat >>confdefs.h <<_ACEOF
15234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15237 for ac_func in freeifaddrs
15239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15253 #define $ac_func innocuous_$ac_func
15255 /* System header to define __stub macros and hopefully few prototypes,
15256 which can conflict with char $ac_func (); below.
15257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15258 <limits.h> exists even on freestanding compilers. */
15261 # include <limits.h>
15263 # include <assert.h>
15268 /* Override any GCC internal prototype to avoid an error.
15269 Use char because int might match the return type of a GCC
15270 builtin and then its argument prototype would still apply. */
15275 /* The GNU C library defines this for functions which it implements
15276 to always fail with ENOSYS. Some functions are actually named
15277 something starting with __ and the normal name is an alias. */
15278 #if defined __stub_$ac_func || defined __stub___$ac_func
15285 return $ac_func ();
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (ac_try="$ac_link"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_link") 2>conftest.er1
15299 grep -v '^ *+' conftest.er1 >conftest.err
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest$ac_exeext &&
15307 $as_test_x conftest$ac_exeext; then
15308 eval "$as_ac_var=yes"
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 eval "$as_ac_var=no"
15316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15317 conftest$ac_exeext conftest.$ac_ext
15319 ac_res=`eval echo '${'$as_ac_var'}'`
15320 { echo "$as_me:$LINENO: result: $ac_res" >&5
15321 echo "${ECHO_T}$ac_res" >&6; }
15322 if test `eval echo '${'$as_ac_var'}'` = yes; then
15323 cat >>confdefs.h <<_ACEOF
15324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15334 if test -z "$BROKEN_GETCWD"; then
15336 for ac_func in getcwd
15338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15344 cat >conftest.$ac_ext <<_ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15352 #define $ac_func innocuous_$ac_func
15354 /* System header to define __stub macros and hopefully few prototypes,
15355 which can conflict with char $ac_func (); below.
15356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15357 <limits.h> exists even on freestanding compilers. */
15360 # include <limits.h>
15362 # include <assert.h>
15367 /* Override any GCC internal prototype to avoid an error.
15368 Use char because int might match the return type of a GCC
15369 builtin and then its argument prototype would still apply. */
15374 /* The GNU C library defines this for functions which it implements
15375 to always fail with ENOSYS. Some functions are actually named
15376 something starting with __ and the normal name is an alias. */
15377 #if defined __stub_$ac_func || defined __stub___$ac_func
15384 return $ac_func ();
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_link") 2>conftest.er1
15398 grep -v '^ *+' conftest.er1 >conftest.err
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } && {
15403 test -z "$ac_c_werror_flag" ||
15404 test ! -s conftest.err
15405 } && test -s conftest$ac_exeext &&
15406 $as_test_x conftest$ac_exeext; then
15407 eval "$as_ac_var=yes"
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15412 eval "$as_ac_var=no"
15415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15416 conftest$ac_exeext conftest.$ac_ext
15418 ac_res=`eval echo '${'$as_ac_var'}'`
15419 { echo "$as_me:$LINENO: result: $ac_res" >&5
15420 echo "${ECHO_T}$ac_res" >&6; }
15421 if test `eval echo '${'$as_ac_var'}'` = yes; then
15422 cat >>confdefs.h <<_ACEOF
15423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15427 case " $LIBOBJS " in
15428 *" $ac_func.$ac_objext "* ) ;;
15429 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15439 for ac_func in glob
15441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 cat >conftest.$ac_ext <<_ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15455 #define $ac_func innocuous_$ac_func
15457 /* System header to define __stub macros and hopefully few prototypes,
15458 which can conflict with char $ac_func (); below.
15459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15460 <limits.h> exists even on freestanding compilers. */
15463 # include <limits.h>
15465 # include <assert.h>
15470 /* Override any GCC internal prototype to avoid an error.
15471 Use char because int might match the return type of a GCC
15472 builtin and then its argument prototype would still apply. */
15477 /* The GNU C library defines this for functions which it implements
15478 to always fail with ENOSYS. Some functions are actually named
15479 something starting with __ and the normal name is an alias. */
15480 #if defined __stub_$ac_func || defined __stub___$ac_func
15487 return $ac_func ();
15492 rm -f conftest.$ac_objext conftest$ac_exeext
15493 if { (ac_try="$ac_link"
15494 case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_link") 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } && {
15506 test -z "$ac_c_werror_flag" ||
15507 test ! -s conftest.err
15508 } && test -s conftest$ac_exeext &&
15509 $as_test_x conftest$ac_exeext; then
15510 eval "$as_ac_var=yes"
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 eval "$as_ac_var=no"
15518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15519 conftest$ac_exeext conftest.$ac_ext
15521 ac_res=`eval echo '${'$as_ac_var'}'`
15522 { echo "$as_me:$LINENO: result: $ac_res" >&5
15523 echo "${ECHO_T}$ac_res" >&6; }
15524 if test `eval echo '${'$as_ac_var'}'` = yes; then
15525 cat >>confdefs.h <<_ACEOF
15526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15528 { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15529 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
15530 cat >conftest.$ac_ext <<_ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15540 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15545 rm -f conftest.$ac_objext
15546 if { (ac_try="$ac_compile"
15547 case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_compile") 2>conftest.er1
15554 grep -v '^ *+' conftest.er1 >conftest.err
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } && {
15559 test -z "$ac_c_werror_flag" ||
15560 test ! -s conftest.err
15561 } && test -s conftest.$ac_objext; then
15562 cat >>confdefs.h <<\_ACEOF
15563 #define HAVE_EXTENDED_GLOB 1
15566 { echo "$as_me:$LINENO: result: yes" >&5
15567 echo "${ECHO_T}yes" >&6; }
15569 echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15572 case " $LIBOBJS " in
15573 *" glob.$ac_objext "* ) ;;
15574 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15578 { echo "$as_me:$LINENO: result: no" >&5
15579 echo "${ECHO_T}no" >&6; }
15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584 case " $LIBOBJS " in
15585 *" glob.$ac_objext "* ) ;;
15586 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15595 for ac_func in lockf flock
15597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15611 #define $ac_func innocuous_$ac_func
15613 /* System header to define __stub macros and hopefully few prototypes,
15614 which can conflict with char $ac_func (); below.
15615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15616 <limits.h> exists even on freestanding compilers. */
15619 # include <limits.h>
15621 # include <assert.h>
15626 /* Override any GCC internal prototype to avoid an error.
15627 Use char because int might match the return type of a GCC
15628 builtin and then its argument prototype would still apply. */
15633 /* The GNU C library defines this for functions which it implements
15634 to always fail with ENOSYS. Some functions are actually named
15635 something starting with __ and the normal name is an alias. */
15636 #if defined __stub_$ac_func || defined __stub___$ac_func
15643 return $ac_func ();
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (ac_try="$ac_link"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_link") 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } && {
15662 test -z "$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15664 } && test -s conftest$ac_exeext &&
15665 $as_test_x conftest$ac_exeext; then
15666 eval "$as_ac_var=yes"
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 eval "$as_ac_var=no"
15674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15675 conftest$ac_exeext conftest.$ac_ext
15677 ac_res=`eval echo '${'$as_ac_var'}'`
15678 { echo "$as_me:$LINENO: result: $ac_res" >&5
15679 echo "${ECHO_T}$ac_res" >&6; }
15680 if test `eval echo '${'$as_ac_var'}'` = yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15690 for ac_func in waitpid wait3
15692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 cat >conftest.$ac_ext <<_ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15706 #define $ac_func innocuous_$ac_func
15708 /* System header to define __stub macros and hopefully few prototypes,
15709 which can conflict with char $ac_func (); below.
15710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15711 <limits.h> exists even on freestanding compilers. */
15714 # include <limits.h>
15716 # include <assert.h>
15721 /* Override any GCC internal prototype to avoid an error.
15722 Use char because int might match the return type of a GCC
15723 builtin and then its argument prototype would still apply. */
15728 /* The GNU C library defines this for functions which it implements
15729 to always fail with ENOSYS. Some functions are actually named
15730 something starting with __ and the normal name is an alias. */
15731 #if defined __stub_$ac_func || defined __stub___$ac_func
15738 return $ac_func ();
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_link") 2>conftest.er1
15752 grep -v '^ *+' conftest.er1 >conftest.err
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } && {
15757 test -z "$ac_c_werror_flag" ||
15758 test ! -s conftest.err
15759 } && test -s conftest$ac_exeext &&
15760 $as_test_x conftest$ac_exeext; then
15761 eval "$as_ac_var=yes"
15763 echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15766 eval "$as_ac_var=no"
15769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15770 conftest$ac_exeext conftest.$ac_ext
15772 ac_res=`eval echo '${'$as_ac_var'}'`
15773 { echo "$as_me:$LINENO: result: $ac_res" >&5
15774 echo "${ECHO_T}$ac_res" >&6; }
15775 if test `eval echo '${'$as_ac_var'}'` = yes; then
15776 cat >>confdefs.h <<_ACEOF
15777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15785 for ac_func in innetgr _innetgr
15787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 cat >conftest.$ac_ext <<_ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15801 #define $ac_func innocuous_$ac_func
15803 /* System header to define __stub macros and hopefully few prototypes,
15804 which can conflict with char $ac_func (); below.
15805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15806 <limits.h> exists even on freestanding compilers. */
15809 # include <limits.h>
15811 # include <assert.h>
15816 /* Override any GCC internal prototype to avoid an error.
15817 Use char because int might match the return type of a GCC
15818 builtin and then its argument prototype would still apply. */
15823 /* The GNU C library defines this for functions which it implements
15824 to always fail with ENOSYS. Some functions are actually named
15825 something starting with __ and the normal name is an alias. */
15826 #if defined __stub_$ac_func || defined __stub___$ac_func
15833 return $ac_func ();
15838 rm -f conftest.$ac_objext conftest$ac_exeext
15839 if { (ac_try="$ac_link"
15840 case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_link") 2>conftest.er1
15847 grep -v '^ *+' conftest.er1 >conftest.err
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } && {
15852 test -z "$ac_c_werror_flag" ||
15853 test ! -s conftest.err
15854 } && test -s conftest$ac_exeext &&
15855 $as_test_x conftest$ac_exeext; then
15856 eval "$as_ac_var=yes"
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15861 eval "$as_ac_var=no"
15864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15865 conftest$ac_exeext conftest.$ac_ext
15867 ac_res=`eval echo '${'$as_ac_var'}'`
15868 { echo "$as_me:$LINENO: result: $ac_res" >&5
15869 echo "${ECHO_T}$ac_res" >&6; }
15870 if test `eval echo '${'$as_ac_var'}'` = yes; then
15871 cat >>confdefs.h <<_ACEOF
15872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15875 for ac_func in getdomainname
15877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 cat >conftest.$ac_ext <<_ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15891 #define $ac_func innocuous_$ac_func
15893 /* System header to define __stub macros and hopefully few prototypes,
15894 which can conflict with char $ac_func (); below.
15895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15896 <limits.h> exists even on freestanding compilers. */
15899 # include <limits.h>
15901 # include <assert.h>
15906 /* Override any GCC internal prototype to avoid an error.
15907 Use char because int might match the return type of a GCC
15908 builtin and then its argument prototype would still apply. */
15913 /* The GNU C library defines this for functions which it implements
15914 to always fail with ENOSYS. Some functions are actually named
15915 something starting with __ and the normal name is an alias. */
15916 #if defined __stub_$ac_func || defined __stub___$ac_func
15923 return $ac_func ();
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (ac_try="$ac_link"
15930 case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_link") 2>conftest.er1
15937 grep -v '^ *+' conftest.er1 >conftest.err
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } && {
15942 test -z "$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15944 } && test -s conftest$ac_exeext &&
15945 $as_test_x conftest$ac_exeext; then
15946 eval "$as_ac_var=yes"
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15951 eval "$as_ac_var=no"
15954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15955 conftest$ac_exeext conftest.$ac_ext
15957 ac_res=`eval echo '${'$as_ac_var'}'`
15958 { echo "$as_me:$LINENO: result: $ac_res" >&5
15959 echo "${ECHO_T}$ac_res" >&6; }
15960 if test `eval echo '${'$as_ac_var'}'` = yes; then
15961 cat >>confdefs.h <<_ACEOF
15962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15972 for ac_func in lsearch
15974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15980 cat >conftest.$ac_ext <<_ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15988 #define $ac_func innocuous_$ac_func
15990 /* System header to define __stub macros and hopefully few prototypes,
15991 which can conflict with char $ac_func (); below.
15992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15993 <limits.h> exists even on freestanding compilers. */
15996 # include <limits.h>
15998 # include <assert.h>
16003 /* Override any GCC internal prototype to avoid an error.
16004 Use char because int might match the return type of a GCC
16005 builtin and then its argument prototype would still apply. */
16010 /* The GNU C library defines this for functions which it implements
16011 to always fail with ENOSYS. Some functions are actually named
16012 something starting with __ and the normal name is an alias. */
16013 #if defined __stub_$ac_func || defined __stub___$ac_func
16020 return $ac_func ();
16025 rm -f conftest.$ac_objext conftest$ac_exeext
16026 if { (ac_try="$ac_link"
16027 case "(($ac_try" in
16028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029 *) ac_try_echo=$ac_try;;
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032 (eval "$ac_link") 2>conftest.er1
16034 grep -v '^ *+' conftest.er1 >conftest.err
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } && {
16039 test -z "$ac_c_werror_flag" ||
16040 test ! -s conftest.err
16041 } && test -s conftest$ac_exeext &&
16042 $as_test_x conftest$ac_exeext; then
16043 eval "$as_ac_var=yes"
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 eval "$as_ac_var=no"
16051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16052 conftest$ac_exeext conftest.$ac_ext
16054 ac_res=`eval echo '${'$as_ac_var'}'`
16055 { echo "$as_me:$LINENO: result: $ac_res" >&5
16056 echo "${ECHO_T}$ac_res" >&6; }
16057 if test `eval echo '${'$as_ac_var'}'` = yes; then
16058 cat >>confdefs.h <<_ACEOF
16059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16063 { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
16064 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
16065 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16068 ac_check_lib_save_LIBS=$LIBS
16069 LIBS="-lcompat $LIBS"
16070 cat >conftest.$ac_ext <<_ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16077 /* Override any GCC internal prototype to avoid an error.
16078 Use char because int might match the return type of a GCC
16079 builtin and then its argument prototype would still apply. */
16092 rm -f conftest.$ac_objext conftest$ac_exeext
16093 if { (ac_try="$ac_link"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_link") 2>conftest.er1
16101 grep -v '^ *+' conftest.er1 >conftest.err
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } && {
16106 test -z "$ac_c_werror_flag" ||
16107 test ! -s conftest.err
16108 } && test -s conftest$ac_exeext &&
16109 $as_test_x conftest$ac_exeext; then
16110 ac_cv_lib_compat_lsearch=yes
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 ac_cv_lib_compat_lsearch=no
16118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16119 conftest$ac_exeext conftest.$ac_ext
16120 LIBS=$ac_check_lib_save_LIBS
16122 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
16123 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
16124 if test $ac_cv_lib_compat_lsearch = yes; then
16125 { echo "$as_me:$LINENO: checking for search.h" >&5
16126 echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
16127 if test "${ac_cv_header_search_h+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 cat >conftest.$ac_ext <<_ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16136 #include <search.h>
16138 if { (ac_try="$ac_cpp conftest.$ac_ext"
16139 case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16146 grep -v '^ *+' conftest.er1 >conftest.err
16148 cat conftest.err >&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } >/dev/null && {
16151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16152 test ! -s conftest.err
16154 ac_cv_header_search_h=yes
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_cv_header_search_h=no
16162 rm -f conftest.err conftest.$ac_ext
16164 { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
16165 echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
16166 if test $ac_cv_header_search_h = yes; then
16167 cat >>confdefs.h <<\_ACEOF
16168 #define HAVE_LSEARCH 1
16170 LIBS="${LIBS} -lcompat"
16172 case " $LIBOBJS " in
16173 *" lsearch.$ac_objext "* ) ;;
16174 *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16182 case " $LIBOBJS " in
16183 *" lsearch.$ac_objext "* ) ;;
16184 *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16194 for ac_func in utimes
16196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 cat >conftest.$ac_ext <<_ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16210 #define $ac_func innocuous_$ac_func
16212 /* System header to define __stub macros and hopefully few prototypes,
16213 which can conflict with char $ac_func (); below.
16214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16215 <limits.h> exists even on freestanding compilers. */
16218 # include <limits.h>
16220 # include <assert.h>
16225 /* Override any GCC internal prototype to avoid an error.
16226 Use char because int might match the return type of a GCC
16227 builtin and then its argument prototype would still apply. */
16232 /* The GNU C library defines this for functions which it implements
16233 to always fail with ENOSYS. Some functions are actually named
16234 something starting with __ and the normal name is an alias. */
16235 #if defined __stub_$ac_func || defined __stub___$ac_func
16242 return $ac_func ();
16247 rm -f conftest.$ac_objext conftest$ac_exeext
16248 if { (ac_try="$ac_link"
16249 case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_link") 2>conftest.er1
16256 grep -v '^ *+' conftest.er1 >conftest.err
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } && {
16261 test -z "$ac_c_werror_flag" ||
16262 test ! -s conftest.err
16263 } && test -s conftest$ac_exeext &&
16264 $as_test_x conftest$ac_exeext; then
16265 eval "$as_ac_var=yes"
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16270 eval "$as_ac_var=no"
16273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16274 conftest$ac_exeext conftest.$ac_ext
16276 ac_res=`eval echo '${'$as_ac_var'}'`
16277 { echo "$as_me:$LINENO: result: $ac_res" >&5
16278 echo "${ECHO_T}$ac_res" >&6; }
16279 if test `eval echo '${'$as_ac_var'}'` = yes; then
16280 cat >>confdefs.h <<_ACEOF
16281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16285 for ac_func in futimes futimesat
16287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16291 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 cat >conftest.$ac_ext <<_ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16301 #define $ac_func innocuous_$ac_func
16303 /* System header to define __stub macros and hopefully few prototypes,
16304 which can conflict with char $ac_func (); below.
16305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16306 <limits.h> exists even on freestanding compilers. */
16309 # include <limits.h>
16311 # include <assert.h>
16316 /* Override any GCC internal prototype to avoid an error.
16317 Use char because int might match the return type of a GCC
16318 builtin and then its argument prototype would still apply. */
16323 /* The GNU C library defines this for functions which it implements
16324 to always fail with ENOSYS. Some functions are actually named
16325 something starting with __ and the normal name is an alias. */
16326 #if defined __stub_$ac_func || defined __stub___$ac_func
16333 return $ac_func ();
16338 rm -f conftest.$ac_objext conftest$ac_exeext
16339 if { (ac_try="$ac_link"
16340 case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_link") 2>conftest.er1
16347 grep -v '^ *+' conftest.er1 >conftest.err
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } && {
16352 test -z "$ac_c_werror_flag" ||
16353 test ! -s conftest.err
16354 } && test -s conftest$ac_exeext &&
16355 $as_test_x conftest$ac_exeext; then
16356 eval "$as_ac_var=yes"
16358 echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 eval "$as_ac_var=no"
16364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16365 conftest$ac_exeext conftest.$ac_ext
16367 ac_res=`eval echo '${'$as_ac_var'}'`
16368 { echo "$as_me:$LINENO: result: $ac_res" >&5
16369 echo "${ECHO_T}$ac_res" >&6; }
16370 if test `eval echo '${'$as_ac_var'}'` = yes; then
16371 cat >>confdefs.h <<_ACEOF
16372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16380 for ac_func in futime
16382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16396 #define $ac_func innocuous_$ac_func
16398 /* System header to define __stub macros and hopefully few prototypes,
16399 which can conflict with char $ac_func (); below.
16400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16401 <limits.h> exists even on freestanding compilers. */
16404 # include <limits.h>
16406 # include <assert.h>
16411 /* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16418 /* The GNU C library defines this for functions which it implements
16419 to always fail with ENOSYS. Some functions are actually named
16420 something starting with __ and the normal name is an alias. */
16421 #if defined __stub_$ac_func || defined __stub___$ac_func
16428 return $ac_func ();
16433 rm -f conftest.$ac_objext conftest$ac_exeext
16434 if { (ac_try="$ac_link"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_link") 2>conftest.er1
16442 grep -v '^ *+' conftest.er1 >conftest.err
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } && {
16447 test -z "$ac_c_werror_flag" ||
16448 test ! -s conftest.err
16449 } && test -s conftest$ac_exeext &&
16450 $as_test_x conftest$ac_exeext; then
16451 eval "$as_ac_var=yes"
16453 echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 eval "$as_ac_var=no"
16459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16460 conftest$ac_exeext conftest.$ac_ext
16462 ac_res=`eval echo '${'$as_ac_var'}'`
16463 { echo "$as_me:$LINENO: result: $ac_res" >&5
16464 echo "${ECHO_T}$ac_res" >&6; }
16465 if test `eval echo '${'$as_ac_var'}'` = yes; then
16466 cat >>confdefs.h <<_ACEOF
16467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16472 case " $LIBOBJS " in
16473 *" utimes.$ac_objext "* ) ;;
16474 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16481 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
16482 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
16483 if test "${sudo_cv_func_fnmatch+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 rm -f conftestdata; > conftestdata
16487 if test "$cross_compiling" = yes; then
16488 sudo_cv_func_fnmatch=no
16490 cat >conftest.$ac_ext <<_ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16496 #include <fnmatch.h>
16497 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16499 rm -f conftest$ac_exeext
16500 if { (ac_try="$ac_link"
16501 case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_link") 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16510 { (case "(($ac_try" in
16511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512 *) ac_try_echo=$ac_try;;
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515 (eval "$ac_try") 2>&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 sudo_cv_func_fnmatch=yes
16521 echo "$as_me: program exited with status $ac_status" >&5
16522 echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16525 ( exit $ac_status )
16526 sudo_cv_func_fnmatch=no
16528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16532 rm -f core core.* *.core
16535 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
16536 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
16537 if test $sudo_cv_func_fnmatch = yes; then
16538 cat >>confdefs.h <<\_ACEOF
16539 #define HAVE_FNMATCH 1
16543 case " $LIBOBJS " in
16544 *" fnmatch.$ac_objext "* ) ;;
16545 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16551 { echo "$as_me:$LINENO: checking for isblank" >&5
16552 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
16553 if test "${sudo_cv_func_isblank+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16556 cat >conftest.$ac_ext <<_ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16566 return (isblank('a'));
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (ac_try="$ac_link"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_link") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 } && test -s conftest$ac_exeext &&
16588 $as_test_x conftest$ac_exeext; then
16589 sudo_cv_func_isblank=yes
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 sudo_cv_func_isblank=no
16597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16598 conftest$ac_exeext conftest.$ac_ext
16600 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
16601 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
16603 if test "$sudo_cv_func_isblank" = "yes"; then
16605 cat >>confdefs.h <<\_ACEOF
16606 #define HAVE_ISBLANK 1
16617 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
16619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 cat >conftest.$ac_ext <<_ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16633 #define $ac_func innocuous_$ac_func
16635 /* System header to define __stub macros and hopefully few prototypes,
16636 which can conflict with char $ac_func (); below.
16637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16638 <limits.h> exists even on freestanding compilers. */
16641 # include <limits.h>
16643 # include <assert.h>
16648 /* Override any GCC internal prototype to avoid an error.
16649 Use char because int might match the return type of a GCC
16650 builtin and then its argument prototype would still apply. */
16655 /* The GNU C library defines this for functions which it implements
16656 to always fail with ENOSYS. Some functions are actually named
16657 something starting with __ and the normal name is an alias. */
16658 #if defined __stub_$ac_func || defined __stub___$ac_func
16665 return $ac_func ();
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (ac_try="$ac_link"
16672 case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_link") 2>conftest.er1
16679 grep -v '^ *+' conftest.er1 >conftest.err
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } && {
16684 test -z "$ac_c_werror_flag" ||
16685 test ! -s conftest.err
16686 } && test -s conftest$ac_exeext &&
16687 $as_test_x conftest$ac_exeext; then
16688 eval "$as_ac_var=yes"
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 eval "$as_ac_var=no"
16696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16697 conftest$ac_exeext conftest.$ac_ext
16699 ac_res=`eval echo '${'$as_ac_var'}'`
16700 { echo "$as_me:$LINENO: result: $ac_res" >&5
16701 echo "${ECHO_T}$ac_res" >&6; }
16702 if test `eval echo '${'$as_ac_var'}'` = yes; then
16703 cat >>confdefs.h <<_ACEOF
16704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16708 case " $LIBOBJS " in
16709 *" $ac_func.$ac_objext "* ) ;;
16710 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16719 for ac_func in closefrom
16721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 cat >conftest.$ac_ext <<_ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16735 #define $ac_func innocuous_$ac_func
16737 /* System header to define __stub macros and hopefully few prototypes,
16738 which can conflict with char $ac_func (); below.
16739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16740 <limits.h> exists even on freestanding compilers. */
16743 # include <limits.h>
16745 # include <assert.h>
16750 /* Override any GCC internal prototype to avoid an error.
16751 Use char because int might match the return type of a GCC
16752 builtin and then its argument prototype would still apply. */
16757 /* The GNU C library defines this for functions which it implements
16758 to always fail with ENOSYS. Some functions are actually named
16759 something starting with __ and the normal name is an alias. */
16760 #if defined __stub_$ac_func || defined __stub___$ac_func
16767 return $ac_func ();
16772 rm -f conftest.$ac_objext conftest$ac_exeext
16773 if { (ac_try="$ac_link"
16774 case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_link") 2>conftest.er1
16781 grep -v '^ *+' conftest.er1 >conftest.err
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } && {
16786 test -z "$ac_c_werror_flag" ||
16787 test ! -s conftest.err
16788 } && test -s conftest$ac_exeext &&
16789 $as_test_x conftest$ac_exeext; then
16790 eval "$as_ac_var=yes"
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16795 eval "$as_ac_var=no"
16798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16799 conftest$ac_exeext conftest.$ac_ext
16801 ac_res=`eval echo '${'$as_ac_var'}'`
16802 { echo "$as_me:$LINENO: result: $ac_res" >&5
16803 echo "${ECHO_T}$ac_res" >&6; }
16804 if test `eval echo '${'$as_ac_var'}'` = yes; then
16805 cat >>confdefs.h <<_ACEOF
16806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16810 case " $LIBOBJS " in
16811 *" closefrom.$ac_objext "* ) ;;
16812 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
16816 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
16817 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
16818 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 cat >conftest.$ac_ext <<_ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 #include <limits.h>
16841 rm -f conftest.$ac_objext
16842 if { (ac_try="$ac_compile"
16843 case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_compile") 2>conftest.er1
16850 grep -v '^ *+' conftest.er1 >conftest.err
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } && {
16855 test -z "$ac_c_werror_flag" ||
16856 test ! -s conftest.err
16857 } && test -s conftest.$ac_objext; then
16858 ac_cv_have_decl_F_CLOSEM=yes
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16863 ac_cv_have_decl_F_CLOSEM=no
16866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
16869 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
16870 if test $ac_cv_have_decl_F_CLOSEM = yes; then
16871 cat >>confdefs.h <<\_ACEOF
16872 #define HAVE_FCNTL_CLOSEM 1
16882 for ac_func in mkstemp
16884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 cat >conftest.$ac_ext <<_ACEOF
16893 cat confdefs.h >>conftest.$ac_ext
16894 cat >>conftest.$ac_ext <<_ACEOF
16895 /* end confdefs.h. */
16896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16898 #define $ac_func innocuous_$ac_func
16900 /* System header to define __stub macros and hopefully few prototypes,
16901 which can conflict with char $ac_func (); below.
16902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16903 <limits.h> exists even on freestanding compilers. */
16906 # include <limits.h>
16908 # include <assert.h>
16913 /* Override any GCC internal prototype to avoid an error.
16914 Use char because int might match the return type of a GCC
16915 builtin and then its argument prototype would still apply. */
16920 /* The GNU C library defines this for functions which it implements
16921 to always fail with ENOSYS. Some functions are actually named
16922 something starting with __ and the normal name is an alias. */
16923 #if defined __stub_$ac_func || defined __stub___$ac_func
16930 return $ac_func ();
16935 rm -f conftest.$ac_objext conftest$ac_exeext
16936 if { (ac_try="$ac_link"
16937 case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_link") 2>conftest.er1
16944 grep -v '^ *+' conftest.er1 >conftest.err
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } && {
16949 test -z "$ac_c_werror_flag" ||
16950 test ! -s conftest.err
16951 } && test -s conftest$ac_exeext &&
16952 $as_test_x conftest$ac_exeext; then
16953 eval "$as_ac_var=yes"
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 eval "$as_ac_var=no"
16961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16962 conftest$ac_exeext conftest.$ac_ext
16964 ac_res=`eval echo '${'$as_ac_var'}'`
16965 { echo "$as_me:$LINENO: result: $ac_res" >&5
16966 echo "${ECHO_T}$ac_res" >&6; }
16967 if test `eval echo '${'$as_ac_var'}'` = yes; then
16968 cat >>confdefs.h <<_ACEOF
16969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16973 SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
16976 for ac_func in random lrand48
16978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16992 #define $ac_func innocuous_$ac_func
16994 /* System header to define __stub macros and hopefully few prototypes,
16995 which can conflict with char $ac_func (); below.
16996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16997 <limits.h> exists even on freestanding compilers. */
17000 # include <limits.h>
17002 # include <assert.h>
17007 /* Override any GCC internal prototype to avoid an error.
17008 Use char because int might match the return type of a GCC
17009 builtin and then its argument prototype would still apply. */
17014 /* The GNU C library defines this for functions which it implements
17015 to always fail with ENOSYS. Some functions are actually named
17016 something starting with __ and the normal name is an alias. */
17017 #if defined __stub_$ac_func || defined __stub___$ac_func
17024 return $ac_func ();
17029 rm -f conftest.$ac_objext conftest$ac_exeext
17030 if { (ac_try="$ac_link"
17031 case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_link") 2>conftest.er1
17038 grep -v '^ *+' conftest.er1 >conftest.err
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } && {
17043 test -z "$ac_c_werror_flag" ||
17044 test ! -s conftest.err
17045 } && test -s conftest$ac_exeext &&
17046 $as_test_x conftest$ac_exeext; then
17047 eval "$as_ac_var=yes"
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17052 eval "$as_ac_var=no"
17055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17056 conftest$ac_exeext conftest.$ac_ext
17058 ac_res=`eval echo '${'$as_ac_var'}'`
17059 { echo "$as_me:$LINENO: result: $ac_res" >&5
17060 echo "${ECHO_T}$ac_res" >&6; }
17061 if test `eval echo '${'$as_ac_var'}'` = yes; then
17062 cat >>confdefs.h <<_ACEOF
17063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17077 for ac_func in snprintf vsnprintf asprintf vasprintf
17079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 cat >conftest.$ac_ext <<_ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17093 #define $ac_func innocuous_$ac_func
17095 /* System header to define __stub macros and hopefully few prototypes,
17096 which can conflict with char $ac_func (); below.
17097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098 <limits.h> exists even on freestanding compilers. */
17101 # include <limits.h>
17103 # include <assert.h>
17108 /* Override any GCC internal prototype to avoid an error.
17109 Use char because int might match the return type of a GCC
17110 builtin and then its argument prototype would still apply. */
17115 /* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118 #if defined __stub_$ac_func || defined __stub___$ac_func
17125 return $ac_func ();
17130 rm -f conftest.$ac_objext conftest$ac_exeext
17131 if { (ac_try="$ac_link"
17132 case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_link") 2>conftest.er1
17139 grep -v '^ *+' conftest.er1 >conftest.err
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } && {
17144 test -z "$ac_c_werror_flag" ||
17145 test ! -s conftest.err
17146 } && test -s conftest$ac_exeext &&
17147 $as_test_x conftest$ac_exeext; then
17148 eval "$as_ac_var=yes"
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 eval "$as_ac_var=no"
17156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17157 conftest$ac_exeext conftest.$ac_ext
17159 ac_res=`eval echo '${'$as_ac_var'}'`
17160 { echo "$as_me:$LINENO: result: $ac_res" >&5
17161 echo "${ECHO_T}$ac_res" >&6; }
17162 if test `eval echo '${'$as_ac_var'}'` = yes; then
17163 cat >>confdefs.h <<_ACEOF
17164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17172 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17173 { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17174 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17175 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 cat >conftest.$ac_ext <<_ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17184 $ac_includes_default
17188 static struct stat ac_aggr;
17189 if (ac_aggr.st_mtim)
17195 rm -f conftest.$ac_objext
17196 if { (ac_try="$ac_compile"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_compile") 2>conftest.er1
17204 grep -v '^ *+' conftest.er1 >conftest.err
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } && {
17209 test -z "$ac_c_werror_flag" ||
17210 test ! -s conftest.err
17211 } && test -s conftest.$ac_objext; then
17212 ac_cv_member_struct_stat_st_mtim=yes
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 cat >conftest.$ac_ext <<_ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223 $ac_includes_default
17227 static struct stat ac_aggr;
17228 if (sizeof ac_aggr.st_mtim)
17234 rm -f conftest.$ac_objext
17235 if { (ac_try="$ac_compile"
17236 case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_compile") 2>conftest.er1
17243 grep -v '^ *+' conftest.er1 >conftest.err
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } && {
17248 test -z "$ac_c_werror_flag" ||
17249 test ! -s conftest.err
17250 } && test -s conftest.$ac_objext; then
17251 ac_cv_member_struct_stat_st_mtim=yes
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 ac_cv_member_struct_stat_st_mtim=no
17259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17264 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
17265 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
17266 if test $ac_cv_member_struct_stat_st_mtim = yes; then
17267 cat >>confdefs.h <<\_ACEOF
17268 #define HAVE_ST_MTIM 1
17272 { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
17273 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
17274 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 cat >conftest.$ac_ext <<_ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 $ac_includes_default
17287 static struct stat ac_aggr;
17288 if (ac_aggr.st_mtimespec)
17294 rm -f conftest.$ac_objext
17295 if { (ac_try="$ac_compile"
17296 case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_compile") 2>conftest.er1
17303 grep -v '^ *+' conftest.er1 >conftest.err
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } && {
17308 test -z "$ac_c_werror_flag" ||
17309 test ! -s conftest.err
17310 } && test -s conftest.$ac_objext; then
17311 ac_cv_member_struct_stat_st_mtimespec=yes
17313 echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17316 cat >conftest.$ac_ext <<_ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322 $ac_includes_default
17326 static struct stat ac_aggr;
17327 if (sizeof ac_aggr.st_mtimespec)
17333 rm -f conftest.$ac_objext
17334 if { (ac_try="$ac_compile"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_compile") 2>conftest.er1
17342 grep -v '^ *+' conftest.er1 >conftest.err
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } && {
17347 test -z "$ac_c_werror_flag" ||
17348 test ! -s conftest.err
17349 } && test -s conftest.$ac_objext; then
17350 ac_cv_member_struct_stat_st_mtimespec=yes
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 ac_cv_member_struct_stat_st_mtimespec=no
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
17364 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
17365 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
17366 cat >>confdefs.h <<\_ACEOF
17367 #define HAVE_ST_MTIMESPEC 1
17374 { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
17375 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
17376 cat >conftest.$ac_ext <<_ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17382 #include <sys/types.h>
17383 #include <sys/time.h>
17387 struct timespec ts1, ts2;
17388 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
17389 #ifndef timespecsub
17390 #error missing timespecsub
17392 timespecsub(&ts1, &ts2);
17397 rm -f conftest.$ac_objext
17398 if { (ac_try="$ac_compile"
17399 case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_compile") 2>conftest.er1
17406 grep -v '^ *+' conftest.er1 >conftest.err
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } && {
17411 test -z "$ac_c_werror_flag" ||
17412 test ! -s conftest.err
17413 } && test -s conftest.$ac_objext; then
17414 cat >>confdefs.h <<\_ACEOF
17415 #define HAVE_TIMESPECSUB2 1
17418 { echo "$as_me:$LINENO: result: yes" >&5
17419 echo "${ECHO_T}yes" >&6; }
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17424 { echo "$as_me:$LINENO: result: no" >&5
17425 echo "${ECHO_T}no" >&6; }
17428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430 cat >conftest.$ac_ext <<_ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 #include <sys/types.h>
17437 #include <$ac_header_dirent>
17441 DIR d; (void)dirfd(&d);
17446 rm -f conftest.$ac_objext conftest$ac_exeext
17447 if { (ac_try="$ac_link"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_link") 2>conftest.er1
17455 grep -v '^ *+' conftest.er1 >conftest.err
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } && {
17460 test -z "$ac_c_werror_flag" ||
17461 test ! -s conftest.err
17462 } && test -s conftest$ac_exeext &&
17463 $as_test_x conftest$ac_exeext; then
17464 cat >>confdefs.h <<\_ACEOF
17465 #define HAVE_DIRFD 1
17469 echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17472 cat >conftest.$ac_ext <<_ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 #include <sys/types.h>
17479 #include <$ac_header_dirent>
17483 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_link") 2>conftest.er1
17497 grep -v '^ *+' conftest.er1 >conftest.err
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest$ac_exeext &&
17505 $as_test_x conftest$ac_exeext; then
17506 cat >>confdefs.h <<\_ACEOF
17507 #define HAVE_DD_FD 1
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17518 conftest$ac_exeext conftest.$ac_ext
17521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17522 conftest$ac_exeext conftest.$ac_ext
17523 if test -n "$NEED_SNPRINTF"; then
17524 case " $LIBOBJS " in
17525 *" snprintf.$ac_objext "* ) ;;
17526 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17531 { echo "$as_me:$LINENO: checking for socket" >&5
17532 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17533 if test "${ac_cv_func_socket+set}" = set; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 cat >conftest.$ac_ext <<_ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17544 #define socket innocuous_socket
17546 /* System header to define __stub macros and hopefully few prototypes,
17547 which can conflict with char socket (); below.
17548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17549 <limits.h> exists even on freestanding compilers. */
17552 # include <limits.h>
17554 # include <assert.h>
17559 /* Override any GCC internal prototype to avoid an error.
17560 Use char because int might match the return type of a GCC
17561 builtin and then its argument prototype would still apply. */
17566 /* The GNU C library defines this for functions which it implements
17567 to always fail with ENOSYS. Some functions are actually named
17568 something starting with __ and the normal name is an alias. */
17569 #if defined __stub_socket || defined __stub___socket
17581 rm -f conftest.$ac_objext conftest$ac_exeext
17582 if { (ac_try="$ac_link"
17583 case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_link") 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } && {
17595 test -z "$ac_c_werror_flag" ||
17596 test ! -s conftest.err
17597 } && test -s conftest$ac_exeext &&
17598 $as_test_x conftest$ac_exeext; then
17599 ac_cv_func_socket=yes
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 ac_cv_func_socket=no
17607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17608 conftest$ac_exeext conftest.$ac_ext
17610 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17611 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17612 if test $ac_cv_func_socket = yes; then
17615 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17616 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17617 if test "${ac_cv_lib_socket_socket+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 ac_check_lib_save_LIBS=$LIBS
17621 LIBS="-lsocket $LIBS"
17622 cat >conftest.$ac_ext <<_ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17629 /* Override any GCC internal prototype to avoid an error.
17630 Use char because int might match the return type of a GCC
17631 builtin and then its argument prototype would still apply. */
17644 rm -f conftest.$ac_objext conftest$ac_exeext
17645 if { (ac_try="$ac_link"
17646 case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_link") 2>conftest.er1
17653 grep -v '^ *+' conftest.er1 >conftest.err
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } && {
17658 test -z "$ac_c_werror_flag" ||
17659 test ! -s conftest.err
17660 } && test -s conftest$ac_exeext &&
17661 $as_test_x conftest$ac_exeext; then
17662 ac_cv_lib_socket_socket=yes
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 ac_cv_lib_socket_socket=no
17670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17671 conftest$ac_exeext conftest.$ac_ext
17672 LIBS=$ac_check_lib_save_LIBS
17674 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17675 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17676 if test $ac_cv_lib_socket_socket = yes; then
17677 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
17679 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17680 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17681 if test "${ac_cv_lib_inet_socket+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 ac_check_lib_save_LIBS=$LIBS
17685 LIBS="-linet $LIBS"
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17693 /* Override any GCC internal prototype to avoid an error.
17694 Use char because int might match the return type of a GCC
17695 builtin and then its argument prototype would still apply. */
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (ac_try="$ac_link"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_link") 2>conftest.er1
17717 grep -v '^ *+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } && {
17722 test -z "$ac_c_werror_flag" ||
17723 test ! -s conftest.err
17724 } && test -s conftest$ac_exeext &&
17725 $as_test_x conftest$ac_exeext; then
17726 ac_cv_lib_inet_socket=yes
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 ac_cv_lib_inet_socket=no
17734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17735 conftest$ac_exeext conftest.$ac_ext
17736 LIBS=$ac_check_lib_save_LIBS
17738 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17739 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17740 if test $ac_cv_lib_inet_socket = yes; then
17741 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17743 { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
17744 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
17745 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17746 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17747 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 ac_check_lib_save_LIBS=$LIBS
17751 LIBS="-lsocket -lnsl $LIBS"
17752 cat >conftest.$ac_ext <<_ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17759 /* Override any GCC internal prototype to avoid an error.
17760 Use char because int might match the return type of a GCC
17761 builtin and then its argument prototype would still apply. */
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (ac_try="$ac_link"
17776 case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_link") 2>conftest.er1
17783 grep -v '^ *+' conftest.er1 >conftest.err
17785 cat conftest.err >&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest$ac_exeext &&
17791 $as_test_x conftest$ac_exeext; then
17792 ac_cv_lib_socket_socket_lnsl=yes
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17797 ac_cv_lib_socket_socket_lnsl=no
17800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17801 conftest$ac_exeext conftest.$ac_ext
17802 LIBS=$ac_check_lib_save_LIBS
17804 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
17805 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
17806 if test $ac_cv_lib_socket_socket_lnsl = yes; then
17807 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
17816 { echo "$as_me:$LINENO: checking for inet_addr" >&5
17817 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
17818 if test "${ac_cv_func_inet_addr+set}" = set; then
17819 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 cat >conftest.$ac_ext <<_ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17827 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
17828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17829 #define inet_addr innocuous_inet_addr
17831 /* System header to define __stub macros and hopefully few prototypes,
17832 which can conflict with char inet_addr (); below.
17833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17834 <limits.h> exists even on freestanding compilers. */
17837 # include <limits.h>
17839 # include <assert.h>
17844 /* Override any GCC internal prototype to avoid an error.
17845 Use char because int might match the return type of a GCC
17846 builtin and then its argument prototype would still apply. */
17851 /* The GNU C library defines this for functions which it implements
17852 to always fail with ENOSYS. Some functions are actually named
17853 something starting with __ and the normal name is an alias. */
17854 #if defined __stub_inet_addr || defined __stub___inet_addr
17861 return inet_addr ();
17866 rm -f conftest.$ac_objext conftest$ac_exeext
17867 if { (ac_try="$ac_link"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873 (eval "$ac_link") 2>conftest.er1
17875 grep -v '^ *+' conftest.er1 >conftest.err
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } && {
17880 test -z "$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 } && test -s conftest$ac_exeext &&
17883 $as_test_x conftest$ac_exeext; then
17884 ac_cv_func_inet_addr=yes
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ac_cv_func_inet_addr=no
17892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17893 conftest$ac_exeext conftest.$ac_ext
17895 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
17896 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
17897 if test $ac_cv_func_inet_addr = yes; then
17900 { echo "$as_me:$LINENO: checking for __inet_addr" >&5
17901 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
17902 if test "${ac_cv_func___inet_addr+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17905 cat >conftest.$ac_ext <<_ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17911 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
17912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17913 #define __inet_addr innocuous___inet_addr
17915 /* System header to define __stub macros and hopefully few prototypes,
17916 which can conflict with char __inet_addr (); below.
17917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17918 <limits.h> exists even on freestanding compilers. */
17921 # include <limits.h>
17923 # include <assert.h>
17928 /* Override any GCC internal prototype to avoid an error.
17929 Use char because int might match the return type of a GCC
17930 builtin and then its argument prototype would still apply. */
17934 char __inet_addr ();
17935 /* The GNU C library defines this for functions which it implements
17936 to always fail with ENOSYS. Some functions are actually named
17937 something starting with __ and the normal name is an alias. */
17938 #if defined __stub___inet_addr || defined __stub_____inet_addr
17945 return __inet_addr ();
17950 rm -f conftest.$ac_objext conftest$ac_exeext
17951 if { (ac_try="$ac_link"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_link") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest$ac_exeext &&
17967 $as_test_x conftest$ac_exeext; then
17968 ac_cv_func___inet_addr=yes
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_cv_func___inet_addr=no
17976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17977 conftest$ac_exeext conftest.$ac_ext
17979 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
17980 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
17981 if test $ac_cv_func___inet_addr = yes; then
17984 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
17985 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
17986 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 ac_check_lib_save_LIBS=$LIBS
17991 cat >conftest.$ac_ext <<_ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17998 /* Override any GCC internal prototype to avoid an error.
17999 Use char because int might match the return type of a GCC
18000 builtin and then its argument prototype would still apply. */
18008 return inet_addr ();
18013 rm -f conftest.$ac_objext conftest$ac_exeext
18014 if { (ac_try="$ac_link"
18015 case "(($ac_try" in
18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017 *) ac_try_echo=$ac_try;;
18019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020 (eval "$ac_link") 2>conftest.er1
18022 grep -v '^ *+' conftest.er1 >conftest.err
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } && {
18027 test -z "$ac_c_werror_flag" ||
18028 test ! -s conftest.err
18029 } && test -s conftest$ac_exeext &&
18030 $as_test_x conftest$ac_exeext; then
18031 ac_cv_lib_nsl_inet_addr=yes
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18036 ac_cv_lib_nsl_inet_addr=no
18039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18040 conftest$ac_exeext conftest.$ac_ext
18041 LIBS=$ac_check_lib_save_LIBS
18043 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18044 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18045 if test $ac_cv_lib_nsl_inet_addr = yes; then
18046 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18048 { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18049 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18050 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 ac_check_lib_save_LIBS=$LIBS
18054 LIBS="-linet $LIBS"
18055 cat >conftest.$ac_ext <<_ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18062 /* Override any GCC internal prototype to avoid an error.
18063 Use char because int might match the return type of a GCC
18064 builtin and then its argument prototype would still apply. */
18072 return inet_addr ();
18077 rm -f conftest.$ac_objext conftest$ac_exeext
18078 if { (ac_try="$ac_link"
18079 case "(($ac_try" in
18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081 *) ac_try_echo=$ac_try;;
18083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084 (eval "$ac_link") 2>conftest.er1
18086 grep -v '^ *+' conftest.er1 >conftest.err
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } && {
18091 test -z "$ac_c_werror_flag" ||
18092 test ! -s conftest.err
18093 } && test -s conftest$ac_exeext &&
18094 $as_test_x conftest$ac_exeext; then
18095 ac_cv_lib_inet_inet_addr=yes
18097 echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18100 ac_cv_lib_inet_inet_addr=no
18103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18104 conftest$ac_exeext conftest.$ac_ext
18105 LIBS=$ac_check_lib_save_LIBS
18107 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18108 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18109 if test $ac_cv_lib_inet_inet_addr = yes; then
18110 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18112 { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18113 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18114 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18115 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18116 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18119 ac_check_lib_save_LIBS=$LIBS
18120 LIBS="-lsocket -lnsl $LIBS"
18121 cat >conftest.$ac_ext <<_ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18128 /* Override any GCC internal prototype to avoid an error.
18129 Use char because int might match the return type of a GCC
18130 builtin and then its argument prototype would still apply. */
18138 return inet_addr ();
18143 rm -f conftest.$ac_objext conftest$ac_exeext
18144 if { (ac_try="$ac_link"
18145 case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_link") 2>conftest.er1
18152 grep -v '^ *+' conftest.er1 >conftest.err
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } && {
18157 test -z "$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 } && test -s conftest$ac_exeext &&
18160 $as_test_x conftest$ac_exeext; then
18161 ac_cv_lib_socket_inet_addr_lnsl=yes
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18166 ac_cv_lib_socket_inet_addr_lnsl=no
18169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18170 conftest$ac_exeext conftest.$ac_ext
18171 LIBS=$ac_check_lib_save_LIBS
18173 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
18174 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
18175 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
18176 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18187 { echo "$as_me:$LINENO: checking for syslog" >&5
18188 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18189 if test "${ac_cv_func_syslog+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 cat >conftest.$ac_ext <<_ACEOF
18195 cat confdefs.h >>conftest.$ac_ext
18196 cat >>conftest.$ac_ext <<_ACEOF
18197 /* end confdefs.h. */
18198 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18200 #define syslog innocuous_syslog
18202 /* System header to define __stub macros and hopefully few prototypes,
18203 which can conflict with char syslog (); below.
18204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18205 <limits.h> exists even on freestanding compilers. */
18208 # include <limits.h>
18210 # include <assert.h>
18215 /* Override any GCC internal prototype to avoid an error.
18216 Use char because int might match the return type of a GCC
18217 builtin and then its argument prototype would still apply. */
18222 /* The GNU C library defines this for functions which it implements
18223 to always fail with ENOSYS. Some functions are actually named
18224 something starting with __ and the normal name is an alias. */
18225 #if defined __stub_syslog || defined __stub___syslog
18237 rm -f conftest.$ac_objext conftest$ac_exeext
18238 if { (ac_try="$ac_link"
18239 case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_link") 2>conftest.er1
18246 grep -v '^ *+' conftest.er1 >conftest.err
18248 cat conftest.err >&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } && {
18251 test -z "$ac_c_werror_flag" ||
18252 test ! -s conftest.err
18253 } && test -s conftest$ac_exeext &&
18254 $as_test_x conftest$ac_exeext; then
18255 ac_cv_func_syslog=yes
18257 echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18260 ac_cv_func_syslog=no
18263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18264 conftest$ac_exeext conftest.$ac_ext
18266 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18267 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18268 if test $ac_cv_func_syslog = yes; then
18271 { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
18272 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
18273 if test "${ac_cv_lib_socket_syslog+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 ac_check_lib_save_LIBS=$LIBS
18277 LIBS="-lsocket $LIBS"
18278 cat >conftest.$ac_ext <<_ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18285 /* Override any GCC internal prototype to avoid an error.
18286 Use char because int might match the return type of a GCC
18287 builtin and then its argument prototype would still apply. */
18300 rm -f conftest.$ac_objext conftest$ac_exeext
18301 if { (ac_try="$ac_link"
18302 case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_link") 2>conftest.er1
18309 grep -v '^ *+' conftest.er1 >conftest.err
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } && {
18314 test -z "$ac_c_werror_flag" ||
18315 test ! -s conftest.err
18316 } && test -s conftest$ac_exeext &&
18317 $as_test_x conftest$ac_exeext; then
18318 ac_cv_lib_socket_syslog=yes
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 ac_cv_lib_socket_syslog=no
18326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18327 conftest$ac_exeext conftest.$ac_ext
18328 LIBS=$ac_check_lib_save_LIBS
18330 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
18331 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
18332 if test $ac_cv_lib_socket_syslog = yes; then
18333 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18335 { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
18336 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
18337 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 ac_check_lib_save_LIBS=$LIBS
18342 cat >conftest.$ac_ext <<_ACEOF
18345 cat confdefs.h >>conftest.$ac_ext
18346 cat >>conftest.$ac_ext <<_ACEOF
18347 /* end confdefs.h. */
18349 /* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18364 rm -f conftest.$ac_objext conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_link") 2>conftest.er1
18373 grep -v '^ *+' conftest.er1 >conftest.err
18375 cat conftest.err >&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } && {
18378 test -z "$ac_c_werror_flag" ||
18379 test ! -s conftest.err
18380 } && test -s conftest$ac_exeext &&
18381 $as_test_x conftest$ac_exeext; then
18382 ac_cv_lib_nsl_syslog=yes
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 ac_cv_lib_nsl_syslog=no
18390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18391 conftest$ac_exeext conftest.$ac_ext
18392 LIBS=$ac_check_lib_save_LIBS
18394 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
18395 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
18396 if test $ac_cv_lib_nsl_syslog = yes; then
18397 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18399 { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
18400 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
18401 if test "${ac_cv_lib_inet_syslog+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 ac_check_lib_save_LIBS=$LIBS
18405 LIBS="-linet $LIBS"
18406 cat >conftest.$ac_ext <<_ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18413 /* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18428 rm -f conftest.$ac_objext conftest$ac_exeext
18429 if { (ac_try="$ac_link"
18430 case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_link") 2>conftest.er1
18437 grep -v '^ *+' conftest.er1 >conftest.err
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } && {
18442 test -z "$ac_c_werror_flag" ||
18443 test ! -s conftest.err
18444 } && test -s conftest$ac_exeext &&
18445 $as_test_x conftest$ac_exeext; then
18446 ac_cv_lib_inet_syslog=yes
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18451 ac_cv_lib_inet_syslog=no
18454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18455 conftest$ac_exeext conftest.$ac_ext
18456 LIBS=$ac_check_lib_save_LIBS
18458 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
18459 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
18460 if test $ac_cv_lib_inet_syslog = yes; then
18461 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18470 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
18471 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18472 # for constant arguments. Useless!
18473 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
18474 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
18475 if test "${ac_cv_working_alloca_h+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 cat >conftest.$ac_ext <<_ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18484 #include <alloca.h>
18488 char *p = (char *) alloca (2 * sizeof (int));
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18503 grep -v '^ *+' conftest.er1 >conftest.err
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } && {
18508 test -z "$ac_c_werror_flag" ||
18509 test ! -s conftest.err
18510 } && test -s conftest$ac_exeext &&
18511 $as_test_x conftest$ac_exeext; then
18512 ac_cv_working_alloca_h=yes
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18517 ac_cv_working_alloca_h=no
18520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18521 conftest$ac_exeext conftest.$ac_ext
18523 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18524 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
18525 if test $ac_cv_working_alloca_h = yes; then
18527 cat >>confdefs.h <<\_ACEOF
18528 #define HAVE_ALLOCA_H 1
18533 { echo "$as_me:$LINENO: checking for alloca" >&5
18534 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
18535 if test "${ac_cv_func_alloca_works+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 cat >conftest.$ac_ext <<_ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18545 # define alloca __builtin_alloca
18548 # include <malloc.h>
18549 # define alloca _alloca
18551 # ifdef HAVE_ALLOCA_H
18552 # include <alloca.h>
18557 # ifndef alloca /* predefined by HP cc +Olibcalls */
18568 char *p = (char *) alloca (1);
18574 rm -f conftest.$ac_objext conftest$ac_exeext
18575 if { (ac_try="$ac_link"
18576 case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581 (eval "$ac_link") 2>conftest.er1
18583 grep -v '^ *+' conftest.er1 >conftest.err
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } && {
18588 test -z "$ac_c_werror_flag" ||
18589 test ! -s conftest.err
18590 } && test -s conftest$ac_exeext &&
18591 $as_test_x conftest$ac_exeext; then
18592 ac_cv_func_alloca_works=yes
18594 echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18597 ac_cv_func_alloca_works=no
18600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18601 conftest$ac_exeext conftest.$ac_ext
18603 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18604 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
18606 if test $ac_cv_func_alloca_works = yes; then
18608 cat >>confdefs.h <<\_ACEOF
18609 #define HAVE_ALLOCA 1
18613 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18614 # that cause trouble. Some versions do not even contain alloca or
18615 # contain a buggy version. If you still want to use their alloca,
18616 # use ar to extract alloca.o from them instead of compiling alloca.c.
18618 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18620 cat >>confdefs.h <<\_ACEOF
18625 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18626 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
18627 if test "${ac_cv_os_cray+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 cat >conftest.$ac_ext <<_ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 #if defined CRAY && ! defined CRAY2
18643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18644 $EGREP "webecray" >/dev/null 2>&1; then
18652 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18653 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
18654 if test $ac_cv_os_cray = yes; then
18655 for ac_func in _getb67 GETB67 getb67; do
18656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 cat >conftest.$ac_ext <<_ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18670 #define $ac_func innocuous_$ac_func
18672 /* System header to define __stub macros and hopefully few prototypes,
18673 which can conflict with char $ac_func (); below.
18674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675 <limits.h> exists even on freestanding compilers. */
18678 # include <limits.h>
18680 # include <assert.h>
18685 /* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18692 /* The GNU C library defines this for functions which it implements
18693 to always fail with ENOSYS. Some functions are actually named
18694 something starting with __ and the normal name is an alias. */
18695 #if defined __stub_$ac_func || defined __stub___$ac_func
18702 return $ac_func ();
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_link") 2>conftest.er1
18716 grep -v '^ *+' conftest.er1 >conftest.err
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } && {
18721 test -z "$ac_c_werror_flag" ||
18722 test ! -s conftest.err
18723 } && test -s conftest$ac_exeext &&
18724 $as_test_x conftest$ac_exeext; then
18725 eval "$as_ac_var=yes"
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 eval "$as_ac_var=no"
18733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18734 conftest$ac_exeext conftest.$ac_ext
18736 ac_res=`eval echo '${'$as_ac_var'}'`
18737 { echo "$as_me:$LINENO: result: $ac_res" >&5
18738 echo "${ECHO_T}$ac_res" >&6; }
18739 if test `eval echo '${'$as_ac_var'}'` = yes; then
18741 cat >>confdefs.h <<_ACEOF
18742 #define CRAY_STACKSEG_END $ac_func
18751 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18752 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
18753 if test "${ac_cv_c_stack_direction+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 if test "$cross_compiling" = yes; then
18757 ac_cv_c_stack_direction=0
18759 cat >conftest.$ac_ext <<_ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h. */
18765 $ac_includes_default
18767 find_stack_direction ()
18769 static char *addr = 0;
18774 return find_stack_direction ();
18777 return (&dummy > addr) ? 1 : -1;
18783 return find_stack_direction () < 0;
18786 rm -f conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18797 { (case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_try") 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 ac_cv_c_stack_direction=1
18808 echo "$as_me: program exited with status $ac_status" >&5
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18812 ( exit $ac_status )
18813 ac_cv_c_stack_direction=-1
18815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18820 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18821 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
18823 cat >>confdefs.h <<_ACEOF
18824 #define STACK_DIRECTION $ac_cv_c_stack_direction
18832 for ac_func in getprogname
18834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 cat >conftest.$ac_ext <<_ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18848 #define $ac_func innocuous_$ac_func
18850 /* System header to define __stub macros and hopefully few prototypes,
18851 which can conflict with char $ac_func (); below.
18852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18853 <limits.h> exists even on freestanding compilers. */
18856 # include <limits.h>
18858 # include <assert.h>
18863 /* Override any GCC internal prototype to avoid an error.
18864 Use char because int might match the return type of a GCC
18865 builtin and then its argument prototype would still apply. */
18870 /* The GNU C library defines this for functions which it implements
18871 to always fail with ENOSYS. Some functions are actually named
18872 something starting with __ and the normal name is an alias. */
18873 #if defined __stub_$ac_func || defined __stub___$ac_func
18880 return $ac_func ();
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (ac_try="$ac_link"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_link") 2>conftest.er1
18894 grep -v '^ *+' conftest.er1 >conftest.err
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } && {
18899 test -z "$ac_c_werror_flag" ||
18900 test ! -s conftest.err
18901 } && test -s conftest$ac_exeext &&
18902 $as_test_x conftest$ac_exeext; then
18903 eval "$as_ac_var=yes"
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 eval "$as_ac_var=no"
18911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18912 conftest$ac_exeext conftest.$ac_ext
18914 ac_res=`eval echo '${'$as_ac_var'}'`
18915 { echo "$as_me:$LINENO: result: $ac_res" >&5
18916 echo "${ECHO_T}$ac_res" >&6; }
18917 if test `eval echo '${'$as_ac_var'}'` = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18924 { echo "$as_me:$LINENO: checking for __progname" >&5
18925 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
18926 if test "${sudo_cv___progname+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18940 extern char *__progname; (void)puts(__progname);
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_link") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext &&
18962 $as_test_x conftest$ac_exeext; then
18963 sudo_cv___progname=yes
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 sudo_cv___progname=no
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 conftest$ac_exeext conftest.$ac_ext
18975 if test "$sudo_cv___progname" = "yes"; then
18976 cat >>confdefs.h <<\_ACEOF
18977 #define HAVE___PROGNAME 1
18981 case " $LIBOBJS " in
18982 *" getprogname.$ac_objext "* ) ;;
18983 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
18988 { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
18989 echo "${ECHO_T}$sudo_cv___progname" >&6; }
18996 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
18997 for auth in $AUTH_EXCL_DEF; do
18999 AIX_AUTH) with_aixauth=maybe;;
19000 BSD_AUTH) with_bsdauth=maybe;;
19001 PAM) with_pam=maybe;;
19002 SIA) CHECKSIA=true;;
19007 if test ${with_pam-"no"} != "no"; then
19008 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19009 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19010 if test "${ac_cv_lib_dl_main+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 ac_check_lib_save_LIBS=$LIBS
19015 cat >conftest.$ac_ext <<_ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (ac_try="$ac_link"
19033 case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_link") 2>conftest.er1
19040 grep -v '^ *+' conftest.er1 >conftest.err
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest$ac_exeext &&
19048 $as_test_x conftest$ac_exeext; then
19049 ac_cv_lib_dl_main=yes
19051 echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19054 ac_cv_lib_dl_main=no
19057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19058 conftest$ac_exeext conftest.$ac_ext
19059 LIBS=$ac_check_lib_save_LIBS
19061 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19062 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19063 if test $ac_cv_lib_dl_main = yes; then
19064 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19066 SUDO_LIBS="${SUDO_LIBS} -lpam"
19069 ac_cv_lib_dl=ac_cv_lib_dl_main
19073 for ac_header in security/pam_appl.h pam/pam_appl.h
19075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 ac_res=`eval echo '${'$as_ac_Header'}'`
19083 { echo "$as_me:$LINENO: result: $ac_res" >&5
19084 echo "${ECHO_T}$ac_res" >&6; }
19086 # Is the header compilable?
19087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19089 cat >conftest.$ac_ext <<_ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 $ac_includes_default
19096 #include <$ac_header>
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_compile") 2>conftest.er1
19107 grep -v '^ *+' conftest.er1 >conftest.err
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } && {
19112 test -z "$ac_c_werror_flag" ||
19113 test ! -s conftest.err
19114 } && test -s conftest.$ac_objext; then
19115 ac_header_compiler=yes
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19120 ac_header_compiler=no
19123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19125 echo "${ECHO_T}$ac_header_compiler" >&6; }
19127 # Is the header present?
19128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 #include <$ac_header>
19138 if { (ac_try="$ac_cpp conftest.$ac_ext"
19139 case "(($ac_try" in
19140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141 *) ac_try_echo=$ac_try;;
19143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19146 grep -v '^ *+' conftest.er1 >conftest.err
19148 cat conftest.err >&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } >/dev/null && {
19151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19152 test ! -s conftest.err
19154 ac_header_preproc=yes
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 ac_header_preproc=no
19162 rm -f conftest.err conftest.$ac_ext
19163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19164 echo "${ECHO_T}$ac_header_preproc" >&6; }
19166 # So? What about this header?
19167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19173 ac_header_preproc=yes
19176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19196 eval "$as_ac_Header=\$ac_header_preproc"
19198 ac_res=`eval echo '${'$as_ac_Header'}'`
19199 { echo "$as_me:$LINENO: result: $ac_res" >&5
19200 echo "${ECHO_T}$ac_res" >&6; }
19203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19204 cat >>confdefs.h <<_ACEOF
19205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19207 with_pam=yes; break
19212 if test "$with_pam" = "yes"; then
19213 cat >>confdefs.h <<\_ACEOF
19217 AUTH_OBJS="$AUTH_OBJS pam.o";
19219 { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
19220 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
19221 # Check whether --enable-pam_session was given.
19222 if test "${enable_pam_session+set}" = set; then
19223 enableval=$enable_pam_session; case "$enableval" in
19224 yes) { echo "$as_me:$LINENO: result: yes" >&5
19225 echo "${ECHO_T}yes" >&6; }
19227 no) { echo "$as_me:$LINENO: result: no" >&5
19228 echo "${ECHO_T}no" >&6; }
19229 cat >>confdefs.h <<\_ACEOF
19230 #define NO_PAM_SESSION 1
19234 *) { echo "$as_me:$LINENO: result: no" >&5
19235 echo "${ECHO_T}no" >&6; }
19236 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
19237 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
19241 { echo "$as_me:$LINENO: result: yes" >&5
19242 echo "${ECHO_T}yes" >&6; }
19248 if test ${with_aixauth-'no'} != "no"; then
19249 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
19250 { echo "$as_me:$LINENO: using AIX general authentication" >&5
19251 echo "$as_me: using AIX general authentication" >&6;}
19252 cat >>confdefs.h <<\_ACEOF
19253 #define HAVE_AIXAUTH 1
19256 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
19257 SUDO_LIBS="${SUDO_LIBS} -ls"
19262 if test ${with_bsdauth-'no'} != "no"; then
19263 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19264 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19265 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19266 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19270 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19272 # Is the header compilable?
19273 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
19274 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
19275 cat >conftest.$ac_ext <<_ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281 $ac_includes_default
19282 #include <bsd_auth.h>
19284 rm -f conftest.$ac_objext
19285 if { (ac_try="$ac_compile"
19286 case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_compile") 2>conftest.er1
19293 grep -v '^ *+' conftest.er1 >conftest.err
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } && {
19298 test -z "$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19300 } && test -s conftest.$ac_objext; then
19301 ac_header_compiler=yes
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19306 ac_header_compiler=no
19309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19311 echo "${ECHO_T}$ac_header_compiler" >&6; }
19313 # Is the header present?
19314 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
19315 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
19316 cat >conftest.$ac_ext <<_ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19322 #include <bsd_auth.h>
19324 if { (ac_try="$ac_cpp conftest.$ac_ext"
19325 case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19332 grep -v '^ *+' conftest.er1 >conftest.err
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } >/dev/null && {
19337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19338 test ! -s conftest.err
19340 ac_header_preproc=yes
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19345 ac_header_preproc=no
19348 rm -f conftest.err conftest.$ac_ext
19349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19350 echo "${ECHO_T}$ac_header_preproc" >&6; }
19352 # So? What about this header?
19353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19355 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
19356 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
19358 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
19359 ac_header_preproc=yes
19362 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
19363 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
19364 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
19365 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
19366 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
19367 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
19368 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
19369 echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
19370 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
19371 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
19372 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
19373 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
19377 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19378 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19379 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 ac_cv_header_bsd_auth_h=$ac_header_preproc
19384 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19385 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19388 if test $ac_cv_header_bsd_auth_h = yes; then
19389 cat >>confdefs.h <<\_ACEOF
19390 #define HAVE_BSD_AUTH_H 1
19393 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
19394 BSDAUTH_USAGE='[-a auth_type] '
19397 { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
19398 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
19399 { (exit 1); exit 1; }; }
19405 if test ${CHECKSIA-'false'} = "true"; then
19407 for ac_func in sia_ses_init
19409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 cat >conftest.$ac_ext <<_ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19423 #define $ac_func innocuous_$ac_func
19425 /* System header to define __stub macros and hopefully few prototypes,
19426 which can conflict with char $ac_func (); below.
19427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19428 <limits.h> exists even on freestanding compilers. */
19431 # include <limits.h>
19433 # include <assert.h>
19438 /* Override any GCC internal prototype to avoid an error.
19439 Use char because int might match the return type of a GCC
19440 builtin and then its argument prototype would still apply. */
19445 /* The GNU C library defines this for functions which it implements
19446 to always fail with ENOSYS. Some functions are actually named
19447 something starting with __ and the normal name is an alias. */
19448 #if defined __stub_$ac_func || defined __stub___$ac_func
19455 return $ac_func ();
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (ac_try="$ac_link"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_link") 2>conftest.er1
19469 grep -v '^ *+' conftest.er1 >conftest.err
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } && {
19474 test -z "$ac_c_werror_flag" ||
19475 test ! -s conftest.err
19476 } && test -s conftest$ac_exeext &&
19477 $as_test_x conftest$ac_exeext; then
19478 eval "$as_ac_var=yes"
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 eval "$as_ac_var=no"
19486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19487 conftest$ac_exeext conftest.$ac_ext
19489 ac_res=`eval echo '${'$as_ac_var'}'`
19490 { echo "$as_me:$LINENO: result: $ac_res" >&5
19491 echo "${ECHO_T}$ac_res" >&6; }
19492 if test `eval echo '${'$as_ac_var'}'` = yes; then
19493 cat >>confdefs.h <<_ACEOF
19494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19502 if test "$found" = "true"; then
19504 AUTH_OBJS="$AUTH_OBJS sia.o"
19508 if test ${with_fwtk-'no'} != "no"; then
19509 if test "$with_fwtk" != "yes"; then
19511 if test X"$with_rpath" = X"yes"; then
19512 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
19514 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
19516 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
19517 blibpath_add="${blibpath_add}:${with_fwtk}"
19520 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
19523 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
19524 AUTH_OBJS="$AUTH_OBJS fwtk.o"
19527 if test ${with_SecurID-'no'} != "no"; then
19528 if test "$with_SecurID" != "yes"; then
19530 elif test -d /usr/ace/examples; then
19531 with_SecurID=/usr/ace/examples
19533 with_SecurID=/usr/ace
19535 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
19536 _LDFLAGS="${LDFLAGS}"
19538 if test X"$with_rpath" = X"yes"; then
19539 LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
19541 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
19543 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19544 blibpath_add="${blibpath_add}:${with_SecurID}"
19548 # Determine whether to use the new or old SecurID API
19550 { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
19551 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
19552 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 ac_check_lib_save_LIBS=$LIBS
19560 cat >conftest.$ac_ext <<_ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19567 /* Override any GCC internal prototype to avoid an error.
19568 Use char because int might match the return type of a GCC
19569 builtin and then its argument prototype would still apply. */
19582 rm -f conftest.$ac_objext conftest$ac_exeext
19583 if { (ac_try="$ac_link"
19584 case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_link") 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } && {
19596 test -z "$ac_c_werror_flag" ||
19597 test ! -s conftest.err
19598 } && test -s conftest$ac_exeext &&
19599 $as_test_x conftest$ac_exeext; then
19600 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19605 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
19608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19609 conftest$ac_exeext conftest.$ac_ext
19610 LIBS=$ac_check_lib_save_LIBS
19612 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
19613 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
19614 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
19616 AUTH_OBJS="$AUTH_OBJS securid5.o";
19617 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
19621 if test X"$with_rpath" = X"yes"; then
19622 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
19624 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
19626 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
19627 blibpath_add="${blibpath_add}:${with_SecurID}"
19633 AUTH_OBJS="$AUTH_OBJS securid.o";
19634 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
19638 LDFLAGS="${_LDFLAGS}"
19642 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
19643 for auth in $AUTH_DEF; do
19645 passwd) : ${with_passwd='maybe'};;
19650 if test ${with_kerb4-'no'} != "no"; then
19651 cat >>confdefs.h <<\_ACEOF
19652 #define HAVE_KERB4 1
19655 O_LDFLAGS="$LDFLAGS"
19656 if test "$with_kerb4" = "yes"; then
19658 O_CPPFLAGS="$CPPFLAGS"
19659 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
19660 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19661 cat >conftest.$ac_ext <<_ACEOF
19664 if { (ac_try="$ac_cpp conftest.$ac_ext"
19665 case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19672 grep -v '^ *+' conftest.er1 >conftest.err
19674 cat conftest.err >&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } >/dev/null && {
19677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19678 test ! -s conftest.err
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19688 rm -f conftest.err conftest.$ac_ext
19690 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
19693 if test X"$with_rpath" = X"yes"; then
19694 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
19696 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
19698 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19699 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
19703 if test X"$with_rpath" = X"yes"; then
19704 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
19706 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
19708 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
19709 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
19712 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
19713 if test "${ac_cv_header_krb_h+set}" = set; then
19714 { echo "$as_me:$LINENO: checking for krb.h" >&5
19715 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
19716 if test "${ac_cv_header_krb_h+set}" = set; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19719 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
19720 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
19722 # Is the header compilable?
19723 { echo "$as_me:$LINENO: checking krb.h usability" >&5
19724 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
19725 cat >conftest.$ac_ext <<_ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 $ac_includes_default
19734 rm -f conftest.$ac_objext
19735 if { (ac_try="$ac_compile"
19736 case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_compile") 2>conftest.er1
19743 grep -v '^ *+' conftest.er1 >conftest.err
19745 cat conftest.err >&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } && {
19748 test -z "$ac_c_werror_flag" ||
19749 test ! -s conftest.err
19750 } && test -s conftest.$ac_objext; then
19751 ac_header_compiler=yes
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 ac_header_compiler=no
19759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19761 echo "${ECHO_T}$ac_header_compiler" >&6; }
19763 # Is the header present?
19764 { echo "$as_me:$LINENO: checking krb.h presence" >&5
19765 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
19766 cat >conftest.$ac_ext <<_ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19774 if { (ac_try="$ac_cpp conftest.$ac_ext"
19775 case "(($ac_try" in
19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19782 grep -v '^ *+' conftest.er1 >conftest.err
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } >/dev/null && {
19787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19788 test ! -s conftest.err
19790 ac_header_preproc=yes
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_header_preproc=no
19798 rm -f conftest.err conftest.$ac_ext
19799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19800 echo "${ECHO_T}$ac_header_preproc" >&6; }
19802 # So? What about this header?
19803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19805 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
19806 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
19808 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
19809 ac_header_preproc=yes
19812 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
19813 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
19814 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
19815 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
19817 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
19819 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
19821 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
19823 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
19827 { echo "$as_me:$LINENO: checking for krb.h" >&5
19828 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
19829 if test "${ac_cv_header_krb_h+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 ac_cv_header_krb_h=$ac_header_preproc
19834 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
19835 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
19838 if test $ac_cv_header_krb_h = yes; then
19846 if test X"$found" = X"no"; then
19847 { 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
19848 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;}
19851 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19852 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19853 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 ac_check_lib_save_LIBS=$LIBS
19858 cat >conftest.$ac_ext <<_ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19865 /* Override any GCC internal prototype to avoid an error.
19866 Use char because int might match the return type of a GCC
19867 builtin and then its argument prototype would still apply. */
19871 char des_cbc_encrypt ();
19875 return des_cbc_encrypt ();
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (ac_try="$ac_link"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_link") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && {
19894 test -z "$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19896 } && test -s conftest$ac_exeext &&
19897 $as_test_x conftest$ac_exeext; then
19898 ac_cv_lib_des_des_cbc_encrypt=yes
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 ac_cv_lib_des_des_cbc_encrypt=no
19906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19907 conftest$ac_exeext conftest.$ac_ext
19908 LIBS=$ac_check_lib_save_LIBS
19910 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19911 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19912 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19916 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19917 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19918 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 ac_check_lib_save_LIBS=$LIBS
19922 LIBS="-ldes425 $LIBS"
19923 cat >conftest.$ac_ext <<_ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19930 /* Override any GCC internal prototype to avoid an error.
19931 Use char because int might match the return type of a GCC
19932 builtin and then its argument prototype would still apply. */
19936 char des_cbc_encrypt ();
19940 return des_cbc_encrypt ();
19945 rm -f conftest.$ac_objext conftest$ac_exeext
19946 if { (ac_try="$ac_link"
19947 case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_link") 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } && {
19959 test -z "$ac_c_werror_flag" ||
19960 test ! -s conftest.err
19961 } && test -s conftest$ac_exeext &&
19962 $as_test_x conftest$ac_exeext; then
19963 ac_cv_lib_des425_des_cbc_encrypt=yes
19965 echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19968 ac_cv_lib_des425_des_cbc_encrypt=no
19971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19972 conftest$ac_exeext conftest.$ac_ext
19973 LIBS=$ac_check_lib_save_LIBS
19975 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19976 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19977 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19986 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
19987 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
19988 cat >conftest.$ac_ext <<_ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19998 const char *tmp = krb4_version;
20003 rm -f conftest.$ac_objext
20004 if { (ac_try="$ac_compile"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_compile") 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } && {
20017 test -z "$ac_c_werror_flag" ||
20018 test ! -s conftest.err
20019 } && test -s conftest.$ac_objext; then
20021 { echo "$as_me:$LINENO: result: yes" >&5
20022 echo "${ECHO_T}yes" >&6; }
20023 K4LIBS="${K4LIBS} -lcom_err"
20024 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20025 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20026 if test "${ac_cv_lib_roken_main+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 ac_check_lib_save_LIBS=$LIBS
20030 LIBS="-lroken $LIBS"
20031 cat >conftest.$ac_ext <<_ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20047 rm -f conftest.$ac_objext conftest$ac_exeext
20048 if { (ac_try="$ac_link"
20049 case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_link") 2>conftest.er1
20056 grep -v '^ *+' conftest.er1 >conftest.err
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } && {
20061 test -z "$ac_c_werror_flag" ||
20062 test ! -s conftest.err
20063 } && test -s conftest$ac_exeext &&
20064 $as_test_x conftest$ac_exeext; then
20065 ac_cv_lib_roken_main=yes
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20070 ac_cv_lib_roken_main=no
20073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20074 conftest$ac_exeext conftest.$ac_ext
20075 LIBS=$ac_check_lib_save_LIBS
20077 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
20078 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
20079 if test $ac_cv_lib_roken_main = yes; then
20080 K4LIBS="${K4LIBS} -lroken"
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20089 { echo "$as_me:$LINENO: result: no" >&5
20090 echo "${ECHO_T}no" >&6; }
20095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20096 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
20097 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
20098 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
20099 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20102 ac_check_lib_save_LIBS=$LIBS
20103 LIBS="-lkrb $K4LIBS $LIBS"
20104 cat >conftest.$ac_ext <<_ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20120 rm -f conftest.$ac_objext conftest$ac_exeext
20121 if { (ac_try="$ac_link"
20122 case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_link") 2>conftest.er1
20129 grep -v '^ *+' conftest.er1 >conftest.err
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } && {
20134 test -z "$ac_c_werror_flag" ||
20135 test ! -s conftest.err
20136 } && test -s conftest$ac_exeext &&
20137 $as_test_x conftest$ac_exeext; then
20138 eval "$as_ac_Lib=yes"
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 eval "$as_ac_Lib=no"
20146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20147 conftest$ac_exeext conftest.$ac_ext
20148 LIBS=$ac_check_lib_save_LIBS
20150 ac_res=`eval echo '${'$as_ac_Lib'}'`
20151 { echo "$as_me:$LINENO: result: $ac_res" >&5
20152 echo "${ECHO_T}$ac_res" >&6; }
20153 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20154 K4LIBS="-lkrb $K4LIBS"
20157 as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
20158 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
20159 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
20160 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20163 ac_check_lib_save_LIBS=$LIBS
20164 LIBS="-lkrb4 $K4LIBS $LIBS"
20165 cat >conftest.$ac_ext <<_ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h. */
20181 rm -f conftest.$ac_objext conftest$ac_exeext
20182 if { (ac_try="$ac_link"
20183 case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_link") 2>conftest.er1
20190 grep -v '^ *+' conftest.er1 >conftest.err
20192 cat conftest.err >&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && {
20195 test -z "$ac_c_werror_flag" ||
20196 test ! -s conftest.err
20197 } && test -s conftest$ac_exeext &&
20198 $as_test_x conftest$ac_exeext; then
20199 eval "$as_ac_Lib=yes"
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 eval "$as_ac_Lib=no"
20207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20208 conftest$ac_exeext conftest.$ac_ext
20209 LIBS=$ac_check_lib_save_LIBS
20211 ac_res=`eval echo '${'$as_ac_Lib'}'`
20212 { echo "$as_me:$LINENO: result: $ac_res" >&5
20213 echo "${ECHO_T}$ac_res" >&6; }
20214 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20215 K4LIBS="-lkrb4 $K4LIBS"
20217 K4LIBS="-lkrb $K4LIBS"
20218 { 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
20219 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;}
20226 LDFLAGS="$O_LDFLAGS"
20227 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
20228 AUTH_OBJS="$AUTH_OBJS kerb4.o"
20231 if test ${with_kerb5-'no'} != "no"; then
20232 # Extract the first word of "krb5-config", so it can be a program name with args.
20233 set dummy krb5-config; ac_word=$2
20234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20236 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 if test -n "$KRB5CONFIG"; then
20240 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
20242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20243 for as_dir in $PATH
20246 test -z "$as_dir" && as_dir=.
20247 for ac_exec_ext in '' $ac_executable_extensions; do
20248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20249 ac_cv_prog_KRB5CONFIG="yes"
20250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20257 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
20260 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
20261 if test -n "$KRB5CONFIG"; then
20262 { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
20263 echo "${ECHO_T}$KRB5CONFIG" >&6; }
20265 { echo "$as_me:$LINENO: result: no" >&5
20266 echo "${ECHO_T}no" >&6; }
20270 if test -n "$KRB5CONFIG"; then
20271 cat >>confdefs.h <<\_ACEOF
20272 #define HAVE_KERB5 1
20275 AUTH_OBJS="$AUTH_OBJS kerb5.o"
20276 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
20277 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
20278 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20279 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20290 const char *tmp = heimdal_version;
20295 rm -f conftest.$ac_objext
20296 if { (ac_try="$ac_compile"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_compile") 2>conftest.er1
20304 grep -v '^ *+' conftest.er1 >conftest.err
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && {
20309 test -z "$ac_c_werror_flag" ||
20310 test ! -s conftest.err
20311 } && test -s conftest.$ac_objext; then
20313 { echo "$as_me:$LINENO: result: yes" >&5
20314 echo "${ECHO_T}yes" >&6; }
20315 cat >>confdefs.h <<\_ACEOF
20316 #define HAVE_HEIMDAL 1
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20325 { echo "$as_me:$LINENO: result: no" >&5
20326 echo "${ECHO_T}no" >&6; }
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20334 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
20335 cat >>confdefs.h <<\_ACEOF
20336 #define HAVE_KERB5 1
20339 if test "$with_kerb5" = "yes"; then
20341 O_CPPFLAGS="$CPPFLAGS"
20342 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
20343 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20344 cat >conftest.$ac_ext <<_ACEOF
20347 if { (ac_try="$ac_cpp conftest.$ac_ext"
20348 case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20355 grep -v '^ *+' conftest.er1 >conftest.err
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } >/dev/null && {
20360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20361 test ! -s conftest.err
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20371 rm -f conftest.err conftest.$ac_ext
20373 if test X"$found" = X"no"; then
20374 CPPFLAGS="$O_CPPFLAGS"
20375 { 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
20376 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;}
20380 if test X"$with_rpath" = X"yes"; then
20381 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
20383 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
20385 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20386 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
20389 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
20392 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20393 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20404 const char *tmp = heimdal_version;
20409 rm -f conftest.$ac_objext
20410 if { (ac_try="$ac_compile"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_compile") 2>conftest.er1
20418 grep -v '^ *+' conftest.er1 >conftest.err
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && {
20423 test -z "$ac_c_werror_flag" ||
20424 test ! -s conftest.err
20425 } && test -s conftest.$ac_objext; then
20427 { echo "$as_me:$LINENO: result: yes" >&5
20428 echo "${ECHO_T}yes" >&6; }
20429 cat >>confdefs.h <<\_ACEOF
20430 #define HAVE_HEIMDAL 1
20433 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
20434 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20435 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20436 if test "${ac_cv_lib_roken_main+set}" = set; then
20437 echo $ECHO_N "(cached) $ECHO_C" >&6
20439 ac_check_lib_save_LIBS=$LIBS
20440 LIBS="-lroken $LIBS"
20441 cat >conftest.$ac_ext <<_ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } && {
20471 test -z "$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20473 } && test -s conftest$ac_exeext &&
20474 $as_test_x conftest$ac_exeext; then
20475 ac_cv_lib_roken_main=yes
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_cv_lib_roken_main=no
20483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20484 conftest$ac_exeext conftest.$ac_ext
20485 LIBS=$ac_check_lib_save_LIBS
20487 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
20488 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
20489 if test $ac_cv_lib_roken_main = yes; then
20490 SUDO_LIBS="${SUDO_LIBS} -lroken"
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20499 { echo "$as_me:$LINENO: result: no" >&5
20500 echo "${ECHO_T}no" >&6; }
20501 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 AUTH_OBJS="$AUTH_OBJS kerb5.o"
20509 LIBS="${LIBS} ${SUDO_LIBS}"
20512 for ac_func in krb5_verify_user krb5_init_secure_context
20514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20528 #define $ac_func innocuous_$ac_func
20530 /* System header to define __stub macros and hopefully few prototypes,
20531 which can conflict with char $ac_func (); below.
20532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20533 <limits.h> exists even on freestanding compilers. */
20536 # include <limits.h>
20538 # include <assert.h>
20543 /* Override any GCC internal prototype to avoid an error.
20544 Use char because int might match the return type of a GCC
20545 builtin and then its argument prototype would still apply. */
20550 /* The GNU C library defines this for functions which it implements
20551 to always fail with ENOSYS. Some functions are actually named
20552 something starting with __ and the normal name is an alias. */
20553 #if defined __stub_$ac_func || defined __stub___$ac_func
20560 return $ac_func ();
20565 rm -f conftest.$ac_objext conftest$ac_exeext
20566 if { (ac_try="$ac_link"
20567 case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_link") 2>conftest.er1
20574 grep -v '^ *+' conftest.er1 >conftest.err
20576 cat conftest.err >&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } && {
20579 test -z "$ac_c_werror_flag" ||
20580 test ! -s conftest.err
20581 } && test -s conftest$ac_exeext &&
20582 $as_test_x conftest$ac_exeext; then
20583 eval "$as_ac_var=yes"
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 eval "$as_ac_var=no"
20591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20592 conftest$ac_exeext conftest.$ac_ext
20594 ac_res=`eval echo '${'$as_ac_var'}'`
20595 { echo "$as_me:$LINENO: result: $ac_res" >&5
20596 echo "${ECHO_T}$ac_res" >&6; }
20597 if test `eval echo '${'$as_ac_var'}'` = yes; then
20598 cat >>confdefs.h <<_ACEOF
20599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20608 if test ${with_AFS-'no'} = "yes"; then
20610 # looks like the "standard" place for AFS libs is /usr/afsws/lib
20611 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
20612 for i in $AFSLIBDIRS; do
20613 if test -d ${i}; then
20615 if test X"$with_rpath" = X"yes"; then
20616 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
20618 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
20620 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20621 blibpath_add="${blibpath_add}:$i"
20624 FOUND_AFSLIBDIR=true
20627 if test -z "$FOUND_AFSLIBDIR"; then
20628 { 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
20629 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;}
20632 # Order is important here. Note that we build AFS_LIBS from right to left
20633 # since AFS_LIBS may be initialized with BSD compat libs that must go last
20634 AFS_LIBS="-laudit ${AFS_LIBS}"
20635 for i in $AFSLIBDIRS; do
20636 if test -f ${i}/util.a; then
20637 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
20642 if test -z "$FOUND_UTIL_A"; then
20643 AFS_LIBS="-lutil ${AFS_LIBS}"
20645 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
20647 # AFS includes may live in /usr/include on some machines...
20648 for i in /usr/afsws/include; do
20649 if test -d ${i}; then
20650 CPPFLAGS="${CPPFLAGS} -I${i}"
20651 FOUND_AFSINCDIR=true
20655 if test -z "$FOUND_AFSLIBDIR"; then
20656 { 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
20657 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;}
20660 AUTH_OBJS="$AUTH_OBJS afs.o"
20663 if test ${with_DCE-'no'} = "yes"; then
20664 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
20665 SUDO_LIBS="${SUDO_LIBS} -ldce"
20666 AUTH_OBJS="$AUTH_OBJS dce.o"
20669 if test ${with_skey-'no'} = "yes"; then
20670 O_LDFLAGS="$LDFLAGS"
20671 if test "$with_skey" != "yes"; then
20672 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
20674 if test X"$with_rpath" = X"yes"; then
20675 LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
20677 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
20679 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20680 blibpath_add="${blibpath_add}:${with_skey}/lib"
20684 if test X"$with_rpath" = X"yes"; then
20685 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
20687 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
20689 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20690 blibpath_add="${blibpath_add}:${with_skey}/lib"
20693 cat >conftest.$ac_ext <<_ACEOF
20696 if { (ac_try="$ac_cpp conftest.$ac_ext"
20697 case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20704 grep -v '^ *+' conftest.er1 >conftest.err
20706 cat conftest.err >&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } >/dev/null && {
20709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20710 test ! -s conftest.err
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20720 rm -f conftest.err conftest.$ac_ext
20723 O_CPPFLAGS="$CPPFLAGS"
20724 for dir in "" "/usr/local" "/usr/contrib"; do
20725 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
20726 cat >conftest.$ac_ext <<_ACEOF
20729 if { (ac_try="$ac_cpp conftest.$ac_ext"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20737 grep -v '^ *+' conftest.er1 >conftest.err
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } >/dev/null && {
20742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20753 rm -f conftest.err conftest.$ac_ext
20755 if test "$found" = "no" -o -z "$dir"; then
20756 CPPFLAGS="$O_CPPFLAGS"
20759 if test X"$with_rpath" = X"yes"; then
20760 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
20762 LDFLAGS="${LDFLAGS} -L${dir}/lib"
20764 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20765 blibpath_add="${blibpath_add}:${dir}/lib"
20769 if test X"$with_rpath" = X"yes"; then
20770 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
20772 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
20774 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20775 blibpath_add="${blibpath_add}:${dir}/lib"
20780 if test "$found" = "no"; then
20781 { 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
20782 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;}
20784 { echo "$as_me:$LINENO: checking for main in -lskey" >&5
20785 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
20786 if test "${ac_cv_lib_skey_main+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 ac_check_lib_save_LIBS=$LIBS
20790 LIBS="-lskey $LIBS"
20791 cat >conftest.$ac_ext <<_ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20807 rm -f conftest.$ac_objext conftest$ac_exeext
20808 if { (ac_try="$ac_link"
20809 case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_link") 2>conftest.er1
20816 grep -v '^ *+' conftest.er1 >conftest.err
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest$ac_exeext &&
20824 $as_test_x conftest$ac_exeext; then
20825 ac_cv_lib_skey_main=yes
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20830 ac_cv_lib_skey_main=no
20833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20834 conftest$ac_exeext conftest.$ac_ext
20835 LIBS=$ac_check_lib_save_LIBS
20837 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
20838 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
20839 if test $ac_cv_lib_skey_main = yes; then
20842 { 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
20843 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;}
20846 { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
20847 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
20848 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
20849 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 ac_check_lib_save_LIBS=$LIBS
20852 LIBS="-lskey $LIBS"
20853 cat >conftest.$ac_ext <<_ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20860 /* Override any GCC internal prototype to avoid an error.
20861 Use char because int might match the return type of a GCC
20862 builtin and then its argument prototype would still apply. */
20866 char skeyaccess ();
20870 return skeyaccess ();
20875 rm -f conftest.$ac_objext conftest$ac_exeext
20876 if { (ac_try="$ac_link"
20877 case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_link") 2>conftest.er1
20884 grep -v '^ *+' conftest.er1 >conftest.err
20886 cat conftest.err >&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } && {
20889 test -z "$ac_c_werror_flag" ||
20890 test ! -s conftest.err
20891 } && test -s conftest$ac_exeext &&
20892 $as_test_x conftest$ac_exeext; then
20893 ac_cv_lib_skey_skeyaccess=yes
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20898 ac_cv_lib_skey_skeyaccess=no
20901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20902 conftest$ac_exeext conftest.$ac_ext
20903 LIBS=$ac_check_lib_save_LIBS
20905 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
20906 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
20907 if test $ac_cv_lib_skey_skeyaccess = yes; then
20908 cat >>confdefs.h <<\_ACEOF
20909 #define HAVE_SKEYACCESS 1
20914 LDFLAGS="$O_LDFLAGS"
20915 SUDO_LIBS="${SUDO_LIBS} -lskey"
20916 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
20919 if test ${with_opie-'no'} = "yes"; then
20920 O_LDFLAGS="$LDFLAGS"
20921 if test "$with_opie" != "yes"; then
20922 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
20924 if test X"$with_rpath" = X"yes"; then
20925 LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
20927 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
20929 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20930 blibpath_add="${blibpath_add}:${with_opie}/lib"
20934 if test X"$with_rpath" = X"yes"; then
20935 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
20937 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
20939 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20940 blibpath_add="${blibpath_add}:${with_opie}/lib"
20943 cat >conftest.$ac_ext <<_ACEOF
20946 if { (ac_try="$ac_cpp conftest.$ac_ext"
20947 case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20954 grep -v '^ *+' conftest.er1 >conftest.err
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } >/dev/null && {
20959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20960 test ! -s conftest.err
20964 echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20970 rm -f conftest.err conftest.$ac_ext
20973 O_CPPFLAGS="$CPPFLAGS"
20974 for dir in "" "/usr/local" "/usr/contrib"; do
20975 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
20976 cat >conftest.$ac_ext <<_ACEOF
20979 if { (ac_try="$ac_cpp conftest.$ac_ext"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20987 grep -v '^ *+' conftest.er1 >conftest.err
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } >/dev/null && {
20992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
21003 rm -f conftest.err conftest.$ac_ext
21005 if test "$found" = "no" -o -z "$dir"; then
21006 CPPFLAGS="$O_CPPFLAGS"
21009 if test X"$with_rpath" = X"yes"; then
21010 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21012 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21014 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21015 blibpath_add="${blibpath_add}:${dir}/lib"
21019 if test X"$with_rpath" = X"yes"; then
21020 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21022 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21024 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21025 blibpath_add="${blibpath_add}:${dir}/lib"
21030 if test "$found" = "no"; then
21031 { 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
21032 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;}
21034 { echo "$as_me:$LINENO: checking for main in -lopie" >&5
21035 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
21036 if test "${ac_cv_lib_opie_main+set}" = set; then
21037 echo $ECHO_N "(cached) $ECHO_C" >&6
21039 ac_check_lib_save_LIBS=$LIBS
21040 LIBS="-lopie $LIBS"
21041 cat >conftest.$ac_ext <<_ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21057 rm -f conftest.$ac_objext conftest$ac_exeext
21058 if { (ac_try="$ac_link"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_link") 2>conftest.er1
21066 grep -v '^ *+' conftest.er1 >conftest.err
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } && {
21071 test -z "$ac_c_werror_flag" ||
21072 test ! -s conftest.err
21073 } && test -s conftest$ac_exeext &&
21074 $as_test_x conftest$ac_exeext; then
21075 ac_cv_lib_opie_main=yes
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ac_cv_lib_opie_main=no
21083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21084 conftest$ac_exeext conftest.$ac_ext
21085 LIBS=$ac_check_lib_save_LIBS
21087 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
21088 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
21089 if test $ac_cv_lib_opie_main = yes; then
21092 { 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
21093 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;}
21096 LDFLAGS="$O_LDFLAGS"
21097 SUDO_LIBS="${SUDO_LIBS} -lopie"
21098 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21101 if test ${with_passwd-'no'} != "no"; then
21102 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
21103 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
21104 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
21105 if test "${ac_cv_search_crypt+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 ac_func_search_save_LIBS=$LIBS
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21116 /* Override any GCC internal prototype to avoid an error.
21117 Use char because int might match the return type of a GCC
21118 builtin and then its argument prototype would still apply. */
21131 for ac_lib in '' crypt crypt_d ufc; do
21132 if test -z "$ac_lib"; then
21133 ac_res="none required"
21136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21138 rm -f conftest.$ac_objext conftest$ac_exeext
21139 if { (ac_try="$ac_link"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_link") 2>conftest.er1
21147 grep -v '^ *+' conftest.er1 >conftest.err
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } && {
21152 test -z "$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21154 } && test -s conftest$ac_exeext &&
21155 $as_test_x conftest$ac_exeext; then
21156 ac_cv_search_crypt=$ac_res
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21166 if test "${ac_cv_search_crypt+set}" = set; then
21170 if test "${ac_cv_search_crypt+set}" = set; then
21173 ac_cv_search_crypt=no
21175 rm conftest.$ac_ext
21176 LIBS=$ac_func_search_save_LIBS
21178 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
21179 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
21180 ac_res=$ac_cv_search_crypt
21181 if test "$ac_res" != no; then
21182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21183 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
21188 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
21190 LIBS="$LIBS $shadow_libs"
21193 for ac_func in $shadow_funcs
21195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21201 cat >conftest.$ac_ext <<_ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h. */
21207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21209 #define $ac_func innocuous_$ac_func
21211 /* System header to define __stub macros and hopefully few prototypes,
21212 which can conflict with char $ac_func (); below.
21213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21214 <limits.h> exists even on freestanding compilers. */
21217 # include <limits.h>
21219 # include <assert.h>
21224 /* Override any GCC internal prototype to avoid an error.
21225 Use char because int might match the return type of a GCC
21226 builtin and then its argument prototype would still apply. */
21231 /* The GNU C library defines this for functions which it implements
21232 to always fail with ENOSYS. Some functions are actually named
21233 something starting with __ and the normal name is an alias. */
21234 #if defined __stub_$ac_func || defined __stub___$ac_func
21241 return $ac_func ();
21246 rm -f conftest.$ac_objext conftest$ac_exeext
21247 if { (ac_try="$ac_link"
21248 case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_link") 2>conftest.er1
21255 grep -v '^ *+' conftest.er1 >conftest.err
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } && {
21260 test -z "$ac_c_werror_flag" ||
21261 test ! -s conftest.err
21262 } && test -s conftest$ac_exeext &&
21263 $as_test_x conftest$ac_exeext; then
21264 eval "$as_ac_var=yes"
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21269 eval "$as_ac_var=no"
21272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21273 conftest$ac_exeext conftest.$ac_ext
21275 ac_res=`eval echo '${'$as_ac_var'}'`
21276 { echo "$as_me:$LINENO: result: $ac_res" >&5
21277 echo "${ECHO_T}$ac_res" >&6; }
21278 if test `eval echo '${'$as_ac_var'}'` = yes; then
21279 cat >>confdefs.h <<_ACEOF
21280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21286 if test "$found" = "yes"; then
21287 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
21288 elif test -n "$shadow_libs_optional"; then
21289 LIBS="$LIBS $shadow_libs_optional"
21291 for ac_func in $shadow_funcs
21293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21299 cat >conftest.$ac_ext <<_ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21307 #define $ac_func innocuous_$ac_func
21309 /* System header to define __stub macros and hopefully few prototypes,
21310 which can conflict with char $ac_func (); below.
21311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21312 <limits.h> exists even on freestanding compilers. */
21315 # include <limits.h>
21317 # include <assert.h>
21322 /* Override any GCC internal prototype to avoid an error.
21323 Use char because int might match the return type of a GCC
21324 builtin and then its argument prototype would still apply. */
21329 /* The GNU C library defines this for functions which it implements
21330 to always fail with ENOSYS. Some functions are actually named
21331 something starting with __ and the normal name is an alias. */
21332 #if defined __stub_$ac_func || defined __stub___$ac_func
21339 return $ac_func ();
21344 rm -f conftest.$ac_objext conftest$ac_exeext
21345 if { (ac_try="$ac_link"
21346 case "(($ac_try" in
21347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348 *) ac_try_echo=$ac_try;;
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351 (eval "$ac_link") 2>conftest.er1
21353 grep -v '^ *+' conftest.er1 >conftest.err
21355 cat conftest.err >&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } && {
21358 test -z "$ac_c_werror_flag" ||
21359 test ! -s conftest.err
21360 } && test -s conftest$ac_exeext &&
21361 $as_test_x conftest$ac_exeext; then
21362 eval "$as_ac_var=yes"
21364 echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21367 eval "$as_ac_var=no"
21370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21371 conftest$ac_exeext conftest.$ac_ext
21373 ac_res=`eval echo '${'$as_ac_var'}'`
21374 { echo "$as_me:$LINENO: result: $ac_res" >&5
21375 echo "${ECHO_T}$ac_res" >&6; }
21376 if test `eval echo '${'$as_ac_var'}'` = yes; then
21377 cat >>confdefs.h <<_ACEOF
21378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21384 if test "$found" = "yes"; then
21385 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
21388 if test "$found" = "yes"; then
21389 case "$shadow_funcs" in
21390 *getprpwnam*) SECUREWARE=1;;
21392 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
21398 if test "$CHECKSHADOW" = "true"; then
21399 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
21400 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
21401 if test "${ac_cv_search_getspnam+set}" = set; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21404 ac_func_search_save_LIBS=$LIBS
21405 cat >conftest.$ac_ext <<_ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21412 /* Override any GCC internal prototype to avoid an error.
21413 Use char because int might match the return type of a GCC
21414 builtin and then its argument prototype would still apply. */
21422 return getspnam ();
21427 for ac_lib in '' gen; do
21428 if test -z "$ac_lib"; then
21429 ac_res="none required"
21432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21434 rm -f conftest.$ac_objext conftest$ac_exeext
21435 if { (ac_try="$ac_link"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_link") 2>conftest.er1
21443 grep -v '^ *+' conftest.er1 >conftest.err
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest$ac_exeext &&
21451 $as_test_x conftest$ac_exeext; then
21452 ac_cv_search_getspnam=$ac_res
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21462 if test "${ac_cv_search_getspnam+set}" = set; then
21466 if test "${ac_cv_search_getspnam+set}" = set; then
21469 ac_cv_search_getspnam=no
21471 rm conftest.$ac_ext
21472 LIBS=$ac_func_search_save_LIBS
21474 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
21475 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
21476 ac_res=$ac_cv_search_getspnam
21477 if test "$ac_res" != no; then
21478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21479 cat >>confdefs.h <<\_ACEOF
21480 #define HAVE_GETSPNAM 1
21482 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
21486 if test "$CHECKSHADOW" = "true"; then
21487 { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
21488 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
21489 if test "${ac_cv_search_getprpwnam+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 ac_func_search_save_LIBS=$LIBS
21493 cat >conftest.$ac_ext <<_ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21500 /* Override any GCC internal prototype to avoid an error.
21501 Use char because int might match the return type of a GCC
21502 builtin and then its argument prototype would still apply. */
21506 char getprpwnam ();
21510 return getprpwnam ();
21515 for ac_lib in '' sec security prot; do
21516 if test -z "$ac_lib"; then
21517 ac_res="none required"
21520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21522 rm -f conftest.$ac_objext conftest$ac_exeext
21523 if { (ac_try="$ac_link"
21524 case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_link") 2>conftest.er1
21531 grep -v '^ *+' conftest.er1 >conftest.err
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } && {
21536 test -z "$ac_c_werror_flag" ||
21537 test ! -s conftest.err
21538 } && test -s conftest$ac_exeext &&
21539 $as_test_x conftest$ac_exeext; then
21540 ac_cv_search_getprpwnam=$ac_res
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21550 if test "${ac_cv_search_getprpwnam+set}" = set; then
21554 if test "${ac_cv_search_getprpwnam+set}" = set; then
21557 ac_cv_search_getprpwnam=no
21559 rm conftest.$ac_ext
21560 LIBS=$ac_func_search_save_LIBS
21562 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
21563 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
21564 ac_res=$ac_cv_search_getprpwnam
21565 if test "$ac_res" != no; then
21566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21567 cat >>confdefs.h <<\_ACEOF
21568 #define HAVE_GETPRPWNAM 1
21570 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
21574 if test -n "$SECUREWARE"; then
21578 for ac_func in bigcrypt set_auth_parameters initprivs
21580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21584 echo $ECHO_N "(cached) $ECHO_C" >&6
21586 cat >conftest.$ac_ext <<_ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21594 #define $ac_func innocuous_$ac_func
21596 /* System header to define __stub macros and hopefully few prototypes,
21597 which can conflict with char $ac_func (); below.
21598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21599 <limits.h> exists even on freestanding compilers. */
21602 # include <limits.h>
21604 # include <assert.h>
21609 /* Override any GCC internal prototype to avoid an error.
21610 Use char because int might match the return type of a GCC
21611 builtin and then its argument prototype would still apply. */
21616 /* The GNU C library defines this for functions which it implements
21617 to always fail with ENOSYS. Some functions are actually named
21618 something starting with __ and the normal name is an alias. */
21619 #if defined __stub_$ac_func || defined __stub___$ac_func
21626 return $ac_func ();
21631 rm -f conftest.$ac_objext conftest$ac_exeext
21632 if { (ac_try="$ac_link"
21633 case "(($ac_try" in
21634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635 *) ac_try_echo=$ac_try;;
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638 (eval "$ac_link") 2>conftest.er1
21640 grep -v '^ *+' conftest.er1 >conftest.err
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } && {
21645 test -z "$ac_c_werror_flag" ||
21646 test ! -s conftest.err
21647 } && test -s conftest$ac_exeext &&
21648 $as_test_x conftest$ac_exeext; then
21649 eval "$as_ac_var=yes"
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21654 eval "$as_ac_var=no"
21657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21658 conftest$ac_exeext conftest.$ac_ext
21660 ac_res=`eval echo '${'$as_ac_var'}'`
21661 { echo "$as_me:$LINENO: result: $ac_res" >&5
21662 echo "${ECHO_T}$ac_res" >&6; }
21663 if test `eval echo '${'$as_ac_var'}'` = yes; then
21664 cat >>confdefs.h <<_ACEOF
21665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21671 AUTH_OBJS="$AUTH_OBJS secureware.o"
21675 if test ${with_ldap-'no'} != "no"; then
21676 _LDFLAGS="$LDFLAGS"
21677 if test "$with_ldap" != "yes"; then
21679 if test X"$with_rpath" = X"yes"; then
21680 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
21682 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
21684 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21685 blibpath_add="${blibpath_add}:${with_ldap}/lib"
21689 if test X"$with_rpath" = X"yes"; then
21690 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
21692 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
21694 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21695 blibpath_add="${blibpath_add}:${with_ldap}/lib"
21698 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
21701 SUDO_OBJS="${SUDO_OBJS} ldap.o"
21703 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
21704 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
21708 for l in -lldap -llber '-lssl -lcrypto'; do
21710 LDAP_LIBS="${LDAP_LIBS} $l"
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <sys/types.h>
21723 (void)ldap_init(0, 0)
21728 rm -f conftest.$ac_objext conftest$ac_exeext
21729 if { (ac_try="$ac_link"
21730 case "(($ac_try" in
21731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732 *) ac_try_echo=$ac_try;;
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735 (eval "$ac_link") 2>conftest.er1
21737 grep -v '^ *+' conftest.er1 >conftest.err
21739 cat conftest.err >&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } && {
21742 test -z "$ac_c_werror_flag" ||
21743 test ! -s conftest.err
21744 } && test -s conftest$ac_exeext &&
21745 $as_test_x conftest$ac_exeext; then
21748 echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21755 conftest$ac_exeext conftest.$ac_ext
21757 if test "$found" = "no"; then
21758 LDAP_LIBS=" -lldap"
21759 { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
21760 echo "${ECHO_T}not found, using -lldap" >&6; }
21762 { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
21763 echo "${ECHO_T}$LDAP_LIBS" >&6; }
21765 { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
21766 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
21767 cat >conftest.$ac_ext <<_ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h. */
21773 #include <sys/types.h>
21778 (void)ldap_init(0, 0)
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_link") 2>conftest.er1
21792 grep -v '^ *+' conftest.er1 >conftest.err
21794 cat conftest.err >&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } && {
21797 test -z "$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21799 } && test -s conftest$ac_exeext &&
21800 $as_test_x conftest$ac_exeext; then
21801 { echo "$as_me:$LINENO: result: no" >&5
21802 echo "${ECHO_T}no" >&6; }
21804 echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21808 { echo "$as_me:$LINENO: result: yes" >&5
21809 echo "${ECHO_T}yes" >&6; }
21810 cat >>confdefs.h <<\_ACEOF
21811 #define HAVE_LBER_H 1
21816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21817 conftest$ac_exeext conftest.$ac_ext
21821 for ac_func in ldap_initialize ldap_start_tls_s
21823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21837 #define $ac_func innocuous_$ac_func
21839 /* System header to define __stub macros and hopefully few prototypes,
21840 which can conflict with char $ac_func (); below.
21841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21842 <limits.h> exists even on freestanding compilers. */
21845 # include <limits.h>
21847 # include <assert.h>
21852 /* Override any GCC internal prototype to avoid an error.
21853 Use char because int might match the return type of a GCC
21854 builtin and then its argument prototype would still apply. */
21859 /* The GNU C library defines this for functions which it implements
21860 to always fail with ENOSYS. Some functions are actually named
21861 something starting with __ and the normal name is an alias. */
21862 #if defined __stub_$ac_func || defined __stub___$ac_func
21869 return $ac_func ();
21874 rm -f conftest.$ac_objext conftest$ac_exeext
21875 if { (ac_try="$ac_link"
21876 case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_link") 2>conftest.er1
21883 grep -v '^ *+' conftest.er1 >conftest.err
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && {
21888 test -z "$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21890 } && test -s conftest$ac_exeext &&
21891 $as_test_x conftest$ac_exeext; then
21892 eval "$as_ac_var=yes"
21894 echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21897 eval "$as_ac_var=no"
21900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21901 conftest$ac_exeext conftest.$ac_ext
21903 ac_res=`eval echo '${'$as_ac_var'}'`
21904 { echo "$as_me:$LINENO: result: $ac_res" >&5
21905 echo "${ECHO_T}$ac_res" >&6; }
21906 if test `eval echo '${'$as_ac_var'}'` = yes; then
21907 cat >>confdefs.h <<_ACEOF
21908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21915 SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
21917 LDFLAGS="$_LDFLAGS"
21918 # XXX - OpenLDAP has deprecated ldap_get_values()
21919 CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
21922 if test -n "$blibpath"; then
21923 if test -n "$blibpath_add"; then
21924 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
21925 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
21926 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
21930 { echo "$as_me:$LINENO: checking for log file location" >&5
21931 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
21932 if test -n "$with_logpath"; then
21933 { echo "$as_me:$LINENO: result: $with_logpath" >&5
21934 echo "${ECHO_T}$with_logpath" >&6; }
21935 cat >>confdefs.h <<EOF
21936 #define _PATH_SUDO_LOGFILE "$with_logpath"
21939 elif test -d "/var/log"; then
21940 { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
21941 echo "${ECHO_T}/var/log/sudo.log" >&6; }
21942 cat >>confdefs.h <<\EOF
21943 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
21946 elif test -d "/var/adm"; then
21947 { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
21948 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
21949 cat >>confdefs.h <<\EOF
21950 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
21953 elif test -d "/usr/adm"; then
21954 { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
21955 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
21956 cat >>confdefs.h <<\EOF
21957 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
21961 { echo "$as_me:$LINENO: result: unknown" >&5
21962 echo "${ECHO_T}unknown" >&6; }
21965 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
21966 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
21967 if test -n "$with_timedir"; then
21968 { echo "$as_me:$LINENO: result: $with_timedir" >&5
21969 echo "${ECHO_T}$with_timedir" >&6; }
21970 cat >>confdefs.h <<EOF
21971 #define _PATH_SUDO_TIMEDIR "$with_timedir"
21974 timedir="$with_timedir"
21975 elif test -d "/var/run"; then
21976 { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
21977 echo "${ECHO_T}/var/run/sudo" >&6; }
21978 cat >>confdefs.h <<\EOF
21979 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
21982 timedir="/var/run/sudo"
21983 elif test -d "/var/adm"; then
21984 { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
21985 echo "${ECHO_T}/var/adm/sudo" >&6; }
21986 cat >>confdefs.h <<\EOF
21987 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
21990 timedir="/var/adm/sudo"
21992 { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
21993 echo "${ECHO_T}/usr/adm/sudo" >&6; }
21994 cat >>confdefs.h <<\EOF
21995 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
21998 timedir="/usr/adm/sudo"
22002 case "$with_passwd" in
22004 AUTH_OBJS="$AUTH_OBJS passwd.o"
22007 cat >>confdefs.h <<\_ACEOF
22008 #define WITHOUT_PASSWD 1
22011 if test -z "$AUTH_OBJS"; then
22012 { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
22013 echo "$as_me: error: no authentication methods defined." >&2;}
22014 { (exit 1); exit 1; }; }
22018 AUTH_OBJS=${AUTH_OBJS# }
22019 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
22020 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
22021 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
22023 if test -n "$LIBS"; then
22028 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
22029 test $l = $sl && dupe=1
22031 test $dupe = 0 && LIBS="${LIBS} $l"
22035 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
22037 if test "$with_noexec" != "no"; then
22038 PROGS="${PROGS} sudo_noexec.la"
22039 INSTALL_NOEXEC="install-noexec"
22041 oexec_prefix="$exec_prefix"
22042 if test "$exec_prefix" = '$(prefix)'; then
22043 if test "$prefix" = "NONE"; then
22044 exec_prefix="$ac_default_prefix"
22046 exec_prefix="$prefix"
22049 eval noexec_file="$with_noexec"
22051 cat >>confdefs.h <<_ACEOF
22052 #define _PATH_SUDO_NOEXEC "$noexec_file"
22055 exec_prefix="$oexec_prefix"
22058 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
22060 cat >confcache <<\_ACEOF
22061 # This file is a shell script that caches the results of configure
22062 # tests run on this system so they can be shared between configure
22063 # scripts and configure runs, see configure's option --config-cache.
22064 # It is not useful on other systems. If it contains results you don't
22065 # want to keep, you may remove or edit it.
22067 # config.status only pays attention to the cache file if you give it
22068 # the --recheck option to rerun configure.
22070 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22071 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22072 # following values.
22076 # The following way of writing the cache mishandles newlines in values,
22077 # but we know of no workaround that is simple, portable, and efficient.
22078 # So, we kill variables containing newlines.
22079 # Ultrix sh set writes to stderr and can't be redirected directly,
22080 # and sets the high bit in the cache file unless we assign to the vars.
22082 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22083 eval ac_val=\$$ac_var
22087 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22088 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22091 _ | IFS | as_nl) ;; #(
22092 *) $as_unset $ac_var ;;
22098 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22099 *${as_nl}ac_space=\ *)
22100 # `set' does not quote correctly, so add quotes (double-quote
22101 # substitution turns \\\\ into \\, and sed turns \\ into \).
22104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22107 # `set' quotes correctly as required by POSIX, so do not add quotes.
22108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22117 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22119 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22121 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22122 if test -w "$cache_file"; then
22123 test "x$cache_file" != "x/dev/null" &&
22124 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22125 echo "$as_me: updating cache $cache_file" >&6;}
22126 cat confcache >$cache_file
22128 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22129 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22134 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22135 # Let make expand exec_prefix.
22136 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22138 DEFS=-DHAVE_CONFIG_H
22142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22143 # 1. Remove the extension, and $U if already installed.
22144 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22145 ac_i=`echo "$ac_i" | sed "$ac_script"`
22146 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22147 # will be set to the directory where LIBOBJS objects are built.
22148 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22149 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22151 LIBOBJS=$ac_libobjs
22153 LTLIBOBJS=$ac_ltlibobjs
22157 : ${CONFIG_STATUS=./config.status}
22158 ac_clean_files_save=$ac_clean_files
22159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22160 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22161 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22162 cat >$CONFIG_STATUS <<_ACEOF
22164 # Generated by $as_me.
22165 # Run this file to recreate the current configuration.
22166 # Compiler output produced by configure, useful for debugging
22167 # configure, is in config.log if it exists.
22170 ac_cs_recheck=false
22172 SHELL=\${CONFIG_SHELL-$SHELL}
22175 cat >>$CONFIG_STATUS <<\_ACEOF
22176 ## --------------------- ##
22177 ## M4sh Initialization. ##
22178 ## --------------------- ##
22180 # Be more Bourne compatible
22181 DUALCASE=1; export DUALCASE # for MKS sh
22182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22185 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22186 # is contrary to our usage. Disable this feature.
22187 alias -g '${1+"$@"}'='"$@"'
22188 setopt NO_GLOB_SUBST
22190 case `(set -o) 2>/dev/null` in
22191 *posix*) set -o posix ;;
22200 # Avoid depending upon Character Ranges.
22201 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22202 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22203 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22204 as_cr_digits='0123456789'
22205 as_cr_alnum=$as_cr_Letters$as_cr_digits
22207 # The user is always right.
22208 if test "${PATH_SEPARATOR+set}" != set; then
22209 echo "#! /bin/sh" >conf$$.sh
22210 echo "exit 0" >>conf$$.sh
22212 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22220 # Support unset when possible.
22221 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22229 # We need space, tab and new line, in precisely that order. Quoting is
22230 # there to prevent editors from complaining about space-tab.
22231 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22232 # splitting by setting IFS to empty value.)
22237 # Find who we are. Look in the path if we contain no directory separator.
22239 *[\\/]* ) as_myself=$0 ;;
22240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22241 for as_dir in $PATH
22244 test -z "$as_dir" && as_dir=.
22245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22251 # We did not find ourselves, most probably we were run as `sh COMMAND'
22252 # in which case we are not to be found in the path.
22253 if test "x$as_myself" = x; then
22256 if test ! -f "$as_myself"; then
22257 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22258 { (exit 1); exit 1; }
22261 # Work around bugs in pre-3.0 UWIN ksh.
22262 for as_var in ENV MAIL MAILPATH
22263 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22273 LC_TELEPHONE LC_TIME
22275 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22276 eval $as_var=C; export $as_var
22278 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22282 # Required to use basename.
22283 if expr a : '\(a\)' >/dev/null 2>&1 &&
22284 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22290 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22291 as_basename=basename
22297 # Name of the executable.
22298 as_me=`$as_basename -- "$0" ||
22299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22300 X"$0" : 'X\(//\)$' \| \
22301 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22303 sed '/^.*\/\([^/][^/]*\)\/*$/{
22322 as_lineno_1=$LINENO
22323 as_lineno_2=$LINENO
22324 test "x$as_lineno_1" != "x$as_lineno_2" &&
22325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22327 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22328 # uniformly replaced by the line number. The first 'sed' inserts a
22329 # line-number line after each line using $LINENO; the second 'sed'
22330 # does the real work. The second script uses 'N' to pair each
22331 # line-number line with the line containing $LINENO, and appends
22332 # trailing '-' during substitution so that $LINENO is not a special
22333 # case at line end.
22334 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22335 # scripts with optimization help from Paolo Bonzini. Blame Lee
22336 # E. McMahon (1931-1989) for sed's syntax. :-)
22348 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22351 ' >$as_me.lineno &&
22352 chmod +x "$as_me.lineno" ||
22353 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22354 { (exit 1); exit 1; }; }
22356 # Don't try to exec as it changes $[0], causing all sort of problems
22357 # (the dirname of $[0] is not the place where we might find the
22358 # original and so on. Autoconf is especially sensitive to this).
22359 . "./$as_me.lineno"
22360 # Exit status is that of the last command.
22365 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22371 ECHO_C= ECHO_N= ECHO_T=
22372 case `echo -n x` in
22374 case `echo 'x\c'` in
22375 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22382 if expr a : '\(a\)' >/dev/null 2>&1 &&
22383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22389 rm -f conf$$ conf$$.exe conf$$.file
22390 if test -d conf$$.dir; then
22391 rm -f conf$$.dir/conf$$.file
22397 if ln -s conf$$.file conf$$ 2>/dev/null; then
22399 # ... but there are two gotchas:
22400 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22401 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22402 # In both cases, we have to default to `cp -p'.
22403 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22405 elif ln conf$$.file conf$$ 2>/dev/null; then
22410 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22411 rmdir conf$$.dir 2>/dev/null
22413 if mkdir -p . 2>/dev/null; then
22416 test -d ./-p && rmdir ./-p
22420 if test -x / >/dev/null 2>&1; then
22421 as_test_x='test -x'
22423 if ls -dL / >/dev/null 2>&1; then
22430 if test -d "$1"; then
22436 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22437 ???[sx]*):;;*)false;;esac;fi
22441 as_executable_p=$as_test_x
22443 # Sed expression to map a string onto a valid CPP name.
22444 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22446 # Sed expression to map a string onto a valid variable name.
22447 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22452 # Save the log message, to keep $[0] and so on meaningful, and to
22453 # report actual input values of CONFIG_FILES etc. instead of their
22454 # values after options handling.
22456 This file was extended by sudo $as_me 1.6.9, which was
22457 generated by GNU Autoconf 2.61. Invocation command line was
22459 CONFIG_FILES = $CONFIG_FILES
22460 CONFIG_HEADERS = $CONFIG_HEADERS
22461 CONFIG_LINKS = $CONFIG_LINKS
22462 CONFIG_COMMANDS = $CONFIG_COMMANDS
22465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22470 cat >>$CONFIG_STATUS <<_ACEOF
22471 # Files that config.status was made for.
22472 config_files="$ac_config_files"
22473 config_headers="$ac_config_headers"
22477 cat >>$CONFIG_STATUS <<\_ACEOF
22479 \`$as_me' instantiates files from templates according to the
22480 current configuration.
22482 Usage: $0 [OPTIONS] [FILE]...
22484 -h, --help print this help, then exit
22485 -V, --version print version number and configuration settings, then exit
22486 -q, --quiet do not print progress messages
22487 -d, --debug don't remove temporary files
22488 --recheck update $as_me by reconfiguring in the same conditions
22489 --file=FILE[:TEMPLATE]
22490 instantiate the configuration file FILE
22491 --header=FILE[:TEMPLATE]
22492 instantiate the configuration header FILE
22494 Configuration files:
22497 Configuration headers:
22500 Report bugs to <bug-autoconf@gnu.org>."
22503 cat >>$CONFIG_STATUS <<_ACEOF
22505 sudo config.status 1.6.9
22506 configured by $0, generated by GNU Autoconf 2.61,
22507 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22509 Copyright (C) 2006 Free Software Foundation, Inc.
22510 This config.status script is free software; the Free Software Foundation
22511 gives unlimited permission to copy, distribute and modify it."
22517 cat >>$CONFIG_STATUS <<\_ACEOF
22518 # If no file are specified by the user, then we need to provide default
22519 # value. By we need to know if files were specified by the user.
22525 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22526 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22537 # Handling of the options.
22538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22540 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22541 echo "$ac_cs_version"; exit ;;
22542 --debug | --debu | --deb | --de | --d | -d )
22544 --file | --fil | --fi | --f )
22546 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22547 ac_need_defaults=false;;
22548 --header | --heade | --head | --hea )
22550 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22551 ac_need_defaults=false;;
22553 # Conflict between --help and --header
22554 { echo "$as_me: error: ambiguous option: $1
22555 Try \`$0 --help' for more information." >&2
22556 { (exit 1); exit 1; }; };;
22557 --help | --hel | -h )
22558 echo "$ac_cs_usage"; exit ;;
22559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22560 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22563 # This is an error.
22564 -*) { echo "$as_me: error: unrecognized option: $1
22565 Try \`$0 --help' for more information." >&2
22566 { (exit 1); exit 1; }; } ;;
22568 *) ac_config_targets="$ac_config_targets $1"
22569 ac_need_defaults=false ;;
22575 ac_configure_extra_args=
22577 if $ac_cs_silent; then
22579 ac_configure_extra_args="$ac_configure_extra_args --silent"
22583 cat >>$CONFIG_STATUS <<_ACEOF
22584 if \$ac_cs_recheck; then
22585 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22586 CONFIG_SHELL=$SHELL
22587 export CONFIG_SHELL
22588 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22592 cat >>$CONFIG_STATUS <<\_ACEOF
22596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22597 ## Running $as_me. ##
22603 cat >>$CONFIG_STATUS <<_ACEOF
22606 cat >>$CONFIG_STATUS <<\_ACEOF
22608 # Handling of arguments.
22609 for ac_config_target in $ac_config_targets
22611 case $ac_config_target in
22612 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22613 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
22614 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22615 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
22616 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
22617 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
22619 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22620 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22621 { (exit 1); exit 1; }; };;
22626 # If the user did not use the arguments to specify the items to instantiate,
22627 # then the envvar interface is used. Set only those that are not.
22628 # We use the long form for the default assignment because of an extremely
22629 # bizarre bug on SunOS 4.1.3.
22630 if $ac_need_defaults; then
22631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22632 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22635 # Have a temporary directory for convenience. Make it in the build tree
22636 # simply because there is no reason against having it here, and in addition,
22637 # creating and moving files from /tmp can sometimes cause problems.
22638 # Hook for its removal unless debugging.
22639 # Note that there is a small window in which the directory will not be cleaned:
22640 # after its creation but before its name has been assigned to `$tmp'.
22644 trap 'exit_status=$?
22645 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22647 trap '{ (exit 1); exit 1; }' 1 2 13 15
22649 # Create a (secure) tmp directory for tmp files.
22652 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22653 test -n "$tmp" && test -d "$tmp"
22656 tmp=./conf$$-$RANDOM
22657 (umask 077 && mkdir "$tmp")
22660 echo "$me: cannot create a temporary directory in ." >&2
22661 { (exit 1); exit 1; }
22665 # Set up the sed scripts for CONFIG_FILES section.
22668 # No need to generate the scripts if there are no CONFIG_FILES.
22669 # This happens for instance when ./config.status config.h
22670 if test -n "$CONFIG_FILES"; then
22677 for ac_last_try in false false false false false :; do
22678 cat >conf$$subs.sed <<_ACEOF
22679 SHELL!$SHELL$ac_delim
22680 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22681 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22682 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22683 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22684 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22685 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22686 exec_prefix!$exec_prefix$ac_delim
22687 prefix!$prefix$ac_delim
22688 program_transform_name!$program_transform_name$ac_delim
22689 bindir!$bindir$ac_delim
22690 sbindir!$sbindir$ac_delim
22691 libexecdir!$libexecdir$ac_delim
22692 datarootdir!$datarootdir$ac_delim
22693 datadir!$datadir$ac_delim
22694 sysconfdir!$sysconfdir$ac_delim
22695 sharedstatedir!$sharedstatedir$ac_delim
22696 localstatedir!$localstatedir$ac_delim
22697 includedir!$includedir$ac_delim
22698 oldincludedir!$oldincludedir$ac_delim
22699 docdir!$docdir$ac_delim
22700 infodir!$infodir$ac_delim
22701 htmldir!$htmldir$ac_delim
22702 dvidir!$dvidir$ac_delim
22703 pdfdir!$pdfdir$ac_delim
22704 psdir!$psdir$ac_delim
22705 libdir!$libdir$ac_delim
22706 localedir!$localedir$ac_delim
22707 mandir!$mandir$ac_delim
22708 DEFS!$DEFS$ac_delim
22709 ECHO_C!$ECHO_C$ac_delim
22710 ECHO_N!$ECHO_N$ac_delim
22711 ECHO_T!$ECHO_T$ac_delim
22712 LIBS!$LIBS$ac_delim
22713 build_alias!$build_alias$ac_delim
22714 host_alias!$host_alias$ac_delim
22715 target_alias!$target_alias$ac_delim
22716 LIBTOOL!$LIBTOOL$ac_delim
22717 CFLAGS!$CFLAGS$ac_delim
22718 PROGS!$PROGS$ac_delim
22719 CPPFLAGS!$CPPFLAGS$ac_delim
22720 LDFLAGS!$LDFLAGS$ac_delim
22721 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
22722 SUDO_OBJS!$SUDO_OBJS$ac_delim
22723 SUDO_LIBS!$SUDO_LIBS$ac_delim
22724 NET_LIBS!$NET_LIBS$ac_delim
22725 AFS_LIBS!$AFS_LIBS$ac_delim
22726 OSDEFS!$OSDEFS$ac_delim
22727 AUTH_OBJS!$AUTH_OBJS$ac_delim
22728 MANTYPE!$MANTYPE$ac_delim
22729 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
22730 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
22731 SUDOERS_UID!$SUDOERS_UID$ac_delim
22732 SUDOERS_GID!$SUDOERS_GID$ac_delim
22734 mansectsu!$mansectsu$ac_delim
22735 mansectform!$mansectform$ac_delim
22736 mansrcdir!$mansrcdir$ac_delim
22737 NOEXECDIR!$NOEXECDIR$ac_delim
22738 noexec_file!$noexec_file$ac_delim
22739 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
22740 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
22741 timedir!$timedir$ac_delim
22742 timeout!$timeout$ac_delim
22743 password_timeout!$password_timeout$ac_delim
22744 sudo_umask!$sudo_umask$ac_delim
22745 passprompt!$passprompt$ac_delim
22746 long_otp_prompt!$long_otp_prompt$ac_delim
22747 lecture!$lecture$ac_delim
22748 logfac!$logfac$ac_delim
22749 goodpri!$goodpri$ac_delim
22750 badpri!$badpri$ac_delim
22751 loglen!$loglen$ac_delim
22752 ignore_dot!$ignore_dot$ac_delim
22753 mail_no_user!$mail_no_user$ac_delim
22754 mail_no_host!$mail_no_host$ac_delim
22755 mail_no_perms!$mail_no_perms$ac_delim
22756 mailto!$mailto$ac_delim
22757 mailsub!$mailsub$ac_delim
22758 badpass_message!$badpass_message$ac_delim
22759 fqdn!$fqdn$ac_delim
22760 runas_default!$runas_default$ac_delim
22761 env_editor!$env_editor$ac_delim
22762 passwd_tries!$passwd_tries$ac_delim
22763 tty_tickets!$tty_tickets$ac_delim
22764 insults!$insults$ac_delim
22765 root_sudo!$root_sudo$ac_delim
22766 path_info!$path_info$ac_delim
22767 EGREPPROG!$EGREPPROG$ac_delim
22769 ac_ct_CC!$ac_ct_CC$ac_delim
22770 EXEEXT!$EXEEXT$ac_delim
22771 OBJEXT!$OBJEXT$ac_delim
22773 build!$build$ac_delim
22774 build_cpu!$build_cpu$ac_delim
22775 build_vendor!$build_vendor$ac_delim
22778 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22780 elif $ac_last_try; then
22781 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22782 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22783 { (exit 1); exit 1; }; }
22785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22789 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22790 if test -n "$ac_eof"; then
22791 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22792 ac_eof=`expr $ac_eof + 1`
22795 cat >>$CONFIG_STATUS <<_ACEOF
22796 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22800 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22801 s/^/s,@/; s/!/@,|#_!!_#|/
22804 s/'"$ac_delim"'$/,g/; t
22806 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22807 ' >>$CONFIG_STATUS <conf$$subs.sed
22808 rm -f conf$$subs.sed
22809 cat >>$CONFIG_STATUS <<_ACEOF
22815 for ac_last_try in false false false false false :; do
22816 cat >conf$$subs.sed <<_ACEOF
22817 build_os!$build_os$ac_delim
22818 host!$host$ac_delim
22819 host_cpu!$host_cpu$ac_delim
22820 host_vendor!$host_vendor$ac_delim
22821 host_os!$host_os$ac_delim
22822 target!$target$ac_delim
22823 target_cpu!$target_cpu$ac_delim
22824 target_vendor!$target_vendor$ac_delim
22825 target_os!$target_os$ac_delim
22827 GREP!$GREP$ac_delim
22828 EGREP!$EGREP$ac_delim
22829 LN_S!$LN_S$ac_delim
22830 ECHO!$ECHO$ac_delim
22832 RANLIB!$RANLIB$ac_delim
22833 STRIP!$STRIP$ac_delim
22834 UNAMEPROG!$UNAMEPROG$ac_delim
22835 TRPROG!$TRPROG$ac_delim
22836 NROFFPROG!$NROFFPROG$ac_delim
22837 YACC!$YACC$ac_delim
22838 YFLAGS!$YFLAGS$ac_delim
22839 LIBOBJS!$LIBOBJS$ac_delim
22840 ALLOCA!$ALLOCA$ac_delim
22841 KRB5CONFIG!$KRB5CONFIG$ac_delim
22842 LTLIBOBJS!$LTLIBOBJS$ac_delim
22845 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
22847 elif $ac_last_try; then
22848 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22849 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22850 { (exit 1); exit 1; }; }
22852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22856 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22857 if test -n "$ac_eof"; then
22858 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22859 ac_eof=`expr $ac_eof + 1`
22862 cat >>$CONFIG_STATUS <<_ACEOF
22863 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22864 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22867 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22868 s/^/s,@/; s/!/@,|#_!!_#|/
22871 s/'"$ac_delim"'$/,g/; t
22873 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22874 ' >>$CONFIG_STATUS <conf$$subs.sed
22875 rm -f conf$$subs.sed
22876 cat >>$CONFIG_STATUS <<_ACEOF
22883 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22884 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22885 # trailing colons and then remove the whole line if VPATH becomes empty
22886 # (actually we leave an empty line to preserve line numbers).
22887 if test "x$srcdir" = x.; then
22888 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22889 s/:*\$(srcdir):*/:/
22890 s/:*\${srcdir}:*/:/
22892 s/^\([^=]*=[ ]*\):*/\1/
22898 cat >>$CONFIG_STATUS <<\_ACEOF
22899 fi # test -n "$CONFIG_FILES"
22902 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
22905 :[FHLC]) ac_mode=$ac_tag; continue;;
22907 case $ac_mode$ac_tag in
22909 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22910 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22911 { (exit 1); exit 1; }; };;
22912 :[FH]-) ac_tag=-:-;;
22913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22930 -) ac_f="$tmp/stdin";;
22931 *) # Look for the file first in the build tree, then in the source tree
22932 # (if the path is not absolute). The absolute path cannot be DOS-style,
22933 # because $ac_f cannot contain `:'.
22937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22939 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22940 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22941 { (exit 1); exit 1; }; };;
22943 ac_file_inputs="$ac_file_inputs $ac_f"
22946 # Let's still pretend it is `configure' which instantiates (i.e., don't
22947 # use $as_me), people would be surprised to read:
22948 # /* config.h. Generated by config.status. */
22949 configure_input="Generated from "`IFS=:
22950 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22951 if test x"$ac_file" != x-; then
22952 configure_input="$ac_file. $configure_input"
22953 { echo "$as_me:$LINENO: creating $ac_file" >&5
22954 echo "$as_me: creating $ac_file" >&6;}
22958 *:-:* | *:-) cat >"$tmp/stdin";;
22963 ac_dir=`$as_dirname -- "$ac_file" ||
22964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22965 X"$ac_file" : 'X\(//\)[^/]' \| \
22966 X"$ac_file" : 'X\(//\)$' \| \
22967 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22973 /^X\(\/\/\)[^/].*/{
22988 -*) as_dir=./$as_dir;;
22990 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22994 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22995 *) as_qdir=$as_dir;;
22997 as_dirs="'$as_qdir' $as_dirs"
22998 as_dir=`$as_dirname -- "$as_dir" ||
22999 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23000 X"$as_dir" : 'X\(//\)[^/]' \| \
23001 X"$as_dir" : 'X\(//\)$' \| \
23002 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23008 /^X\(\/\/\)[^/].*/{
23021 test -d "$as_dir" && break
23023 test -z "$as_dirs" || eval "mkdir $as_dirs"
23024 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23025 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23026 { (exit 1); exit 1; }; }; }
23030 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23033 # A ".." for each directory in $ac_dir_suffix.
23034 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23035 case $ac_top_builddir_sub in
23036 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23037 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23040 ac_abs_top_builddir=$ac_pwd
23041 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23042 # for backward compatibility:
23043 ac_top_builddir=$ac_top_build_prefix
23046 .) # We are building in place.
23048 ac_top_srcdir=$ac_top_builddir_sub
23049 ac_abs_top_srcdir=$ac_pwd ;;
23050 [\\/]* | ?:[\\/]* ) # Absolute name.
23051 ac_srcdir=$srcdir$ac_dir_suffix;
23052 ac_top_srcdir=$srcdir
23053 ac_abs_top_srcdir=$srcdir ;;
23054 *) # Relative name.
23055 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23056 ac_top_srcdir=$ac_top_build_prefix$srcdir
23057 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23059 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23070 cat >>$CONFIG_STATUS <<\_ACEOF
23071 # If the template does not know about datarootdir, expand it.
23072 # FIXME: This hack should be removed a few years after 2.60.
23073 ac_datarootdir_hack=; ac_datarootdir_seen=
23075 case `sed -n '/datarootdir/ {
23084 ' $ac_file_inputs` in
23085 *datarootdir*) ac_datarootdir_seen=yes;;
23086 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23087 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23088 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23090 cat >>$CONFIG_STATUS <<_ACEOF
23091 ac_datarootdir_hack='
23092 s&@datadir@&$datadir&g
23093 s&@docdir@&$docdir&g
23094 s&@infodir@&$infodir&g
23095 s&@localedir@&$localedir&g
23096 s&@mandir@&$mandir&g
23097 s&\\\${datarootdir}&$datarootdir&g' ;;
23101 # Neutralize VPATH when `$srcdir' = `.'.
23102 # Shell code in configure.ac might set extrasub.
23103 # FIXME: do we really want to maintain this feature?
23104 cat >>$CONFIG_STATUS <<_ACEOF
23108 cat >>$CONFIG_STATUS <<\_ACEOF
23110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23111 s&@configure_input@&$configure_input&;t t
23112 s&@top_builddir@&$ac_top_builddir_sub&;t t
23113 s&@srcdir@&$ac_srcdir&;t t
23114 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23115 s&@top_srcdir@&$ac_top_srcdir&;t t
23116 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23117 s&@builddir@&$ac_builddir&;t t
23118 s&@abs_builddir@&$ac_abs_builddir&;t t
23119 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23120 $ac_datarootdir_hack
23121 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23123 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23124 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23125 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23126 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23127 which seems to be undefined. Please make sure it is defined." >&5
23128 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23129 which seems to be undefined. Please make sure it is defined." >&2;}
23133 -) cat "$tmp/out"; rm -f "$tmp/out";;
23134 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23143 # Transform confdefs.h into a sed script `conftest.defines', that
23144 # substitutes the proper values into config.h.in to produce config.h.
23145 rm -f conftest.defines conftest.tail
23146 # First, append a space to every undef/define line, to ease matching.
23147 echo 's/$/ /' >conftest.defines
23148 # Then, protect against being on the right side of a sed subst, or in
23149 # an unquoted here document, in config.status. If some macros were
23150 # called several times there might be several #defines for the same
23151 # symbol, which is useless. But do not sort them, since the last
23152 # AC_DEFINE must be honored.
23153 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23154 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23155 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23156 # PARAMS is the parameter list in the macro definition--in most cases, it's
23157 # just an empty string.
23158 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23159 ac_dB='\\)[ (].*,\\1define\\2'
23167 s/^[ ]*#[ ]*define[ ][ ]*//
23172 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23173 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23174 ' >>conftest.defines
23176 # Remove the space that was appended to ease matching.
23177 # Then replace #undef with comments. This is necessary, for
23178 # example, in the case of _POSIX_SOURCE, which is predefined and required
23179 # on some systems where configure will not decide to define it.
23180 # (The regexp can be short, since the line contains either #define or #undef.)
23182 s,^[ #]*u.*,/* & */,' >>conftest.defines
23184 # Break up conftest.defines:
23185 ac_max_sed_lines=50
23187 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23188 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23189 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23191 ac_in='$ac_file_inputs'
23192 ac_out='"$tmp/out1"'
23193 ac_nxt='"$tmp/out2"'
23197 # Write a here document:
23198 cat >>$CONFIG_STATUS <<_ACEOF
23199 # First, check the format of the line:
23200 cat >"\$tmp/defines.sed" <<\\CEOF
23201 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23202 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23206 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23208 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23209 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23210 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23211 grep . conftest.tail >/dev/null || break
23212 rm -f conftest.defines
23213 mv conftest.tail conftest.defines
23215 rm -f conftest.defines conftest.tail
23217 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23218 cat >>$CONFIG_STATUS <<\_ACEOF
23219 if test x"$ac_file" != x-; then
23220 echo "/* $configure_input */" >"$tmp/config.h"
23221 cat "$ac_result" >>"$tmp/config.h"
23222 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23223 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23224 echo "$as_me: $ac_file is unchanged" >&6;}
23227 mv "$tmp/config.h" $ac_file
23230 echo "/* $configure_input */"
23234 # Compute $ac_file's index in $config_headers.
23236 for _am_header in $config_headers :; do
23237 case $_am_header in
23238 $ac_file | $ac_file:* )
23241 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23244 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23245 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23246 X$ac_file : 'X\(//\)[^/]' \| \
23247 X$ac_file : 'X\(//\)$' \| \
23248 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23254 /^X\(\/\/\)[^/].*/{
23266 s/.*/./; q'`/stamp-h$_am_stamp_count
23275 { (exit 0); exit 0; }
23277 chmod +x $CONFIG_STATUS
23278 ac_clean_files=$ac_clean_files_save
23281 # configure is writing to config.log, and then calls config.status.
23282 # config.status does its own redirection, appending to config.log.
23283 # Unfortunately, on DOS this fails, as config.log is still kept open
23284 # by configure, so config.status won't be able to write to it; its
23285 # output is simply discarded. So we exec the FD to /dev/null,
23286 # effectively closing config.log, so it can be properly (re)opened and
23287 # appended to by config.status. When coming back to configure, we
23288 # need to make the FD available again.
23289 if test "$no_create" != yes; then
23291 ac_config_status_args=
23292 test "$silent" = yes &&
23293 ac_config_status_args="$ac_config_status_args --quiet"
23295 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23297 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23298 # would make configure fail if this is the last instruction.
23299 $ac_cs_success || { (exit 1); exit 1; }
23303 if test "$with_pam" = "yes"; then
23306 { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
23307 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}