2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for sudo 1.7.4.
5 # Report bugs to <http://www.sudo.ws/bugs/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.sudo.ws/bugs/ about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
703 PACKAGE_TARNAME='sudo'
704 PACKAGE_VERSION='1.7.4'
705 PACKAGE_STRING='sudo 1.7.4'
706 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
709 # Factoring default headers for most tests.
710 ac_includes_default="\
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
722 # ifdef HAVE_STDLIB_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
745 ac_subst_vars='LTLIBOBJS
885 program_transform_name
898 enable_option_checking
956 with_password_timeout
967 with_ldap_secret_file
975 enable_authentication
983 enable_shell_sets_home
989 enable_gss_krb5_ccache_name
1003 ac_precious_vars='build_alias
1016 # Initialize some variables set by options.
1018 ac_init_version=false
1019 ac_unrecognized_opts=
1020 ac_unrecognized_sep=
1021 # The variables have the same names as the options, with
1022 # dashes changed to underlines.
1023 cache_file=/dev/null
1030 program_transform_name=s,x,x,
1038 # Installation directory options.
1039 # These are left unexpanded so users can "make install exec_prefix=/foo"
1040 # and all the variables that are supposed to be based on exec_prefix
1041 # by default will actually change.
1042 # Use braces instead of parens because sh, perl, etc. also accept them.
1043 # (The list follows the same order as the GNU Coding Standards.)
1044 bindir='${exec_prefix}/bin'
1045 sbindir='${exec_prefix}/sbin'
1046 libexecdir='${exec_prefix}/libexec'
1047 datarootdir='${prefix}/share'
1048 datadir='${datarootdir}'
1049 sysconfdir='${prefix}/etc'
1050 sharedstatedir='${prefix}/com'
1051 localstatedir='${prefix}/var'
1052 includedir='${prefix}/include'
1053 oldincludedir='/usr/include'
1054 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1055 infodir='${datarootdir}/info'
1060 libdir='${exec_prefix}/lib'
1061 localedir='${datarootdir}/locale'
1062 mandir='${datarootdir}/man'
1068 # If the previous option needs an argument, assign it.
1069 if test -n "$ac_prev"; then
1070 eval $ac_prev=\$ac_option
1076 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1080 # Accept the important Cygnus configure options, so we can diagnose typos.
1082 case $ac_dashdash$ac_option in
1086 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1088 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1089 bindir=$ac_optarg ;;
1091 -build | --build | --buil | --bui | --bu)
1092 ac_prev=build_alias ;;
1093 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1094 build_alias=$ac_optarg ;;
1096 -cache-file | --cache-file | --cache-fil | --cache-fi \
1097 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1098 ac_prev=cache_file ;;
1099 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1101 cache_file=$ac_optarg ;;
1103 --config-cache | -C)
1104 cache_file=config.cache ;;
1106 -datadir | --datadir | --datadi | --datad)
1108 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1109 datadir=$ac_optarg ;;
1111 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1112 | --dataroo | --dataro | --datar)
1113 ac_prev=datarootdir ;;
1114 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1115 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1116 datarootdir=$ac_optarg ;;
1118 -disable-* | --disable-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid feature name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "enable_$ac_useropt"
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1132 eval enable_$ac_useropt=no ;;
1134 -docdir | --docdir | --docdi | --doc | --do)
1136 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1137 docdir=$ac_optarg ;;
1139 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1141 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1142 dvidir=$ac_optarg ;;
1144 -enable-* | --enable-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid feature name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "enable_$ac_useropt"
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval enable_$ac_useropt=\$ac_optarg ;;
1160 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1161 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1162 | --exec | --exe | --ex)
1163 ac_prev=exec_prefix ;;
1164 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1165 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1166 | --exec=* | --exe=* | --ex=*)
1167 exec_prefix=$ac_optarg ;;
1169 -gas | --gas | --ga | --g)
1170 # Obsolete; use --with-gas.
1173 -help | --help | --hel | --he | -h)
1174 ac_init_help=long ;;
1175 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1176 ac_init_help=recursive ;;
1177 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1178 ac_init_help=short ;;
1180 -host | --host | --hos | --ho)
1181 ac_prev=host_alias ;;
1182 -host=* | --host=* | --hos=* | --ho=*)
1183 host_alias=$ac_optarg ;;
1185 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1187 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1189 htmldir=$ac_optarg ;;
1191 -includedir | --includedir | --includedi | --included | --include \
1192 | --includ | --inclu | --incl | --inc)
1193 ac_prev=includedir ;;
1194 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1195 | --includ=* | --inclu=* | --incl=* | --inc=*)
1196 includedir=$ac_optarg ;;
1198 -infodir | --infodir | --infodi | --infod | --info | --inf)
1200 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1201 infodir=$ac_optarg ;;
1203 -libdir | --libdir | --libdi | --libd)
1205 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1206 libdir=$ac_optarg ;;
1208 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1209 | --libexe | --libex | --libe)
1210 ac_prev=libexecdir ;;
1211 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1212 | --libexe=* | --libex=* | --libe=*)
1213 libexecdir=$ac_optarg ;;
1215 -localedir | --localedir | --localedi | --localed | --locale)
1216 ac_prev=localedir ;;
1217 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1218 localedir=$ac_optarg ;;
1220 -localstatedir | --localstatedir | --localstatedi | --localstated \
1221 | --localstate | --localstat | --localsta | --localst | --locals)
1222 ac_prev=localstatedir ;;
1223 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1224 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1225 localstatedir=$ac_optarg ;;
1227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1230 mandir=$ac_optarg ;;
1232 -nfp | --nfp | --nf)
1233 # Obsolete; use --without-fp.
1236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1237 | --no-cr | --no-c | -n)
1240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1246 | --oldin | --oldi | --old | --ol | --o)
1247 ac_prev=oldincludedir ;;
1248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1251 oldincludedir=$ac_optarg ;;
1253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1256 prefix=$ac_optarg ;;
1258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1259 | --program-pre | --program-pr | --program-p)
1260 ac_prev=program_prefix ;;
1261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1263 program_prefix=$ac_optarg ;;
1265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1266 | --program-suf | --program-su | --program-s)
1267 ac_prev=program_suffix ;;
1268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1270 program_suffix=$ac_optarg ;;
1272 -program-transform-name | --program-transform-name \
1273 | --program-transform-nam | --program-transform-na \
1274 | --program-transform-n | --program-transform- \
1275 | --program-transform | --program-transfor \
1276 | --program-transfo | --program-transf \
1277 | --program-trans | --program-tran \
1278 | --progr-tra | --program-tr | --program-t)
1279 ac_prev=program_transform_name ;;
1280 -program-transform-name=* | --program-transform-name=* \
1281 | --program-transform-nam=* | --program-transform-na=* \
1282 | --program-transform-n=* | --program-transform-=* \
1283 | --program-transform=* | --program-transfor=* \
1284 | --program-transfo=* | --program-transf=* \
1285 | --program-trans=* | --program-tran=* \
1286 | --progr-tra=* | --program-tr=* | --program-t=*)
1287 program_transform_name=$ac_optarg ;;
1289 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1291 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1292 pdfdir=$ac_optarg ;;
1294 -psdir | --psdir | --psdi | --psd | --ps)
1296 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1300 | -silent | --silent | --silen | --sile | --sil)
1303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1307 sbindir=$ac_optarg ;;
1309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1311 | --sharedst | --shareds | --shared | --share | --shar \
1313 ac_prev=sharedstatedir ;;
1314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1318 sharedstatedir=$ac_optarg ;;
1320 -site | --site | --sit)
1322 -site=* | --site=* | --sit=*)
1325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1328 srcdir=$ac_optarg ;;
1330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1331 | --syscon | --sysco | --sysc | --sys | --sy)
1332 ac_prev=sysconfdir ;;
1333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1335 sysconfdir=$ac_optarg ;;
1337 -target | --target | --targe | --targ | --tar | --ta | --t)
1338 ac_prev=target_alias ;;
1339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1340 target_alias=$ac_optarg ;;
1342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1345 -version | --version | --versio | --versi | --vers | -V)
1346 ac_init_version=: ;;
1349 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352 as_fn_error "invalid package name: $ac_useropt"
1353 ac_useropt_orig=$ac_useropt
1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1360 ac_unrecognized_sep=', ';;
1362 eval with_$ac_useropt=\$ac_optarg ;;
1364 -without-* | --without-*)
1365 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368 as_fn_error "invalid package name: $ac_useropt"
1369 ac_useropt_orig=$ac_useropt
1370 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371 case $ac_user_opts in
1375 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1376 ac_unrecognized_sep=', ';;
1378 eval with_$ac_useropt=no ;;
1381 # Obsolete; use --with-x.
1384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1385 | --x-incl | --x-inc | --x-in | --x-i)
1386 ac_prev=x_includes ;;
1387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1389 x_includes=$ac_optarg ;;
1391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1393 ac_prev=x_libraries ;;
1394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1396 x_libraries=$ac_optarg ;;
1398 -*) as_fn_error "unrecognized option: \`$ac_option'
1399 Try \`$0 --help' for more information."
1403 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1404 # Reject names that are not valid shell variable names.
1405 case $ac_envvar in #(
1406 '' | [0-9]* | *[!_$as_cr_alnum]* )
1407 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1409 eval $ac_envvar=\$ac_optarg
1410 export $ac_envvar ;;
1413 # FIXME: should be removed in autoconf 3.0.
1414 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1415 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1416 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1417 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1423 if test -n "$ac_prev"; then
1424 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1425 as_fn_error "missing argument to $ac_option"
1428 if test -n "$ac_unrecognized_opts"; then
1429 case $enable_option_checking in
1431 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1432 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1436 # Check all directory arguments for consistency.
1437 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1438 datadir sysconfdir sharedstatedir localstatedir includedir \
1439 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1440 libdir localedir mandir
1442 eval ac_val=\$$ac_var
1443 # Remove trailing slashes.
1446 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1447 eval $ac_var=\$ac_val;;
1449 # Be sure to have absolute directory names.
1451 [\\/$]* | ?:[\\/]* ) continue;;
1452 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1454 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1462 target=$target_alias
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466 if test "x$build_alias" = x; then
1467 cross_compiling=maybe
1468 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469 If a cross compiler is detected then cross compile mode will be used." >&2
1470 elif test "x$build_alias" != "x$host_alias"; then
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1478 test "$silent" = yes && exec 6>/dev/null
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484 as_fn_error "working directory cannot be determined"
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486 as_fn_error "pwd does not report name of working directory"
1489 # Find the source files, if location was not specified.
1490 if test -z "$srcdir"; then
1491 ac_srcdir_defaulted=yes
1492 # Try the directory containing this script, then the parent directory.
1493 ac_confdir=`$as_dirname -- "$as_myself" ||
1494 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495 X"$as_myself" : 'X\(//\)[^/]' \| \
1496 X"$as_myself" : 'X\(//\)$' \| \
1497 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1498 $as_echo X"$as_myself" |
1499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1521 ac_srcdir_defaulted=no
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1524 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1525 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1527 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1529 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1541 for ac_var in $ac_precious_vars; do
1542 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_env_${ac_var}_value=\$${ac_var}
1544 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1549 # Report the --help message.
1551 if test "$ac_init_help" = "long"; then
1552 # Omit some internal or obsolete options to make the list less imposing.
1553 # This message is too long to be a string in the A/UX 3.1 sh.
1555 \`configure' configures sudo 1.7.4 to adapt to many kinds of systems.
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE. See below for descriptions of some of the useful variables.
1562 Defaults for the options are specified in brackets.
1565 -h, --help display this help and exit
1566 --help=short display options specific to this package
1567 --help=recursive display the short help of all the included packages
1568 -V, --version display version information and exit
1569 -q, --quiet, --silent do not print \`checking...' messages
1570 --cache-file=FILE cache test results in FILE [disabled]
1571 -C, --config-cache alias for \`--cache-file=config.cache'
1572 -n, --no-create do not create output files
1573 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1575 Installation directories:
1576 --prefix=PREFIX install architecture-independent files in PREFIX
1577 [$ac_default_prefix]
1578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1586 For better control, use the options below.
1588 Fine tuning of the installation directories:
1589 --bindir=DIR user executables [EPREFIX/bin]
1590 --sbindir=DIR system admin executables [EPREFIX/sbin]
1591 --libexecdir=DIR program executables [EPREFIX/libexec]
1592 --sysconfdir=DIR read-only single-machine data [/etc]
1593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1594 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1595 --libdir=DIR object code libraries [EPREFIX/lib]
1596 --includedir=DIR C header files [PREFIX/include]
1597 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1600 --infodir=DIR info documentation [DATAROOTDIR/info]
1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1602 --mandir=DIR man documentation [DATAROOTDIR/man]
1603 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1604 --htmldir=DIR html documentation [DOCDIR]
1605 --dvidir=DIR dvi documentation [DOCDIR]
1606 --pdfdir=DIR pdf documentation [DOCDIR]
1607 --psdir=DIR ps documentation [DOCDIR]
1613 --build=BUILD configure for building on BUILD [guessed]
1614 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1618 if test -n "$ac_init_help"; then
1619 case $ac_init_help in
1620 short | recursive ) echo "Configuration of sudo 1.7.4:";;
1625 --disable-option-checking ignore unrecognized --enable/--with options
1626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1628 --disable-authentication
1629 Do not require authentication by default
1630 --disable-root-mailer Don't run the mailer as root, run as the user
1631 --disable-setreuid Don't try to use the setreuid() function
1632 --disable-setresuid Don't try to use the setresuid() function
1633 --disable-shadow Never use shadow passwords
1634 --disable-root-sudo Don't allow root to run sudo
1635 --enable-log-host Log the hostname in the log file
1636 --enable-noargs-shell If sudo is given no arguments run a shell
1637 --enable-shell-sets-home
1638 Set $HOME to target user in shell mode
1639 --disable-path-info Print 'command not allowed' not 'command not found'
1640 --enable-env-debug Whether to enable environment debugging.
1641 --enable-warnings Whether to enable compiler warnings
1642 --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1643 --enable-gss-krb5-ccache-name
1644 Use GSS-API to set the Kerberos V cred cache name
1645 --enable-shared[=PKGS] build shared libraries [default=yes]
1646 --enable-static[=PKGS] build static libraries [default=yes]
1647 --enable-fast-install[=PKGS]
1648 optimize for fast installation [default=yes]
1649 --disable-libtool-lock avoid locking (might break parallel builds)
1650 --disable-sia Disable SIA on Digital UNIX
1651 --disable-pam-session Disable PAM session support
1652 --enable-zlib[=PATH] Whether to enable or disable zlib
1655 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1656 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1657 --with-otp-only deprecated
1658 --with-alertmail deprecated
1659 --with-devel add development options
1660 --with-CC C compiler to use
1661 --with-rpath pass -R flag in addition to -L for lib paths
1662 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1663 --with-bsm-audit enable BSM audit support
1664 --with-linux-audit enable Linux audit support
1665 --with-incpath additional places to look for include files
1666 --with-libpath additional places to look for libraries
1667 --with-libraries additional libraries to link with
1668 --with-efence link with -lefence for malloc() debugging
1669 --with-csops add CSOps standard options
1670 --without-passwd don't use passwd/shadow file for authentication
1671 --with-skey=DIR enable S/Key support
1672 --with-opie=DIR enable OPIE support
1673 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1674 --with-SecurID[=DIR] enable SecurID support
1675 --with-fwtk[=DIR] enable FWTK AuthSRV support
1676 --with-kerb4[=DIR] enable Kerberos IV support
1677 --with-kerb5[=DIR] enable Kerberos V support
1678 --with-aixauth enable AIX general authentication support
1679 --with-pam enable PAM support
1680 --with-AFS enable AFS support
1681 --with-DCE enable DCE support
1682 --with-logincap enable BSD login class support
1683 --with-bsdauth enable BSD authentication support
1684 --with-project enable Solaris project support
1685 --without-lecture don't print lecture for first-time sudoer
1686 --with-logging log via syslog, file, or both
1687 --with-logfac syslog facility to log with (default is "auth")
1688 --with-goodpri syslog priority for commands (def is "notice")
1689 --with-badpri syslog priority for failures (def is "alert")
1690 --with-logpath path to the sudo log file
1691 --with-loglen maximum length of a log file line (default is 80)
1692 --with-ignore-dot ignore '.' in the PATH
1693 --without-mail-if-no-user
1694 do not send mail if user not in sudoers
1695 --with-mail-if-no-host send mail if user in sudoers but not for this host
1696 --with-mail-if-noperms send mail if user not allowed to run command
1697 --with-mailto who should get sudo mail (default is "root")
1698 --with-mailsubject subject of sudo mail
1699 --with-passprompt default password prompt
1700 --with-badpass-message message the user sees when the password is wrong
1701 --with-fqdn expect fully qualified hosts in sudoers
1702 --with-timedir path to the sudo timestamp dir
1703 --with-iologdir=DIR directory to store sudo I/O log files in
1704 --with-sendmail set path to sendmail
1705 --without-sendmail do not send mail at all
1706 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1707 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1708 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1709 --with-umask umask with which the prog should run (default is
1711 --without-umask Preserves the umask of the user invoking sudo.
1712 --with-runas-default User to run commands as (default is "root")
1713 --with-exempt=group no passwd needed for users in this group
1714 --with-editor=path Default editor for visudo (defaults to vi)
1715 --with-env-editor Use the environment variable EDITOR for visudo
1716 --with-passwd-tries number of tries to enter password (default is 3)
1717 --with-timeout minutes before sudo asks for passwd again (def is 5
1719 --with-password-timeout passwd prompt timeout in minutes (default is 5
1721 --with-tty-tickets use a different ticket file for each tty
1722 --with-insults insult the user for entering an incorrect password
1723 --with-all-insults include all the sudo insult sets
1724 --with-classic-insults include the insults from the "classic" sudo
1725 --with-csops-insults include CSOps insults
1726 --with-hal-insults include 2001-like insults
1727 --with-goons-insults include the insults from the "Goon Show"
1728 --with-nsswitch[=PATH] path to nsswitch.conf
1729 --with-ldap[=DIR] enable LDAP support
1730 --with-ldap-conf-file path to LDAP configuration file
1731 --with-ldap-secret-file path to LDAP secret password file
1732 --with-pc-insults replace politically incorrect insults with less
1734 --with-secure-path override the user's path with a built-in one
1735 --without-interfaces don't try to read the ip addr of ether interfaces
1736 --with-stow properly handle GNU stow packaging
1737 --with-askpass=PATH Fully qualified pathname of askpass helper
1738 --with-libvas=NAME Name of the libvas shared library
1740 --with-libvas-rpath=PATH
1741 Path to look for libvas in [default=/opt/quest/lib]
1742 --with-selinux enable SELinux support
1743 --with-pic try to use only PIC/non-PIC objects [default=use
1745 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1746 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1747 --with-netsvc[=PATH] path to netsvc.conf
1748 --with-pam-login enable specific PAM session for sudo -i
1750 Some influential environment variables:
1751 CC C compiler command
1752 CFLAGS C compiler flags
1753 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1754 nonstandard directory <lib dir>
1755 LIBS libraries to pass to the linker, e.g. -l<library>
1756 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1757 you have headers in a nonstandard directory <include dir>
1759 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1760 the first program found out of: `bison -y', `byacc', `yacc'.
1761 YFLAGS The list of arguments that will be passed by default to $YACC.
1762 This script will default YFLAGS to the empty string to avoid a
1763 default value of `-d' given by some make applications.
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1768 Report bugs to <http://www.sudo.ws/bugs/>.
1773 if test "$ac_init_help" = "recursive"; then
1774 # If there are subdirs, report their specific --help.
1775 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776 test -d "$ac_dir" ||
1777 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785 # A ".." for each directory in $ac_dir_suffix.
1786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787 case $ac_top_builddir_sub in
1788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792 ac_abs_top_builddir=$ac_pwd
1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir=$ac_top_build_prefix
1798 .) # We are building in place.
1800 ac_top_srcdir=$ac_top_builddir_sub
1801 ac_abs_top_srcdir=$ac_pwd ;;
1802 [\\/]* | ?:[\\/]* ) # Absolute name.
1803 ac_srcdir=$srcdir$ac_dir_suffix;
1804 ac_top_srcdir=$srcdir
1805 ac_abs_top_srcdir=$srcdir ;;
1807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808 ac_top_srcdir=$ac_top_build_prefix$srcdir
1809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1813 cd "$ac_dir" || { ac_status=$?; continue; }
1814 # Check for guested configure.
1815 if test -f "$ac_srcdir/configure.gnu"; then
1817 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818 elif test -f "$ac_srcdir/configure"; then
1820 $SHELL "$ac_srcdir/configure" --help=recursive
1822 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1824 cd "$ac_pwd" || { ac_status=$?; break; }
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1831 sudo configure 1.7.4
1832 generated by GNU Autoconf 2.65
1834 Copyright (C) 2009 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext
1852 if { { ac_try="$ac_compile"
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_compile") 2>conftest.err
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest.$ac_objext; then :
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_c_try_compile
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 $as_test_x conftest$ac_exeext
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 as_fn_set_status $ac_retval
1927 } # ac_fn_c_try_link
1929 # ac_fn_c_try_cpp LINENO
1930 # ----------------------
1931 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_cpp conftest.$ac_ext"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } >/dev/null && {
1951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 as_fn_set_status $ac_retval
1966 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists and can be compiled using the include files in
1969 # INCLUDES, setting the cache variable VAR accordingly.
1970 ac_fn_c_check_header_compile ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976 $as_echo_n "(cached) " >&6
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1983 if ac_fn_c_try_compile "$LINENO"; then :
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995 } # ac_fn_c_check_header_compile
1997 # ac_fn_c_try_run LINENO
1998 # ----------------------
1999 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2000 # that executables *can* be run.
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if { { ac_try="$ac_link"
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_link") 2>&5
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2015 { { case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_try") 2>&5
2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024 test $ac_status = 0; }; }; then :
2027 $as_echo "$as_me: program exited with status $ac_status" >&5
2028 $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2031 ac_retval=$ac_status
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 as_fn_set_status $ac_retval
2039 # ac_fn_c_check_func LINENO FUNC VAR
2040 # ----------------------------------
2041 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2042 ac_fn_c_check_func ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048 $as_echo_n "(cached) " >&6
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2054 #define $2 innocuous_$2
2056 /* System header to define __stub macros and hopefully few prototypes,
2057 which can conflict with char $2 (); below.
2058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059 <limits.h> exists even on freestanding compilers. */
2062 # include <limits.h>
2064 # include <assert.h>
2069 /* Override any GCC internal prototype to avoid an error.
2070 Use char because int might match the return type of a GCC
2071 builtin and then its argument prototype would still apply. */
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined __stub_$2 || defined __stub___$2
2091 if ac_fn_c_try_link "$LINENO"; then :
2096 rm -f core conftest.err conftest.$ac_objext \
2097 conftest$ac_exeext conftest.$ac_ext
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 } # ac_fn_c_check_func
2106 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2107 # -------------------------------------------------------
2108 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2109 # the include files in INCLUDES and setting the cache variable VAR
2111 ac_fn_c_check_header_mongrel ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118 $as_echo_n "(cached) " >&6
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2124 # Is the header compilable?
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2126 $as_echo_n "checking $2 usability... " >&6; }
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_header_compiler=yes
2135 ac_header_compiler=no
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2139 $as_echo "$ac_header_compiler" >&6; }
2141 # Is the header present?
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2143 $as_echo_n "checking $2 presence... " >&6; }
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2148 if ac_fn_c_try_cpp "$LINENO"; then :
2149 ac_header_preproc=yes
2151 ac_header_preproc=no
2153 rm -f conftest.err conftest.$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2155 $as_echo "$ac_header_preproc" >&6; }
2157 # So? What about this header?
2158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2161 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2167 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2169 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2171 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2173 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2175 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 ## --------------------------------------- ##
2178 ## Report this to http://www.sudo.ws/bugs/ ##
2179 ## --------------------------------------- ##
2181 ) | sed "s/^/$as_me: WARNING: /" >&2
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187 $as_echo_n "(cached) " >&6
2189 eval "$3=\$ac_header_compiler"
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2197 } # ac_fn_c_check_header_mongrel
2199 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2200 # -------------------------------------------
2201 # Tests whether TYPE exists after having included INCLUDES, setting cache
2202 # variable VAR accordingly.
2203 ac_fn_c_check_type ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2237 if ac_fn_c_try_compile "$LINENO"; then :
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 } # ac_fn_c_check_type
2253 # ac_fn_c_check_decl LINENO SYMBOL VAR
2254 # ------------------------------------
2255 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2256 ac_fn_c_check_decl ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2260 $as_echo_n "checking whether $2 is declared... " >&6; }
2261 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2262 $as_echo_n "(cached) " >&6
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2278 if ac_fn_c_try_compile "$LINENO"; then :
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290 } # ac_fn_c_check_decl
2292 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2293 # ----------------------------------------------------
2294 # Tries to find if the field MEMBER exists in type AGGR, after including
2295 # INCLUDES, setting cache variable VAR accordingly.
2296 ac_fn_c_check_member ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2300 $as_echo_n "checking for $2.$3... " >&6; }
2301 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2302 $as_echo_n "(cached) " >&6
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2317 if ac_fn_c_try_compile "$LINENO"; then :
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2327 if (sizeof ac_aggr.$3)
2333 if ac_fn_c_try_compile "$LINENO"; then :
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347 } # ac_fn_c_check_member
2348 cat >config.log <<_ACEOF
2349 This file contains any messages produced by compilers while
2350 running configure, to aid debugging if configure makes a mistake.
2352 It was created by sudo $as_me 1.7.4, which was
2353 generated by GNU Autoconf 2.65. Invocation command line was
2365 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2366 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2367 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2368 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2369 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2371 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2372 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2374 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2375 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2376 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2377 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2378 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2379 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2380 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 $as_echo "PATH: $as_dir"
2405 # Keep a trace of the command line.
2406 # Strip out --no-create and --no-recursion so they do not pile up.
2407 # Strip out --silent because we don't want to record it for future runs.
2408 # Also quote any args containing shell meta-characters.
2409 # Make two passes to allow for proper duplicate-argument suppression.
2413 ac_must_keep_next=false
2419 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2421 | -silent | --silent | --silen | --sile | --sil)
2424 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2427 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2429 as_fn_append ac_configure_args1 " '$ac_arg'"
2430 if test $ac_must_keep_next = true; then
2431 ac_must_keep_next=false # Got value, back to normal.
2434 *=* | --config-cache | -C | -disable-* | --disable-* \
2435 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2436 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2437 | -with-* | --with-* | -without-* | --without-* | --x)
2438 case "$ac_configure_args0 " in
2439 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2442 -* ) ac_must_keep_next=true ;;
2445 as_fn_append ac_configure_args " '$ac_arg'"
2450 { ac_configure_args0=; unset ac_configure_args0;}
2451 { ac_configure_args1=; unset ac_configure_args1;}
2453 # When interrupted or exit'd, cleanup temporary files, and complete
2454 # config.log. We remove comments because anyway the quotes in there
2455 # would cause problems or look ugly.
2456 # WARNING: Use '\'' to represent an apostrophe within the trap.
2457 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2458 trap 'exit_status=$?
2459 # Save into config.log some information that might help in debugging.
2464 ## ---------------- ##
2465 ## Cache variables. ##
2466 ## ---------------- ##
2469 # The following way of writing the cache mishandles newlines in values,
2471 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2472 eval ac_val=\$$ac_var
2476 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2480 _ | IFS | as_nl) ;; #(
2481 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2482 *) { eval $ac_var=; unset $ac_var;} ;;
2487 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2488 *${as_nl}ac_space=\ *)
2490 "s/'\''/'\''\\\\'\'''\''/g;
2491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2502 ## ----------------- ##
2503 ## Output variables. ##
2504 ## ----------------- ##
2507 for ac_var in $ac_subst_vars
2509 eval ac_val=\$$ac_var
2511 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2513 $as_echo "$ac_var='\''$ac_val'\''"
2517 if test -n "$ac_subst_files"; then
2519 ## ------------------- ##
2520 ## File substitutions. ##
2521 ## ------------------- ##
2524 for ac_var in $ac_subst_files
2526 eval ac_val=\$$ac_var
2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 $as_echo "$ac_var='\''$ac_val'\''"
2535 if test -s confdefs.h; then
2545 test "$ac_signal" != 0 &&
2546 $as_echo "$as_me: caught signal $ac_signal"
2547 $as_echo "$as_me: exit $exit_status"
2549 rm -f core *.core core.conftest.* &&
2550 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2553 for ac_signal in 1 2 13 15; do
2554 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2558 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2559 rm -f -r conftest* confdefs.h
2561 $as_echo "/* confdefs.h */" > confdefs.h
2563 # Predefined preprocessor variables.
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_NAME "$PACKAGE_NAME"
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_STRING "$PACKAGE_STRING"
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_URL "$PACKAGE_URL"
2590 # Let the site file select an alternate cache file if it wants to.
2591 # Prefer an explicitly selected file to automatically selected ones.
2594 if test -n "$CONFIG_SITE"; then
2595 ac_site_file1=$CONFIG_SITE
2596 elif test "x$prefix" != xNONE; then
2597 ac_site_file1=$prefix/share/config.site
2598 ac_site_file2=$prefix/etc/config.site
2600 ac_site_file1=$ac_default_prefix/share/config.site
2601 ac_site_file2=$ac_default_prefix/etc/config.site
2603 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2605 test "x$ac_site_file" = xNONE && continue
2606 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2608 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2609 sed 's/^/| /' "$ac_site_file" >&5
2614 if test -r "$cache_file"; then
2615 # Some versions of bash will fail to source /dev/null (special files
2616 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2617 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 $as_echo "$as_me: loading cache $cache_file" >&6;}
2621 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622 *) . "./$cache_file";;
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 $as_echo "$as_me: creating cache $cache_file" >&6;}
2631 # Check that the precious variables saved in the cache have kept the same
2633 ac_cache_corrupted=false
2634 for ac_var in $ac_precious_vars; do
2635 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2636 eval ac_new_set=\$ac_env_${ac_var}_set
2637 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2638 eval ac_new_val=\$ac_env_${ac_var}_value
2639 case $ac_old_set,$ac_new_set in
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2646 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2647 ac_cache_corrupted=: ;;
2650 if test "x$ac_old_val" != "x$ac_new_val"; then
2651 # differences in whitespace do not lead to failure.
2652 ac_old_val_w=`echo x $ac_old_val`
2653 ac_new_val_w=`echo x $ac_new_val`
2654 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2656 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2657 ac_cache_corrupted=:
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2660 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2661 eval $ac_var=\$ac_old_val
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2664 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2666 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2669 # Pass precious variables to config.status.
2670 if test "$ac_new_set" = set; then
2672 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2673 *) ac_arg=$ac_var=$ac_new_val ;;
2675 case " $ac_configure_args " in
2676 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2677 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2681 if $ac_cache_corrupted; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2685 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2686 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2688 ## -------------------- ##
2689 ## Main body of script. ##
2690 ## -------------------- ##
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 ac_config_headers="$ac_config_headers config.h pathnames.h"
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2702 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2777 # Begin initial values for man page substitution
2779 timedir=/var/adm/sudo
2783 passprompt="Password:"
2795 mailsub="*** SECURITY information for %h ***"
2796 badpass_message="Sorry, try again."
2806 ldap_conf=/etc/ldap.conf
2807 ldap_secret=/etc/ldap.secret
2808 netsvc_conf=/etc/netsvc.conf
2809 noexec_file=/usr/local/libexec/sudo_noexec.so
2810 nsswitch_conf=/etc/nsswitch.conf
2811 secure_path="not set"
2813 # End initial values for man page substitution
2820 : ${SUDOERS_MODE='0440'}
2821 : ${SUDOERS_UID='0'}
2822 : ${SUDOERS_GID='0'}
2840 shadow_libs_optional=
2846 # Check whether --with-otp-only was given.
2847 if test "${with_otp_only+set}" = set; then :
2848 withval=$with_otp_only; case $with_otp_only in
2849 yes) with_passwd="no"
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
2851 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2858 # Check whether --with-alertmail was given.
2859 if test "${with_alertmail+set}" = set; then :
2860 withval=$with_alertmail; case $with_alertmail in
2861 *) with_mailto="$with_alertmail"
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
2863 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2871 # Check whether --with-devel was given.
2872 if test "${with_devel+set}" = set; then :
2873 withval=$with_devel; case $with_devel in
2874 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2875 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2876 PROGS="${PROGS} testsudoers"
2877 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2882 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2883 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2888 if test X"$with_devel" != X"yes"; then
2893 # Check whether --with-CC was given.
2894 if test "${with_CC+set}" = set; then :
2895 withval=$with_CC; case $with_CC in
2896 yes) as_fn_error "\"must give --with-CC an argument.\"" "$LINENO" 5
2898 no) as_fn_error "\"illegal argument: --without-CC.\"" "$LINENO" 5
2907 # Check whether --with-rpath was given.
2908 if test "${with_rpath+set}" = set; then :
2909 withval=$with_rpath; case $with_rpath in
2911 *) as_fn_error "\"--with-rpath does not take an argument.\"" "$LINENO" 5
2918 # Check whether --with-blibpath was given.
2919 if test "${with_blibpath+set}" = set; then :
2920 withval=$with_blibpath; case $with_blibpath in
2922 *) { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
2923 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2930 # Check whether --with-bsm-audit was given.
2931 if test "${with_bsm_audit+set}" = set; then :
2932 withval=$with_bsm_audit; case $with_bsm_audit in
2933 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
2935 SUDO_LIBS="${SUDO_LIBS} -lbsm"
2936 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
2939 *) as_fn_error "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950 if test -n "$ac_tool_prefix"; then
2951 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2952 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if test "${ac_cv_prog_CC+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2989 if test -z "$ac_cv_prog_CC"; then
2991 # Extract the first word of "gcc", so it can be a program name with args.
2992 set dummy gcc; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2996 $as_echo_n "(cached) " >&6
2998 if test -n "$ac_ct_CC"; then
2999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008 ac_cv_prog_ac_ct_CC="gcc"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3019 if test -n "$ac_ct_CC"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3021 $as_echo "$ac_ct_CC" >&6; }
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3027 if test "x$ac_ct_CC" = x; then
3030 case $cross_compiling:$ac_tool_warned in
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034 ac_tool_warned=yes ;;
3042 if test -z "$CC"; then
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3045 set dummy ${ac_tool_prefix}cc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_CC="${ac_tool_prefix}cc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3083 if test -z "$CC"; then
3084 # Extract the first word of "cc", so it can be a program name with args.
3085 set dummy cc; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_CC+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3103 ac_prog_rejected=yes
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 if test $ac_prog_rejected = yes; then
3115 # We found a bogon in the path, so make sure we never use it.
3116 set dummy $ac_cv_prog_CC
3118 if test $# != 0; then
3119 # We chose a different compiler from the bogus one.
3120 # However, it has the same basename, so the bogon will be chosen
3121 # first if we set CC to just the basename; use the full file name.
3123 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3129 if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3139 if test -z "$CC"; then
3140 if test -n "$ac_tool_prefix"; then
3141 for ac_prog in cl.exe
3143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if test "${ac_cv_prog_CC+set}" = set; then :
3148 $as_echo_n "(cached) " >&6
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 if test -n "$CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173 $as_echo "$CC" >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3180 test -n "$CC" && break
3183 if test -z "$CC"; then
3185 for ac_prog in cl.exe
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3192 $as_echo_n "(cached) " >&6
3194 if test -n "$ac_ct_CC"; then
3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_ac_ct_CC="$ac_prog"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215 if test -n "$ac_ct_CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217 $as_echo "$ac_ct_CC" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3224 test -n "$ac_ct_CC" && break
3227 if test "x$ac_ct_CC" = x; then
3230 case $cross_compiling:$ac_tool_warned in
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3243 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error "no acceptable C compiler found in \$PATH
3246 See \`config.log' for more details." "$LINENO" 5; }
3248 # Provide some information about the compiler.
3249 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3252 for ac_option in --version -v -V -qversion; do
3253 { { ac_try="$ac_compiler $ac_option >&5"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3262 if test -s conftest.err; then
3264 ... rest of stderr output deleted ...
3265 10q' conftest.err >conftest.er1
3266 cat conftest.er1 >&5
3268 rm -f conftest.er1 conftest.err
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3284 ac_clean_files_save=$ac_clean_files
3285 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3286 # Try to create an executable without -o first, disregard a.out.
3287 # It will help us diagnose broken compilers, and finding out an intuition
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3290 $as_echo_n "checking whether the C compiler works... " >&6; }
3291 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3293 # The possible output files:
3294 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3297 for ac_file in $ac_files
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3306 if { { ac_try="$ac_link_default"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_link_default") 2>&5
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3318 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3319 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3320 # so that the user can short-circuit this test for compilers unknown to
3322 for ac_file in $ac_files ''
3324 test -f "$ac_file" || continue
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3329 # We found the default executable, but exeext='' is most
3333 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3335 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337 # We set ac_cv_exeext here because the later test for it is not
3338 # safe: cross compilers may not add the suffix if given an `-o'
3339 # argument, so we may need to know it at that point already.
3340 # Even if this section looks crufty: it has the advantage of
3347 test "$ac_cv_exeext" = no && ac_cv_exeext=
3352 if test -z "$ac_file"; then :
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3355 $as_echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 { as_fn_set_status 77
3361 as_fn_error "C compiler cannot create executables
3362 See \`config.log' for more details." "$LINENO" 5; }; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365 $as_echo "yes" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3368 $as_echo_n "checking for C compiler default output file name... " >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3370 $as_echo "$ac_file" >&6; }
3371 ac_exeext=$ac_cv_exeext
3373 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3374 ac_clean_files=$ac_clean_files_save
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3376 $as_echo_n "checking for suffix of executables... " >&6; }
3377 if { { ac_try="$ac_link"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_link") 2>&5
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
3388 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3389 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3390 # work properly (i.e., refer to `conftest.exe'), while it won't with
3392 for ac_file in conftest.exe conftest conftest.*; do
3393 test -f "$ac_file" || continue
3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3396 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error "cannot compute suffix of executables: cannot compile and link
3405 See \`config.log' for more details." "$LINENO" 5; }
3407 rm -f conftest conftest$ac_cv_exeext
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3409 $as_echo "$ac_cv_exeext" >&6; }
3411 rm -f conftest.$ac_ext
3412 EXEEXT=$ac_cv_exeext
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3420 FILE *f = fopen ("conftest.out", "w");
3421 return ferror (f) || fclose (f) != 0;
3427 ac_clean_files="$ac_clean_files conftest.out"
3428 # Check that the compiler produces executables we can run. If not, either
3429 # the compiler is broken, or we cross compile.
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3431 $as_echo_n "checking whether we are cross compiling... " >&6; }
3432 if test "$cross_compiling" != yes; then
3433 { { ac_try="$ac_link"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_link") 2>&5
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }
3444 if { ac_try='./conftest$ac_cv_exeext'
3445 { { case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_try") 2>&5
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; }; then
3457 if test "$cross_compiling" = maybe; then
3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error "cannot run C compiled programs.
3463 If you meant to cross compile, use \`--host'.
3464 See \`config.log' for more details." "$LINENO" 5; }
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3469 $as_echo "$cross_compiling" >&6; }
3471 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3472 ac_clean_files=$ac_clean_files_save
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3474 $as_echo_n "checking for suffix of object files... " >&6; }
3475 if test "${ac_cv_objext+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3489 rm -f conftest.o conftest.obj
3490 if { { ac_try="$ac_compile"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497 (eval "$ac_compile") 2>&5
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }; then :
3501 for ac_file in conftest.o conftest.obj conftest.*; do
3502 test -f "$ac_file" || continue;
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510 $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error "cannot compute suffix of object files: cannot compile
3516 See \`config.log' for more details." "$LINENO" 5; }
3518 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3521 $as_echo "$ac_cv_objext" >&6; }
3522 OBJEXT=$ac_cv_objext
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3525 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3526 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3543 if ac_fn_c_try_compile "$LINENO"; then :
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3553 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3554 if test $ac_compiler_gnu = yes; then
3559 ac_test_CFLAGS=${CFLAGS+set}
3560 ac_save_CFLAGS=$CFLAGS
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3562 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3563 if test "${ac_cv_prog_cc_g+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3566 ac_save_c_werror_flag=$ac_c_werror_flag
3567 ac_c_werror_flag=yes
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3581 if ac_fn_c_try_compile "$LINENO"; then :
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3596 if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_c_werror_flag=$ac_save_c_werror_flag
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3612 if ac_fn_c_try_compile "$LINENO"; then :
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_c_werror_flag=$ac_save_c_werror_flag
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3623 $as_echo "$ac_cv_prog_cc_g" >&6; }
3624 if test "$ac_test_CFLAGS" = set; then
3625 CFLAGS=$ac_save_CFLAGS
3626 elif test $ac_cv_prog_cc_g = yes; then
3627 if test "$GCC" = yes; then
3633 if test "$GCC" = yes; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3640 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3641 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3644 ac_cv_prog_cc_c89=no
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3650 #include <sys/types.h>
3651 #include <sys/stat.h>
3652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3653 struct buf { int x; };
3654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3655 static char *e (p, i)
3661 static char *f (char * (*g) (char **, int), char **p, ...)
3666 s = g (p, va_arg (v,int));
3671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3672 function prototypes and stuff, but not '\xHH' hex character constants.
3673 These don't provoke an error unfortunately, instead are silently treated
3674 as 'x'. The following induces an error, until -std is added to get
3675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3676 array size at least. It's necessary to write '\x00'==0 to get something
3677 that's true only with -std. */
3678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3681 inside strings and character constants. */
3683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3685 int test (int i, double x);
3686 struct s1 {int (*f) (int a);};
3687 struct s2 {int (*f) (double a);};
3688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3694 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3702 CC="$ac_save_CC $ac_arg"
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_cv_prog_cc_c89=$ac_arg
3706 rm -f core conftest.err conftest.$ac_objext
3707 test "x$ac_cv_prog_cc_c89" != "xno" && break
3709 rm -f conftest.$ac_ext
3714 case "x$ac_cv_prog_cc_c89" in
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3717 $as_echo "none needed" >&6; } ;;
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3720 $as_echo "unsupported" >&6; } ;;
3722 CC="$CC $ac_cv_prog_cc_c89"
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3724 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3726 if test "x$ac_cv_prog_cc_c89" != xno; then :
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738 # Check whether --with-linux-audit was given.
3739 if test "${with_linux_audit+set}" = set; then :
3740 withval=$with_linux_audit; case $with_linux_audit in
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <libaudit.h>
3748 int i = AUDIT_USER_CMD; (void)i;
3753 if ac_fn_c_try_compile "$LINENO"; then :
3755 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3757 SUDO_LIBS="${SUDO_LIBS} -laudit"
3758 SUDO_OBJS="${SUDO_OBJS} linux_audit.o"
3762 as_fn_error "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 *) as_fn_error "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3775 # Check whether --with-incpath was given.
3776 if test "${with_incpath+set}" = set; then :
3777 withval=$with_incpath; case $with_incpath in
3778 yes) as_fn_error "\"must give --with-incpath an argument.\"" "$LINENO" 5
3780 no) as_fn_error "\"--without-incpath not supported.\"" "$LINENO" 5
3782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3783 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3784 for i in ${with_incpath}; do
3785 CPPFLAGS="${CPPFLAGS} -I${i}"
3793 # Check whether --with-libpath was given.
3794 if test "${with_libpath+set}" = set; then :
3795 withval=$with_libpath; case $with_libpath in
3796 yes) as_fn_error "\"must give --with-libpath an argument.\"" "$LINENO" 5
3798 no) as_fn_error "\"--without-libpath not supported.\"" "$LINENO" 5
3800 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3801 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3808 # Check whether --with-libraries was given.
3809 if test "${with_libraries+set}" = set; then :
3810 withval=$with_libraries; case $with_libraries in
3811 yes) as_fn_error "\"must give --with-libraries an argument.\"" "$LINENO" 5
3813 no) as_fn_error "\"--without-libraries not supported.\"" "$LINENO" 5
3815 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3816 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3823 # Check whether --with-efence was given.
3824 if test "${with_efence+set}" = set; then :
3825 withval=$with_efence; case $with_efence in
3826 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
3827 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
3828 LIBS="${LIBS} -lefence"
3829 if test -f /usr/local/lib/libefence.a; then
3830 with_libpath="${with_libpath} /usr/local/lib"
3834 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
3835 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
3842 # Check whether --with-csops was given.
3843 if test "${with_csops+set}" = set; then :
3844 withval=$with_csops; case $with_csops in
3845 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
3846 $as_echo "$as_me: Adding CSOps standard options" >&6;}
3850 with_classic_insults=yes
3851 with_csops_insults=yes
3854 : ${mansectform='5'}
3857 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
3858 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
3865 # Check whether --with-passwd was given.
3866 if test "${with_passwd+set}" = set; then :
3867 withval=$with_passwd; case $with_passwd in
3868 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
3869 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
3871 $as_echo "$with_passwd" >&6; }
3873 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
3875 *) as_fn_error "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
3882 # Check whether --with-skey was given.
3883 if test "${with_skey+set}" = set; then :
3884 withval=$with_skey; case $with_skey in
3887 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
3890 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3892 $as_echo "yes" >&6; }
3893 AUTH_REG="$AUTH_REG S/Key"
3900 # Check whether --with-opie was given.
3901 if test "${with_opie+set}" = set; then :
3902 withval=$with_opie; case $with_opie in
3905 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
3908 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 $as_echo "yes" >&6; }
3911 AUTH_REG="$AUTH_REG NRL_OPIE"
3918 # Check whether --with-long-otp-prompt was given.
3919 if test "${with_long_otp_prompt+set}" = set; then :
3920 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
3921 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
3924 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3926 $as_echo "yes" >&6; }
3929 no) long_otp_prompt=off
3931 *) as_fn_error "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
3938 # Check whether --with-SecurID was given.
3939 if test "${with_SecurID+set}" = set; then :
3940 withval=$with_SecurID; case $with_SecurID in
3941 no) with_SecurID="";;
3942 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
3945 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3948 AUTH_EXCL="$AUTH_EXCL SecurID"
3955 # Check whether --with-fwtk was given.
3956 if test "${with_fwtk+set}" = set; then :
3957 withval=$with_fwtk; case $with_fwtk in
3959 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
3962 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3965 AUTH_EXCL="$AUTH_EXCL FWTK"
3972 # Check whether --with-kerb4 was given.
3973 if test "${with_kerb4+set}" = set; then :
3974 withval=$with_kerb4; case $with_kerb4 in
3976 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
3977 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979 $as_echo "yes" >&6; }
3980 AUTH_REG="$AUTH_REG kerb4"
3987 # Check whether --with-kerb5 was given.
3988 if test "${with_kerb5+set}" = set; then :
3989 withval=$with_kerb5; case $with_kerb5 in
3991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
3992 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3994 $as_echo "yes" >&6; }
3995 AUTH_REG="$AUTH_REG kerb5"
4002 # Check whether --with-aixauth was given.
4003 if test "${with_aixauth+set}" = set; then :
4004 withval=$with_aixauth; case $with_aixauth in
4005 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4007 *) as_fn_error "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4014 # Check whether --with-pam was given.
4015 if test "${with_pam+set}" = set; then :
4016 withval=$with_pam; case $with_pam in
4017 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4019 *) as_fn_error "\"--with-pam does not take an argument.\"" "$LINENO" 5
4026 # Check whether --with-AFS was given.
4027 if test "${with_AFS+set}" = set; then :
4028 withval=$with_AFS; case $with_AFS in
4029 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4032 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4034 $as_echo "yes" >&6; }
4035 AUTH_REG="$AUTH_REG AFS"
4038 *) as_fn_error "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4045 # Check whether --with-DCE was given.
4046 if test "${with_DCE+set}" = set; then :
4047 withval=$with_DCE; case $with_DCE in
4048 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4051 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4053 $as_echo "yes" >&6; }
4054 AUTH_REG="$AUTH_REG DCE"
4057 *) as_fn_error "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4064 # Check whether --with-logincap was given.
4065 if test "${with_logincap+set}" = set; then :
4066 withval=$with_logincap; case $with_logincap in
4068 *) as_fn_error "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4075 # Check whether --with-bsdauth was given.
4076 if test "${with_bsdauth+set}" = set; then :
4077 withval=$with_bsdauth; case $with_bsdauth in
4078 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4080 *) as_fn_error "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4087 # Check whether --with-project was given.
4088 if test "${with_project+set}" = set; then :
4089 withval=$with_project; case $with_project in
4092 *) as_fn_error "\"--with-project does not take an argument.\"" "$LINENO" 5
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4099 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4101 # Check whether --with-lecture was given.
4102 if test "${with_lecture+set}" = set; then :
4103 withval=$with_lecture; case $with_lecture in
4104 yes|short|always) lecture=once
4106 no|none|never) lecture=never
4108 *) as_fn_error "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4113 if test "$lecture" = "once"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115 $as_echo "yes" >&6; }
4117 $as_echo "#define NO_LECTURE 1" >>confdefs.h
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4124 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4126 # Check whether --with-logging was given.
4127 if test "${with_logging+set}" = set; then :
4128 withval=$with_logging; case $with_logging in
4129 yes) as_fn_error "\"must give --with-logging an argument.\"" "$LINENO" 5
4131 no) as_fn_error "\"--without-logging not supported.\"" "$LINENO" 5
4133 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4136 $as_echo "syslog" >&6; }
4138 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4141 $as_echo "file" >&6; }
4143 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4146 $as_echo "both" >&6; }
4148 *) as_fn_error "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4152 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4154 $as_echo "syslog" >&6; }
4159 # Check whether --with-logfac was given.
4160 if test "${with_logfac+set}" = set; then :
4161 withval=$with_logfac; case $with_logfac in
4162 yes) as_fn_error "\"must give --with-logfac an argument.\"" "$LINENO" 5
4164 no) as_fn_error "\"--without-logfac not supported.\"" "$LINENO" 5
4166 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4168 *) as_fn_error "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4175 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4177 # Check whether --with-goodpri was given.
4178 if test "${with_goodpri+set}" = set; then :
4179 withval=$with_goodpri; case $with_goodpri in
4180 yes) as_fn_error "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4182 no) as_fn_error "\"--without-goodpri not supported.\"" "$LINENO" 5
4184 alert|crit|debug|emerg|err|info|notice|warning)
4185 goodpri=$with_goodpri
4187 *) as_fn_error "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4193 cat >>confdefs.h <<_ACEOF
4194 #define PRI_SUCCESS "$goodpri"
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4198 $as_echo "$goodpri" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4201 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4203 # Check whether --with-badpri was given.
4204 if test "${with_badpri+set}" = set; then :
4205 withval=$with_badpri; case $with_badpri in
4206 yes) as_fn_error "\"must give --with-badpri an argument.\"" "$LINENO" 5
4208 no) as_fn_error "\"--without-badpri not supported.\"" "$LINENO" 5
4210 alert|crit|debug|emerg|err|info|notice|warning)
4213 *) as_fn_error "$with_badpri is not a supported syslog priority." "$LINENO" 5
4219 cat >>confdefs.h <<_ACEOF
4220 #define PRI_FAILURE "$badpri"
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4224 $as_echo "$badpri" >&6; }
4227 # Check whether --with-logpath was given.
4228 if test "${with_logpath+set}" = set; then :
4229 withval=$with_logpath; case $with_logpath in
4230 yes) as_fn_error "\"must give --with-logpath an argument.\"" "$LINENO" 5
4232 no) as_fn_error "\"--without-logpath not supported.\"" "$LINENO" 5
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4239 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4241 # Check whether --with-loglen was given.
4242 if test "${with_loglen+set}" = set; then :
4243 withval=$with_loglen; case $with_loglen in
4244 yes) as_fn_error "\"must give --with-loglen an argument.\"" "$LINENO" 5
4246 no) as_fn_error "\"--without-loglen not supported.\"" "$LINENO" 5
4248 [0-9]*) loglen=$with_loglen
4250 *) as_fn_error "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4256 cat >>confdefs.h <<_ACEOF
4257 #define MAXLOGFILELEN $loglen
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4261 $as_echo "$loglen" >&6; }
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4264 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4266 # Check whether --with-ignore-dot was given.
4267 if test "${with_ignore_dot+set}" = set; then :
4268 withval=$with_ignore_dot; case $with_ignore_dot in
4273 *) as_fn_error "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4278 if test "$ignore_dot" = "on"; then
4279 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4282 $as_echo "yes" >&6; }
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4289 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4291 # Check whether --with-mail-if-no-user was given.
4292 if test "${with_mail_if_no_user+set}" = set; then :
4293 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4294 yes) mail_no_user=on
4296 no) mail_no_user=off
4298 *) as_fn_error "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4303 if test "$mail_no_user" = "on"; then
4304 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4307 $as_echo "yes" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4314 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4316 # Check whether --with-mail-if-no-host was given.
4317 if test "${with_mail_if_no_host+set}" = set; then :
4318 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4319 yes) mail_no_host=on
4321 no) mail_no_host=off
4323 *) as_fn_error "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4328 if test "$mail_no_host" = "on"; then
4329 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4332 $as_echo "yes" >&6; }
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4339 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4341 # Check whether --with-mail-if-noperms was given.
4342 if test "${with_mail_if_noperms+set}" = set; then :
4343 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4344 yes) mail_noperms=on
4346 no) mail_noperms=off
4348 *) as_fn_error "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4353 if test "$mail_noperms" = "on"; then
4354 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4357 $as_echo "yes" >&6; }
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4364 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4366 # Check whether --with-mailto was given.
4367 if test "${with_mailto+set}" = set; then :
4368 withval=$with_mailto; case $with_mailto in
4369 yes) as_fn_error "\"must give --with-mailto an argument.\"" "$LINENO" 5
4371 no) as_fn_error "\"--without-mailto not supported.\"" "$LINENO" 5
4373 *) mailto=$with_mailto
4379 cat >>confdefs.h <<_ACEOF
4380 #define MAILTO "$mailto"
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4384 $as_echo "$mailto" >&6; }
4387 # Check whether --with-mailsubject was given.
4388 if test "${with_mailsubject+set}" = set; then :
4389 withval=$with_mailsubject; case $with_mailsubject in
4390 yes) as_fn_error "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4392 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4393 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4395 *) mailsub="$with_mailsubject"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4397 $as_echo_n "checking sudo mail subject... " >&6; }
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4399 $as_echo "Using alert mail subject: $mailsub" >&6; }
4405 cat >>confdefs.h <<_ACEOF
4406 #define MAILSUBJECT "$mailsub"
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4411 $as_echo_n "checking for bad password prompt... " >&6; }
4413 # Check whether --with-passprompt was given.
4414 if test "${with_passprompt+set}" = set; then :
4415 withval=$with_passprompt; case $with_passprompt in
4416 yes) as_fn_error "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4418 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4419 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4421 *) passprompt="$with_passprompt"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4426 $as_echo "$passprompt" >&6; }
4428 cat >>confdefs.h <<_ACEOF
4429 #define PASSPROMPT "$passprompt"
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4434 $as_echo_n "checking for bad password message... " >&6; }
4436 # Check whether --with-badpass-message was given.
4437 if test "${with_badpass_message+set}" = set; then :
4438 withval=$with_badpass_message; case $with_badpass_message in
4439 yes) as_fn_error "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4441 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4442 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4444 *) badpass_message="$with_badpass_message"
4450 cat >>confdefs.h <<_ACEOF
4451 #define INCORRECT_PASSWORD "$badpass_message"
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4455 $as_echo "$badpass_message" >&6; }
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4458 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4460 # Check whether --with-fqdn was given.
4461 if test "${with_fqdn+set}" = set; then :
4462 withval=$with_fqdn; case $with_fqdn in
4467 *) as_fn_error "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4472 if test "$fqdn" = "on"; then
4473 $as_echo "#define FQDN 1" >>confdefs.h
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4476 $as_echo "yes" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4483 # Check whether --with-timedir was given.
4484 if test "${with_timedir+set}" = set; then :
4485 withval=$with_timedir; case $with_timedir in
4486 yes) as_fn_error "\"must give --with-timedir an argument.\"" "$LINENO" 5
4488 no) as_fn_error "\"--without-timedir not supported.\"" "$LINENO" 5
4495 # Check whether --with-iologdir was given.
4496 if test "${with_iologdir+set}" = set; then :
4497 withval=$with_iologdir; case $with_iologdir in
4505 # Check whether --with-sendmail was given.
4506 if test "${with_sendmail+set}" = set; then :
4507 withval=$with_sendmail; case $with_sendmail in
4508 yes) with_sendmail=""
4511 *) cat >>confdefs.h <<EOF
4512 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4521 # Check whether --with-sudoers-mode was given.
4522 if test "${with_sudoers_mode+set}" = set; then :
4523 withval=$with_sudoers_mode; case $with_sudoers_mode in
4524 yes) as_fn_error "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4526 no) as_fn_error "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4528 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4530 0*) SUDOERS_MODE=$with_sudoers_mode
4532 *) as_fn_error "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4539 # Check whether --with-sudoers-uid was given.
4540 if test "${with_sudoers_uid+set}" = set; then :
4541 withval=$with_sudoers_uid; case $with_sudoers_uid in
4542 yes) as_fn_error "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4544 no) as_fn_error "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4546 [0-9]*) SUDOERS_UID=$with_sudoers_uid
4548 *) as_fn_error "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4555 # Check whether --with-sudoers-gid was given.
4556 if test "${with_sudoers_gid+set}" = set; then :
4557 withval=$with_sudoers_gid; case $with_sudoers_gid in
4558 yes) as_fn_error "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4560 no) as_fn_error "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4562 [0-9]*) SUDOERS_GID=$with_sudoers_gid
4564 *) as_fn_error "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4571 $as_echo_n "checking for umask programs should be run with... " >&6; }
4573 # Check whether --with-umask was given.
4574 if test "${with_umask+set}" = set; then :
4575 withval=$with_umask; case $with_umask in
4576 yes) as_fn_error "\"must give --with-umask an argument.\"" "$LINENO" 5
4580 [0-9]*) sudo_umask=$with_umask
4582 *) as_fn_error "\"you must enter a numeric mask.\"" "$LINENO" 5
4588 cat >>confdefs.h <<_ACEOF
4589 #define SUDO_UMASK $sudo_umask
4592 if test "$sudo_umask" = "0777"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4594 $as_echo "user" >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4597 $as_echo "$sudo_umask" >&6; }
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4601 $as_echo_n "checking for default user to run commands as... " >&6; }
4603 # Check whether --with-runas-default was given.
4604 if test "${with_runas_default+set}" = set; then :
4605 withval=$with_runas_default; case $with_runas_default in
4606 yes) as_fn_error "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4608 no) as_fn_error "\"--without-runas-default not supported.\"" "$LINENO" 5
4610 *) runas_default="$with_runas_default"
4616 cat >>confdefs.h <<_ACEOF
4617 #define RUNAS_DEFAULT "$runas_default"
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4621 $as_echo "$runas_default" >&6; }
4624 # Check whether --with-exempt was given.
4625 if test "${with_exempt+set}" = set; then :
4626 withval=$with_exempt; case $with_exempt in
4627 yes) as_fn_error "\"must give --with-exempt an argument.\"" "$LINENO" 5
4629 no) as_fn_error "\"--without-exempt not supported.\"" "$LINENO" 5
4632 cat >>confdefs.h <<_ACEOF
4633 #define EXEMPTGROUP "$with_exempt"
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4637 $as_echo_n "checking for group to be exempt from password... " >&6; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4639 $as_echo "$with_exempt" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4646 $as_echo_n "checking for editor that visudo should use... " >&6; }
4648 # Check whether --with-editor was given.
4649 if test "${with_editor+set}" = set; then :
4650 withval=$with_editor; case $with_editor in
4651 yes) as_fn_error "\"must give --with-editor an argument.\"" "$LINENO" 5
4653 no) as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4656 cat >>confdefs.h <<_ACEOF
4657 #define EDITOR "$with_editor"
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4661 $as_echo "$with_editor" >&6; }
4662 editor="$with_editor"
4666 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4668 $as_echo "vi" >&6; }
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4673 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4675 # Check whether --with-env-editor was given.
4676 if test "${with_env_editor+set}" = set; then :
4677 withval=$with_env_editor; case $with_env_editor in
4682 *) as_fn_error "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4687 if test "$env_editor" = "on"; then
4688 $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4691 $as_echo "yes" >&6; }
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4698 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4700 # Check whether --with-passwd-tries was given.
4701 if test "${with_passwd_tries+set}" = set; then :
4702 withval=$with_passwd_tries; case $with_passwd_tries in
4704 no) as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4706 [1-9]*) passwd_tries=$with_passwd_tries
4708 *) as_fn_error "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4714 cat >>confdefs.h <<_ACEOF
4715 #define TRIES_FOR_PASSWORD $passwd_tries
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4719 $as_echo "$passwd_tries" >&6; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4722 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4724 # Check whether --with-timeout was given.
4725 if test "${with_timeout+set}" = set; then :
4726 withval=$with_timeout; case $with_timeout in
4730 [0-9]*) timeout=$with_timeout
4732 *) as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4738 cat >>confdefs.h <<_ACEOF
4739 #define TIMEOUT $timeout
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4743 $as_echo "$timeout" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4746 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4748 # Check whether --with-password-timeout was given.
4749 if test "${with_password_timeout+set}" = set; then :
4750 withval=$with_password_timeout; case $with_password_timeout in
4752 no) password_timeout=0
4754 [0-9]*) password_timeout=$with_password_timeout
4756 *) as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4762 cat >>confdefs.h <<_ACEOF
4763 #define PASSWORD_TIMEOUT $password_timeout
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4767 $as_echo "$password_timeout" >&6; }
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4770 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4772 # Check whether --with-tty-tickets was given.
4773 if test "${with_tty_tickets+set}" = set; then :
4774 withval=$with_tty_tickets; case $with_tty_tickets in
4779 *) as_fn_error "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4784 if test "$tty_tickets" = "off"; then
4785 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4791 $as_echo "yes" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4795 $as_echo_n "checking whether to include insults... " >&6; }
4797 # Check whether --with-insults was given.
4798 if test "${with_insults+set}" = set; then :
4799 withval=$with_insults; case $with_insults in
4801 with_classic_insults=yes
4802 with_csops_insults=yes
4804 disabled) insults=off
4805 with_classic_insults=yes
4806 with_csops_insults=yes
4810 *) as_fn_error "\"--with-insults does not take an argument.\"" "$LINENO" 5
4815 if test "$insults" = "on"; then
4816 $as_echo "#define USE_INSULTS 1" >>confdefs.h
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4819 $as_echo "yes" >&6; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4826 # Check whether --with-all-insults was given.
4827 if test "${with_all_insults+set}" = set; then :
4828 withval=$with_all_insults; case $with_all_insults in
4829 yes) with_classic_insults=yes
4830 with_csops_insults=yes
4831 with_hal_insults=yes
4832 with_goons_insults=yes
4835 *) as_fn_error "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
4842 # Check whether --with-classic-insults was given.
4843 if test "${with_classic_insults+set}" = set; then :
4844 withval=$with_classic_insults; case $with_classic_insults in
4845 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
4849 *) as_fn_error "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
4856 # Check whether --with-csops-insults was given.
4857 if test "${with_csops_insults+set}" = set; then :
4858 withval=$with_csops_insults; case $with_csops_insults in
4859 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
4863 *) as_fn_error "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
4870 # Check whether --with-hal-insults was given.
4871 if test "${with_hal_insults+set}" = set; then :
4872 withval=$with_hal_insults; case $with_hal_insults in
4873 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
4877 *) as_fn_error "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
4884 # Check whether --with-goons-insults was given.
4885 if test "${with_goons_insults+set}" = set; then :
4886 withval=$with_goons_insults; case $with_goons_insults in
4887 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
4891 *) as_fn_error "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
4898 # Check whether --with-nsswitch was given.
4899 if test "${with_nsswitch+set}" = set; then :
4900 withval=$with_nsswitch; case $with_nsswitch in
4902 yes) with_nsswitch="/etc/nsswitch.conf"
4910 # Check whether --with-ldap was given.
4911 if test "${with_ldap+set}" = set; then :
4912 withval=$with_ldap; case $with_ldap in
4914 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
4917 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4926 # Check whether --with-ldap-conf-file was given.
4927 if test "${with_ldap_conf_file+set}" = set; then :
4928 withval=$with_ldap_conf_file;
4931 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
4932 cat >>confdefs.h <<EOF
4933 #define _PATH_LDAP_CONF "$ldap_conf"
4938 # Check whether --with-ldap-secret-file was given.
4939 if test "${with_ldap_secret_file+set}" = set; then :
4940 withval=$with_ldap_secret_file;
4943 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
4944 cat >>confdefs.h <<EOF
4945 #define _PATH_LDAP_SECRET "$ldap_secret"
4950 # Check whether --with-pc-insults was given.
4951 if test "${with_pc_insults+set}" = set; then :
4952 withval=$with_pc_insults; case $with_pc_insults in
4953 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
4957 *) as_fn_error "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
4963 if test "$insults" = "on"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
4965 $as_echo_n "checking which insult sets to include... " >&6; }
4967 test "$with_goons_insults" = "yes" && i="goons ${i}"
4968 test "$with_hal_insults" = "yes" && i="hal ${i}"
4969 test "$with_csops_insults" = "yes" && i="csops ${i}"
4970 test "$with_classic_insults" = "yes" && i="classic ${i}"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
4972 $as_echo "$i" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
4976 $as_echo_n "checking whether to override the user's path... " >&6; }
4978 # Check whether --with-secure-path was given.
4979 if test "${with_secure_path+set}" = set; then :
4980 withval=$with_secure_path; case $with_secure_path in
4981 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
4982 cat >>confdefs.h <<_ACEOF
4983 #define SECURE_PATH "$with_secure_path"
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
4987 $as_echo "$with_secure_path" >&6; }
4988 secure_path="set to $with_secure_path"
4990 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4993 *) cat >>confdefs.h <<_ACEOF
4994 #define SECURE_PATH "$with_secure_path"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
4998 $as_echo "$with_secure_path" >&6; }
4999 secure_path="set to F<$with_secure_path>"
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5009 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5011 # Check whether --with-interfaces was given.
5012 if test "${with_interfaces+set}" = set; then :
5013 withval=$with_interfaces; case $with_interfaces in
5014 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5015 $as_echo "yes" >&6; }
5017 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5022 *) as_fn_error "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5027 $as_echo "yes" >&6; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5032 $as_echo_n "checking whether stow should be used... " >&6; }
5034 # Check whether --with-stow was given.
5035 if test "${with_stow+set}" = set; then :
5036 withval=$with_stow; case $with_stow in
5037 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5038 $as_echo "yes" >&6; }
5039 $as_echo "#define USE_STOW 1" >>confdefs.h
5042 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5045 *) as_fn_error "\"--with-stow does not take an argument.\"" "$LINENO" 5
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5055 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5057 # Check whether --with-askpass was given.
5058 if test "${with_askpass+set}" = set; then :
5059 withval=$with_askpass; case $with_askpass in
5060 yes) as_fn_error "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5063 *) cat >>confdefs.h <<EOF
5064 #define _PATH_SUDO_ASKPASS "$with_askpass"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5076 # Check whether --with-libvas was given.
5077 if test "${with_libvas+set}" = set; then :
5078 withval=$with_libvas; case $with_libvas in
5079 yes) with_libvas=libvas.so
5083 cat >>confdefs.h <<_ACEOF
5084 #define LIBVAS_SO "$with_libvas"
5089 if test X"$with_libvas" != X"no"; then
5091 cat >>confdefs.h <<_ACEOF
5092 #define LIBVAS_SO "$with_libvas"
5095 $as_echo "#define USING_NONUNIX_GROUPS 1" >>confdefs.h
5097 COMMON_OBJS="$COMMON_OBJS vasgroups.o"
5099 # Check whether --with-libvas-rpath was given.
5100 if test "${with_libvas_rpath+set}" = set; then :
5101 withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
5103 LIBVAS_RPATH=/opt/quest/lib
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
5107 $as_echo_n "checking for main in -ldl... " >&6; }
5108 if test "${ac_cv_lib_dl_main+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5111 ac_check_lib_save_LIBS=$LIBS
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5125 if ac_fn_c_try_link "$LINENO"; then :
5126 ac_cv_lib_dl_main=yes
5128 ac_cv_lib_dl_main=no
5130 rm -f core conftest.err conftest.$ac_objext \
5131 conftest$ac_exeext conftest.$ac_ext
5132 LIBS=$ac_check_lib_save_LIBS
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
5135 $as_echo "$ac_cv_lib_dl_main" >&6; }
5136 if test "x$ac_cv_lib_dl_main" = x""yes; then :
5137 cat >>confdefs.h <<_ACEOF
5138 #define HAVE_LIBDL 1
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5152 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5153 # Check whether --enable-authentication was given.
5154 if test "${enable_authentication+set}" = set; then :
5155 enableval=$enable_authentication; case "$enableval" in
5156 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5157 $as_echo "yes" >&6; }
5159 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5164 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5167 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5173 $as_echo "yes" >&6; }
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5178 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5179 # Check whether --enable-root-mailer was given.
5180 if test "${enable_root_mailer+set}" = set; then :
5181 enableval=$enable_root_mailer; case "$enableval" in
5182 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5185 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5186 $as_echo "yes" >&6; }
5187 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5190 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5193 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 # Check whether --enable-setreuid was given.
5204 if test "${enable_setreuid+set}" = set; then :
5205 enableval=$enable_setreuid; case "$enableval" in
5206 no) SKIP_SETREUID=yes
5214 # Check whether --enable-setresuid was given.
5215 if test "${enable_setresuid+set}" = set; then :
5216 enableval=$enable_setresuid; case "$enableval" in
5217 no) SKIP_SETRESUID=yes
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5226 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5227 # Check whether --enable-shadow was given.
5228 if test "${enable_shadow+set}" = set; then :
5229 enableval=$enable_shadow; case "$enableval" in
5230 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5233 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5234 $as_echo "yes" >&6; }
5237 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5240 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5251 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5252 # Check whether --enable-root-sudo was given.
5253 if test "${enable_root_sudo+set}" = set; then :
5254 enableval=$enable_root_sudo; case "$enableval" in
5255 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256 $as_echo "yes" >&6; }
5258 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5264 *) as_fn_error "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270 $as_echo "yes" >&6; }
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5275 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5276 # Check whether --enable-log-host was given.
5277 if test "${enable_log_host+set}" = set; then :
5278 enableval=$enable_log_host; case "$enableval" in
5279 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5280 $as_echo "yes" >&6; }
5281 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5284 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5287 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5290 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5301 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5302 # Check whether --enable-noargs-shell was given.
5303 if test "${enable_noargs_shell+set}" = set; then :
5304 enableval=$enable_noargs_shell; case "$enableval" in
5305 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5307 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5310 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5313 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5316 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5327 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5328 # Check whether --enable-shell-sets-home was given.
5329 if test "${enable_shell_sets_home+set}" = set; then :
5330 enableval=$enable_shell_sets_home; case "$enableval" in
5331 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5332 $as_echo "yes" >&6; }
5333 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5336 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5339 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5342 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5353 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5354 # Check whether --enable-path_info was given.
5355 if test "${enable_path_info+set}" = set; then :
5356 enableval=$enable_path_info; case "$enableval" in
5357 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5360 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5361 $as_echo "yes" >&6; }
5362 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5366 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5369 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5380 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5381 # Check whether --enable-env_debug was given.
5382 if test "${enable_env_debug+set}" = set; then :
5383 enableval=$enable_env_debug; case "$enableval" in
5384 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5385 $as_echo "yes" >&6; }
5386 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5389 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5392 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5395 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5405 # Check whether --enable-warnings was given.
5406 if test "${enable_warnings+set}" = set; then :
5407 enableval=$enable_warnings; case "$enableval" in
5408 yes) if test X"$with_devel" != X"yes" -a -n "$GCC"; then
5409 CFLAGS="${CFLAGS} -Wall"
5413 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5414 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5421 # Check whether --enable-admin-flag was given.
5422 if test "${enable_admin_flag+set}" = set; then :
5423 enableval=$enable_admin_flag; case "$enableval" in
5424 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5428 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5429 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5437 # Check whether --with-selinux was given.
5438 if test "${with_selinux+set}" = set; then :
5439 withval=$with_selinux; case $with_selinux in
5440 yes) SELINUX_USAGE="[-r role] [-t type] "
5441 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5443 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5444 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5445 PROGS="${PROGS} sesh"
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5448 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5449 if test "${ac_cv_lib_selinux_setkeycreatecon+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5452 ac_check_lib_save_LIBS=$LIBS
5453 LIBS="-lselinux $LIBS"
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5457 /* Override any GCC internal prototype to avoid an error.
5458 Use char because int might match the return type of a GCC
5459 builtin and then its argument prototype would still apply. */
5463 char setkeycreatecon ();
5467 return setkeycreatecon ();
5472 if ac_fn_c_try_link "$LINENO"; then :
5473 ac_cv_lib_selinux_setkeycreatecon=yes
5475 ac_cv_lib_selinux_setkeycreatecon=no
5477 rm -f core conftest.err conftest.$ac_objext \
5478 conftest$ac_exeext conftest.$ac_ext
5479 LIBS=$ac_check_lib_save_LIBS
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5482 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5483 if test "x$ac_cv_lib_selinux_setkeycreatecon" = x""yes; then :
5484 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5490 *) as_fn_error "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5496 # Check whether --enable-gss_krb5_ccache_name was given.
5497 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5498 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5500 check_gss_krb5_ccache_name=no
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5505 $as_echo_n "checking for library containing strerror... " >&6; }
5506 if test "${ac_cv_search_strerror+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
5509 ac_func_search_save_LIBS=$LIBS
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5513 /* Override any GCC internal prototype to avoid an error.
5514 Use char because int might match the return type of a GCC
5515 builtin and then its argument prototype would still apply. */
5528 for ac_lib in '' cposix; do
5529 if test -z "$ac_lib"; then
5530 ac_res="none required"
5533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5535 if ac_fn_c_try_link "$LINENO"; then :
5536 ac_cv_search_strerror=$ac_res
5538 rm -f core conftest.err conftest.$ac_objext \
5540 if test "${ac_cv_search_strerror+set}" = set; then :
5544 if test "${ac_cv_search_strerror+set}" = set; then :
5547 ac_cv_search_strerror=no
5550 LIBS=$ac_func_search_save_LIBS
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5553 $as_echo "$ac_cv_search_strerror" >&6; }
5554 ac_res=$ac_cv_search_strerror
5555 if test "$ac_res" != no; then :
5556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5561 ac_cpp='$CPP $CPPFLAGS'
5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5566 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5567 # On Suns, sometimes $CPP names a directory.
5568 if test -n "$CPP" && test -d "$CPP"; then
5571 if test -z "$CPP"; then
5572 if test "${ac_cv_prog_CPP+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5575 # Double quotes because CPP needs to be expanded
5576 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5579 for ac_c_preproc_warn_flag in '' yes
5581 # Use a header file that comes with gcc, so configuring glibc
5582 # with a fresh cross-compiler works.
5583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584 # <limits.h> exists even on freestanding compilers.
5585 # On the NeXT, cc -E runs the code through the compiler's parser,
5586 # not just through cpp. "Syntax error" is here to catch this case.
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5590 # include <limits.h>
5592 # include <assert.h>
5596 if ac_fn_c_try_cpp "$LINENO"; then :
5599 # Broken: fails on valid input.
5602 rm -f conftest.err conftest.$ac_ext
5604 # OK, works on sane cases. Now check whether nonexistent headers
5605 # can be detected and how.
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #include <ac_nonexistent.h>
5610 if ac_fn_c_try_cpp "$LINENO"; then :
5611 # Broken: success on invalid input.
5614 # Passes both tests.
5618 rm -f conftest.err conftest.$ac_ext
5621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5622 rm -f conftest.err conftest.$ac_ext
5623 if $ac_preproc_ok; then :
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5636 $as_echo "$CPP" >&6; }
5638 for ac_c_preproc_warn_flag in '' yes
5640 # Use a header file that comes with gcc, so configuring glibc
5641 # with a fresh cross-compiler works.
5642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5643 # <limits.h> exists even on freestanding compilers.
5644 # On the NeXT, cc -E runs the code through the compiler's parser,
5645 # not just through cpp. "Syntax error" is here to catch this case.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5649 # include <limits.h>
5651 # include <assert.h>
5655 if ac_fn_c_try_cpp "$LINENO"; then :
5658 # Broken: fails on valid input.
5661 rm -f conftest.err conftest.$ac_ext
5663 # OK, works on sane cases. Now check whether nonexistent headers
5664 # can be detected and how.
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <ac_nonexistent.h>
5669 if ac_fn_c_try_cpp "$LINENO"; then :
5670 # Broken: success on invalid input.
5673 # Passes both tests.
5677 rm -f conftest.err conftest.$ac_ext
5680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5681 rm -f conftest.err conftest.$ac_ext
5682 if $ac_preproc_ok; then :
5685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5687 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5688 See \`config.log' for more details." "$LINENO" 5; }
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697 if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}ar; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if test "${ac_cv_prog_AR+set}" = set; then :
5703 $as_echo_n "(cached) " >&6
5705 if test -n "$AR"; then
5706 ac_cv_prog_AR="$AR" # Let the user override the test.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_prog_AR="${ac_tool_prefix}ar"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 if test -n "$AR"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5728 $as_echo "$AR" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5736 if test -z "$ac_cv_prog_AR"; then
5738 # Extract the first word of "ar", so it can be a program name with args.
5739 set dummy ar; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5745 if test -n "$ac_ct_AR"; then
5746 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_prog_ac_ct_AR="ar"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5766 if test -n "$ac_ct_AR"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5768 $as_echo "$ac_ct_AR" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5774 if test "x$ac_ct_AR" = x; then
5777 case $cross_compiling:$ac_tool_warned in
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5781 ac_tool_warned=yes ;;
5789 if test -n "$ac_tool_prefix"; then
5790 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5791 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5797 if test -n "$RANLIB"; then
5798 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 RANLIB=$ac_cv_prog_RANLIB
5818 if test -n "$RANLIB"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5820 $as_echo "$RANLIB" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5828 if test -z "$ac_cv_prog_RANLIB"; then
5829 ac_ct_RANLIB=$RANLIB
5830 # Extract the first word of "ranlib", so it can be a program name with args.
5831 set dummy ranlib; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5835 $as_echo_n "(cached) " >&6
5837 if test -n "$ac_ct_RANLIB"; then
5838 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_prog_ac_ct_RANLIB="ranlib"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5858 if test -n "$ac_ct_RANLIB"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5860 $as_echo "$ac_ct_RANLIB" >&6; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5866 if test "x$ac_ct_RANLIB" = x; then
5869 case $cross_compiling:$ac_tool_warned in
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5873 ac_tool_warned=yes ;;
5875 RANLIB=$ac_ct_RANLIB
5878 RANLIB="$ac_cv_prog_RANLIB"
5883 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5884 for ac_t in install-sh install.sh shtool; do
5885 if test -f "$ac_dir/$ac_t"; then
5887 ac_install_sh="$ac_aux_dir/$ac_t -c"
5892 if test -z "$ac_aux_dir"; then
5893 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5896 # These three variables are undocumented and unsupported,
5897 # and are intended to be withdrawn in a future Autoconf release.
5898 # They can cause serious problems if a builder's source tree is in a directory
5899 # whose full name contains unusual characters.
5900 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5901 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5902 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5905 # Make sure we can run config.sub.
5906 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5907 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5910 $as_echo_n "checking build system type... " >&6; }
5911 if test "${ac_cv_build+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5914 ac_build_alias=$build_alias
5915 test "x$ac_build_alias" = x &&
5916 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5917 test "x$ac_build_alias" = x &&
5918 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5919 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5920 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5924 $as_echo "$ac_cv_build" >&6; }
5925 case $ac_cv_build in
5927 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5930 ac_save_IFS=$IFS; IFS='-'
5936 # Remember, the first character of IFS is used to create $*,
5937 # except with old shells:
5940 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5944 $as_echo_n "checking host system type... " >&6; }
5945 if test "${ac_cv_host+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5948 if test "x$host_alias" = x; then
5949 ac_cv_host=$ac_cv_build
5951 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5952 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5957 $as_echo "$ac_cv_host" >&6; }
5960 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5963 ac_save_IFS=$IFS; IFS='-'
5969 # Remember, the first character of IFS is used to create $*,
5970 # except with old shells:
5973 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5981 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5986 macro_version='2.2.6b'
5987 macro_revision='1.3017'
6001 ltmain="$ac_aux_dir/ltmain.sh"
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6004 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6005 if test "${ac_cv_path_SED+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6008 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6009 for ac_i in 1 2 3 4 5 6 7; do
6010 ac_script="$ac_script$as_nl$ac_script"
6012 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6013 { ac_script=; unset ac_script;}
6014 if test -z "$SED"; then
6015 ac_path_SED_found=false
6016 # Loop through the user's path and test for each of PROGNAME-LIST
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_prog in sed gsed; do
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6025 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6026 # Check for GNU ac_path_SED and select it if it is found.
6027 # Check for GNU $ac_path_SED
6028 case `"$ac_path_SED" --version 2>&1` in
6030 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6033 $as_echo_n 0123456789 >"conftest.in"
6036 cat "conftest.in" "conftest.in" >"conftest.tmp"
6037 mv "conftest.tmp" "conftest.in"
6038 cp "conftest.in" "conftest.nl"
6039 $as_echo '' >> "conftest.nl"
6040 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6042 as_fn_arith $ac_count + 1 && ac_count=$as_val
6043 if test $ac_count -gt ${ac_path_SED_max-0}; then
6044 # Best one so far, save it but keep looking for a better one
6045 ac_cv_path_SED="$ac_path_SED"
6046 ac_path_SED_max=$ac_count
6048 # 10*(2^10) chars as input seems more than enough
6049 test $ac_count -gt 10 && break
6051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6054 $ac_path_SED_found && break 3
6059 if test -z "$ac_cv_path_SED"; then
6060 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6068 $as_echo "$ac_cv_path_SED" >&6; }
6069 SED="$ac_cv_path_SED"
6072 test -z "$SED" && SED=sed
6073 Xsed="$SED -e 1s/^X//"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6086 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6087 if test "${ac_cv_path_GREP+set}" = set; then :
6088 $as_echo_n "(cached) " >&6
6090 if test -z "$GREP"; then
6091 ac_path_GREP_found=false
6092 # Loop through the user's path and test for each of PROGNAME-LIST
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6097 test -z "$as_dir" && as_dir=.
6098 for ac_prog in grep ggrep; do
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6101 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6102 # Check for GNU ac_path_GREP and select it if it is found.
6103 # Check for GNU $ac_path_GREP
6104 case `"$ac_path_GREP" --version 2>&1` in
6106 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6109 $as_echo_n 0123456789 >"conftest.in"
6112 cat "conftest.in" "conftest.in" >"conftest.tmp"
6113 mv "conftest.tmp" "conftest.in"
6114 cp "conftest.in" "conftest.nl"
6115 $as_echo 'GREP' >> "conftest.nl"
6116 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6118 as_fn_arith $ac_count + 1 && ac_count=$as_val
6119 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6120 # Best one so far, save it but keep looking for a better one
6121 ac_cv_path_GREP="$ac_path_GREP"
6122 ac_path_GREP_max=$ac_count
6124 # 10*(2^10) chars as input seems more than enough
6125 test $ac_count -gt 10 && break
6127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6130 $ac_path_GREP_found && break 3
6135 if test -z "$ac_cv_path_GREP"; then
6136 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6139 ac_cv_path_GREP=$GREP
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6144 $as_echo "$ac_cv_path_GREP" >&6; }
6145 GREP="$ac_cv_path_GREP"
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6149 $as_echo_n "checking for egrep... " >&6; }
6150 if test "${ac_cv_path_EGREP+set}" = set; then :
6151 $as_echo_n "(cached) " >&6
6153 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6154 then ac_cv_path_EGREP="$GREP -E"
6156 if test -z "$EGREP"; then
6157 ac_path_EGREP_found=false
6158 # Loop through the user's path and test for each of PROGNAME-LIST
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6163 test -z "$as_dir" && as_dir=.
6164 for ac_prog in egrep; do
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6167 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6168 # Check for GNU ac_path_EGREP and select it if it is found.
6169 # Check for GNU $ac_path_EGREP
6170 case `"$ac_path_EGREP" --version 2>&1` in
6172 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6175 $as_echo_n 0123456789 >"conftest.in"
6178 cat "conftest.in" "conftest.in" >"conftest.tmp"
6179 mv "conftest.tmp" "conftest.in"
6180 cp "conftest.in" "conftest.nl"
6181 $as_echo 'EGREP' >> "conftest.nl"
6182 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6184 as_fn_arith $ac_count + 1 && ac_count=$as_val
6185 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6186 # Best one so far, save it but keep looking for a better one
6187 ac_cv_path_EGREP="$ac_path_EGREP"
6188 ac_path_EGREP_max=$ac_count
6190 # 10*(2^10) chars as input seems more than enough
6191 test $ac_count -gt 10 && break
6193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6196 $ac_path_EGREP_found && break 3
6201 if test -z "$ac_cv_path_EGREP"; then
6202 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6205 ac_cv_path_EGREP=$EGREP
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6211 $as_echo "$ac_cv_path_EGREP" >&6; }
6212 EGREP="$ac_cv_path_EGREP"
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6216 $as_echo_n "checking for fgrep... " >&6; }
6217 if test "${ac_cv_path_FGREP+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6220 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6221 then ac_cv_path_FGREP="$GREP -F"
6223 if test -z "$FGREP"; then
6224 ac_path_FGREP_found=false
6225 # Loop through the user's path and test for each of PROGNAME-LIST
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6230 test -z "$as_dir" && as_dir=.
6231 for ac_prog in fgrep; do
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6234 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6235 # Check for GNU ac_path_FGREP and select it if it is found.
6236 # Check for GNU $ac_path_FGREP
6237 case `"$ac_path_FGREP" --version 2>&1` in
6239 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6242 $as_echo_n 0123456789 >"conftest.in"
6245 cat "conftest.in" "conftest.in" >"conftest.tmp"
6246 mv "conftest.tmp" "conftest.in"
6247 cp "conftest.in" "conftest.nl"
6248 $as_echo 'FGREP' >> "conftest.nl"
6249 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6251 as_fn_arith $ac_count + 1 && ac_count=$as_val
6252 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6253 # Best one so far, save it but keep looking for a better one
6254 ac_cv_path_FGREP="$ac_path_FGREP"
6255 ac_path_FGREP_max=$ac_count
6257 # 10*(2^10) chars as input seems more than enough
6258 test $ac_count -gt 10 && break
6260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6263 $ac_path_FGREP_found && break 3
6268 if test -z "$ac_cv_path_FGREP"; then
6269 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6272 ac_cv_path_FGREP=$FGREP
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6278 $as_echo "$ac_cv_path_FGREP" >&6; }
6279 FGREP="$ac_cv_path_FGREP"
6282 test -z "$GREP" && GREP=grep
6302 # Check whether --with-gnu-ld was given.
6303 if test "${with_gnu_ld+set}" = set; then :
6304 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6310 if test "$GCC" = yes; then
6311 # Check if gcc -print-prog-name=ld gives a path.
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6313 $as_echo_n "checking for ld used by $CC... " >&6; }
6316 # gcc leaves a trailing carriage return which upsets mingw
6317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6322 # Accept absolute paths.
6324 re_direlt='/[^/][^/]*/\.\./'
6325 # Canonicalize the pathname of ld
6326 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6327 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6328 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6330 test -z "$LD" && LD="$ac_prog"
6333 # If it fails, then pretend we aren't using GCC.
6337 # If it is relative, then search for the first ld in PATH.
6341 elif test "$with_gnu_ld" = yes; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6343 $as_echo_n "checking for GNU ld... " >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6346 $as_echo_n "checking for non-GNU ld... " >&6; }
6348 if test "${lt_cv_path_LD+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6351 if test -z "$LD"; then
6352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6353 for ac_dir in $PATH; do
6355 test -z "$ac_dir" && ac_dir=.
6356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6357 lt_cv_path_LD="$ac_dir/$ac_prog"
6358 # Check to see if the program is GNU ld. I'd rather use --version,
6359 # but apparently some variants of GNU ld only accept -v.
6360 # Break only if it was the GNU/non-GNU ld that we prefer.
6361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6362 *GNU* | *'with BFD'*)
6363 test "$with_gnu_ld" != no && break
6366 test "$with_gnu_ld" != yes && break
6373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6378 if test -n "$LD"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6380 $as_echo "$LD" >&6; }
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6385 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6387 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6388 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6391 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6392 case `$LD -v 2>&1 </dev/null` in
6393 *GNU* | *'with BFD'*)
6394 lt_cv_prog_gnu_ld=yes
6397 lt_cv_prog_gnu_ld=no
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6402 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6403 with_gnu_ld=$lt_cv_prog_gnu_ld
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6414 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6415 if test "${lt_cv_path_NM+set}" = set; then :
6416 $as_echo_n "(cached) " >&6
6418 if test -n "$NM"; then
6419 # Let the user override the test.
6422 lt_nm_to_check="${ac_tool_prefix}nm"
6423 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6424 lt_nm_to_check="$lt_nm_to_check nm"
6426 for lt_tmp_nm in $lt_nm_to_check; do
6427 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6428 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6430 test -z "$ac_dir" && ac_dir=.
6431 tmp_nm="$ac_dir/$lt_tmp_nm"
6432 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6433 # Check to see if the nm accepts a BSD-compat flag.
6434 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6435 # nm: unknown option "B" ignored
6436 # Tru64's nm complains that /dev/null is an invalid object file
6437 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6438 */dev/null* | *'Invalid file or object type'*)
6439 lt_cv_path_NM="$tmp_nm -B"
6443 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6445 lt_cv_path_NM="$tmp_nm -p"
6449 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6450 continue # so that we can try to find one that supports BSD flags
6459 : ${lt_cv_path_NM=no}
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6463 $as_echo "$lt_cv_path_NM" >&6; }
6464 if test "$lt_cv_path_NM" != "no"; then
6467 # Didn't find any BSD compatible name lister, look for dumpbin.
6468 if test -n "$ac_tool_prefix"; then
6469 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6478 if test -n "$DUMPBIN"; then
6479 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 DUMPBIN=$ac_cv_prog_DUMPBIN
6499 if test -n "$DUMPBIN"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6501 $as_echo "$DUMPBIN" >&6; }
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6508 test -n "$DUMPBIN" && break
6511 if test -z "$DUMPBIN"; then
6512 ac_ct_DUMPBIN=$DUMPBIN
6513 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6515 # Extract the first word of "$ac_prog", so it can be a program name with args.
6516 set dummy $ac_prog; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6522 if test -n "$ac_ct_DUMPBIN"; then
6523 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6543 if test -n "$ac_ct_DUMPBIN"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6545 $as_echo "$ac_ct_DUMPBIN" >&6; }
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6552 test -n "$ac_ct_DUMPBIN" && break
6555 if test "x$ac_ct_DUMPBIN" = x; then
6558 case $cross_compiling:$ac_tool_warned in
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6564 DUMPBIN=$ac_ct_DUMPBIN
6569 if test "$DUMPBIN" != ":"; then
6573 test -z "$NM" && NM=nm
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6581 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6582 if test "${lt_cv_nm_interface+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
6585 lt_cv_nm_interface="BSD nm"
6586 echo "int some_variable = 0;" > conftest.$ac_ext
6587 (eval echo "\"\$as_me:6587: $ac_compile\"" >&5)
6588 (eval "$ac_compile" 2>conftest.err)
6589 cat conftest.err >&5
6590 (eval echo "\"\$as_me:6590: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6591 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6592 cat conftest.err >&5
6593 (eval echo "\"\$as_me:6593: output\"" >&5)
6594 cat conftest.out >&5
6595 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6596 lt_cv_nm_interface="MS dumpbin"
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6601 $as_echo "$lt_cv_nm_interface" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6604 $as_echo_n "checking whether ln -s works... " >&6; }
6606 if test "$LN_S" = "ln -s"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6608 $as_echo "yes" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6611 $as_echo "no, using $LN_S" >&6; }
6614 # find the maximum length of command line arguments
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6616 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6617 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6625 # On DJGPP, this test can blow up pretty badly due to problems in libc
6626 # (any single argument exceeding 2000 bytes causes a buffer overrun
6627 # during glob expansion). Even if it were fixed, the result of this
6628 # check would be larger than it should be.
6629 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6633 # Under GNU Hurd, this test is not required because there is
6634 # no limit to the length of command line arguments.
6635 # Libtool will interpret -1 as no limit whatsoever
6636 lt_cv_sys_max_cmd_len=-1;
6639 cygwin* | mingw* | cegcc*)
6640 # On Win9x/ME, this test blows up -- it succeeds, but takes
6641 # about 5 minutes as the teststring grows exponentially.
6642 # Worse, since 9x/ME are not pre-emptively multitasking,
6643 # you end up with a "frozen" computer, even though with patience
6644 # the test eventually succeeds (with a max line length of 256k).
6645 # Instead, let's just punt: use the minimum linelength reported by
6646 # all of the supported platforms: 8192 (on NT/2K/XP).
6647 lt_cv_sys_max_cmd_len=8192;
6651 # On AmigaOS with pdksh, this test takes hours, literally.
6652 # So we just punt and use a minimum line length of 8192.
6653 lt_cv_sys_max_cmd_len=8192;
6656 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6657 # This has been around since 386BSD, at least. Likely further.
6658 if test -x /sbin/sysctl; then
6659 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6660 elif test -x /usr/sbin/sysctl; then
6661 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6663 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6665 # And add a safety zone
6666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6671 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6672 lt_cv_sys_max_cmd_len=196608
6676 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6677 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6678 # nice to cause kernel panics so lets avoid the loop below.
6679 # First set a reasonable default.
6680 lt_cv_sys_max_cmd_len=16384
6682 if test -x /sbin/sysconfig; then
6683 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6684 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6689 lt_cv_sys_max_cmd_len=102400
6691 sysv5* | sco5v6* | sysv4.2uw2*)
6692 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6693 if test -n "$kargmax"; then
6694 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6696 lt_cv_sys_max_cmd_len=32768
6700 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6701 if test -n "$lt_cv_sys_max_cmd_len"; then
6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6705 # Make teststring a little bigger before we do anything with it.
6706 # a 1K string should be a reasonable start.
6707 for i in 1 2 3 4 5 6 7 8 ; do
6708 teststring=$teststring$teststring
6710 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6711 # If test is not a shell built-in, we'll probably end up computing a
6712 # maximum length that is only half of the actual maximum length, but
6714 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6715 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6716 test $i != 17 # 1/2 MB should be enough
6719 teststring=$teststring$teststring
6721 # Only check the string length outside the loop.
6722 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6724 # Add a significant safety factor because C++ compilers can tack on
6725 # massive amounts of additional arguments before passing them to the
6726 # linker. It appears as though 1/2 is a usable value.
6727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6734 if test -n $lt_cv_sys_max_cmd_len ; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6736 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6739 $as_echo "none" >&6; }
6741 max_cmd_len=$lt_cv_sys_max_cmd_len
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6753 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6754 # Try some XSI features
6757 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6759 && eval 'test $(( 1 + 1 )) -eq 2 \
6760 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6763 $as_echo "$xsi_shell" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6767 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6769 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6771 && lt_shell_append=yes
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6773 $as_echo "$lt_shell_append" >&6; }
6776 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6786 # test EBCDIC or ASCII
6787 case `echo X|tr X '\101'` in
6788 A) # ASCII based system
6789 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6790 lt_SP2NL='tr \040 \012'
6791 lt_NL2SP='tr \015\012 \040\040'
6793 *) # EBCDIC based system
6794 lt_SP2NL='tr \100 \n'
6795 lt_NL2SP='tr \r\n \100\100'
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6808 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6809 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6812 lt_cv_ld_reload_flag='-r'
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6815 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6816 reload_flag=$lt_cv_ld_reload_flag
6817 case $reload_flag in
6819 *) reload_flag=" $reload_flag" ;;
6821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6824 if test "$GCC" = yes; then
6825 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6827 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6840 if test -n "$ac_tool_prefix"; then
6841 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6842 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6848 if test -n "$OBJDUMP"; then
6849 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 OBJDUMP=$ac_cv_prog_OBJDUMP
6869 if test -n "$OBJDUMP"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6871 $as_echo "$OBJDUMP" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6879 if test -z "$ac_cv_prog_OBJDUMP"; then
6880 ac_ct_OBJDUMP=$OBJDUMP
6881 # Extract the first word of "objdump", so it can be a program name with args.
6882 set dummy objdump; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6888 if test -n "$ac_ct_OBJDUMP"; then
6889 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6909 if test -n "$ac_ct_OBJDUMP"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6911 $as_echo "$ac_ct_OBJDUMP" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6917 if test "x$ac_ct_OBJDUMP" = x; then
6920 case $cross_compiling:$ac_tool_warned in
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924 ac_tool_warned=yes ;;
6926 OBJDUMP=$ac_ct_OBJDUMP
6929 OBJDUMP="$ac_cv_prog_OBJDUMP"
6932 test -z "$OBJDUMP" && OBJDUMP=objdump
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6943 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6944 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6947 lt_cv_file_magic_cmd='$MAGIC_CMD'
6948 lt_cv_file_magic_test_file=
6949 lt_cv_deplibs_check_method='unknown'
6950 # Need to set the preceding variable on all platforms that support
6951 # interlibrary dependencies.
6952 # 'none' -- dependencies not supported.
6953 # `unknown' -- same as none, but documents that we really don't know.
6954 # 'pass_all' -- all dependencies passed with no checks.
6955 # 'test_compile' -- check by making test program.
6956 # 'file_magic [[regex]]' -- check by looking for files in library path
6957 # which responds to the $file_magic_cmd with a given extended regex.
6958 # If you have `file' or equivalent on your system and you're not sure
6959 # whether `pass_all' will *always* work, you probably want this one.
6963 lt_cv_deplibs_check_method=pass_all
6967 lt_cv_deplibs_check_method=pass_all
6971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6972 lt_cv_file_magic_cmd='/usr/bin/file -L'
6973 lt_cv_file_magic_test_file=/shlib/libc.so
6977 # func_win32_libid is a shell function defined in ltmain.sh
6978 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6979 lt_cv_file_magic_cmd='func_win32_libid'
6983 # Base MSYS/MinGW do not provide the 'file' command needed by
6984 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6985 # unless we find 'file', for example because we are cross-compiling.
6986 if ( file / ) >/dev/null 2>&1; then
6987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6988 lt_cv_file_magic_cmd='func_win32_libid'
6990 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6991 lt_cv_file_magic_cmd='$OBJDUMP -f'
6996 # use the weaker test based on 'objdump'. See mingw*.
6997 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6998 lt_cv_file_magic_cmd='$OBJDUMP -f'
7001 darwin* | rhapsody*)
7002 lt_cv_deplibs_check_method=pass_all
7005 freebsd* | dragonfly*)
7006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7009 # Not sure whether the presence of OpenBSD here was a mistake.
7010 # Let's accept both of them until this is cleared up.
7011 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7012 lt_cv_file_magic_cmd=/usr/bin/file
7013 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7017 lt_cv_deplibs_check_method=pass_all
7022 lt_cv_deplibs_check_method=pass_all
7025 hpux10.20* | hpux11*)
7026 lt_cv_file_magic_cmd=/usr/bin/file
7029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7030 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7033 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]'
7034 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7038 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7044 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7048 irix5* | irix6* | nonstopux*)
7050 *-32|*"-32 ") libmagic=32-bit;;
7051 *-n32|*"-n32 ") libmagic=N32;;
7052 *-64|*"-64 ") libmagic=64-bit;;
7053 *) libmagic=never-match;;
7055 lt_cv_deplibs_check_method=pass_all
7058 # This must be Linux ELF.
7059 linux* | k*bsd*-gnu)
7060 lt_cv_deplibs_check_method=pass_all
7064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7073 lt_cv_file_magic_cmd=/usr/bin/file
7074 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7078 lt_cv_deplibs_check_method=pass_all
7082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7089 osf3* | osf4* | osf5*)
7090 lt_cv_deplibs_check_method=pass_all
7094 lt_cv_deplibs_check_method=pass_all
7098 lt_cv_deplibs_check_method=pass_all
7101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7102 lt_cv_deplibs_check_method=pass_all
7106 case $host_vendor in
7108 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]'
7109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7112 lt_cv_deplibs_check_method=pass_all
7115 lt_cv_file_magic_cmd='/bin/file'
7116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7119 lt_cv_file_magic_cmd='/bin/file'
7120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7121 lt_cv_file_magic_test_file=/lib/libc.so
7124 lt_cv_deplibs_check_method=pass_all
7127 lt_cv_deplibs_check_method=pass_all
7133 lt_cv_deplibs_check_method=pass_all
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7139 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7140 file_magic_cmd=$lt_cv_file_magic_cmd
7141 deplibs_check_method=$lt_cv_deplibs_check_method
7142 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7155 if test -n "$ac_tool_prefix"; then
7156 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7157 set dummy ${ac_tool_prefix}ar; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if test "${ac_cv_prog_AR+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7163 if test -n "$AR"; then
7164 ac_cv_prog_AR="$AR" # Let the user override the test.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_prog_AR="${ac_tool_prefix}ar"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 if test -n "$AR"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7186 $as_echo "$AR" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7194 if test -z "$ac_cv_prog_AR"; then
7196 # Extract the first word of "ar", so it can be a program name with args.
7197 set dummy ar; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7203 if test -n "$ac_ct_AR"; then
7204 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_ac_ct_AR="ar"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7224 if test -n "$ac_ct_AR"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7226 $as_echo "$ac_ct_AR" >&6; }
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7232 if test "x$ac_ct_AR" = x; then
7235 case $cross_compiling:$ac_tool_warned in
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239 ac_tool_warned=yes ;;
7247 test -z "$AR" && AR=ar
7248 test -z "$AR_FLAGS" && AR_FLAGS=cru
7260 if test -n "$ac_tool_prefix"; then
7261 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}strip; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if test "${ac_cv_prog_STRIP+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7268 if test -n "$STRIP"; then
7269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 STRIP=$ac_cv_prog_STRIP
7289 if test -n "$STRIP"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7291 $as_echo "$STRIP" >&6; }
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7299 if test -z "$ac_cv_prog_STRIP"; then
7301 # Extract the first word of "strip", so it can be a program name with args.
7302 set dummy strip; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7308 if test -n "$ac_ct_STRIP"; then
7309 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_ac_ct_STRIP="strip"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7329 if test -n "$ac_ct_STRIP"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7331 $as_echo "$ac_ct_STRIP" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7337 if test "x$ac_ct_STRIP" = x; then
7340 case $cross_compiling:$ac_tool_warned in
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7349 STRIP="$ac_cv_prog_STRIP"
7352 test -z "$STRIP" && STRIP=:
7359 if test -n "$ac_tool_prefix"; then
7360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7367 if test -n "$RANLIB"; then
7368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 RANLIB=$ac_cv_prog_RANLIB
7388 if test -n "$RANLIB"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7390 $as_echo "$RANLIB" >&6; }
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7398 if test -z "$ac_cv_prog_RANLIB"; then
7399 ac_ct_RANLIB=$RANLIB
7400 # Extract the first word of "ranlib", so it can be a program name with args.
7401 set dummy ranlib; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7407 if test -n "$ac_ct_RANLIB"; then
7408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_prog_ac_ct_RANLIB="ranlib"
7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7428 if test -n "$ac_ct_RANLIB"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7430 $as_echo "$ac_ct_RANLIB" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7436 if test "x$ac_ct_RANLIB" = x; then
7439 case $cross_compiling:$ac_tool_warned in
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7443 ac_tool_warned=yes ;;
7445 RANLIB=$ac_ct_RANLIB
7448 RANLIB="$ac_cv_prog_RANLIB"
7451 test -z "$RANLIB" && RANLIB=:
7458 # Determine commands to create old-style static archives.
7459 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7460 old_postinstall_cmds='chmod 644 $oldlib'
7461 old_postuninstall_cmds=
7463 if test -n "$RANLIB"; then
7466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7472 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7508 # If no C compiler was specified, use CC.
7511 # If no C compiler flags were specified, use CFLAGS.
7512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7514 # Allow CC to be a program name with arguments.
7518 # Check for command to grab the raw symbol name followed by C symbol from nm.
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7520 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7521 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7525 # These are sane defaults that work on at least a few old systems.
7526 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7528 # Character class describing NM global symbol codes.
7529 symcode='[BCDEGRST]'
7531 # Regexp to match symbols that can be accessed directly from C.
7532 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7534 # Define system-specific variables.
7539 cygwin* | mingw* | pw32* | cegcc*)
7540 symcode='[ABCDGISTW]'
7543 if test "$host_cpu" = ia64; then
7544 symcode='[ABCDEGRST]'
7548 symcode='[BCDEGRST]'
7551 symcode='[BCDEGQRST]'
7562 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7570 # If we're using GNU nm, then use its standard symbol codes.
7571 case `$NM -V 2>&1` in
7572 *GNU* | *'with BFD'*)
7573 symcode='[ABCDGIRSTW]' ;;
7576 # Transform an extracted symbol line into a proper C declaration.
7577 # Some systems (esp. on ia64) link data and code symbols differently,
7578 # so use this general approach.
7579 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7581 # Transform an extracted symbol line into symbol name and symbol address
7582 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7583 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7585 # Handle CRLF in mingw tool chain
7589 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7593 # Try without a prefix underscore, then with it.
7594 for ac_symprfx in "" "_"; do
7596 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7597 symxfrm="\\1 $ac_symprfx\\2 \\2"
7599 # Write the raw and C identifiers.
7600 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7601 # Fake it for dumpbin and say T for any non-static function
7602 # and D for any global variable.
7603 # Also find C++ and __fastcall symbols from MSVC++,
7604 # which start with @ or ?.
7605 lt_cv_sys_global_symbol_pipe="$AWK '"\
7606 " {last_section=section; section=\$ 3};"\
7607 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7608 " \$ 0!~/External *\|/{next};"\
7609 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7610 " {if(hide[section]) next};"\
7611 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7612 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7613 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7614 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7615 " ' prfx=^$ac_symprfx"
7617 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7620 # Check to see that the pipe works correctly.
7624 cat > conftest.$ac_ext <<_LT_EOF
7629 void nm_test_func(void);
7630 void nm_test_func(void){}
7634 int main(){nm_test_var='a';nm_test_func();return(0);}
7637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7638 (eval $ac_compile) 2>&5
7640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7641 test $ac_status = 0; }; then
7642 # Now try to grab the symbols.
7644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7645 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7648 test $ac_status = 0; } && test -s "$nlist"; then
7649 # Try sorting and uniquifying the output.
7650 if sort "$nlist" | uniq > "$nlist"T; then
7651 mv -f "$nlist"T "$nlist"
7656 # Make sure that we snagged all the symbols we need.
7657 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7658 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7659 cat <<_LT_EOF > conftest.$ac_ext
7665 # Now generate the symbol file.
7666 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7668 cat <<_LT_EOF >> conftest.$ac_ext
7670 /* The mapping between symbol names and symbols. */
7675 lt__PROGRAM__LTX_preloaded_symbols[] =
7677 { "@PROGRAM@", (void *) 0 },
7679 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7680 cat <<\_LT_EOF >> conftest.$ac_ext
7684 /* This works around a problem in FreeBSD linker */
7685 #ifdef FREEBSD_WORKAROUND
7686 static const void *lt_preloaded_setup() {
7687 return lt__PROGRAM__LTX_preloaded_symbols;
7695 # Now try linking the two files.
7696 mv conftest.$ac_objext conftstm.$ac_objext
7697 lt_save_LIBS="$LIBS"
7698 lt_save_CFLAGS="$CFLAGS"
7699 LIBS="conftstm.$ac_objext"
7700 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7702 (eval $ac_link) 2>&5
7704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7705 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7708 LIBS="$lt_save_LIBS"
7709 CFLAGS="$lt_save_CFLAGS"
7711 echo "cannot find nm_test_func in $nlist" >&5
7714 echo "cannot find nm_test_var in $nlist" >&5
7717 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7720 echo "$progname: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7723 rm -rf conftest* conftst*
7725 # Do not use the global_symbol_pipe unless it works.
7726 if test "$pipe_works" = yes; then
7729 lt_cv_sys_global_symbol_pipe=
7735 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7736 lt_cv_sys_global_symbol_to_cdecl=
7738 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7740 $as_echo "failed" >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7743 $as_echo "ok" >&6; }
7767 # Check whether --enable-libtool-lock was given.
7768 if test "${enable_libtool_lock+set}" = set; then :
7769 enableval=$enable_libtool_lock;
7772 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7774 # Some flags need to be propagated to the compiler or linker for good
7778 # Find out which ABI we are using.
7779 echo 'int i;' > conftest.$ac_ext
7780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7781 (eval $ac_compile) 2>&5
7783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7784 test $ac_status = 0; }; then
7785 case `/usr/bin/file conftest.$ac_objext` in
7797 # Find out which ABI we are using.
7798 echo '#line 7798 "configure"' > conftest.$ac_ext
7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7800 (eval $ac_compile) 2>&5
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; }; then
7804 if test "$lt_cv_prog_gnu_ld" = yes; then
7805 case `/usr/bin/file conftest.$ac_objext` in
7807 LD="${LD-ld} -melf32bsmip"
7810 LD="${LD-ld} -melf32bmipn32"
7813 LD="${LD-ld} -melf64bmip"
7817 case `/usr/bin/file conftest.$ac_objext` in
7833 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7834 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7835 # Find out which ABI we are using.
7836 echo 'int i;' > conftest.$ac_ext
7837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7838 (eval $ac_compile) 2>&5
7840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7841 test $ac_status = 0; }; then
7842 case `/usr/bin/file conftest.o` in
7845 x86_64-*kfreebsd*-gnu)
7846 LD="${LD-ld} -m elf_i386_fbsd"
7849 LD="${LD-ld} -m elf_i386"
7851 ppc64-*linux*|powerpc64-*linux*)
7852 LD="${LD-ld} -m elf32ppclinux"
7855 LD="${LD-ld} -m elf_s390"
7858 LD="${LD-ld} -m elf32_sparc"
7864 x86_64-*kfreebsd*-gnu)
7865 LD="${LD-ld} -m elf_x86_64_fbsd"
7868 LD="${LD-ld} -m elf_x86_64"
7870 ppc*-*linux*|powerpc*-*linux*)
7871 LD="${LD-ld} -m elf64ppc"
7873 s390*-*linux*|s390*-*tpf*)
7874 LD="${LD-ld} -m elf64_s390"
7877 LD="${LD-ld} -m elf64_sparc"
7887 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7888 SAVE_CFLAGS="$CFLAGS"
7889 CFLAGS="$CFLAGS -belf"
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7891 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7892 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7912 if ac_fn_c_try_link "$LINENO"; then :
7913 lt_cv_cc_needs_belf=yes
7915 lt_cv_cc_needs_belf=no
7917 rm -f core conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext conftest.$ac_ext
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7927 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7928 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7929 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7930 CFLAGS="$SAVE_CFLAGS"
7934 # Find out which ABI we are using.
7935 echo 'int i;' > conftest.$ac_ext
7936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7937 (eval $ac_compile) 2>&5
7939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940 test $ac_status = 0; }; then
7941 case `/usr/bin/file conftest.o` in
7943 case $lt_cv_prog_gnu_ld in
7944 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7946 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7958 need_locks="$enable_libtool_lock"
7962 rhapsody* | darwin*)
7963 if test -n "$ac_tool_prefix"; then
7964 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7965 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7971 if test -n "$DSYMUTIL"; then
7972 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7992 if test -n "$DSYMUTIL"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7994 $as_echo "$DSYMUTIL" >&6; }
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
8002 if test -z "$ac_cv_prog_DSYMUTIL"; then
8003 ac_ct_DSYMUTIL=$DSYMUTIL
8004 # Extract the first word of "dsymutil", so it can be a program name with args.
8005 set dummy dsymutil; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8011 if test -n "$ac_ct_DSYMUTIL"; then
8012 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8032 if test -n "$ac_ct_DSYMUTIL"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8034 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8040 if test "x$ac_ct_DSYMUTIL" = x; then
8043 case $cross_compiling:$ac_tool_warned in
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8047 ac_tool_warned=yes ;;
8049 DSYMUTIL=$ac_ct_DSYMUTIL
8052 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8055 if test -n "$ac_tool_prefix"; then
8056 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8057 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8063 if test -n "$NMEDIT"; then
8064 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 NMEDIT=$ac_cv_prog_NMEDIT
8084 if test -n "$NMEDIT"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8086 $as_echo "$NMEDIT" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8094 if test -z "$ac_cv_prog_NMEDIT"; then
8095 ac_ct_NMEDIT=$NMEDIT
8096 # Extract the first word of "nmedit", so it can be a program name with args.
8097 set dummy nmedit; ac_word=$2
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099 $as_echo_n "checking for $ac_word... " >&6; }
8100 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8103 if test -n "$ac_ct_NMEDIT"; then
8104 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8113 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8124 if test -n "$ac_ct_NMEDIT"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8126 $as_echo "$ac_ct_NMEDIT" >&6; }
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8132 if test "x$ac_ct_NMEDIT" = x; then
8135 case $cross_compiling:$ac_tool_warned in
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8139 ac_tool_warned=yes ;;
8141 NMEDIT=$ac_ct_NMEDIT
8144 NMEDIT="$ac_cv_prog_NMEDIT"
8147 if test -n "$ac_tool_prefix"; then
8148 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8149 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if test "${ac_cv_prog_LIPO+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8155 if test -n "$LIPO"; then
8156 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8165 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 LIPO=$ac_cv_prog_LIPO
8176 if test -n "$LIPO"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8178 $as_echo "$LIPO" >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8186 if test -z "$ac_cv_prog_LIPO"; then
8188 # Extract the first word of "lipo", so it can be a program name with args.
8189 set dummy lipo; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8195 if test -n "$ac_ct_LIPO"; then
8196 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8205 ac_cv_prog_ac_ct_LIPO="lipo"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8216 if test -n "$ac_ct_LIPO"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8218 $as_echo "$ac_ct_LIPO" >&6; }
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8224 if test "x$ac_ct_LIPO" = x; then
8227 case $cross_compiling:$ac_tool_warned in
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8231 ac_tool_warned=yes ;;
8236 LIPO="$ac_cv_prog_LIPO"
8239 if test -n "$ac_tool_prefix"; then
8240 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8241 set dummy ${ac_tool_prefix}otool; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8247 if test -n "$OTOOL"; then
8248 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 OTOOL=$ac_cv_prog_OTOOL
8268 if test -n "$OTOOL"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8270 $as_echo "$OTOOL" >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8278 if test -z "$ac_cv_prog_OTOOL"; then
8280 # Extract the first word of "otool", so it can be a program name with args.
8281 set dummy otool; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8287 if test -n "$ac_ct_OTOOL"; then
8288 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_prog_ac_ct_OTOOL="otool"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8308 if test -n "$ac_ct_OTOOL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8310 $as_echo "$ac_ct_OTOOL" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8316 if test "x$ac_ct_OTOOL" = x; then
8319 case $cross_compiling:$ac_tool_warned in
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8323 ac_tool_warned=yes ;;
8328 OTOOL="$ac_cv_prog_OTOOL"
8331 if test -n "$ac_tool_prefix"; then
8332 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8333 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8337 $as_echo_n "(cached) " >&6
8339 if test -n "$OTOOL64"; then
8340 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 OTOOL64=$ac_cv_prog_OTOOL64
8360 if test -n "$OTOOL64"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8362 $as_echo "$OTOOL64" >&6; }
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8370 if test -z "$ac_cv_prog_OTOOL64"; then
8371 ac_ct_OTOOL64=$OTOOL64
8372 # Extract the first word of "otool64", so it can be a program name with args.
8373 set dummy otool64; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8377 $as_echo_n "(cached) " >&6
8379 if test -n "$ac_ct_OTOOL64"; then
8380 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8389 ac_cv_prog_ac_ct_OTOOL64="otool64"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8400 if test -n "$ac_ct_OTOOL64"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8402 $as_echo "$ac_ct_OTOOL64" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8408 if test "x$ac_ct_OTOOL64" = x; then
8411 case $cross_compiling:$ac_tool_warned in
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8415 ac_tool_warned=yes ;;
8417 OTOOL64=$ac_ct_OTOOL64
8420 OTOOL64="$ac_cv_prog_OTOOL64"
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8450 $as_echo_n "checking for -single_module linker flag... " >&6; }
8451 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8454 lt_cv_apple_cc_single_mod=no
8455 if test -z "${LT_MULTI_MODULE}"; then
8456 # By default we will add the -single_module flag. You can override
8457 # by either setting the environment variable LT_MULTI_MODULE
8458 # non-empty at configure time, or by adding -multi_module to the
8460 rm -rf libconftest.dylib*
8461 echo "int foo(void){return 1;}" > conftest.c
8462 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8463 -dynamiclib -Wl,-single_module conftest.c" >&5
8464 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8465 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8467 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8468 lt_cv_apple_cc_single_mod=yes
8470 cat conftest.err >&5
8472 rm -rf libconftest.dylib*
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8477 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8479 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8480 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
8483 lt_cv_ld_exported_symbols_list=no
8484 save_LDFLAGS=$LDFLAGS
8485 echo "_main" > conftest.sym
8486 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8498 if ac_fn_c_try_link "$LINENO"; then :
8499 lt_cv_ld_exported_symbols_list=yes
8501 lt_cv_ld_exported_symbols_list=no
8503 rm -f core conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505 LDFLAGS="$save_LDFLAGS"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8509 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8511 rhapsody* | darwin1.[012])
8512 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8514 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8515 darwin*) # darwin 5.x on
8516 # if running on 10.5 or later, the deployment target defaults
8517 # to the OS version, if on x86, and 10.4, the deployment
8518 # target defaults to 10.4. Don't you love it?
8519 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8520 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8521 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8523 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8525 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8529 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8530 _lt_dar_single_mod='$single_module'
8532 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8533 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8535 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8537 if test "$DSYMUTIL" != ":"; then
8538 _lt_dsymutil='~$DSYMUTIL $lib || :'
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8547 $as_echo_n "checking for ANSI C header files... " >&6; }
8548 if test "${ac_cv_header_stdc+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8566 if ac_fn_c_try_compile "$LINENO"; then :
8567 ac_cv_header_stdc=yes
8569 ac_cv_header_stdc=no
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8573 if test $ac_cv_header_stdc = yes; then
8574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8581 $EGREP "memchr" >/dev/null 2>&1; then :
8584 ac_cv_header_stdc=no
8590 if test $ac_cv_header_stdc = yes; then
8591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8598 $EGREP "free" >/dev/null 2>&1; then :
8601 ac_cv_header_stdc=no
8607 if test $ac_cv_header_stdc = yes; then
8608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8609 if test "$cross_compiling" = yes; then :
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8616 #if ((' ' & 0x0FF) == 0x020)
8617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8620 # define ISLOWER(c) \
8621 (('a' <= (c) && (c) <= 'i') \
8622 || ('j' <= (c) && (c) <= 'r') \
8623 || ('s' <= (c) && (c) <= 'z'))
8624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8632 for (i = 0; i < 256; i++)
8633 if (XOR (islower (i), ISLOWER (i))
8634 || toupper (i) != TOUPPER (i))
8639 if ac_fn_c_try_run "$LINENO"; then :
8642 ac_cv_header_stdc=no
8644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8645 conftest.$ac_objext conftest.beam conftest.$ac_ext
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8651 $as_echo "$ac_cv_header_stdc" >&6; }
8652 if test $ac_cv_header_stdc = yes; then
8654 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8658 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8659 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8660 inttypes.h stdint.h unistd.h
8662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8663 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8665 eval as_val=\$$as_ac_Header
8666 if test "x$as_val" = x""yes; then :
8667 cat >>confdefs.h <<_ACEOF
8668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8676 for ac_header in dlfcn.h
8678 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8680 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8681 cat >>confdefs.h <<_ACEOF
8682 #define HAVE_DLFCN_H 1
8701 # Check whether --enable-shared was given.
8702 if test "${enable_shared+set}" = set; then :
8703 enableval=$enable_shared; p=${PACKAGE-default}
8705 yes) enable_shared=yes ;;
8706 no) enable_shared=no ;;
8709 # Look at the argument we got. We use all the common list separators.
8710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8711 for pkg in $enableval; do
8713 if test "X$pkg" = "X$p"; then
8732 # Check whether --enable-static was given.
8733 if test "${enable_static+set}" = set; then :
8734 enableval=$enable_static; p=${PACKAGE-default}
8736 yes) enable_static=yes ;;
8737 no) enable_static=no ;;
8740 # Look at the argument we got. We use all the common list separators.
8741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8742 for pkg in $enableval; do
8744 if test "X$pkg" = "X$p"; then
8764 # Check whether --with-pic was given.
8765 if test "${with_pic+set}" = set; then :
8766 withval=$with_pic; pic_mode="$withval"
8772 test -z "$pic_mode" && pic_mode=default
8780 # Check whether --enable-fast-install was given.
8781 if test "${enable_fast_install+set}" = set; then :
8782 enableval=$enable_fast_install; p=${PACKAGE-default}
8784 yes) enable_fast_install=yes ;;
8785 no) enable_fast_install=no ;;
8787 enable_fast_install=no
8788 # Look at the argument we got. We use all the common list separators.
8789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8790 for pkg in $enableval; do
8792 if test "X$pkg" = "X$p"; then
8793 enable_fast_install=yes
8800 enable_fast_install=yes
8813 # This can be used to rebuild libtool when needed
8814 LIBTOOL_DEPS="$ltmain"
8816 # Always use our own libtool.
8817 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8843 test -z "$LN_S" && LN_S="ln -s"
8858 if test -n "${ZSH_VERSION+set}" ; then
8859 setopt NO_GLOB_SUBST
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8863 $as_echo_n "checking for objdir... " >&6; }
8864 if test "${lt_cv_objdir+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8867 rm -f .libs 2>/dev/null
8868 mkdir .libs 2>/dev/null
8869 if test -d .libs; then
8872 # MS-DOS does not allow filenames that begin with a dot.
8875 rmdir .libs 2>/dev/null
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8878 $as_echo "$lt_cv_objdir" >&6; }
8879 objdir=$lt_cv_objdir
8885 cat >>confdefs.h <<_ACEOF
8886 #define LT_OBJDIR "$lt_cv_objdir/"
8907 # AIX sometimes has problems with the GCC collect2 program. For some
8908 # reason, if we set the COLLECT_NAMES environment variable, the problems
8909 # vanish in a puff of smoke.
8910 if test "X${COLLECT_NAMES+set}" != Xset; then
8912 export COLLECT_NAMES
8917 # Sed substitution that helps us do robust quoting. It backslashifies
8918 # metacharacters that are still active within double-quoted strings.
8919 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8921 # Same as above, but do not quote variable references.
8922 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8924 # Sed substitution to delay expansion of an escaped shell variable in a
8925 # double_quote_subst'ed string.
8926 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8928 # Sed substitution to delay expansion of an escaped single quote.
8929 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8931 # Sed substitution to avoid accidental globbing in evaled expressions
8932 no_glob_subst='s/\*/\\\*/g'
8936 can_build_shared=yes
8938 # All known linkers require a `.a' archive for static linking (except MSVC,
8939 # which needs '.lib').
8942 with_gnu_ld="$lt_cv_prog_gnu_ld"
8945 old_CFLAGS="$CFLAGS"
8947 # Set sane defaults for various variables
8948 test -z "$CC" && CC=cc
8949 test -z "$LTCC" && LTCC=$CC
8950 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8951 test -z "$LD" && LD=ld
8952 test -z "$ac_objext" && ac_objext=o
8954 for cc_temp in $compiler""; do
8956 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8957 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8962 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8965 # Only perform the check for file, if the check method requires it
8966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8967 case $deplibs_check_method in
8969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8971 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8972 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
8977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8980 lt_save_MAGIC_CMD="$MAGIC_CMD"
8981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8983 for ac_dir in $ac_dummy; do
8985 test -z "$ac_dir" && ac_dir=.
8986 if test -f $ac_dir/${ac_tool_prefix}file; then
8987 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8988 if test -n "$file_magic_test_file"; then
8989 case $deplibs_check_method in
8991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8994 $EGREP "$file_magic_regex" > /dev/null; then
8999 *** Warning: the command libtool uses to detect shared libraries,
9000 *** $file_magic_cmd, produces output that libtool cannot recognize.
9001 *** The result is that libtool may fail to recognize shared libraries
9002 *** as such. This will affect the creation of libtool libraries that
9003 *** depend on shared libraries, but programs linked with such libtool
9004 *** libraries will work regardless of this problem. Nevertheless, you
9005 *** may want to report the problem to your system manager and/or to
9006 *** bug-libtool@gnu.org
9016 MAGIC_CMD="$lt_save_MAGIC_CMD"
9021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9022 if test -n "$MAGIC_CMD"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9024 $as_echo "$MAGIC_CMD" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9034 if test -z "$lt_cv_path_MAGIC_CMD"; then
9035 if test -n "$ac_tool_prefix"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9037 $as_echo_n "checking for file... " >&6; }
9038 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9039 $as_echo_n "(cached) " >&6
9043 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9046 lt_save_MAGIC_CMD="$MAGIC_CMD"
9047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9049 for ac_dir in $ac_dummy; do
9051 test -z "$ac_dir" && ac_dir=.
9052 if test -f $ac_dir/file; then
9053 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9054 if test -n "$file_magic_test_file"; then
9055 case $deplibs_check_method in
9057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9060 $EGREP "$file_magic_regex" > /dev/null; then
9065 *** Warning: the command libtool uses to detect shared libraries,
9066 *** $file_magic_cmd, produces output that libtool cannot recognize.
9067 *** The result is that libtool may fail to recognize shared libraries
9068 *** as such. This will affect the creation of libtool libraries that
9069 *** depend on shared libraries, but programs linked with such libtool
9070 *** libraries will work regardless of this problem. Nevertheless, you
9071 *** may want to report the problem to your system manager and/or to
9072 *** bug-libtool@gnu.org
9082 MAGIC_CMD="$lt_save_MAGIC_CMD"
9087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9088 if test -n "$MAGIC_CMD"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9090 $as_echo "$MAGIC_CMD" >&6; }
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9106 # Use C for the default configuration in the libtool script
9110 ac_cpp='$CPP $CPPFLAGS'
9111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9116 # Source file extension for C test sources.
9119 # Object file extension for compiled C test sources.
9123 # Code to be used in simple compile tests
9124 lt_simple_compile_test_code="int some_variable = 0;"
9126 # Code to be used in simple link tests
9127 lt_simple_link_test_code='int main(){return(0);}'
9135 # If no C compiler was specified, use CC.
9138 # If no C compiler flags were specified, use CFLAGS.
9139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9141 # Allow CC to be a program name with arguments.
9144 # Save the default compiler, since it gets overwritten when the other
9145 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9146 compiler_DEFAULT=$CC
9148 # save warnings/boilerplate of simple test code
9149 ac_outfile=conftest.$ac_objext
9150 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9152 _lt_compiler_boilerplate=`cat conftest.err`
9155 ac_outfile=conftest.$ac_objext
9156 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9158 _lt_linker_boilerplate=`cat conftest.err`
9163 ## There is no encapsulation within the following macros, do not change
9164 ## the running order or otherwise move them around unless you know exactly
9165 ## what you are doing...
9166 if test -n "$compiler"; then
9168 lt_prog_compiler_no_builtin_flag=
9170 if test "$GCC" = yes; then
9171 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9174 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9175 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9178 lt_cv_prog_compiler_rtti_exceptions=no
9179 ac_outfile=conftest.$ac_objext
9180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181 lt_compiler_flag="-fno-rtti -fno-exceptions"
9182 # Insert the option either (1) after the last *FLAGS variable, or
9183 # (2) before a word containing "conftest.", or (3) at the end.
9184 # Note that $ac_compile itself does not contain backslashes and begins
9185 # with a dollar sign (not a hyphen), so the echo should work correctly.
9186 # The option is referenced via a variable to avoid confusing sed.
9187 lt_compile=`echo "$ac_compile" | $SED \
9188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9190 -e 's:$: $lt_compiler_flag:'`
9191 (eval echo "\"\$as_me:9191: $lt_compile\"" >&5)
9192 (eval "$lt_compile" 2>conftest.err)
9194 cat conftest.err >&5
9195 echo "$as_me:9195: \$? = $ac_status" >&5
9196 if (exit $ac_status) && test -s "$ac_outfile"; then
9197 # The compiler can only warn and ignore the option if not recognized
9198 # So say no if there are warnings other than the usual output.
9199 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9202 lt_cv_prog_compiler_rtti_exceptions=yes
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9209 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9211 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9212 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9224 lt_prog_compiler_wl=
9225 lt_prog_compiler_pic=
9226 lt_prog_compiler_static=
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9229 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9231 if test "$GCC" = yes; then
9232 lt_prog_compiler_wl='-Wl,'
9233 lt_prog_compiler_static='-static'
9237 # All AIX code is PIC.
9238 if test "$host_cpu" = ia64; then
9239 # AIX 5 now supports IA64 processor
9240 lt_prog_compiler_static='-Bstatic'
9247 # see comment about AmigaOS4 .so support
9248 lt_prog_compiler_pic='-fPIC'
9251 # FIXME: we need at least 68020 code to build shared libraries, but
9252 # adding the `-m68020' flag to GCC prevents building anything better,
9254 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9259 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9260 # PIC is the default for these OSes.
9263 mingw* | cygwin* | pw32* | os2* | cegcc*)
9264 # This hack is so that the source file can tell whether it is being
9265 # built for inclusion in a dll (and should export symbols for example).
9266 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9267 # (--disable-auto-import) libraries
9268 lt_prog_compiler_pic='-DDLL_EXPORT'
9271 darwin* | rhapsody*)
9272 # PIC is the default on this platform
9273 # Common symbols not allowed in MH_DYLIB files
9274 lt_prog_compiler_pic='-fno-common'
9278 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9279 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9280 # sets the default TLS model and affects inlining.
9286 lt_prog_compiler_pic='-fPIC'
9292 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9293 # Instead, we relocate shared libraries at runtime.
9297 # Just because we use GCC doesn't mean we suddenly get shared libraries
9298 # on systems that don't support them.
9299 lt_prog_compiler_can_build_shared=no
9304 # QNX uses GNU C++, but need to define -shared option too, otherwise
9306 lt_prog_compiler_pic='-fPIC -shared'
9310 if test -d /usr/nec; then
9311 lt_prog_compiler_pic=-Kconform_pic
9316 lt_prog_compiler_pic='-fPIC'
9320 # PORTME Check for flag to pass linker flags through the system compiler.
9323 lt_prog_compiler_wl='-Wl,'
9324 if test "$host_cpu" = ia64; then
9325 # AIX 5 now supports IA64 processor
9326 lt_prog_compiler_static='-Bstatic'
9328 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9332 mingw* | cygwin* | pw32* | os2* | cegcc*)
9333 # This hack is so that the source file can tell whether it is being
9334 # built for inclusion in a dll (and should export symbols for example).
9335 lt_prog_compiler_pic='-DDLL_EXPORT'
9338 hpux9* | hpux10* | hpux11*)
9339 lt_prog_compiler_wl='-Wl,'
9340 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9347 lt_prog_compiler_pic='+Z'
9350 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9351 lt_prog_compiler_static='${wl}-a ${wl}archive'
9354 irix5* | irix6* | nonstopux*)
9355 lt_prog_compiler_wl='-Wl,'
9356 # PIC (with -KPIC) is the default.
9357 lt_prog_compiler_static='-non_shared'
9360 linux* | k*bsd*-gnu)
9361 case $cc_basename in
9362 # old Intel for x86_64 which still supported -KPIC.
9364 lt_prog_compiler_wl='-Wl,'
9365 lt_prog_compiler_pic='-KPIC'
9366 lt_prog_compiler_static='-static'
9368 # icc used to be incompatible with GCC.
9369 # ICC 10 doesn't accept -KPIC any more.
9371 lt_prog_compiler_wl='-Wl,'
9372 lt_prog_compiler_pic='-fPIC'
9373 lt_prog_compiler_static='-static'
9375 # Lahey Fortran 8.1.
9377 lt_prog_compiler_wl='-Wl,'
9378 lt_prog_compiler_pic='--shared'
9379 lt_prog_compiler_static='--static'
9381 pgcc* | pgf77* | pgf90* | pgf95*)
9382 # Portland Group compilers (*not* the Pentium gcc compiler,
9383 # which looks to be a dead project)
9384 lt_prog_compiler_wl='-Wl,'
9385 lt_prog_compiler_pic='-fpic'
9386 lt_prog_compiler_static='-Bstatic'
9389 lt_prog_compiler_wl='-Wl,'
9390 # All Alpha code is PIC.
9391 lt_prog_compiler_static='-non_shared'
9394 # IBM XL C 8.0/Fortran 10.1 on PPC
9395 lt_prog_compiler_wl='-Wl,'
9396 lt_prog_compiler_pic='-qpic'
9397 lt_prog_compiler_static='-qstaticlink'
9400 case `$CC -V 2>&1 | sed 5q` in
9403 lt_prog_compiler_pic='-KPIC'
9404 lt_prog_compiler_static='-Bstatic'
9405 lt_prog_compiler_wl='-Wl,'
9408 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9409 lt_prog_compiler_pic='-KPIC'
9410 lt_prog_compiler_static='-Bstatic'
9411 lt_prog_compiler_wl=''
9419 lt_prog_compiler_pic='-KPIC'
9420 lt_prog_compiler_static='-Bstatic'
9424 # QNX uses GNU C++, but need to define -shared option too, otherwise
9426 lt_prog_compiler_pic='-fPIC -shared'
9429 osf3* | osf4* | osf5*)
9430 lt_prog_compiler_wl='-Wl,'
9431 # All OSF/1 code is PIC.
9432 lt_prog_compiler_static='-non_shared'
9436 lt_prog_compiler_static='-non_shared'
9440 lt_prog_compiler_pic='-KPIC'
9441 lt_prog_compiler_static='-Bstatic'
9442 case $cc_basename in
9444 lt_prog_compiler_wl='-Qoption ld ';;
9446 lt_prog_compiler_wl='-Wl,';;
9451 lt_prog_compiler_wl='-Qoption ld '
9452 lt_prog_compiler_pic='-PIC'
9453 lt_prog_compiler_static='-Bstatic'
9456 sysv4 | sysv4.2uw2* | sysv4.3*)
9457 lt_prog_compiler_wl='-Wl,'
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9463 if test -d /usr/nec ;then
9464 lt_prog_compiler_pic='-Kconform_pic'
9465 lt_prog_compiler_static='-Bstatic'
9469 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9470 lt_prog_compiler_wl='-Wl,'
9471 lt_prog_compiler_pic='-KPIC'
9472 lt_prog_compiler_static='-Bstatic'
9476 lt_prog_compiler_wl='-Wl,'
9477 lt_prog_compiler_can_build_shared=no
9481 lt_prog_compiler_pic='-pic'
9482 lt_prog_compiler_static='-Bstatic'
9486 lt_prog_compiler_can_build_shared=no
9492 # For platforms which do not support PIC, -DPIC is meaningless:
9494 lt_prog_compiler_pic=
9497 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9501 $as_echo "$lt_prog_compiler_pic" >&6; }
9509 # Check to make sure the PIC flag actually works.
9511 if test -n "$lt_prog_compiler_pic"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9513 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9514 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9515 $as_echo_n "(cached) " >&6
9517 lt_cv_prog_compiler_pic_works=no
9518 ac_outfile=conftest.$ac_objext
9519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9520 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9521 # Insert the option either (1) after the last *FLAGS variable, or
9522 # (2) before a word containing "conftest.", or (3) at the end.
9523 # Note that $ac_compile itself does not contain backslashes and begins
9524 # with a dollar sign (not a hyphen), so the echo should work correctly.
9525 # The option is referenced via a variable to avoid confusing sed.
9526 lt_compile=`echo "$ac_compile" | $SED \
9527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9529 -e 's:$: $lt_compiler_flag:'`
9530 (eval echo "\"\$as_me:9530: $lt_compile\"" >&5)
9531 (eval "$lt_compile" 2>conftest.err)
9533 cat conftest.err >&5
9534 echo "$as_me:9534: \$? = $ac_status" >&5
9535 if (exit $ac_status) && test -s "$ac_outfile"; then
9536 # The compiler can only warn and ignore the option if not recognized
9537 # So say no if there are warnings other than the usual output.
9538 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9541 lt_cv_prog_compiler_pic_works=yes
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9548 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9550 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9551 case $lt_prog_compiler_pic in
9553 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9556 lt_prog_compiler_pic=
9557 lt_prog_compiler_can_build_shared=no
9568 # Check to make sure the static flag actually works.
9570 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9572 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9573 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9576 lt_cv_prog_compiler_static_works=no
9577 save_LDFLAGS="$LDFLAGS"
9578 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9579 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9580 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9581 # The linker can only warn and ignore the option if not recognized
9582 # So say no if there are warnings
9583 if test -s conftest.err; then
9584 # Append any errors to the config.log.
9585 cat conftest.err 1>&5
9586 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9588 if diff conftest.exp conftest.er2 >/dev/null; then
9589 lt_cv_prog_compiler_static_works=yes
9592 lt_cv_prog_compiler_static_works=yes
9596 LDFLAGS="$save_LDFLAGS"
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9600 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9602 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9605 lt_prog_compiler_static=
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9615 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9616 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9617 $as_echo_n "(cached) " >&6
9619 lt_cv_prog_compiler_c_o=no
9620 $RM -r conftest 2>/dev/null
9624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9626 lt_compiler_flag="-o out/conftest2.$ac_objext"
9627 # Insert the option either (1) after the last *FLAGS variable, or
9628 # (2) before a word containing "conftest.", or (3) at the end.
9629 # Note that $ac_compile itself does not contain backslashes and begins
9630 # with a dollar sign (not a hyphen), so the echo should work correctly.
9631 lt_compile=`echo "$ac_compile" | $SED \
9632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9634 -e 's:$: $lt_compiler_flag:'`
9635 (eval echo "\"\$as_me:9635: $lt_compile\"" >&5)
9636 (eval "$lt_compile" 2>out/conftest.err)
9638 cat out/conftest.err >&5
9639 echo "$as_me:9639: \$? = $ac_status" >&5
9640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9642 # The compiler can only warn and ignore the option if not recognized
9643 # So say no if there are warnings
9644 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9647 lt_cv_prog_compiler_c_o=yes
9652 # SGI C++ compiler will create directory out/ii_files/ for
9653 # template instantiation
9654 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9655 $RM out/* && rmdir out
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9662 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9670 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9671 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9672 $as_echo_n "(cached) " >&6
9674 lt_cv_prog_compiler_c_o=no
9675 $RM -r conftest 2>/dev/null
9679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9681 lt_compiler_flag="-o out/conftest2.$ac_objext"
9682 # Insert the option either (1) after the last *FLAGS variable, or
9683 # (2) before a word containing "conftest.", or (3) at the end.
9684 # Note that $ac_compile itself does not contain backslashes and begins
9685 # with a dollar sign (not a hyphen), so the echo should work correctly.
9686 lt_compile=`echo "$ac_compile" | $SED \
9687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9689 -e 's:$: $lt_compiler_flag:'`
9690 (eval echo "\"\$as_me:9690: $lt_compile\"" >&5)
9691 (eval "$lt_compile" 2>out/conftest.err)
9693 cat out/conftest.err >&5
9694 echo "$as_me:9694: \$? = $ac_status" >&5
9695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9697 # The compiler can only warn and ignore the option if not recognized
9698 # So say no if there are warnings
9699 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9702 lt_cv_prog_compiler_c_o=yes
9707 # SGI C++ compiler will create directory out/ii_files/ for
9708 # template instantiation
9709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9710 $RM out/* && rmdir out
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9717 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9722 hard_links="nottested"
9723 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9724 # do not overwrite the value of need_locks provided by the user
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9726 $as_echo_n "checking if we can lock with hard links... " >&6; }
9729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9731 ln conftest.a conftest.b 2>&5 || hard_links=no
9732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9734 $as_echo "$hard_links" >&6; }
9735 if test "$hard_links" = no; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9737 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9750 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9753 allow_undefined_flag=
9754 always_export_symbols=no
9756 archive_expsym_cmds=
9757 compiler_needs_object=no
9758 enable_shared_with_static_runtimes=no
9759 export_dynamic_flag_spec=
9760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9761 hardcode_automatic=no
9763 hardcode_direct_absolute=no
9764 hardcode_libdir_flag_spec=
9765 hardcode_libdir_flag_spec_ld=
9766 hardcode_libdir_separator=
9768 hardcode_shlibpath_var=unsupported
9770 link_all_deplibs=unknown
9773 old_archive_from_new_cmds=
9774 old_archive_from_expsyms_cmds=
9775 thread_safe_flag_spec=
9776 whole_archive_flag_spec=
9777 # include_expsyms should be a list of space-separated symbols to be *always*
9778 # included in the symbol list
9780 # exclude_expsyms can be an extended regexp of symbols to exclude
9781 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9782 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9783 # as well as any symbol that contains `d'.
9784 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9785 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9786 # platforms (ab)use it in PIC code, but their linkers get confused if
9787 # the symbol is explicitly referenced. Since portable code cannot
9788 # rely on this symbol name, it's probably fine to never include it in
9789 # preloaded symbol tables.
9790 # Exclude shared library initialization/finalization symbols.
9791 extract_expsyms_cmds=
9794 cygwin* | mingw* | pw32* | cegcc*)
9795 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9796 # When not using gcc, we currently assume that we are using
9797 # Microsoft Visual C++.
9798 if test "$GCC" != yes; then
9803 # we just hope/assume this is gcc and not c89 (= MSVC++)
9812 if test "$with_gnu_ld" = yes; then
9813 # If archive_cmds runs LD, not CC, wlarc should be empty
9816 # Set some defaults for GNU ld with shared library support. These
9817 # are reset later if shared libraries are not supported. Putting them
9818 # here allows them to be overridden if necessary.
9819 runpath_var=LD_RUN_PATH
9820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821 export_dynamic_flag_spec='${wl}--export-dynamic'
9822 # ancient GNU ld didn't support --whole-archive et. al.
9823 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9824 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9826 whole_archive_flag_spec=
9828 supports_anon_versioning=no
9829 case `$LD -v 2>&1` in
9830 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9831 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9832 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9833 *\ 2.11.*) ;; # other 2.11 versions
9834 *) supports_anon_versioning=yes ;;
9837 # See if GNU ld supports shared libraries.
9840 # On AIX/PPC, the GNU linker is very broken
9841 if test "$host_cpu" != ia64; then
9845 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9846 *** to be unable to reliably create shared libraries on AIX.
9847 *** Therefore, libtool is disabling shared libraries support. If you
9848 *** really care for shared libraries, you may want to modify your PATH
9849 *** so that a non-GNU linker is found, and then restart.
9858 # see comment about AmigaOS4 .so support
9859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9860 archive_expsym_cmds=''
9863 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)'
9864 hardcode_libdir_flag_spec='-L$libdir'
9865 hardcode_minus_L=yes
9871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9872 allow_undefined_flag=unsupported
9873 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9874 # support --undefined. This deserves some investigation. FIXME
9875 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9881 cygwin* | mingw* | pw32* | cegcc*)
9882 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9883 # as there is no search path for DLLs.
9884 hardcode_libdir_flag_spec='-L$libdir'
9885 allow_undefined_flag=unsupported
9886 always_export_symbols=no
9887 enable_shared_with_static_runtimes=yes
9888 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9890 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9892 # If the export-symbols file already is a .def file (1st line
9893 # is EXPORTS), use it as is; otherwise, prepend...
9894 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9895 cp $export_symbols $output_objdir/$soname.def;
9897 echo EXPORTS > $output_objdir/$soname.def;
9898 cat $export_symbols >> $output_objdir/$soname.def;
9900 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9908 hardcode_shlibpath_var=no
9909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9910 export_dynamic_flag_spec='${wl}-E'
9911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9912 # Instead, shared libraries are loaded at an image base (0x10000000 by
9913 # default) and relocated if they conflict, which is a slow very memory
9914 # consuming and fragmenting process. To avoid this, we pick a random,
9915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9918 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'
9921 gnu* | linux* | tpf* | k*bsd*-gnu)
9923 if test "$host_os" = linux-dietlibc; then
9924 case $cc_basename in
9925 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9928 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9929 && test "$tmp_diet" = no
9932 tmp_sharedflag='-shared'
9933 case $cc_basename,$host_cpu in
9934 pgcc*) # Portland Group C compiler
9935 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'
9936 tmp_addflag=' $pic_flag'
9938 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9939 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'
9940 tmp_addflag=' $pic_flag -Mnomain' ;;
9941 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9942 tmp_addflag=' -i_dynamic' ;;
9943 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9944 tmp_addflag=' -i_dynamic -nofor_main' ;;
9945 ifc* | ifort*) # Intel Fortran compiler
9946 tmp_addflag=' -nofor_main' ;;
9947 lf95*) # Lahey Fortran 8.1
9948 whole_archive_flag_spec=
9949 tmp_sharedflag='--shared' ;;
9950 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9951 tmp_sharedflag='-qmkshrobj'
9954 case `$CC -V 2>&1 | sed 5q` in
9955 *Sun\ C*) # Sun C 5.9
9956 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'
9957 compiler_needs_object=yes
9958 tmp_sharedflag='-G' ;;
9959 *Sun\ F*) # Sun Fortran 8.3
9960 tmp_sharedflag='-G' ;;
9962 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9964 if test "x$supports_anon_versioning" = xyes; then
9965 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9967 echo "local: *; };" >> $output_objdir/$libname.ver~
9968 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9971 case $cc_basename in
9973 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9974 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9975 hardcode_libdir_flag_spec=
9976 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9977 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9978 if test "x$supports_anon_versioning" = xyes; then
9979 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9981 echo "local: *; };" >> $output_objdir/$libname.ver~
9982 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9993 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10002 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10007 *** create shared libraries on Solaris systems. Therefore, libtool
10008 *** is disabling shared libraries support. We urge you to upgrade GNU
10009 *** binutils to release 2.9.1 or newer. Another option is to modify
10010 *** your PATH or compiler configuration so that the native linker is
10011 *** used, and then restart.
10014 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10023 case `$LD -v 2>&1` in
10024 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10029 *** reliably create shared libraries on SCO systems. Therefore, libtool
10030 *** is disabling shared libraries support. We urge you to upgrade GNU
10031 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10032 *** your PATH or compiler configuration so that the native linker is
10033 *** used, and then restart.
10038 # For security reasons, it is highly recommended that you always
10039 # use absolute paths for naming shared libraries, and exclude the
10040 # DT_RUNPATH tag from executables and libraries. But doing so
10041 # requires that you compile everything twice, which is a pain.
10042 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10054 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_direct=yes
10057 hardcode_shlibpath_var=no
10061 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10070 if test "$ld_shlibs" = no; then
10072 hardcode_libdir_flag_spec=
10073 export_dynamic_flag_spec=
10074 whole_archive_flag_spec=
10077 # PORTME fill in a description of your system's linker (not GNU ld)
10080 allow_undefined_flag=unsupported
10081 always_export_symbols=yes
10082 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'
10083 # Note: this linker hardcodes the directories in LIBPATH if there
10084 # are no directories specified by -L.
10085 hardcode_minus_L=yes
10086 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10087 # Neither direct hardcoding nor static linking is supported with a
10089 hardcode_direct=unsupported
10094 if test "$host_cpu" = ia64; then
10095 # On IA64, the linker does run time linking by default, so we don't
10096 # have to do anything special.
10097 aix_use_runtimelinking=no
10098 exp_sym_flag='-Bexport'
10101 # If we're using GNU nm, then we don't want the "-C" option.
10102 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10103 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10104 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'
10106 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'
10108 aix_use_runtimelinking=no
10110 # Test if we are trying to use run time linking or normal
10111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10112 # need to do runtime linking.
10113 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10114 for ld_flag in $LDFLAGS; do
10115 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10116 aix_use_runtimelinking=yes
10123 exp_sym_flag='-bexport'
10124 no_entry_flag='-bnoentry'
10127 # When large executables or shared objects are built, AIX ld can
10128 # have problems creating the table of contents. If linking a library
10129 # or program results in "error TOC overflow" add -mminimal-toc to
10130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10134 hardcode_direct=yes
10135 hardcode_direct_absolute=yes
10136 hardcode_libdir_separator=':'
10137 link_all_deplibs=yes
10138 file_list_spec='${wl}-f,'
10140 if test "$GCC" = yes; then
10141 case $host_os in aix4.[012]|aix4.[012].*)
10142 # We only want to do this on AIX 4.2 and lower, the check
10143 # below for broken collect2 doesn't work under 4.3+
10144 collect2name=`${CC} -print-prog-name=collect2`
10145 if test -f "$collect2name" &&
10146 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10148 # We have reworked collect2
10151 # We have old collect2
10152 hardcode_direct=unsupported
10153 # It fails to find uninstalled libraries when the uninstalled
10154 # path is not listed in the libpath. Setting hardcode_minus_L
10155 # to unsupported forces relinking
10156 hardcode_minus_L=yes
10157 hardcode_libdir_flag_spec='-L$libdir'
10158 hardcode_libdir_separator=
10162 shared_flag='-shared'
10163 if test "$aix_use_runtimelinking" = yes; then
10164 shared_flag="$shared_flag "'${wl}-G'
10168 if test "$host_cpu" = ia64; then
10169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10170 # chokes on -Wl,-G. The following line is correct:
10173 if test "$aix_use_runtimelinking" = yes; then
10174 shared_flag='${wl}-G'
10176 shared_flag='${wl}-bM:SRE'
10181 export_dynamic_flag_spec='${wl}-bexpall'
10182 # It seems that -bexpall does not export symbols beginning with
10183 # underscore (_), so it is better to generate a list of symbols to export.
10184 always_export_symbols=yes
10185 if test "$aix_use_runtimelinking" = yes; then
10186 # Warning - without using the other runtime loading flags (-brtl),
10187 # -berok will link without error, but may produce a broken library.
10188 allow_undefined_flag='-berok'
10189 # Determine the default libpath from the value encoded in an
10190 # empty executable.
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10202 if ac_fn_c_try_link "$LINENO"; then :
10204 lt_aix_libpath_sed='
10205 /Import File Strings/,/^$/ {
10211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10212 # Check for a 64-bit object if we didn't find anything.
10213 if test -z "$aix_libpath"; then
10214 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10217 rm -f core conftest.err conftest.$ac_objext \
10218 conftest$ac_exeext conftest.$ac_ext
10219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10221 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10222 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10224 if test "$host_cpu" = ia64; then
10225 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10226 allow_undefined_flag="-z nodefs"
10227 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"
10229 # Determine the default libpath from the value encoded in an
10230 # empty executable.
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10242 if ac_fn_c_try_link "$LINENO"; then :
10244 lt_aix_libpath_sed='
10245 /Import File Strings/,/^$/ {
10251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10252 # Check for a 64-bit object if we didn't find anything.
10253 if test -z "$aix_libpath"; then
10254 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10261 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10262 # Warning - without using the other run time loading flags,
10263 # -berok will link without error, but may produce a broken library.
10264 no_undefined_flag=' ${wl}-bernotok'
10265 allow_undefined_flag=' ${wl}-berok'
10266 # Exported symbols can be pulled into shared objects from archives
10267 whole_archive_flag_spec='$convenience'
10268 archive_cmds_need_lc=yes
10269 # This is similar to how AIX traditionally builds its shared libraries.
10270 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'
10278 # see comment about AmigaOS4 .so support
10279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10280 archive_expsym_cmds=''
10283 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)'
10284 hardcode_libdir_flag_spec='-L$libdir'
10285 hardcode_minus_L=yes
10291 export_dynamic_flag_spec=-rdynamic
10294 cygwin* | mingw* | pw32* | cegcc*)
10295 # When not using gcc, we currently assume that we are using
10296 # Microsoft Visual C++.
10297 # hardcode_libdir_flag_spec is actually meaningless, as there is
10298 # no search path for DLLs.
10299 hardcode_libdir_flag_spec=' '
10300 allow_undefined_flag=unsupported
10301 # Tell ltmain to make .lib files, not .a files.
10303 # Tell ltmain to make .dll files, not .so files.
10305 # FIXME: Setting linknames here is a bad hack.
10306 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10307 # The linker will automatically build a .lib file if we build a DLL.
10308 old_archive_from_new_cmds='true'
10309 # FIXME: Should let the user specify the lib program.
10310 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10311 fix_srcfile_path='`cygpath -w "$srcfile"`'
10312 enable_shared_with_static_runtimes=yes
10315 darwin* | rhapsody*)
10318 archive_cmds_need_lc=no
10320 hardcode_automatic=yes
10321 hardcode_shlibpath_var=unsupported
10322 whole_archive_flag_spec=''
10323 link_all_deplibs=yes
10324 allow_undefined_flag="$_lt_dar_allow_undefined"
10325 case $cc_basename in
10326 ifort*) _lt_dar_can_shared=yes ;;
10327 *) _lt_dar_can_shared=$GCC ;;
10329 if test "$_lt_dar_can_shared" = "yes"; then
10330 output_verbose_link_cmd=echo
10331 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10332 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10333 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10334 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344 hardcode_libdir_flag_spec='-L$libdir'
10345 hardcode_shlibpath_var=no
10352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10353 # support. Future versions do this automatically, but an explicit c++rt0.o
10354 # does not break anything, and helps significantly (at the cost of a little
10357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10358 hardcode_libdir_flag_spec='-R$libdir'
10359 hardcode_direct=yes
10360 hardcode_shlibpath_var=no
10363 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10366 hardcode_direct=yes
10367 hardcode_minus_L=yes
10368 hardcode_shlibpath_var=no
10371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10372 freebsd* | dragonfly*)
10373 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10374 hardcode_libdir_flag_spec='-R$libdir'
10375 hardcode_direct=yes
10376 hardcode_shlibpath_var=no
10380 if test "$GCC" = yes; then
10381 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'
10383 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'
10385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10386 hardcode_libdir_separator=:
10387 hardcode_direct=yes
10389 # hardcode_minus_L: Not really in the search PATH,
10390 # but as the default location of the library.
10391 hardcode_minus_L=yes
10392 export_dynamic_flag_spec='${wl}-E'
10396 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10397 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10401 if test "$with_gnu_ld" = no; then
10402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10403 hardcode_libdir_flag_spec_ld='+b $libdir'
10404 hardcode_libdir_separator=:
10405 hardcode_direct=yes
10406 hardcode_direct_absolute=yes
10407 export_dynamic_flag_spec='${wl}-E'
10408 # hardcode_minus_L: Not really in the search PATH,
10409 # but as the default location of the library.
10410 hardcode_minus_L=yes
10415 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10418 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10430 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10436 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10440 if test "$with_gnu_ld" = no; then
10441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10442 hardcode_libdir_separator=:
10447 hardcode_shlibpath_var=no
10450 hardcode_direct=yes
10451 hardcode_direct_absolute=yes
10452 export_dynamic_flag_spec='${wl}-E'
10454 # hardcode_minus_L: Not really in the search PATH,
10455 # but as the default location of the library.
10456 hardcode_minus_L=yes
10462 irix5* | irix6* | nonstopux*)
10463 if test "$GCC" = yes; then
10464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10465 # Try to use the -exported_symbol ld option, if it does not
10466 # work, assume that -exports_file does not work either and
10467 # implicitly export all symbols.
10468 save_LDFLAGS="$LDFLAGS"
10469 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10474 if ac_fn_c_try_link "$LINENO"; then :
10475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10478 rm -f core conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
10480 LDFLAGS="$save_LDFLAGS"
10482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10485 archive_cmds_need_lc='no'
10486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10487 hardcode_libdir_separator=:
10489 link_all_deplibs=yes
10493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10496 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10498 hardcode_libdir_flag_spec='-R$libdir'
10499 hardcode_direct=yes
10500 hardcode_shlibpath_var=no
10504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10505 hardcode_direct=yes
10506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10507 hardcode_libdir_separator=:
10508 hardcode_shlibpath_var=no
10515 if test -f /usr/libexec/ld.so; then
10516 hardcode_direct=yes
10517 hardcode_shlibpath_var=no
10518 hardcode_direct_absolute=yes
10519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10523 export_dynamic_flag_spec='${wl}-E'
10526 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10528 hardcode_libdir_flag_spec='-R$libdir'
10531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10542 hardcode_libdir_flag_spec='-L$libdir'
10543 hardcode_minus_L=yes
10544 allow_undefined_flag=unsupported
10545 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'
10546 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10550 if test "$GCC" = yes; then
10551 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10552 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10554 allow_undefined_flag=' -expect_unresolved \*'
10555 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10557 archive_cmds_need_lc='no'
10558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10559 hardcode_libdir_separator=:
10562 osf4* | osf5*) # as osf3* with the addition of -msym flag
10563 if test "$GCC" = yes; then
10564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10565 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10568 allow_undefined_flag=' -expect_unresolved \*'
10569 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10570 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10571 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10573 # Both c and cxx compiler support -rpath directly
10574 hardcode_libdir_flag_spec='-rpath $libdir'
10576 archive_cmds_need_lc='no'
10577 hardcode_libdir_separator=:
10581 no_undefined_flag=' -z defs'
10582 if test "$GCC" = yes; then
10584 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10586 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10588 case `$CC -V 2>&1` in
10591 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10597 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10599 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10603 hardcode_libdir_flag_spec='-R$libdir'
10604 hardcode_shlibpath_var=no
10606 solaris2.[0-5] | solaris2.[0-5].*) ;;
10608 # The compiler driver will combine and reorder linker options,
10609 # but understands `-z linker_flag'. GCC discards it without `$wl',
10610 # but is careful enough not to reorder.
10611 # Supported since Solaris 2.6 (maybe 2.5.1?)
10612 if test "$GCC" = yes; then
10613 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10615 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10619 link_all_deplibs=yes
10623 if test "x$host_vendor" = xsequent; then
10624 # Use $CC to link under sequent, because it throws in some extra .o
10625 # files that make .init and .fini sections work.
10626 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10628 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10630 hardcode_libdir_flag_spec='-L$libdir'
10631 hardcode_direct=yes
10632 hardcode_minus_L=yes
10633 hardcode_shlibpath_var=no
10637 case $host_vendor in
10639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640 hardcode_direct=yes # is this really true???
10643 ## LD is ld it makes a PLAMLIB
10644 ## CC just makes a GrossModule.
10645 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10646 reload_cmds='$CC -r -o $output$reload_objs'
10650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10651 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10654 runpath_var='LD_RUN_PATH'
10655 hardcode_shlibpath_var=no
10659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_shlibpath_var=no
10661 export_dynamic_flag_spec='-Bexport'
10665 if test -d /usr/nec; then
10666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10667 hardcode_shlibpath_var=no
10668 runpath_var=LD_RUN_PATH
10669 hardcode_runpath_var=yes
10674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10675 no_undefined_flag='${wl}-z,text'
10676 archive_cmds_need_lc=no
10677 hardcode_shlibpath_var=no
10678 runpath_var='LD_RUN_PATH'
10680 if test "$GCC" = yes; then
10681 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10684 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10689 sysv5* | sco3.2v5* | sco5v6*)
10690 # Note: We can NOT use -z defs as we might desire, because we do not
10691 # link with -lc, and that would cause any symbols used from libc to
10692 # always be unresolved, which means just about no library would
10693 # ever link correctly. If we're not using GNU ld we use -z text
10694 # though, which does catch some bad symbols but isn't as heavy-handed
10696 no_undefined_flag='${wl}-z,text'
10697 allow_undefined_flag='${wl}-z,nodefs'
10698 archive_cmds_need_lc=no
10699 hardcode_shlibpath_var=no
10700 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10701 hardcode_libdir_separator=':'
10702 link_all_deplibs=yes
10703 export_dynamic_flag_spec='${wl}-Bexport'
10704 runpath_var='LD_RUN_PATH'
10706 if test "$GCC" = yes; then
10707 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10710 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10717 hardcode_libdir_flag_spec='-L$libdir'
10718 hardcode_shlibpath_var=no
10726 if test x$host_vendor = xsni; then
10728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10729 export_dynamic_flag_spec='${wl}-Blargedynsym'
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10736 $as_echo "$ld_shlibs" >&6; }
10737 test "$ld_shlibs" = no && can_build_shared=no
10739 with_gnu_ld=$with_gnu_ld
10756 # Do we need to explicitly link libc?
10758 case "x$archive_cmds_need_lc" in
10760 # Assume -lc should be added
10761 archive_cmds_need_lc=yes
10763 if test "$enable_shared" = yes && test "$GCC" = yes; then
10764 case $archive_cmds in
10766 # FIXME: we may have to deal with multi-command sequences.
10769 # Test whether the compiler implicitly links with -lc since on some
10770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10771 # to ld, don't add -lc before -lgcc.
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10778 (eval $ac_compile) 2>&5
10780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10781 test $ac_status = 0; } 2>conftest.err; then
10784 libobjs=conftest.$ac_objext
10786 wl=$lt_prog_compiler_wl
10787 pic_flag=$lt_prog_compiler_pic
10793 lt_save_allow_undefined_flag=$allow_undefined_flag
10794 allow_undefined_flag=
10795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10796 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10799 test $ac_status = 0; }
10801 archive_cmds_need_lc=no
10803 archive_cmds_need_lc=yes
10805 allow_undefined_flag=$lt_save_allow_undefined_flag
10807 cat conftest.err 1>&5
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10811 $as_echo "$archive_cmds_need_lc" >&6; }
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10975 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10977 if test "$GCC" = yes; then
10979 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10980 *) lt_awk_arg="/^libraries:/" ;;
10982 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10983 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10984 # if the path contains ";" then we assume it to be the separator
10985 # otherwise default to the standard path separator (i.e. ":") - it is
10986 # assumed that no part of a normal pathname contains ";" but that should
10987 # okay in the real world where ";" in dirpaths is itself problematic.
10988 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10990 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10992 # Ok, now we have the path, separated by spaces, we can step through it
10993 # and add multilib dir if necessary.
10994 lt_tmp_lt_search_path_spec=
10995 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10996 for lt_sys_path in $lt_search_path_spec; do
10997 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10998 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11000 test -d "$lt_sys_path" && \
11001 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11004 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11005 BEGIN {RS=" "; FS="/|\n";} {
11008 for (lt_i = NF; lt_i > 0; lt_i--) {
11009 if ($lt_i != "" && $lt_i != ".") {
11010 if ($lt_i == "..") {
11013 if (lt_count == 0) {
11014 lt_foo="/" $lt_i lt_foo;
11021 if (lt_foo != "") { lt_freq[lt_foo]++; }
11022 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11024 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11028 library_names_spec=
11029 libname_spec='lib$name'
11033 postuninstall_cmds=
11037 shlibpath_overrides_runpath=unknown
11039 dynamic_linker="$host_os ld.so"
11040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11041 need_lib_prefix=unknown
11042 hardcode_into_libs=no
11044 # when you set need_version to no, make sure it does not cause -set_version
11045 # flags to be left without arguments
11046 need_version=unknown
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11052 shlibpath_var=LIBPATH
11054 # AIX 3 has no versioning support, so we append a major version to the name.
11055 soname_spec='${libname}${release}${shared_ext}$major'
11062 hardcode_into_libs=yes
11063 if test "$host_cpu" = ia64; then
11064 # AIX 5 supports IA64
11065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11066 shlibpath_var=LD_LIBRARY_PATH
11068 # With GCC up to 2.95.x, collect2 would create an import file
11069 # for dependence libraries. The import file would start with
11070 # the line `#! .'. This would cause the generated library to
11071 # depend on `.', always an invalid library. This was fixed in
11072 # development snapshots of GCC prior to 3.0.
11074 aix4 | aix4.[01] | aix4.[01].*)
11075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11080 can_build_shared=no
11084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11085 # soname into executable. Probably we can add versioning support to
11086 # collect2, so additional links can be useful in future.
11087 if test "$aix_use_runtimelinking" = yes; then
11088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11089 # instead of lib<name>.a to let people know that these are not
11090 # typical AIX shared libraries.
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 # We preserve .a as extension for shared libraries through AIX4.2
11094 # and later when we are not doing run time linking.
11095 library_names_spec='${libname}${release}.a $libname.a'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11098 shlibpath_var=LIBPATH
11105 # Since July 2007 AmigaOS4 officially supports .so libraries.
11106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 library_names_spec='$libname.ixlibrary $libname.a'
11111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11112 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'
11118 library_names_spec='${libname}${shared_ext}'
11119 dynamic_linker="$host_os ld.so"
11120 shlibpath_var=LIBRARY_PATH
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11132 # the default ld.so.conf also contains /usr/contrib/lib and
11133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11134 # libtool to hard-code these into programs
11137 cygwin* | mingw* | pw32* | cegcc*)
11138 version_type=windows
11143 case $GCC,$host_os in
11144 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11145 library_names_spec='$libname.dll.a'
11146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11147 postinstall_cmds='base_file=`basename \${file}`~
11148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11149 dldir=$destdir/`dirname \$dlpath`~
11150 test -d \$dldir || mkdir -p \$dldir~
11151 $install_prog $dir/$dlname \$dldir/$dlname~
11152 chmod a+x \$dldir/$dlname~
11153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11157 dlpath=$dir/\$dldll~
11159 shlibpath_overrides_runpath=yes
11163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11165 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11168 # MinGW DLLs use traditional 'lib' prefix
11169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11171 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11172 # It is most probably a Windows format PATH printed by
11173 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11174 # path with ; separators, and with drive letters. We can handle the
11175 # drive letters (cygwin fileutils understands them), so leave them,
11176 # especially as we might pass files found there to a mingw objdump,
11177 # which wouldn't understand a cygwinified path. Ahh.
11178 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11180 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11184 # pw32 DLLs use 'pw' prefix rather than 'lib'
11185 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11191 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11194 dynamic_linker='Win32 ld.exe'
11195 # FIXME: first we should search . and the directory the executable is in
11199 darwin* | rhapsody*)
11200 dynamic_linker="$host_os dyld"
11201 version_type=darwin
11204 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11205 soname_spec='${libname}${release}${major}$shared_ext'
11206 shlibpath_overrides_runpath=yes
11207 shlibpath_var=DYLD_LIBRARY_PATH
11208 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11210 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 shlibpath_var=LD_LIBRARY_PATH
11227 freebsd* | dragonfly*)
11228 # DragonFly does not have aout. When/if they implement a new
11229 # versioning mechanism, adjust this.
11230 if test -x /usr/bin/objformat; then
11231 objformat=`/usr/bin/objformat`
11234 freebsd[123]*) objformat=aout ;;
11235 *) objformat=elf ;;
11238 version_type=freebsd-$objformat
11239 case $version_type in
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11250 shlibpath_var=LD_LIBRARY_PATH
11253 shlibpath_overrides_runpath=yes
11255 freebsd3.[01]* | freebsdelf3.[01]*)
11256 shlibpath_overrides_runpath=yes
11257 hardcode_into_libs=yes
11259 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11260 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11261 shlibpath_overrides_runpath=no
11262 hardcode_into_libs=yes
11264 *) # from 4.6 on, and DragonFly
11265 shlibpath_overrides_runpath=yes
11266 hardcode_into_libs=yes
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 hardcode_into_libs=yes
11281 hpux9* | hpux10* | hpux11*)
11282 # Give a soname corresponding to the major version so that dld.sl refuses to
11283 # link against other versions.
11290 hardcode_into_libs=yes
11291 dynamic_linker="$host_os dld.so"
11292 shlibpath_var=LD_LIBRARY_PATH
11293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 if test "X$HPUX_IA64_MODE" = X32; then
11297 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11299 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11305 hardcode_into_libs=yes
11306 dynamic_linker="$host_os dld.sl"
11307 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11310 soname_spec='${libname}${release}${shared_ext}$major'
11311 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11316 dynamic_linker="$host_os dld.sl"
11317 shlibpath_var=SHLIB_PATH
11318 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11323 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11324 postinstall_cmds='chmod 555 $lib'
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 shlibpath_overrides_runpath=no
11336 hardcode_into_libs=yes
11339 irix5* | irix6* | nonstopux*)
11341 nonstopux*) version_type=nonstopux ;;
11343 if test "$lt_cv_prog_gnu_ld" = yes; then
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11354 irix5* | nonstopux*)
11355 libsuff= shlibsuff=
11358 case $LD in # libtool.m4 will add one of these switches to LD
11359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11360 libsuff= shlibsuff= libmagic=32-bit;;
11361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11362 libsuff=32 shlibsuff=N32 libmagic=N32;;
11363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11365 *) libsuff= shlibsuff= libmagic=never-match;;
11369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11370 shlibpath_overrides_runpath=no
11371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11373 hardcode_into_libs=yes
11376 # No shared lib support for Linux oldld, aout, or coff.
11377 linux*oldld* | linux*aout* | linux*coff*)
11381 # This must be Linux ELF.
11382 linux* | k*bsd*-gnu)
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11389 shlibpath_var=LD_LIBRARY_PATH
11390 shlibpath_overrides_runpath=no
11391 # Some binutils ld are patched to set DT_RUNPATH
11392 save_LDFLAGS=$LDFLAGS
11393 save_libdir=$libdir
11394 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11395 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11407 if ac_fn_c_try_link "$LINENO"; then :
11408 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11409 shlibpath_overrides_runpath=yes
11412 rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414 LDFLAGS=$save_LDFLAGS
11415 libdir=$save_libdir
11417 # This implies no fast_install, which is unacceptable.
11418 # Some rework will be needed to allow for fast_install
11419 # before this can be enabled.
11420 hardcode_into_libs=yes
11422 # Append ld.so.conf contents to the search path
11423 if test -f /etc/ld.so.conf; then
11424 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' ' '`
11425 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11428 # We used to test for /lib/ld.so.1 and disable shared libraries on
11429 # powerpc, because MkLinux only supported shared libraries with the
11430 # GNU dynamic linker. Since this was broken with cross compilers,
11431 # most powerpc-linux boxes support dynamic linking these days and
11432 # people can always --disable-shared, the test was removed, and we
11433 # assume the GNU/Linux dynamic linker is in use.
11434 dynamic_linker='GNU/Linux ld.so'
11441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11444 dynamic_linker='NetBSD (a.out) ld.so'
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 dynamic_linker='NetBSD ld.elf_so'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes
11452 hardcode_into_libs=yes
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=yes
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467 soname_spec='${libname}${release}${shared_ext}$major'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=no
11470 hardcode_into_libs=yes
11471 dynamic_linker='ldqnx.so'
11476 sys_lib_dlsearch_path_spec="/usr/lib"
11478 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11480 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11481 *) need_version=no ;;
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11488 openbsd2.[89] | openbsd2.[89].*)
11489 shlibpath_overrides_runpath=no
11492 shlibpath_overrides_runpath=yes
11496 shlibpath_overrides_runpath=yes
11501 libname_spec='$name'
11504 library_names_spec='$libname${shared_ext} $libname.a'
11505 dynamic_linker='OS/2 ld.exe'
11506 shlibpath_var=LIBPATH
11509 osf3* | osf4* | osf5*)
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11517 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=yes
11532 hardcode_into_libs=yes
11533 # ldd complains unless libraries are executable
11534 postinstall_cmds='chmod +x $lib'
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=yes
11543 if test "$with_gnu_ld" = yes; then
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552 soname_spec='${libname}${release}${shared_ext}$major'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 case $host_vendor in
11556 shlibpath_overrides_runpath=no
11558 runpath_var=LD_RUN_PATH
11566 shlibpath_overrides_runpath=no
11567 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11573 if test -d /usr/nec ;then
11575 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11576 soname_spec='$libname${shared_ext}.$major'
11577 shlibpath_var=LD_LIBRARY_PATH
11581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11582 version_type=freebsd-elf
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 shlibpath_overrides_runpath=yes
11589 hardcode_into_libs=yes
11590 if test "$with_gnu_ld" = yes; then
11591 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11593 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11600 sys_lib_dlsearch_path_spec='/usr/lib'
11604 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=no
11611 hardcode_into_libs=yes
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 shlibpath_var=LD_LIBRARY_PATH
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11626 $as_echo "$dynamic_linker" >&6; }
11627 test "$dynamic_linker" = no && can_build_shared=no
11629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11630 if test "$GCC" = yes; then
11631 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11634 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11635 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11637 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11638 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11728 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11730 if test -n "$hardcode_libdir_flag_spec" ||
11731 test -n "$runpath_var" ||
11732 test "X$hardcode_automatic" = "Xyes" ; then
11734 # We can hardcode non-existent directories.
11735 if test "$hardcode_direct" != no &&
11736 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11737 # have to relink, otherwise we might link with an installed library
11738 # when we should be linking with a yet-to-be-installed one
11739 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11740 test "$hardcode_minus_L" != no; then
11741 # Linking always hardcodes the temporary library directory.
11742 hardcode_action=relink
11744 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11745 hardcode_action=immediate
11748 # We cannot hardcode anything, or else we can only hardcode existing
11750 hardcode_action=unsupported
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11753 $as_echo "$hardcode_action" >&6; }
11755 if test "$hardcode_action" = relink ||
11756 test "$inherit_rpath" = yes; then
11757 # Fast installation is not supported
11758 enable_fast_install=no
11759 elif test "$shlibpath_overrides_runpath" = yes ||
11760 test "$enable_shared" = no; then
11761 # Fast installation is not necessary
11762 enable_fast_install=needless
11770 if test "x$enable_dlopen" != xyes; then
11771 enable_dlopen=unknown
11772 enable_dlopen_self=unknown
11773 enable_dlopen_self_static=unknown
11780 lt_cv_dlopen="load_add_on"
11782 lt_cv_dlopen_self=yes
11785 mingw* | pw32* | cegcc*)
11786 lt_cv_dlopen="LoadLibrary"
11791 lt_cv_dlopen="dlopen"
11796 # if libdl is installed we need to link against it
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11802 ac_check_lib_save_LIBS=$LIBS
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11822 if ac_fn_c_try_link "$LINENO"; then :
11823 ac_cv_lib_dl_dlopen=yes
11825 ac_cv_lib_dl_dlopen=no
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11833 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11837 lt_cv_dlopen="dyld"
11839 lt_cv_dlopen_self=yes
11846 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11847 if test "x$ac_cv_func_shl_load" = x""yes; then :
11848 lt_cv_dlopen="shl_load"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11851 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
11855 ac_check_lib_save_LIBS=$LIBS
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11870 return shl_load ();
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 ac_cv_lib_dld_shl_load=yes
11878 ac_cv_lib_dld_shl_load=no
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11885 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11886 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11887 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11889 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11890 if test "x$ac_cv_func_dlopen" = x""yes; then :
11891 lt_cv_dlopen="dlopen"
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11898 ac_check_lib_save_LIBS=$LIBS
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11903 /* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11918 if ac_fn_c_try_link "$LINENO"; then :
11919 ac_cv_lib_dl_dlopen=yes
11921 ac_cv_lib_dl_dlopen=no
11923 rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11929 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11933 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11934 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lsvld $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11957 if ac_fn_c_try_link "$LINENO"; then :
11958 ac_cv_lib_svld_dlopen=yes
11960 ac_cv_lib_svld_dlopen=no
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11967 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11968 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11972 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11973 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
11976 ac_check_lib_save_LIBS=$LIBS
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11981 /* Override any GCC internal prototype to avoid an error.
11982 Use char because int might match the return type of a GCC
11983 builtin and then its argument prototype would still apply. */
11991 return dld_link ();
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_lib_dld_dld_link=yes
11999 ac_cv_lib_dld_dld_link=no
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12006 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12007 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12008 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12029 if test "x$lt_cv_dlopen" != xno; then
12035 case $lt_cv_dlopen in
12037 save_CPPFLAGS="$CPPFLAGS"
12038 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12040 save_LDFLAGS="$LDFLAGS"
12041 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12044 LIBS="$lt_cv_dlopen_libs $LIBS"
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12047 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12048 if test "${lt_cv_dlopen_self+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12051 if test "$cross_compiling" = yes; then :
12052 lt_cv_dlopen_self=cross
12054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12055 lt_status=$lt_dlunknown
12056 cat > conftest.$ac_ext <<_LT_EOF
12057 #line 12057 "configure"
12058 #include "confdefs.h"
12067 # define LT_DLGLOBAL RTLD_GLOBAL
12070 # define LT_DLGLOBAL DL_GLOBAL
12072 # define LT_DLGLOBAL 0
12076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12077 find out it does not work in some platform. */
12078 #ifndef LT_DLLAZY_OR_NOW
12080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12083 # define LT_DLLAZY_OR_NOW DL_LAZY
12086 # define LT_DLLAZY_OR_NOW RTLD_NOW
12089 # define LT_DLLAZY_OR_NOW DL_NOW
12091 # define LT_DLLAZY_OR_NOW 0
12098 void fnord() { int i=42;}
12101 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12102 int status = $lt_dlunknown;
12106 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12107 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12108 /* dlclose (self); */
12116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12117 (eval $ac_link) 2>&5
12119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12120 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12121 (./conftest; exit; ) >&5 2>/dev/null
12123 case x$lt_status in
12124 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12125 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12126 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12129 # compilation failed
12130 lt_cv_dlopen_self=no
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12138 $as_echo "$lt_cv_dlopen_self" >&6; }
12140 if test "x$lt_cv_dlopen_self" = xyes; then
12141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12143 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12144 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
12147 if test "$cross_compiling" = yes; then :
12148 lt_cv_dlopen_self_static=cross
12150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12151 lt_status=$lt_dlunknown
12152 cat > conftest.$ac_ext <<_LT_EOF
12153 #line 12153 "configure"
12154 #include "confdefs.h"
12163 # define LT_DLGLOBAL RTLD_GLOBAL
12166 # define LT_DLGLOBAL DL_GLOBAL
12168 # define LT_DLGLOBAL 0
12172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12173 find out it does not work in some platform. */
12174 #ifndef LT_DLLAZY_OR_NOW
12176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12179 # define LT_DLLAZY_OR_NOW DL_LAZY
12182 # define LT_DLLAZY_OR_NOW RTLD_NOW
12185 # define LT_DLLAZY_OR_NOW DL_NOW
12187 # define LT_DLLAZY_OR_NOW 0
12194 void fnord() { int i=42;}
12197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12198 int status = $lt_dlunknown;
12202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12203 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12204 /* dlclose (self); */
12212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12213 (eval $ac_link) 2>&5
12215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12216 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12217 (./conftest; exit; ) >&5 2>/dev/null
12219 case x$lt_status in
12220 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12221 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12222 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12225 # compilation failed
12226 lt_cv_dlopen_self_static=no
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12234 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12237 CPPFLAGS="$save_CPPFLAGS"
12238 LDFLAGS="$save_LDFLAGS"
12243 case $lt_cv_dlopen_self in
12244 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12245 *) enable_dlopen_self=unknown ;;
12248 case $lt_cv_dlopen_self_static in
12249 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12250 *) enable_dlopen_self_static=unknown ;;
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12273 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12274 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12275 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12276 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12278 $as_echo "yes" >&6; }
12280 # FIXME - insert some real tests, host_os isn't really good enough
12283 if test -n "$STRIP" ; then
12284 striplib="$STRIP -x"
12285 old_striplib="$STRIP -S"
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12287 $as_echo "yes" >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12311 # Report which library types will actually be built
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12313 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12315 $as_echo "$can_build_shared" >&6; }
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12318 $as_echo_n "checking whether to build shared libraries... " >&6; }
12319 test "$can_build_shared" = "no" && enable_shared=no
12321 # On AIX, shared libraries and static libraries use the same namespace, and
12322 # are all built from PIC.
12325 test "$enable_shared" = yes && enable_static=no
12326 if test -n "$RANLIB"; then
12327 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12328 postinstall_cmds='$RANLIB $lib'
12333 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12334 test "$enable_shared" = yes && enable_static=no
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12339 $as_echo "$enable_shared" >&6; }
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12342 $as_echo_n "checking whether to build static libraries... " >&6; }
12343 # Make sure either enable_shared or enable_static is yes.
12344 test "$enable_shared" = yes || enable_static=yes
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12346 $as_echo "$enable_static" >&6; }
12353 ac_cpp='$CPP $CPPFLAGS'
12354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372 ac_config_commands="$ac_config_commands libtool"
12377 # Only expand once:
12381 if test "$enable_shared" = "no"; then
12384 eval _shrext="$shrext_cmds"
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
12387 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
12389 # Check whether --with-noexec was given.
12390 if test "${with_noexec+set}" = set; then :
12391 withval=$with_noexec; case $with_noexec in
12392 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
12398 with_noexec="$libexecdir/sudo_noexec$_shrext"
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
12402 $as_echo "$with_noexec" >&6; }
12403 NOEXECFILE="sudo_noexec$_shrext"
12404 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
12406 if test X"$with_devel" = X"yes" -a -n "$GCC"; then
12407 CFLAGS="${CFLAGS} -Wall"
12410 # Extract the first word of "uname", so it can be a program name with args.
12411 set dummy uname; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12417 if test -n "$UNAMEPROG"; then
12418 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12427 ac_cv_prog_UNAMEPROG="uname"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 UNAMEPROG=$ac_cv_prog_UNAMEPROG
12438 if test -n "$UNAMEPROG"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
12440 $as_echo "$UNAMEPROG" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12447 # Extract the first word of "tr", so it can be a program name with args.
12448 set dummy tr; ac_word=$2
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450 $as_echo_n "checking for $ac_word... " >&6; }
12451 if test "${ac_cv_prog_TRPROG+set}" = set; then :
12452 $as_echo_n "(cached) " >&6
12454 if test -n "$TRPROG"; then
12455 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12461 test -z "$as_dir" && as_dir=.
12462 for ac_exec_ext in '' $ac_executable_extensions; do
12463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12464 ac_cv_prog_TRPROG="tr"
12465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 TRPROG=$ac_cv_prog_TRPROG
12475 if test -n "$TRPROG"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
12477 $as_echo "$TRPROG" >&6; }
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12484 for ac_prog in nroff mandoc
12486 # Extract the first word of "$ac_prog", so it can be a program name with args.
12487 set dummy $ac_prog; ac_word=$2
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489 $as_echo_n "checking for $ac_word... " >&6; }
12490 if test "${ac_cv_prog_NROFFPROG+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
12493 if test -n "$NROFFPROG"; then
12494 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
12496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497 for as_dir in $PATH
12500 test -z "$as_dir" && as_dir=.
12501 for ac_exec_ext in '' $ac_executable_extensions; do
12502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12503 ac_cv_prog_NROFFPROG="$ac_prog"
12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 NROFFPROG=$ac_cv_prog_NROFFPROG
12514 if test -n "$NROFFPROG"; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
12516 $as_echo "$NROFFPROG" >&6; }
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12523 test -n "$NROFFPROG" && break
12526 if test -z "$NROFFPROG"; then
12528 mansrcdir='$(srcdir)'
12531 if test -n "$sudo_cv_prev_host"; then
12532 if test "$sudo_cv_prev_host" != "$host"; then
12533 as_fn_error "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
12536 $as_echo_n "checking previous host type... " >&6; }
12537 if test "${sudo_cv_prev_host+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12540 sudo_cv_prev_host="$host"
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
12544 $as_echo "$sudo_cv_prev_host" >&6; }
12547 # this will produce no output since there is no cached value
12548 if test "${sudo_cv_prev_host+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12551 sudo_cv_prev_host="$host"
12556 if test -n "$host_os"; then
12557 OS=`echo $host_os | sed 's/[0-9].*//'`
12558 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
12559 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
12568 # getcwd(3) opens a pipe to getpwd(1)!?!
12571 # system headers lack prototypes but gcc helps...
12572 if test -n "$GCC"; then
12573 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
12576 shadow_funcs="getpwanam issecure"
12579 # To get the crypt(3) prototype (so we pass -Wall)
12580 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
12581 # AFS support needs -lucb
12582 if test "$with_AFS" = "yes"; then
12583 AFS_LIBS="-lc -lucb"
12585 : ${mansectsu='1m'}
12586 : ${mansectform='4'}
12587 : ${with_rpath='yes'}
12588 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12591 # To get all prototypes (so we pass -Wall)
12592 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
12593 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
12594 if test X"$with_blibpath" != X"no"; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
12596 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
12597 O_LDFLAGS="$LDFLAGS"
12598 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12610 if ac_fn_c_try_link "$LINENO"; then :
12612 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
12613 blibpath="$with_blibpath"
12614 elif test -n "$GCC"; then
12615 blibpath="/usr/lib:/lib:/usr/local/lib"
12617 blibpath="/usr/lib:/lib"
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12620 $as_echo "yes" >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12626 rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12629 LDFLAGS="$O_LDFLAGS"
12631 # Use authenticate(3) as the default authentication method
12632 if test X"$with_aixauth" = X""; then
12633 for ac_func in authenticate
12635 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
12636 if test "x$ac_cv_func_authenticate" = x""yes; then :
12637 cat >>confdefs.h <<_ACEOF
12638 #define HAVE_AUTHENTICATE 1
12640 AUTH_EXCL_DEF="AIX_AUTH"
12646 # AIX analog of nsswitch.conf, enabled by default
12648 # Check whether --with-netsvc was given.
12649 if test "${with_netsvc+set}" = set; then :
12650 withval=$with_netsvc; case $with_netsvc in
12652 yes) with_netsvc="/etc/netsvc.conf"
12658 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12659 with_netsvc="/etc/netsvc.conf"
12662 # AIX-specific functions
12663 for ac_func in getuserattr setauthdb
12665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12666 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12667 eval as_val=\$$as_ac_var
12668 if test "x$as_val" = x""yes; then :
12669 cat >>confdefs.h <<_ACEOF
12670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12676 COMMON_OBJS="$COMMON_OBJS aix.o"
12679 : ${mansectsu='1m'}
12680 : ${mansectform='4'}
12683 # AFS support needs -lBSD
12684 if test "$with_AFS" = "yes"; then
12685 AFS_LIBS="-lc -lBSD"
12687 : ${mansectsu='1m'}
12688 : ${mansectform='4'}
12690 if test -z "$GCC"; then
12691 # HP-UX bundled compiler can't generate shared objects
12692 if -z "$pic_flag"; then
12696 # Use the +DAportable flag on hppa if it is supported
12697 case "$host_cpu" in
12700 CFLAGS="$CFLAGS +DAportable"
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands +DAportable" >&5
12702 $as_echo_n "checking whether $CC understands +DAportable... " >&6; }
12703 if test "${sudo_cv_var_daportable+set}" = set; then :
12704 $as_echo_n "(cached) " >&6
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12717 if ac_fn_c_try_link "$LINENO"; then :
12718 sudo_cv_var_daportable=yes
12720 sudo_cv_var_daportable=no
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
12729 $as_echo "$sudo_cv_var_daportable" >&6; }
12730 if test X"$sudo_cv_var_daportable" != X"yes"; then
12739 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12742 # Not sure if setuid binaries are safe in < 9.x
12743 if test -n "$GCC"; then
12744 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12746 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12750 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12753 shadow_funcs="getspwuid"
12755 # DCE support (requires ANSI C compiler)
12756 if test "$with_DCE" = "yes"; then
12757 # order of libs in 9.X is important. -lc_r must be last
12758 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12759 LIBS="${LIBS} -ldce -lM -lc_r"
12760 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12764 shadow_funcs="getprpwnam iscomsec"
12765 shadow_libs="-lsec"
12768 shadow_funcs="getspnam iscomsec"
12769 shadow_libs="-lsec"
12770 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12775 # ignore envariables wrt dynamic lib path
12776 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12778 : ${CHECKSIA='true'}
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
12780 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
12781 # Check whether --enable-sia was given.
12782 if test "${enable_sia+set}" = set; then :
12783 enableval=$enable_sia; case "$enableval" in
12784 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12788 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12789 $as_echo "yes" >&6; }
12792 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12795 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801 $as_echo "no" >&6; }
12805 shadow_funcs="getprpwnam dispcrypt"
12806 # OSF/1 4.x and higher need -ldb too
12807 if test $OSMAJOR -lt 4; then
12808 shadow_libs="-lsecurity -laud -lm"
12810 shadow_libs="-lsecurity -ldb -laud -lm"
12813 # use SIA by default, if we have it
12814 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12817 # Some versions of Digital Unix ship with a broken
12818 # copy of prot.h, which we need for shadow passwords.
12819 # XXX - make should remove this as part of distclean
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
12822 $as_echo_n "checking for broken prot.h... " >&6; }
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12826 #include <sys/types.h>
12827 #include <sys/security.h>
12838 if ac_fn_c_try_compile "$LINENO"; then :
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
12843 $as_echo "yes, fixing locally" >&6; }
12844 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849 : ${mansectform='4'}
12852 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12853 if test -z "$NROFFPROG"; then
12854 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)'
12855 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
12856 if test -d /usr/share/catman/local; then
12857 mandir="/usr/share/catman/local"
12859 mandir="/usr/catman/local"
12863 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
12864 if test -d "/usr/share/man/local"; then
12865 mandir="/usr/share/man/local"
12867 mandir="/usr/man/local"
12871 # IRIX <= 4 needs -lsun
12872 if test "$OSMAJOR" -le 4; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
12874 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
12875 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12878 ac_check_lib_save_LIBS=$LIBS
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12893 return getpwnam ();
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 ac_cv_lib_sun_getpwnam=yes
12901 ac_cv_lib_sun_getpwnam=no
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
12908 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
12909 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
12910 LIBS="${LIBS} -lsun"
12914 : ${mansectsu='1m'}
12915 : ${mansectform='4'}
12917 *-*-linux*|*-*-k*bsd*-gnu)
12918 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12919 # Some Linux versions need to link with -lshadow
12920 shadow_funcs="getspnam"
12921 shadow_libs_optional="-lshadow"
12922 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12925 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12926 if test -z "$GCC"; then
12927 CFLAGS="${CFLAGS} -D__STDC__"
12930 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12931 shadow_funcs="getprpwnam"
12932 shadow_libs="-lprot"
12936 shadow_funcs="getauthuid"
12937 shadow_libs="-lauth"
12940 LIBS="${LIBS} -lsun -lbsd"
12941 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12942 OSDEFS="${OSDEFS} -D_MIPS"
12943 : ${mansectsu='1m'}
12944 : ${mansectform='4'}
12947 OSDEFS="${OSDEFS} -D_ISC"
12949 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12950 LIBS="${LIBS} -lcrypt"
12952 shadow_funcs="getspnam"
12953 shadow_libs="-lsec"
12955 : ${mansectsu='1m'}
12956 : ${mansectform='4'}
12959 shadow_funcs="getprpwnam"
12960 shadow_libs="-lprot -lx"
12961 : ${mansectsu='1m'}
12962 : ${mansectform='4'}
12964 m88k-motorola-sysv*)
12965 # motorolla's cc (a variant of gcc) does -O but not -O2
12966 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12967 : ${mansectsu='1m'}
12968 : ${mansectform='4'}
12971 shadow_funcs="getspnam"
12972 shadow_libs="-lsec"
12973 : ${mansectsu='1m'}
12974 : ${mansectform='4'}
12975 : ${with_rpath='yes'}
12977 *-ncr-sysv4*|*-ncr-sysvr4*)
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
12979 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
12980 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12983 ac_check_lib_save_LIBS=$LIBS
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12988 /* Override any GCC internal prototype to avoid an error.
12989 Use char because int might match the return type of a GCC
12990 builtin and then its argument prototype would still apply. */
12994 char strcasecmp ();
12998 return strcasecmp ();
13003 if ac_fn_c_try_link "$LINENO"; then :
13004 ac_cv_lib_c89_strcasecmp=yes
13006 ac_cv_lib_c89_strcasecmp=no
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 LIBS=$ac_check_lib_save_LIBS
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
13013 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
13014 if test "x$ac_cv_lib_c89_strcasecmp" = x""yes; then :
13015 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
13016 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
13019 : ${mansectsu='1m'}
13020 : ${mansectform='4'}
13021 : ${with_rpath='yes'}
13023 *-ccur-sysv4*|*-ccur-sysvr4*)
13024 LIBS="${LIBS} -lgen"
13025 SUDO_LIBS="${SUDO_LIBS} -lgen"
13026 : ${mansectsu='1m'}
13027 : ${mansectform='4'}
13028 : ${with_rpath='yes'}
13032 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
13033 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
13035 2|3) { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
13036 $as_echo "$as_me: using shlicc as CC" >&6;}
13037 ac_cv_prog_CC=shlicc
13038 CC="$ac_cv_prog_CC"
13042 # Check for newer BSD auth API (just check for >= 3.0?)
13043 if test -z "$with_bsdauth"; then
13044 for ac_func in auth_challenge
13046 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
13047 if test "x$ac_cv_func_auth_challenge" = x""yes; then :
13048 cat >>confdefs.h <<_ACEOF
13049 #define HAVE_AUTH_CHALLENGE 1
13051 AUTH_EXCL_DEF="BSD_AUTH"
13058 # FreeBSD has a real setreuid(2) starting with 2.1 and
13059 # backported to 2.0.5. We just take 2.1 and above...
13065 if test "$with_skey" = "yes"; then
13066 SUDO_LIBS="${SUDO_LIBS} -lmd"
13068 CHECKSHADOW="false"
13069 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13070 : ${with_logincap='maybe'}
13073 # OpenBSD has a real setreuid(2) starting with 3.3 but
13074 # we will use setreuid(2) instead.
13076 CHECKSHADOW="false"
13077 # OpenBSD >= 3.0 supports BSD auth
13078 if test -z "$with_bsdauth"; then
13083 AUTH_EXCL_DEF="BSD_AUTH"
13087 : ${with_logincap='maybe'}
13090 # NetBSD has a real setreuid(2) starting with 1.3.2
13092 0.9*|1.012*|1.3|1.3.1)
13096 CHECKSHADOW="false"
13097 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13098 : ${with_logincap='maybe'}
13101 if test "$with_skey" = "yes"; then
13102 SUDO_LIBS="${SUDO_LIBS} -lmd"
13104 CHECKSHADOW="false"
13105 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13106 : ${with_logincap='yes'}
13109 CHECKSHADOW="false"
13112 # Darwin has a real setreuid(2) starting with 9.0
13113 if test $OSMAJOR -lt 9; then
13116 CHECKSHADOW="false"
13117 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13118 : ${with_logincap='yes'}
13121 # lockf() on is broken on the NeXT -- use flock instead
13122 ac_cv_func_lockf=no
13123 ac_cv_func_flock=yes
13126 : ${mansectsu='1m'}
13127 : ${mansectform='4'}
13128 : ${with_rpath='yes'}
13131 : ${mansectsu='1m'}
13132 : ${mansectform='4'}
13135 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13139 AUTH_REG=${AUTH_REG# }
13140 AUTH_EXCL=${AUTH_EXCL# }
13141 if test -n "$AUTH_EXCL"; then
13143 if test $# != 1; then
13144 as_fn_error "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
13146 if test -n "$AUTH_REG"; then
13147 as_fn_error "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
13150 if test X"${with_skey}${with_opie}" = X"yesyes"; then
13151 as_fn_error "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
13155 : ${mansectform='5'}
13157 if test -n "$with_libpath"; then
13158 for i in ${with_libpath}; do
13160 if test X"$with_rpath" = X"yes"; then
13162 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
13164 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
13168 LDFLAGS="${LDFLAGS} -L$i"
13170 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13171 blibpath_add="${blibpath_add}:$i"
13176 if test -n "$with_libraries"; then
13177 for i in ${with_libraries}; do
13184 LIBS="${LIBS} ${i}"
13188 if test $ac_cv_c_compiler_gnu = yes; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13190 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13191 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
13192 $as_echo_n "(cached) " >&6
13194 ac_pattern="Autoconf.*'x'"
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13201 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13202 ac_cv_prog_gcc_traditional=yes
13204 ac_cv_prog_gcc_traditional=no
13209 if test $ac_cv_prog_gcc_traditional = no; then
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13212 #include <termio.h>
13215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13217 ac_cv_prog_gcc_traditional=yes
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13224 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13225 if test $ac_cv_prog_gcc_traditional = yes; then
13226 CC="$CC -traditional"
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13231 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13232 if test "${ac_cv_c_const+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13241 /* FIXME: Include the comments suggested by Paul. */
13242 #ifndef __cplusplus
13243 /* Ultrix mips cc rejects this. */
13244 typedef int charset[2];
13246 /* SunOS 4.1.1 cc rejects this. */
13247 char const *const *pcpcc;
13249 /* NEC SVR4.0.2 mips cc rejects this. */
13250 struct point {int x, y;};
13251 static struct point const zero = {0,0};
13252 /* AIX XL C 1.02.0.0 rejects this.
13253 It does not let you subtract one const X* pointer from another in
13254 an arm of an if-expression whose if-part is not a constant
13256 const char *g = "string";
13257 pcpcc = &g + (g ? g-g : 0);
13258 /* HPUX 7.0 cc rejects these. */
13260 ppc = (char**) pcpcc;
13261 pcpcc = (char const *const *) ppc;
13262 { /* SCO 3.2v4 cc rejects this. */
13264 char const *s = 0 ? (char *) 0 : (char const *) 0;
13269 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13270 int x[] = {25, 17};
13271 const int *foo = &x[0];
13274 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13275 typedef const int *iptr;
13279 { /* AIX XL C 1.02.0.0 rejects this saying
13280 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13281 struct s { int j; const int *ap[3]; };
13282 struct s *b; b->j = 5;
13284 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13285 const int foo = 10;
13286 if (!foo) return 0;
13288 return !cs[0] && !zero.x;
13295 if ac_fn_c_try_compile "$LINENO"; then :
13300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13303 $as_echo "$ac_cv_c_const" >&6; }
13304 if test $ac_cv_c_const = no; then
13306 $as_echo "#define const /**/" >>confdefs.h
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13311 $as_echo_n "checking for working volatile... " >&6; }
13312 if test "${ac_cv_c_volatile+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13323 int * volatile y = (int *) 0;
13329 if ac_fn_c_try_compile "$LINENO"; then :
13330 ac_cv_c_volatile=yes
13332 ac_cv_c_volatile=no
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13337 $as_echo "$ac_cv_c_volatile" >&6; }
13338 if test $ac_cv_c_volatile = no; then
13340 $as_echo "#define volatile /**/" >>confdefs.h
13344 for ac_prog in 'bison -y' byacc
13346 # Extract the first word of "$ac_prog", so it can be a program name with args.
13347 set dummy $ac_prog; ac_word=$2
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13349 $as_echo_n "checking for $ac_word... " >&6; }
13350 if test "${ac_cv_prog_YACC+set}" = set; then :
13351 $as_echo_n "(cached) " >&6
13353 if test -n "$YACC"; then
13354 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13357 for as_dir in $PATH
13360 test -z "$as_dir" && as_dir=.
13361 for ac_exec_ext in '' $ac_executable_extensions; do
13362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13363 ac_cv_prog_YACC="$ac_prog"
13364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 YACC=$ac_cv_prog_YACC
13374 if test -n "$YACC"; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13376 $as_echo "$YACC" >&6; }
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379 $as_echo "no" >&6; }
13383 test -n "$YACC" && break
13385 test -n "$YACC" || YACC="yacc"
13387 # Extract the first word of "flex", so it can be a program name with args.
13388 set dummy flex; ac_word=$2
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13390 $as_echo_n "checking for $ac_word... " >&6; }
13391 if test "${ac_cv_path_FLEX+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13396 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400 for as_dir in $PATH
13403 test -z "$as_dir" && as_dir=.
13404 for ac_exec_ext in '' $ac_executable_extensions; do
13405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13406 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13418 FLEX=$ac_cv_path_FLEX
13419 if test -n "$FLEX"; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
13421 $as_echo "$FLEX" >&6; }
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
13429 $as_echo_n "checking for mv... " >&6; }
13431 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
13432 if test -f "$p"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13435 $as_echo "$p" >&6; }
13436 cat >>confdefs.h <<EOF
13437 #define _PATH_MV "$p"
13443 if test X"$found" != X"yes"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13445 $as_echo "not found" >&6; }
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
13449 $as_echo_n "checking for bourne shell... " >&6; }
13451 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
13452 if test -f "$p"; then
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13455 $as_echo "$p" >&6; }
13456 cat >>confdefs.h <<EOF
13457 #define _PATH_BSHELL "$p"
13463 if test X"$found" != X"yes"; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13465 $as_echo "not found" >&6; }
13468 if test -z "$with_sendmail"; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
13470 $as_echo_n "checking for sendmail... " >&6; }
13472 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
13473 if test -f "$p"; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13476 $as_echo "$p" >&6; }
13477 cat >>confdefs.h <<EOF
13478 #define _PATH_SUDO_SENDMAIL "$p"
13484 if test X"$found" != X"yes"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13486 $as_echo "not found" >&6; }
13490 if test -z "$with_editor"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
13492 $as_echo_n "checking for vi... " >&6; }
13494 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
13495 if test -f "$editor"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
13498 $as_echo "$editor" >&6; }
13499 cat >>confdefs.h <<EOF
13500 #define _PATH_VI "$editor"
13506 if test X"$found" != X"yes"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13508 $as_echo "not found" >&6; }
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
13513 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
13514 if test X"$with_logfac" = X""; then
13515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h. */
13517 #include <syslog.h>
13521 int i = LOG_AUTHPRIV; (void)i;
13526 if ac_fn_c_try_compile "$LINENO"; then :
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 cat >>confdefs.h <<_ACEOF
13533 #define LOGFAC "$logfac"
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
13537 $as_echo "$logfac" >&6; }
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13539 $as_echo_n "checking for ANSI C header files... " >&6; }
13540 if test "${ac_cv_header_stdc+set}" = set; then :
13541 $as_echo_n "(cached) " >&6
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13545 #include <stdlib.h>
13546 #include <stdarg.h>
13547 #include <string.h>
13558 if ac_fn_c_try_compile "$LINENO"; then :
13559 ac_cv_header_stdc=yes
13561 ac_cv_header_stdc=no
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 if test $ac_cv_header_stdc = yes; then
13566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13569 #include <string.h>
13572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13573 $EGREP "memchr" >/dev/null 2>&1; then :
13576 ac_cv_header_stdc=no
13582 if test $ac_cv_header_stdc = yes; then
13583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13586 #include <stdlib.h>
13589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13590 $EGREP "free" >/dev/null 2>&1; then :
13593 ac_cv_header_stdc=no
13599 if test $ac_cv_header_stdc = yes; then
13600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13601 if test "$cross_compiling" = yes; then :
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13607 #include <stdlib.h>
13608 #if ((' ' & 0x0FF) == 0x020)
13609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13612 # define ISLOWER(c) \
13613 (('a' <= (c) && (c) <= 'i') \
13614 || ('j' <= (c) && (c) <= 'r') \
13615 || ('s' <= (c) && (c) <= 'z'))
13616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13624 for (i = 0; i < 256; i++)
13625 if (XOR (islower (i), ISLOWER (i))
13626 || toupper (i) != TOUPPER (i))
13631 if ac_fn_c_try_run "$LINENO"; then :
13634 ac_cv_header_stdc=no
13636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13637 conftest.$ac_objext conftest.beam conftest.$ac_ext
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13643 $as_echo "$ac_cv_header_stdc" >&6; }
13644 if test $ac_cv_header_stdc = yes; then
13646 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13650 ac_header_dirent=no
13651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13652 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13654 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13656 $as_echo_n "(cached) " >&6
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660 #include <sys/types.h>
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673 eval "$as_ac_Header=yes"
13675 eval "$as_ac_Header=no"
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679 eval ac_res=\$$as_ac_Header
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13681 $as_echo "$ac_res" >&6; }
13682 eval as_val=\$$as_ac_Header
13683 if test "x$as_val" = x""yes; then :
13684 cat >>confdefs.h <<_ACEOF
13685 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13688 ac_header_dirent=$ac_hdr; break
13692 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13693 if test $ac_header_dirent = dirent.h; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13695 $as_echo_n "checking for library containing opendir... " >&6; }
13696 if test "${ac_cv_search_opendir+set}" = set; then :
13697 $as_echo_n "(cached) " >&6
13699 ac_func_search_save_LIBS=$LIBS
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13703 /* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13718 for ac_lib in '' dir; do
13719 if test -z "$ac_lib"; then
13720 ac_res="none required"
13723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13725 if ac_fn_c_try_link "$LINENO"; then :
13726 ac_cv_search_opendir=$ac_res
13728 rm -f core conftest.err conftest.$ac_objext \
13730 if test "${ac_cv_search_opendir+set}" = set; then :
13734 if test "${ac_cv_search_opendir+set}" = set; then :
13737 ac_cv_search_opendir=no
13739 rm conftest.$ac_ext
13740 LIBS=$ac_func_search_save_LIBS
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13743 $as_echo "$ac_cv_search_opendir" >&6; }
13744 ac_res=$ac_cv_search_opendir
13745 if test "$ac_res" != no; then :
13746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13752 $as_echo_n "checking for library containing opendir... " >&6; }
13753 if test "${ac_cv_search_opendir+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13756 ac_func_search_save_LIBS=$LIBS
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13760 /* Override any GCC internal prototype to avoid an error.
13761 Use char because int might match the return type of a GCC
13762 builtin and then its argument prototype would still apply. */
13775 for ac_lib in '' x; do
13776 if test -z "$ac_lib"; then
13777 ac_res="none required"
13780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13782 if ac_fn_c_try_link "$LINENO"; then :
13783 ac_cv_search_opendir=$ac_res
13785 rm -f core conftest.err conftest.$ac_objext \
13787 if test "${ac_cv_search_opendir+set}" = set; then :
13791 if test "${ac_cv_search_opendir+set}" = set; then :
13794 ac_cv_search_opendir=no
13796 rm conftest.$ac_ext
13797 LIBS=$ac_func_search_save_LIBS
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13800 $as_echo "$ac_cv_search_opendir" >&6; }
13801 ac_res=$ac_cv_search_opendir
13802 if test "$ac_res" != no; then :
13803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13810 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13811 if test "${ac_cv_header_time+set}" = set; then :
13812 $as_echo_n "(cached) " >&6
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 #include <sys/types.h>
13817 #include <sys/time.h>
13823 if ((struct tm *) 0)
13829 if ac_fn_c_try_compile "$LINENO"; then :
13830 ac_cv_header_time=yes
13832 ac_cv_header_time=no
13834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13837 $as_echo "$ac_cv_header_time" >&6; }
13838 if test $ac_cv_header_time = yes; then
13840 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13844 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h
13846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13847 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13848 eval as_val=\$$as_ac_Header
13849 if test "x$as_val" = x""yes; then :
13850 cat >>confdefs.h <<_ACEOF
13851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
13859 $as_echo_n "checking POSIX termios... " >&6; }
13860 if test "${ac_cv_sys_posix_termios+set}" = set; then :
13861 $as_echo_n "(cached) " >&6
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13865 #include <sys/types.h>
13866 #include <unistd.h>
13867 #include <termios.h>
13872 /* SunOS 4.0.3 has termios.h but not the library calls. */
13878 if ac_fn_c_try_link "$LINENO"; then :
13879 ac_cv_sys_posix_termios=yes
13881 ac_cv_sys_posix_termios=no
13883 rm -f core conftest.err conftest.$ac_objext \
13884 conftest$ac_exeext conftest.$ac_ext
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
13887 $as_echo "$ac_cv_sys_posix_termios" >&6; }
13889 if test "$ac_cv_sys_posix_termios" = "yes"; then
13890 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
13893 for ac_header in termio.h
13895 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
13896 if test "x$ac_cv_header_termio_h" = x""yes; then :
13897 cat >>confdefs.h <<_ACEOF
13898 #define HAVE_TERMIO_H 1
13908 if test X"$ac_cv_header_paths_h" = X"yes"; then
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911 $ac_includes_default
13913 int main() {char *p = _PATH_MAILDIR;}
13922 if ac_fn_c_try_compile "$LINENO"; then :
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13927 if test $maildir = no; then
13928 # Solaris has maillock.h which defines MAILDIR
13929 for ac_header in maillock.h
13931 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13932 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_MAILLOCK_H 1
13937 cat >>confdefs.h <<\EOF
13938 #define _PATH_MAILDIR MAILDIR
13947 if test $maildir = no; then
13948 for d in /var/mail /var/spool/mail /usr/spool/mail; do
13949 if test -d "$d"; then
13951 cat >>confdefs.h <<EOF
13952 #define _PATH_MAILDIR "$d"
13958 if test $maildir = no; then
13959 # unable to find mail dir, hope for the best
13960 cat >>confdefs.h <<EOF
13961 #define _PATH_MAILDIR "/var/mail"
13968 if test ${with_logincap-'no'} != "no"; then
13969 for ac_header in login_cap.h
13971 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
13972 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
13973 cat >>confdefs.h <<_ACEOF
13974 #define HAVE_LOGIN_CAP_H 1
13976 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
13978 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
13987 if test ${with_project-'no'} != "no"; then
13988 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
13989 if test "x$ac_cv_header_project_h" = x""yes; then :
13990 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
13992 SUDO_LIBS="${SUDO_LIBS} -lproject"
13999 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14000 if test "x$ac_cv_type_mode_t" = x""yes; then :
14004 cat >>confdefs.h <<_ACEOF
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14011 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14012 if test "${ac_cv_type_uid_t+set}" = set; then :
14013 $as_echo_n "(cached) " >&6
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14017 #include <sys/types.h>
14020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14021 $EGREP "uid_t" >/dev/null 2>&1; then :
14022 ac_cv_type_uid_t=yes
14024 ac_cv_type_uid_t=no
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14030 $as_echo "$ac_cv_type_uid_t" >&6; }
14031 if test $ac_cv_type_uid_t = no; then
14033 $as_echo "#define uid_t int" >>confdefs.h
14036 $as_echo "#define gid_t int" >>confdefs.h
14040 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
14041 if test "x$ac_cv_type___signed_char" = x""yes; then :
14044 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
14045 if test "x$ac_cv_type_signed_char" = x""yes; then :
14046 $as_echo "#define __signed signed" >>confdefs.h
14049 $as_echo "#define __signed /**/" >>confdefs.h
14055 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
14056 #include <signal.h>
14058 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
14061 $as_echo "#define sig_atomic_t int" >>confdefs.h
14065 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
14066 #include <signal.h>
14068 if test "x$ac_cv_type_sigaction_t" = x""yes; then :
14070 cat >>confdefs.h <<_ACEOF
14071 #define HAVE_SIGACTION_T 1
14074 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
14078 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
14079 #if TIME_WITH_SYS_TIME
14080 # include <sys/time.h>
14084 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
14085 $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
14089 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
14090 #include <netinet/in.h>
14092 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then :
14094 cat >>confdefs.h <<_ACEOF
14095 #define HAVE_STRUCT_IN6_ADDR 1
14098 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14103 $as_echo_n "checking for size_t... " >&6; }
14104 if test "${sudo_cv_type_size_t+set}" = set; then :
14105 $as_echo_n "(cached) " >&6
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 #include <sys/types.h>
14112 #include <stdlib.h>
14115 #include <unistd.h>
14118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14119 $EGREP "size_t" >/dev/null 2>&1; then :
14120 sudo_cv_type_size_t=yes
14122 sudo_cv_type_size_t=no
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
14128 $as_echo "$sudo_cv_type_size_t" >&6; }
14129 if test $sudo_cv_type_size_t = no; then
14131 $as_echo "#define size_t int" >>confdefs.h
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14136 $as_echo_n "checking for ssize_t... " >&6; }
14137 if test "${sudo_cv_type_ssize_t+set}" = set; then :
14138 $as_echo_n "(cached) " >&6
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14142 #include <sys/types.h>
14145 #include <stdlib.h>
14148 #include <unistd.h>
14151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14152 $EGREP "ssize_t" >/dev/null 2>&1; then :
14153 sudo_cv_type_ssize_t=yes
14155 sudo_cv_type_ssize_t=no
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
14161 $as_echo "$sudo_cv_type_ssize_t" >&6; }
14162 if test $sudo_cv_type_ssize_t = no; then
14164 $as_echo "#define ssize_t int" >>confdefs.h
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
14169 $as_echo_n "checking for dev_t... " >&6; }
14170 if test "${sudo_cv_type_dev_t+set}" = set; then :
14171 $as_echo_n "(cached) " >&6
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14175 #include <sys/types.h>
14178 #include <stdlib.h>
14181 #include <unistd.h>
14184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14185 $EGREP "dev_t" >/dev/null 2>&1; then :
14186 sudo_cv_type_dev_t=yes
14188 sudo_cv_type_dev_t=no
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
14194 $as_echo "$sudo_cv_type_dev_t" >&6; }
14195 if test $sudo_cv_type_dev_t = no; then
14197 $as_echo "#define dev_t int" >>confdefs.h
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
14202 $as_echo_n "checking for ino_t... " >&6; }
14203 if test "${sudo_cv_type_ino_t+set}" = set; then :
14204 $as_echo_n "(cached) " >&6
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 #include <sys/types.h>
14211 #include <stdlib.h>
14214 #include <unistd.h>
14217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14218 $EGREP "ino_t" >/dev/null 2>&1; then :
14219 sudo_cv_type_ino_t=yes
14221 sudo_cv_type_ino_t=no
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
14227 $as_echo "$sudo_cv_type_ino_t" >&6; }
14228 if test $sudo_cv_type_ino_t = no; then
14230 $as_echo "#define ino_t unsigned int" >>confdefs.h
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
14236 $as_echo_n "checking max length of uid_t... " >&6; }
14237 if test "${sudo_cv_uid_t_len+set}" = set; then :
14238 $as_echo_n "(cached) " >&6
14241 if test "$cross_compiling" = yes; then :
14242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14244 as_fn_error "cannot run test program while cross compiling
14245 See \`config.log' for more details." "$LINENO" 5; }
14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h. */
14251 #include <limits.h>
14252 #include <sys/types.h>
14253 #include <sys/param.h>
14257 uid_t u = (uid_t) -1;
14259 if ((f = fopen("conftestdata", "w")) == NULL)
14262 (void) sprintf(b, "%lu", (unsigned long) u);
14263 (void) fprintf(f, "%d\n", strlen(b));
14268 if ac_fn_c_try_run "$LINENO"; then :
14269 sudo_cv_uid_t_len=`cat conftestdata`
14271 sudo_cv_uid_t_len=10
14273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14274 conftest.$ac_objext conftest.beam conftest.$ac_ext
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
14282 $as_echo "$sudo_cv_uid_t_len" >&6; }
14284 cat >>confdefs.h <<_ACEOF
14285 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14289 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14290 if test "x$ac_cv_type_long_long" = x""yes; then :
14292 cat >>confdefs.h <<_ACEOF
14293 #define HAVE_LONG_LONG 1
14297 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long and long long equivalence" >&5
14300 $as_echo_n "checking for long and long long equivalence... " >&6; }
14301 if test "${sudo_cv_type_long_is_quad+set}" = set; then :
14302 $as_echo_n "(cached) " >&6
14304 if test "$cross_compiling" = yes; then :
14305 sudo_cv_type_long_is_quad=no
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14311 if (sizeof(long long) == sizeof(long)) exit(0);
14315 if ac_fn_c_try_run "$LINENO"; then :
14316 sudo_cv_type_long_is_quad=yes
14318 sudo_cv_type_long_is_quad=no
14320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14321 conftest.$ac_objext conftest.beam conftest.$ac_ext
14324 rm -f core core.* *.core
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_long_is_quad" >&5
14327 $as_echo "$sudo_cv_type_long_is_quad" >&6; }
14328 if test $sudo_cv_type_long_is_quad = yes; then
14330 $as_echo "#define LONG_IS_QUAD 1" >>confdefs.h
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len field in struct sockaddr" >&5
14337 $as_echo_n "checking for sa_len field in struct sockaddr... " >&6; }
14338 if test "${sudo_cv_sock_sa_len+set}" = set; then :
14339 $as_echo_n "(cached) " >&6
14341 if test "$cross_compiling" = yes; then :
14342 sudo_cv_sock_sa_len=no
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346 #include <sys/types.h>
14347 #include <sys/socket.h>
14354 if ac_fn_c_try_run "$LINENO"; then :
14355 sudo_cv_sock_sa_len=yes
14357 sudo_cv_sock_sa_len=no
14359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14360 conftest.$ac_objext conftest.beam conftest.$ac_ext
14363 rm -f core core.* *.core
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_sock_sa_len" >&5
14366 $as_echo "$sudo_cv_sock_sa_len" >&6; }
14367 if test $sudo_cv_sock_sa_len = yes; then
14369 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
14375 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14376 $as_echo_n "checking return type of signal handlers... " >&6; }
14377 if test "${ac_cv_type_signal+set}" = set; then :
14378 $as_echo_n "(cached) " >&6
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382 #include <sys/types.h>
14383 #include <signal.h>
14388 return *(signal (0, 0)) (0) == 1;
14393 if ac_fn_c_try_compile "$LINENO"; then :
14394 ac_cv_type_signal=int
14396 ac_cv_type_signal=void
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14401 $as_echo "$ac_cv_type_signal" >&6; }
14403 cat >>confdefs.h <<_ACEOF
14404 #define RETSIGTYPE $ac_cv_type_signal
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
14410 $as_echo_n "checking type of array argument to getgroups... " >&6; }
14411 if test "${ac_cv_type_getgroups+set}" = set; then :
14412 $as_echo_n "(cached) " >&6
14414 if test "$cross_compiling" = yes; then :
14415 ac_cv_type_getgroups=cross
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 /* Thanks to Mike Rendell for this test. */
14420 $ac_includes_default
14423 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14428 gid_t gidset[NGID];
14430 union { gid_t gval; long int lval; } val;
14433 for (i = 0; i < NGID; i++)
14434 gidset[i] = val.gval;
14435 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14437 /* Exit non-zero if getgroups seems to require an array of ints. This
14438 happens when gid_t is short int but getgroups modifies an array
14440 return n > 0 && gidset[n] != val.gval;
14443 if ac_fn_c_try_run "$LINENO"; then :
14444 ac_cv_type_getgroups=gid_t
14446 ac_cv_type_getgroups=int
14448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14449 conftest.$ac_objext conftest.beam conftest.$ac_ext
14452 if test $ac_cv_type_getgroups = cross; then
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455 #include <unistd.h>
14458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14459 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
14460 ac_cv_type_getgroups=gid_t
14462 ac_cv_type_getgroups=int
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
14469 $as_echo "$ac_cv_type_getgroups" >&6; }
14471 cat >>confdefs.h <<_ACEOF
14472 #define GETGROUPS_T $ac_cv_type_getgroups
14476 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14477 if test "x$ac_cv_type_size_t" = x""yes; then :
14481 cat >>confdefs.h <<_ACEOF
14482 #define size_t unsigned int
14487 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
14488 if test "x$ac_cv_func_getgroups" = x""yes; then :
14493 # If we don't yet have getgroups, see if it's in -lbsd.
14494 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
14496 if test $ac_cv_func_getgroups = no; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
14498 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
14499 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
14500 $as_echo_n "(cached) " >&6
14502 ac_check_lib_save_LIBS=$LIBS
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14507 /* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14517 return getgroups ();
14522 if ac_fn_c_try_link "$LINENO"; then :
14523 ac_cv_lib_bsd_getgroups=yes
14525 ac_cv_lib_bsd_getgroups=no
14527 rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14529 LIBS=$ac_check_lib_save_LIBS
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
14532 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
14533 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
14534 GETGROUPS_LIB=-lbsd
14539 # Run the program to test the functionality of the system-supplied
14540 # getgroups function only if there is such a function.
14541 if test $ac_cv_func_getgroups = yes; then
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
14543 $as_echo_n "checking for working getgroups... " >&6; }
14544 if test "${ac_cv_func_getgroups_works+set}" = set; then :
14545 $as_echo_n "(cached) " >&6
14547 if test "$cross_compiling" = yes; then :
14548 ac_cv_func_getgroups_works=no
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14552 $ac_includes_default
14556 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
14557 return getgroups (0, 0) == -1;
14562 if ac_fn_c_try_run "$LINENO"; then :
14563 ac_cv_func_getgroups_works=yes
14565 ac_cv_func_getgroups_works=no
14567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14568 conftest.$ac_objext conftest.beam conftest.$ac_ext
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
14574 $as_echo "$ac_cv_func_getgroups_works" >&6; }
14576 ac_cv_func_getgroups_works=no
14578 if test $ac_cv_func_getgroups_works = yes; then
14580 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
14585 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
14586 strftime setrlimit initgroups getgroups fstat gettimeofday \
14587 regcomp setlocale getaddrinfo setenv vhangup \
14588 mbr_check_membership setrlimit64
14590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14591 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14592 eval as_val=\$$as_ac_var
14593 if test "x$as_val" = x""yes; then :
14594 cat >>confdefs.h <<_ACEOF
14595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14601 for ac_func in getline
14603 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14604 if test "x$ac_cv_func_getline" = x""yes; then :
14605 cat >>confdefs.h <<_ACEOF
14606 #define HAVE_GETLINE 1
14611 case " $LIBOBJS " in
14612 *" getline.$ac_objext "* ) ;;
14613 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14617 for ac_func in fgetln
14619 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
14620 if test "x$ac_cv_func_fgetln" = x""yes; then :
14621 cat >>confdefs.h <<_ACEOF
14622 #define HAVE_FGETLN 1
14632 for ac_func in setsid
14634 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
14635 if test "x$ac_cv_func_setsid" = x""yes; then :
14636 cat >>confdefs.h <<_ACEOF
14637 #define HAVE_SETSID 1
14642 case " $LIBOBJS " in
14643 *" setsid.$ac_objext "* ) ;;
14644 *) LIBOBJS="$LIBOBJS setsid.$ac_objext"
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14649 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14650 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14651 $as_echo_n "(cached) " >&6
14653 if test "$cross_compiling" = yes; then :
14654 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h. */
14658 $ac_includes_default
14662 /* If this system has a BSD-style setpgrp which takes arguments,
14663 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14664 exit successfully. */
14665 return setpgrp (1,1) != -1;
14670 if ac_fn_c_try_run "$LINENO"; then :
14671 ac_cv_func_setpgrp_void=no
14673 ac_cv_func_setpgrp_void=yes
14675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14676 conftest.$ac_objext conftest.beam conftest.$ac_ext
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14681 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14682 if test $ac_cv_func_setpgrp_void = yes; then
14684 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14693 for ac_func in sysctl getutid getutxid
14695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14697 eval as_val=\$$as_ac_var
14698 if test "x$as_val" = x""yes; then :
14699 cat >>confdefs.h <<_ACEOF
14700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14707 for ac_func in openpty
14709 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
14710 if test "x$ac_cv_func_openpty" = x""yes; then :
14711 cat >>confdefs.h <<_ACEOF
14712 #define HAVE_OPENPTY 1
14714 for ac_header in util.h pty.h
14716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14717 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14718 eval as_val=\$$as_ac_Header
14719 if test "x$as_val" = x""yes; then :
14720 cat >>confdefs.h <<_ACEOF
14721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
14731 $as_echo_n "checking for openpty in -lutil... " >&6; }
14732 if test "${ac_cv_lib_util_openpty+set}" = set; then :
14733 $as_echo_n "(cached) " >&6
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lutil $LIBS"
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14740 /* Override any GCC internal prototype to avoid an error.
14741 Use char because int might match the return type of a GCC
14742 builtin and then its argument prototype would still apply. */
14755 if ac_fn_c_try_link "$LINENO"; then :
14756 ac_cv_lib_util_openpty=yes
14758 ac_cv_lib_util_openpty=no
14760 rm -f core conftest.err conftest.$ac_objext \
14761 conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
14765 $as_echo "$ac_cv_lib_util_openpty" >&6; }
14766 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
14768 for ac_header in util.h pty.h
14770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14771 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14772 eval as_val=\$$as_ac_Header
14773 if test "x$as_val" = x""yes; then :
14774 cat >>confdefs.h <<_ACEOF
14775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14782 SUDO_LIBS="${SUDO_LIBS} -lutil"
14783 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
14788 for ac_func in _getpty
14790 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
14791 if test "x$ac_cv_func__getpty" = x""yes; then :
14792 cat >>confdefs.h <<_ACEOF
14793 #define HAVE__GETPTY 1
14798 for ac_func in grantpt
14800 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14801 if test "x$ac_cv_func_grantpt" = x""yes; then :
14802 cat >>confdefs.h <<_ACEOF
14803 #define HAVE_GRANTPT 1
14806 for ac_func in posix_openpt
14808 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
14809 if test "x$ac_cv_func_posix_openpt" = x""yes; then :
14810 cat >>confdefs.h <<_ACEOF
14811 #define HAVE_POSIX_OPENPT 1
14820 for ac_func in revoke
14822 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
14823 if test "x$ac_cv_func_revoke" = x""yes; then :
14824 cat >>confdefs.h <<_ACEOF
14825 #define HAVE_REVOKE 1
14846 for ac_func in unsetenv
14848 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
14849 if test "x$ac_cv_func_unsetenv" = x""yes; then :
14850 cat >>confdefs.h <<_ACEOF
14851 #define HAVE_UNSETENV 1
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
14854 $as_echo_n "checking whether unsetenv returns void... " >&6; }
14855 if test "${sudo_cv_func_unsetenv_void+set}" = set; then :
14856 $as_echo_n "(cached) " >&6
14858 if test "$cross_compiling" = yes; then :
14859 sudo_cv_func_unsetenv_void=yes
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 $ac_includes_default
14870 return unsetenv("FOO") != 0;
14877 if ac_fn_c_try_run "$LINENO"; then :
14878 sudo_cv_func_unsetenv_void=no
14880 sudo_cv_func_unsetenv_void=yes
14882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14883 conftest.$ac_objext conftest.beam conftest.$ac_ext
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
14888 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
14889 if test $sudo_cv_func_unsetenv_void = yes; then
14891 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv has a const argument" >&5
14899 $as_echo_n "checking whether putenv has a const argument... " >&6; }
14900 if test "${sudo_cv_func_putenv_const+set}" = set; then :
14901 $as_echo_n "(cached) " >&6
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14905 $ac_includes_default
14906 int putenv(const char *string) {return 0;}
14915 if ac_fn_c_try_compile "$LINENO"; then :
14916 sudo_cv_func_putenv_const=yes
14918 sudo_cv_func_putenv_const=no
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
14924 $as_echo "$sudo_cv_func_putenv_const" >&6; }
14925 if test $sudo_cv_func_putenv_const = yes; then
14927 $as_echo "#define PUTENV_CONST 1" >>confdefs.h
14931 if test -z "$SKIP_SETRESUID"; then
14932 for ac_func in setresuid
14934 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
14935 if test "x$ac_cv_func_setresuid" = x""yes; then :
14936 cat >>confdefs.h <<_ACEOF
14937 #define HAVE_SETRESUID 1
14944 if test -z "$SKIP_SETREUID"; then
14945 for ac_func in setreuid
14947 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
14948 if test "x$ac_cv_func_setreuid" = x""yes; then :
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_SETREUID 1
14957 if test -z "$SKIP_SETEUID"; then
14958 for ac_func in seteuid
14960 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
14961 if test "x$ac_cv_func_seteuid" = x""yes; then :
14962 cat >>confdefs.h <<_ACEOF
14963 #define HAVE_SETEUID 1
14970 if test X"$with_interfaces" != X"no"; then
14971 for ac_func in getifaddrs
14973 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
14974 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
14975 cat >>confdefs.h <<_ACEOF
14976 #define HAVE_GETIFADDRS 1
14978 for ac_func in freeifaddrs
14980 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
14981 if test "x$ac_cv_func_freeifaddrs" = x""yes; then :
14982 cat >>confdefs.h <<_ACEOF
14983 #define HAVE_FREEIFADDRS 1
14993 if test -z "$BROKEN_GETCWD"; then
14994 for ac_func in getcwd
14996 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
14997 if test "x$ac_cv_func_getcwd" = x""yes; then :
14998 cat >>confdefs.h <<_ACEOF
14999 #define HAVE_GETCWD 1
15003 case " $LIBOBJS " in
15004 *" $ac_func.$ac_objext "* ) ;;
15005 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15014 for ac_func in glob
15016 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
15017 if test "x$ac_cv_func_glob" = x""yes; then :
15018 cat >>confdefs.h <<_ACEOF
15019 #define HAVE_GLOB 1
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15022 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15029 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15034 if ac_fn_c_try_compile "$LINENO"; then :
15035 $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15038 $as_echo "yes" >&6; }
15040 case " $LIBOBJS " in
15041 *" glob.$ac_objext "* ) ;;
15042 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15047 $as_echo "no" >&6; }
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 case " $LIBOBJS " in
15052 *" glob.$ac_objext "* ) ;;
15053 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15060 for ac_func in lockf flock
15062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15063 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15064 eval as_val=\$$as_ac_var
15065 if test "x$as_val" = x""yes; then :
15066 cat >>confdefs.h <<_ACEOF
15067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15073 for ac_func in waitpid wait3
15075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15076 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15077 eval as_val=\$$as_ac_var
15078 if test "x$as_val" = x""yes; then :
15079 cat >>confdefs.h <<_ACEOF
15080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15086 for ac_func in innetgr _innetgr
15088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15089 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15090 eval as_val=\$$as_ac_var
15091 if test "x$as_val" = x""yes; then :
15092 cat >>confdefs.h <<_ACEOF
15093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15095 for ac_func in getdomainname
15097 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
15098 if test "x$ac_cv_func_getdomainname" = x""yes; then :
15099 cat >>confdefs.h <<_ACEOF
15100 #define HAVE_GETDOMAINNAME 1
15109 for ac_func in utimes
15111 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15112 if test "x$ac_cv_func_utimes" = x""yes; then :
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_UTIMES 1
15116 for ac_func in futimes futimesat
15118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15120 eval as_val=\$$as_ac_var
15121 if test "x$as_val" = x""yes; then :
15122 cat >>confdefs.h <<_ACEOF
15123 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15130 for ac_func in futime
15132 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
15133 if test "x$ac_cv_func_futime" = x""yes; then :
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_FUTIME 1
15140 case " $LIBOBJS " in
15141 *" utimes.$ac_objext "* ) ;;
15142 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
15149 for ac_func in killpg
15151 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
15152 if test "x$ac_cv_func_killpg" = x""yes; then :
15153 cat >>confdefs.h <<_ACEOF
15154 #define HAVE_KILLPG 1
15158 case " $LIBOBJS " in
15159 *" killpg.$ac_objext "* ) ;;
15160 *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
15168 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
15169 if test "${sudo_cv_func_fnmatch+set}" = set; then :
15170 $as_echo_n "(cached) " >&6
15172 rm -f conftestdata; > conftestdata
15173 if test "$cross_compiling" = yes; then :
15174 sudo_cv_func_fnmatch=no
15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h. */
15178 #include <fnmatch.h>
15179 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
15181 if ac_fn_c_try_run "$LINENO"; then :
15182 sudo_cv_func_fnmatch=yes
15184 sudo_cv_func_fnmatch=no
15186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15187 conftest.$ac_objext conftest.beam conftest.$ac_ext
15190 rm -f core core.* *.core
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
15194 $as_echo "$sudo_cv_func_fnmatch" >&6; }
15195 if test $sudo_cv_func_fnmatch = yes; then :
15196 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
15199 case " $LIBOBJS " in
15200 *" fnmatch.$ac_objext "* ) ;;
15201 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
15207 $as_echo_n "checking for isblank... " >&6; }
15208 if test "${sudo_cv_func_isblank+set}" = set; then :
15209 $as_echo_n "(cached) " >&6
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15217 return (isblank('a'));
15222 if ac_fn_c_try_link "$LINENO"; then :
15223 sudo_cv_func_isblank=yes
15225 sudo_cv_func_isblank=no
15227 rm -f core conftest.err conftest.$ac_objext \
15228 conftest$ac_exeext conftest.$ac_ext
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
15231 $as_echo "$sudo_cv_func_isblank" >&6; }
15233 if test "$sudo_cv_func_isblank" = "yes"; then
15235 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
15238 case " $LIBOBJS " in
15239 *" isblank.$ac_objext "* ) ;;
15240 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
15246 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
15248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15249 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15250 eval as_val=\$$as_ac_var
15251 if test "x$as_val" = x""yes; then :
15252 cat >>confdefs.h <<_ACEOF
15253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15257 case " $LIBOBJS " in
15258 *" $ac_func.$ac_objext "* ) ;;
15259 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15267 for ac_func in nanosleep
15269 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
15270 if test "x$ac_cv_func_nanosleep" = x""yes; then :
15271 cat >>confdefs.h <<_ACEOF
15272 #define HAVE_NANOSLEEP 1
15277 # On Solaris, nanosleep is in librt
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
15279 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
15280 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
15281 $as_echo_n "(cached) " >&6
15283 ac_check_lib_save_LIBS=$LIBS
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15288 /* Override any GCC internal prototype to avoid an error.
15289 Use char because int might match the return type of a GCC
15290 builtin and then its argument prototype would still apply. */
15298 return nanosleep ();
15303 if ac_fn_c_try_link "$LINENO"; then :
15304 ac_cv_lib_rt_nanosleep=yes
15306 ac_cv_lib_rt_nanosleep=no
15308 rm -f core conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15310 LIBS=$ac_check_lib_save_LIBS
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
15313 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
15314 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
15315 LIBS="${LIBS} -lrt"
15317 case " $LIBOBJS " in
15318 *" nanosleep.$ac_objext "* ) ;;
15319 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
15329 for ac_func in closefrom
15331 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
15332 if test "x$ac_cv_func_closefrom" = x""yes; then :
15333 cat >>confdefs.h <<_ACEOF
15334 #define HAVE_CLOSEFROM 1
15338 case " $LIBOBJS " in
15339 *" closefrom.$ac_objext "* ) ;;
15340 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
15344 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
15347 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
15348 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
15356 for ac_func in mkstemps
15358 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
15359 if test "x$ac_cv_func_mkstemps" = x""yes; then :
15360 cat >>confdefs.h <<_ACEOF
15361 #define HAVE_MKSTEMPS 1
15365 SUDO_OBJS="${SUDO_OBJS} mkstemps.o"
15366 for ac_func in random lrand48
15368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15370 eval as_val=\$$as_ac_var
15371 if test "x$as_val" = x""yes; then :
15372 cat >>confdefs.h <<_ACEOF
15373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15383 for ac_func in snprintf vsnprintf asprintf vasprintf
15385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15387 eval as_val=\$$as_ac_var
15388 if test "x$as_val" = x""yes; then :
15389 cat >>confdefs.h <<_ACEOF
15390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15398 if test X"$ac_cv_type_struct_timespec" != X"no"; then
15399 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15400 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
15401 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
15403 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
15404 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = x""yes; then :
15405 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
15410 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15411 if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then :
15412 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15421 #include <sys/types.h>
15422 #include <$ac_header_dirent>
15426 DIR *d; (void)dirfd(d);
15431 if ac_fn_c_try_link "$LINENO"; then :
15432 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15437 #include <sys/types.h>
15438 #include <$ac_header_dirent>
15442 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
15447 if ac_fn_c_try_link "$LINENO"; then :
15448 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
15451 rm -f core conftest.err conftest.$ac_objext \
15452 conftest$ac_exeext conftest.$ac_ext
15454 rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 if test -n "$NEED_SNPRINTF"; then
15457 case " $LIBOBJS " in
15458 *" snprintf.$ac_objext "* ) ;;
15459 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15464 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15465 if test "x$ac_cv_func_socket" = x""yes; then :
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15469 $as_echo_n "checking for socket in -lsocket... " >&6; }
15470 if test "${ac_cv_lib_socket_socket+set}" = set; then :
15471 $as_echo_n "(cached) " >&6
15473 ac_check_lib_save_LIBS=$LIBS
15474 LIBS="-lsocket $LIBS"
15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15478 /* Override any GCC internal prototype to avoid an error.
15479 Use char because int might match the return type of a GCC
15480 builtin and then its argument prototype would still apply. */
15493 if ac_fn_c_try_link "$LINENO"; then :
15494 ac_cv_lib_socket_socket=yes
15496 ac_cv_lib_socket_socket=no
15498 rm -f core conftest.err conftest.$ac_objext \
15499 conftest$ac_exeext conftest.$ac_ext
15500 LIBS=$ac_check_lib_save_LIBS
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15503 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15504 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
15505 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
15508 $as_echo_n "checking for socket in -linet... " >&6; }
15509 if test "${ac_cv_lib_inet_socket+set}" = set; then :
15510 $as_echo_n "(cached) " >&6
15512 ac_check_lib_save_LIBS=$LIBS
15513 LIBS="-linet $LIBS"
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15517 /* Override any GCC internal prototype to avoid an error.
15518 Use char because int might match the return type of a GCC
15519 builtin and then its argument prototype would still apply. */
15532 if ac_fn_c_try_link "$LINENO"; then :
15533 ac_cv_lib_inet_socket=yes
15535 ac_cv_lib_inet_socket=no
15537 rm -f core conftest.err conftest.$ac_objext \
15538 conftest$ac_exeext conftest.$ac_ext
15539 LIBS=$ac_check_lib_save_LIBS
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
15542 $as_echo "$ac_cv_lib_inet_socket" >&6; }
15543 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
15544 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
15547 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15549 $as_echo_n "checking for socket in -lsocket... " >&6; }
15550 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then :
15551 $as_echo_n "(cached) " >&6
15553 ac_check_lib_save_LIBS=$LIBS
15554 LIBS="-lsocket -lnsl $LIBS"
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15558 /* Override any GCC internal prototype to avoid an error.
15559 Use char because int might match the return type of a GCC
15560 builtin and then its argument prototype would still apply. */
15573 if ac_fn_c_try_link "$LINENO"; then :
15574 ac_cv_lib_socket_socket_lnsl=yes
15576 ac_cv_lib_socket_socket_lnsl=no
15578 rm -f core conftest.err conftest.$ac_objext \
15579 conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
15583 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
15584 if test "x$ac_cv_lib_socket_socket_lnsl" = x""yes; then :
15585 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
15594 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
15595 if test "x$ac_cv_func_inet_addr" = x""yes; then :
15598 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
15599 if test "x$ac_cv_func___inet_addr" = x""yes; then :
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
15603 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
15604 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
15605 $as_echo_n "(cached) " >&6
15607 ac_check_lib_save_LIBS=$LIBS
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15612 /* Override any GCC internal prototype to avoid an error.
15613 Use char because int might match the return type of a GCC
15614 builtin and then its argument prototype would still apply. */
15622 return inet_addr ();
15627 if ac_fn_c_try_link "$LINENO"; then :
15628 ac_cv_lib_nsl_inet_addr=yes
15630 ac_cv_lib_nsl_inet_addr=no
15632 rm -f core conftest.err conftest.$ac_objext \
15633 conftest$ac_exeext conftest.$ac_ext
15634 LIBS=$ac_check_lib_save_LIBS
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
15637 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
15638 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
15639 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
15642 $as_echo_n "checking for inet_addr in -linet... " >&6; }
15643 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then :
15644 $as_echo_n "(cached) " >&6
15646 ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-linet $LIBS"
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15651 /* Override any GCC internal prototype to avoid an error.
15652 Use char because int might match the return type of a GCC
15653 builtin and then its argument prototype would still apply. */
15661 return inet_addr ();
15666 if ac_fn_c_try_link "$LINENO"; then :
15667 ac_cv_lib_inet_inet_addr=yes
15669 ac_cv_lib_inet_inet_addr=no
15671 rm -f core conftest.err conftest.$ac_objext \
15672 conftest$ac_exeext conftest.$ac_ext
15673 LIBS=$ac_check_lib_save_LIBS
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
15676 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
15677 if test "x$ac_cv_lib_inet_inet_addr" = x""yes; then :
15678 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
15681 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
15683 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
15684 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then :
15685 $as_echo_n "(cached) " >&6
15687 ac_check_lib_save_LIBS=$LIBS
15688 LIBS="-lsocket -lnsl $LIBS"
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15692 /* Override any GCC internal prototype to avoid an error.
15693 Use char because int might match the return type of a GCC
15694 builtin and then its argument prototype would still apply. */
15702 return inet_addr ();
15707 if ac_fn_c_try_link "$LINENO"; then :
15708 ac_cv_lib_socket_inet_addr_lnsl=yes
15710 ac_cv_lib_socket_inet_addr_lnsl=no
15712 rm -f core conftest.err conftest.$ac_objext \
15713 conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
15717 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
15718 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = x""yes; then :
15719 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
15730 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
15731 if test "x$ac_cv_func_syslog" = x""yes; then :
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
15735 $as_echo_n "checking for syslog in -lsocket... " >&6; }
15736 if test "${ac_cv_lib_socket_syslog+set}" = set; then :
15737 $as_echo_n "(cached) " >&6
15739 ac_check_lib_save_LIBS=$LIBS
15740 LIBS="-lsocket $LIBS"
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15744 /* Override any GCC internal prototype to avoid an error.
15745 Use char because int might match the return type of a GCC
15746 builtin and then its argument prototype would still apply. */
15759 if ac_fn_c_try_link "$LINENO"; then :
15760 ac_cv_lib_socket_syslog=yes
15762 ac_cv_lib_socket_syslog=no
15764 rm -f core conftest.err conftest.$ac_objext \
15765 conftest$ac_exeext conftest.$ac_ext
15766 LIBS=$ac_check_lib_save_LIBS
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
15769 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
15770 if test "x$ac_cv_lib_socket_syslog" = x""yes; then :
15771 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
15774 $as_echo_n "checking for syslog in -lnsl... " >&6; }
15775 if test "${ac_cv_lib_nsl_syslog+set}" = set; then :
15776 $as_echo_n "(cached) " >&6
15778 ac_check_lib_save_LIBS=$LIBS
15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h. */
15783 /* Override any GCC internal prototype to avoid an error.
15784 Use char because int might match the return type of a GCC
15785 builtin and then its argument prototype would still apply. */
15798 if ac_fn_c_try_link "$LINENO"; then :
15799 ac_cv_lib_nsl_syslog=yes
15801 ac_cv_lib_nsl_syslog=no
15803 rm -f core conftest.err conftest.$ac_objext \
15804 conftest$ac_exeext conftest.$ac_ext
15805 LIBS=$ac_check_lib_save_LIBS
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
15808 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
15809 if test "x$ac_cv_lib_nsl_syslog" = x""yes; then :
15810 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
15813 $as_echo_n "checking for syslog in -linet... " >&6; }
15814 if test "${ac_cv_lib_inet_syslog+set}" = set; then :
15815 $as_echo_n "(cached) " >&6
15817 ac_check_lib_save_LIBS=$LIBS
15818 LIBS="-linet $LIBS"
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15822 /* Override any GCC internal prototype to avoid an error.
15823 Use char because int might match the return type of a GCC
15824 builtin and then its argument prototype would still apply. */
15837 if ac_fn_c_try_link "$LINENO"; then :
15838 ac_cv_lib_inet_syslog=yes
15840 ac_cv_lib_inet_syslog=no
15842 rm -f core conftest.err conftest.$ac_objext \
15843 conftest$ac_exeext conftest.$ac_ext
15844 LIBS=$ac_check_lib_save_LIBS
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
15847 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
15848 if test "x$ac_cv_lib_inet_syslog" = x""yes; then :
15849 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
15858 for ac_func in getprogname
15860 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
15861 if test "x$ac_cv_func_getprogname" = x""yes; then :
15862 cat >>confdefs.h <<_ACEOF
15863 #define HAVE_GETPROGNAME 1
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
15869 $as_echo_n "checking for __progname... " >&6; }
15870 if test "${sudo_cv___progname+set}" = set; then :
15871 $as_echo_n "(cached) " >&6
15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15880 extern char *__progname; (void)puts(__progname);
15885 if ac_fn_c_try_link "$LINENO"; then :
15886 sudo_cv___progname=yes
15888 sudo_cv___progname=no
15890 rm -f core conftest.err conftest.$ac_objext \
15891 conftest$ac_exeext conftest.$ac_ext
15894 if test "$sudo_cv___progname" = "yes"; then
15895 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
15898 case " $LIBOBJS " in
15899 *" getprogname.$ac_objext "* ) ;;
15900 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
15906 $as_echo "$sudo_cv___progname" >&6; }
15912 for ac_func in strsignal
15914 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
15915 if test "x$ac_cv_func_strsignal" = x""yes; then :
15916 cat >>confdefs.h <<_ACEOF
15917 #define HAVE_STRSIGNAL 1
15922 case " $LIBOBJS " in
15923 *" strsignal.$ac_objext "* ) ;;
15924 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
15928 HAVE_SIGLIST="false"
15929 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
15930 $ac_includes_default
15931 #include <signal.h>
15934 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
15940 cat >>confdefs.h <<_ACEOF
15941 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
15943 if test $ac_have_decl = 1; then :
15945 HAVE_SIGLIST="true"
15949 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
15950 $ac_includes_default
15951 #include <signal.h>
15954 if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
15960 cat >>confdefs.h <<_ACEOF
15961 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
15963 if test $ac_have_decl = 1; then :
15965 HAVE_SIGLIST="true"
15969 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
15970 $ac_includes_default
15971 #include <signal.h>
15974 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
15983 if test $ac_have_decl = 1; then :
15985 HAVE_SIGLIST="true"
15990 if test "$HAVE_SIGLIST" != "true"; then
15991 case " $LIBOBJS " in
15992 *" siglist.$ac_objext "* ) ;;
15993 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
16003 if test ${with_netsvc-"no"} != "no"; then
16004 cat >>confdefs.h <<EOF
16005 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
16008 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
16009 elif test ${with_nsswitch-"yes"} != "no"; then
16010 cat >>confdefs.h <<EOF
16011 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
16014 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
16018 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
16019 for auth in $AUTH_EXCL_DEF; do
16021 AIX_AUTH) with_aixauth=maybe;;
16022 BSD_AUTH) with_bsdauth=maybe;;
16023 PAM) with_pam=maybe;;
16024 SIA) CHECKSIA=true;;
16029 if test ${with_pam-"no"} != "no"; then
16031 *-ldl*) SUDO_LIBS="${SUDO_LIBS} -lpam"
16033 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
16034 $as_echo_n "checking for main in -ldl... " >&6; }
16035 if test "${ac_cv_lib_dl_main+set}" = set; then :
16036 $as_echo_n "(cached) " >&6
16038 ac_check_lib_save_LIBS=$LIBS
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16052 if ac_fn_c_try_link "$LINENO"; then :
16053 ac_cv_lib_dl_main=yes
16055 ac_cv_lib_dl_main=no
16057 rm -f core conftest.err conftest.$ac_objext \
16058 conftest$ac_exeext conftest.$ac_ext
16059 LIBS=$ac_check_lib_save_LIBS
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
16062 $as_echo "$ac_cv_lib_dl_main" >&6; }
16063 if test "x$ac_cv_lib_dl_main" = x""yes; then :
16064 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
16066 SUDO_LIBS="${SUDO_LIBS} -lpam"
16069 ac_cv_lib_dl=ac_cv_lib_dl_main
16073 for ac_header in security/pam_appl.h pam/pam_appl.h
16075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16076 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16077 eval as_val=\$$as_ac_Header
16078 if test "x$as_val" = x""yes; then :
16079 cat >>confdefs.h <<_ACEOF
16080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16082 with_pam=yes; break
16087 if test "$with_pam" = "yes"; then
16088 $as_echo "#define HAVE_PAM 1" >>confdefs.h
16090 AUTH_OBJS="$AUTH_OBJS pam.o";
16094 # Check whether --with-pam-login was given.
16095 if test "${with_pam_login+set}" = set; then :
16096 withval=$with_pam_login; case $with_pam_login in
16097 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
16100 $as_echo_n "checking whether to use PAM login... " >&6; }
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16102 $as_echo "yes" >&6; }
16105 *) as_fn_error "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
16112 $as_echo_n "checking whether to use PAM session support... " >&6; }
16113 # Check whether --enable-pam_session was given.
16114 if test "${enable_pam_session+set}" = set; then :
16115 enableval=$enable_pam_session; case "$enableval" in
16116 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16117 $as_echo "yes" >&6; }
16119 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120 $as_echo "no" >&6; }
16122 $as_echo "#define NO_PAM_SESSION /**/" >>confdefs.h
16125 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
16128 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16133 $as_echo "yes" >&6; }
16138 *-*-linux*|*-*-solaris*)
16139 # dgettext() may be defined to dgettext_libintl in the
16140 # header file, so first check that it links w/ additional
16141 # libs, then try with -lintl
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144 #include <libintl.h>
16148 (void)dgettext((char *)0, (char *)0);
16153 if ac_fn_c_try_link "$LINENO"; then :
16154 $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16158 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16159 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16160 $as_echo_n "(cached) " >&6
16162 ac_check_lib_save_LIBS=$LIBS
16163 LIBS="-lintl $LIBS"
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16167 /* Override any GCC internal prototype to avoid an error.
16168 Use char because int might match the return type of a GCC
16169 builtin and then its argument prototype would still apply. */
16177 return dgettext ();
16182 if ac_fn_c_try_link "$LINENO"; then :
16183 ac_cv_lib_intl_dgettext=yes
16185 ac_cv_lib_intl_dgettext=no
16187 rm -f core conftest.err conftest.$ac_objext \
16188 conftest$ac_exeext conftest.$ac_ext
16189 LIBS=$ac_check_lib_save_LIBS
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16192 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16193 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
16194 LIBS="${LIBS} -lintl"
16195 $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16200 rm -f core conftest.err conftest.$ac_objext \
16201 conftest$ac_exeext conftest.$ac_ext
16207 if test ${with_aixauth-'no'} != "no"; then
16208 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
16210 $as_echo "$as_me: using AIX general authentication" >&6;}
16211 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
16213 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
16214 SUDO_LIBS="${SUDO_LIBS} -ls"
16219 if test ${with_bsdauth-'no'} != "no"; then
16220 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
16221 if test "x$ac_cv_header_bsd_auth_h" = x""yes; then :
16222 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
16224 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
16225 BSDAUTH_USAGE='[-a auth_type] '
16226 AUTH_EXCL=BSD_AUTH; BAMAN=1
16228 as_fn_error "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
16234 if test ${CHECKSIA-'false'} = "true"; then
16235 for ac_func in sia_ses_init
16237 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
16238 if test "x$ac_cv_func_sia_ses_init" = x""yes; then :
16239 cat >>confdefs.h <<_ACEOF
16240 #define HAVE_SIA_SES_INIT 1
16248 if test "$found" = "true"; then
16250 AUTH_OBJS="$AUTH_OBJS sia.o"
16254 if test ${with_fwtk-'no'} != "no"; then
16255 if test "$with_fwtk" != "yes"; then
16257 if test X"$with_rpath" = X"yes"; then
16259 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
16261 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
16265 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
16267 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16268 blibpath_add="${blibpath_add}:${with_fwtk}"
16271 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
16274 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
16275 AUTH_OBJS="$AUTH_OBJS fwtk.o"
16278 if test ${with_SecurID-'no'} != "no"; then
16279 if test "$with_SecurID" != "yes"; then
16281 elif test -d /usr/ace/examples; then
16282 with_SecurID=/usr/ace/examples
16284 with_SecurID=/usr/ace
16286 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
16287 _LDFLAGS="${LDFLAGS}"
16289 if test X"$with_rpath" = X"yes"; then
16291 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16293 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16297 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
16299 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16300 blibpath_add="${blibpath_add}:${with_SecurID}"
16304 # Determine whether to use the new or old SecurID API
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
16307 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
16308 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then :
16309 $as_echo_n "(cached) " >&6
16311 ac_check_lib_save_LIBS=$LIBS
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h. */
16319 /* Override any GCC internal prototype to avoid an error.
16320 Use char because int might match the return type of a GCC
16321 builtin and then its argument prototype would still apply. */
16334 if ac_fn_c_try_link "$LINENO"; then :
16335 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
16337 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
16339 rm -f core conftest.err conftest.$ac_objext \
16340 conftest$ac_exeext conftest.$ac_ext
16341 LIBS=$ac_check_lib_save_LIBS
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
16344 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
16345 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = x""yes; then :
16347 AUTH_OBJS="$AUTH_OBJS securid5.o";
16348 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
16352 if test X"$with_rpath" = X"yes"; then
16354 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16356 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16360 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
16362 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16363 blibpath_add="${blibpath_add}:${with_SecurID}"
16369 AUTH_OBJS="$AUTH_OBJS securid.o";
16370 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
16374 LDFLAGS="${_LDFLAGS}"
16378 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
16379 for auth in $AUTH_DEF; do
16381 passwd) : ${with_passwd='maybe'};;
16386 if test ${with_kerb4-'no'} != "no"; then
16387 $as_echo "#define HAVE_KERB4 1" >>confdefs.h
16389 O_LDFLAGS="$LDFLAGS"
16390 if test "$with_kerb4" = "yes"; then
16392 O_CPPFLAGS="$CPPFLAGS"
16393 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
16394 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16399 if ac_fn_c_try_cpp "$LINENO"; then :
16402 rm -f conftest.err conftest.$ac_ext
16404 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
16407 if test X"$with_rpath" = X"yes"; then
16409 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16411 *) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16415 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
16417 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16418 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16422 if test X"$with_rpath" = X"yes"; then
16424 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16426 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16430 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
16432 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16433 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16436 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
16437 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16438 if test "x$ac_cv_header_krb_h" = x""yes; then :
16446 if test X"$found" = X"no"; then
16447 { $as_echo "$as_me:${as_lineno-$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
16448 $as_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;}
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16452 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16453 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16454 $as_echo_n "(cached) " >&6
16456 ac_check_lib_save_LIBS=$LIBS
16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h. */
16461 /* Override any GCC internal prototype to avoid an error.
16462 Use char because int might match the return type of a GCC
16463 builtin and then its argument prototype would still apply. */
16467 char des_cbc_encrypt ();
16471 return des_cbc_encrypt ();
16476 if ac_fn_c_try_link "$LINENO"; then :
16477 ac_cv_lib_des_des_cbc_encrypt=yes
16479 ac_cv_lib_des_des_cbc_encrypt=no
16481 rm -f core conftest.err conftest.$ac_objext \
16482 conftest$ac_exeext conftest.$ac_ext
16483 LIBS=$ac_check_lib_save_LIBS
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16486 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16487 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16492 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16493 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
16494 $as_echo_n "(cached) " >&6
16496 ac_check_lib_save_LIBS=$LIBS
16497 LIBS="-ldes425 $LIBS"
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h. */
16501 /* Override any GCC internal prototype to avoid an error.
16502 Use char because int might match the return type of a GCC
16503 builtin and then its argument prototype would still apply. */
16507 char des_cbc_encrypt ();
16511 return des_cbc_encrypt ();
16516 if ac_fn_c_try_link "$LINENO"; then :
16517 ac_cv_lib_des425_des_cbc_encrypt=yes
16519 ac_cv_lib_des425_des_cbc_encrypt=no
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16523 LIBS=$ac_check_lib_save_LIBS
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16526 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16527 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
16537 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16544 const char *tmp = krb4_version;
16549 if ac_fn_c_try_compile "$LINENO"; then :
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16552 $as_echo "yes" >&6; }
16553 K4LIBS="${K4LIBS} -lcom_err"
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
16555 $as_echo_n "checking for main in -lroken... " >&6; }
16556 if test "${ac_cv_lib_roken_main+set}" = set; then :
16557 $as_echo_n "(cached) " >&6
16559 ac_check_lib_save_LIBS=$LIBS
16560 LIBS="-lroken $LIBS"
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h. */
16573 if ac_fn_c_try_link "$LINENO"; then :
16574 ac_cv_lib_roken_main=yes
16576 ac_cv_lib_roken_main=no
16578 rm -f core conftest.err conftest.$ac_objext \
16579 conftest$ac_exeext conftest.$ac_ext
16580 LIBS=$ac_check_lib_save_LIBS
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
16583 $as_echo "$ac_cv_lib_roken_main" >&6; }
16584 if test "x$ac_cv_lib_roken_main" = x""yes; then :
16585 K4LIBS="${K4LIBS} -lroken"
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16592 $as_echo "no" >&6; }
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
16599 $as_echo_n "checking for main in -lkrb... " >&6; }
16600 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16601 $as_echo_n "(cached) " >&6
16603 ac_check_lib_save_LIBS=$LIBS
16604 LIBS="-lkrb $K4LIBS $LIBS"
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16617 if ac_fn_c_try_link "$LINENO"; then :
16618 eval "$as_ac_Lib=yes"
16620 eval "$as_ac_Lib=no"
16622 rm -f core conftest.err conftest.$ac_objext \
16623 conftest$ac_exeext conftest.$ac_ext
16624 LIBS=$ac_check_lib_save_LIBS
16626 eval ac_res=\$$as_ac_Lib
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16628 $as_echo "$ac_res" >&6; }
16629 eval as_val=\$$as_ac_Lib
16630 if test "x$as_val" = x""yes; then :
16631 K4LIBS="-lkrb $K4LIBS"
16634 as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
16636 $as_echo_n "checking for main in -lkrb4... " >&6; }
16637 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16638 $as_echo_n "(cached) " >&6
16640 ac_check_lib_save_LIBS=$LIBS
16641 LIBS="-lkrb4 $K4LIBS $LIBS"
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16654 if ac_fn_c_try_link "$LINENO"; then :
16655 eval "$as_ac_Lib=yes"
16657 eval "$as_ac_Lib=no"
16659 rm -f core conftest.err conftest.$ac_objext \
16660 conftest$ac_exeext conftest.$ac_ext
16661 LIBS=$ac_check_lib_save_LIBS
16663 eval ac_res=\$$as_ac_Lib
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16665 $as_echo "$ac_res" >&6; }
16666 eval as_val=\$$as_ac_Lib
16667 if test "x$as_val" = x""yes; then :
16668 K4LIBS="-lkrb4 $K4LIBS"
16670 K4LIBS="-lkrb $K4LIBS"
16671 { $as_echo "$as_me:${as_lineno-$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
16672 $as_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;}
16679 LDFLAGS="$O_LDFLAGS"
16680 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
16681 AUTH_OBJS="$AUTH_OBJS kerb4.o"
16684 if test ${with_kerb5-'no'} != "no"; then
16685 # Extract the first word of "krb5-config", so it can be a program name with args.
16686 set dummy krb5-config; ac_word=$2
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16688 $as_echo_n "checking for $ac_word... " >&6; }
16689 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then :
16690 $as_echo_n "(cached) " >&6
16692 if test -n "$KRB5CONFIG"; then
16693 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
16695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16696 for as_dir in $PATH
16699 test -z "$as_dir" && as_dir=.
16700 for ac_exec_ext in '' $ac_executable_extensions; do
16701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16702 ac_cv_prog_KRB5CONFIG="yes"
16703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16710 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
16713 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
16714 if test -n "$KRB5CONFIG"; then
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
16716 $as_echo "$KRB5CONFIG" >&6; }
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16719 $as_echo "no" >&6; }
16723 if test -n "$KRB5CONFIG"; then
16724 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
16726 AUTH_OBJS="$AUTH_OBJS kerb5.o"
16727 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
16728 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16730 $as_echo_n "checking whether we are using Heimdal... " >&6; }
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16737 const char *tmp = heimdal_version;
16742 if ac_fn_c_try_compile "$LINENO"; then :
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16745 $as_echo "yes" >&6; }
16746 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16752 $as_echo "no" >&6; }
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
16760 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
16762 if test "$with_kerb5" = "yes"; then
16764 O_CPPFLAGS="$CPPFLAGS"
16765 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
16766 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16771 if ac_fn_c_try_cpp "$LINENO"; then :
16774 rm -f conftest.err conftest.$ac_ext
16776 if test X"$found" = X"no"; then
16777 CPPFLAGS="$O_CPPFLAGS"
16778 { $as_echo "$as_me:${as_lineno-$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
16779 $as_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;}
16783 if test X"$with_rpath" = X"yes"; then
16785 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
16787 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
16791 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
16793 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16794 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
16797 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16801 $as_echo_n "checking whether we are using Heimdal... " >&6; }
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16808 const char *tmp = heimdal_version;
16813 if ac_fn_c_try_compile "$LINENO"; then :
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16816 $as_echo "yes" >&6; }
16817 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
16819 # XXX - need to check whether -lcrypo is needed!
16820 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
16822 $as_echo_n "checking for main in -lroken... " >&6; }
16823 if test "${ac_cv_lib_roken_main+set}" = set; then :
16824 $as_echo_n "(cached) " >&6
16826 ac_check_lib_save_LIBS=$LIBS
16827 LIBS="-lroken $LIBS"
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16840 if ac_fn_c_try_link "$LINENO"; then :
16841 ac_cv_lib_roken_main=yes
16843 ac_cv_lib_roken_main=no
16845 rm -f core conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16847 LIBS=$ac_check_lib_save_LIBS
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
16850 $as_echo "$ac_cv_lib_roken_main" >&6; }
16851 if test "x$ac_cv_lib_roken_main" = x""yes; then :
16852 SUDO_LIBS="${SUDO_LIBS} -lroken"
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16859 $as_echo "no" >&6; }
16860 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
16862 $as_echo_n "checking for main in -lkrb5support... " >&6; }
16863 if test "${ac_cv_lib_krb5support_main+set}" = set; then :
16864 $as_echo_n "(cached) " >&6
16866 ac_check_lib_save_LIBS=$LIBS
16867 LIBS="-lkrb5support $LIBS"
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16880 if ac_fn_c_try_link "$LINENO"; then :
16881 ac_cv_lib_krb5support_main=yes
16883 ac_cv_lib_krb5support_main=no
16885 rm -f core conftest.err conftest.$ac_objext \
16886 conftest$ac_exeext conftest.$ac_ext
16887 LIBS=$ac_check_lib_save_LIBS
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
16890 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
16891 if test "x$ac_cv_lib_krb5support_main" = x""yes; then :
16892 SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
16897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16898 AUTH_OBJS="$AUTH_OBJS kerb5.o"
16900 LIBS="${LIBS} ${SUDO_LIBS}"
16901 for ac_func in krb5_verify_user krb5_init_secure_context
16903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16905 eval as_val=\$$as_ac_var
16906 if test "x$as_val" = x""yes; then :
16907 cat >>confdefs.h <<_ACEOF
16908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16914 for ac_func in krb5_get_init_creds_opt_alloc
16916 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
16917 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = x""yes; then :
16918 cat >>confdefs.h <<_ACEOF
16919 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
16923 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
16924 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then :
16925 $as_echo_n "(cached) " >&6
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h. */
16934 krb5_get_init_creds_opt_free(NULL, NULL);
16940 if ac_fn_c_try_compile "$LINENO"; then :
16941 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
16943 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
16951 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
16956 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
16957 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
16963 if test ${with_AFS-'no'} = "yes"; then
16965 # looks like the "standard" place for AFS libs is /usr/afsws/lib
16966 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
16967 for i in $AFSLIBDIRS; do
16968 if test -d ${i}; then
16970 if test X"$with_rpath" = X"yes"; then
16972 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,+b,$i"
16974 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,-R$i"
16978 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
16980 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16981 blibpath_add="${blibpath_add}:$i"
16984 FOUND_AFSLIBDIR=true
16987 if test -z "$FOUND_AFSLIBDIR"; then
16988 { $as_echo "$as_me:${as_lineno-$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
16989 $as_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;}
16992 # Order is important here. Note that we build AFS_LIBS from right to left
16993 # since AFS_LIBS may be initialized with BSD compat libs that must go last
16994 AFS_LIBS="-laudit ${AFS_LIBS}"
16995 for i in $AFSLIBDIRS; do
16996 if test -f ${i}/util.a; then
16997 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
17002 if test -z "$FOUND_UTIL_A"; then
17003 AFS_LIBS="-lutil ${AFS_LIBS}"
17005 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
17007 # AFS includes may live in /usr/include on some machines...
17008 for i in /usr/afsws/include; do
17009 if test -d ${i}; then
17010 CPPFLAGS="${CPPFLAGS} -I${i}"
17011 FOUND_AFSINCDIR=true
17015 if test -z "$FOUND_AFSLIBDIR"; then
17016 { $as_echo "$as_me:${as_lineno-$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
17017 $as_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;}
17020 AUTH_OBJS="$AUTH_OBJS afs.o"
17023 if test ${with_DCE-'no'} = "yes"; then
17024 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
17025 SUDO_LIBS="${SUDO_LIBS} -ldce"
17026 AUTH_OBJS="$AUTH_OBJS dce.o"
17029 if test ${with_skey-'no'} = "yes"; then
17030 O_LDFLAGS="$LDFLAGS"
17031 if test "$with_skey" != "yes"; then
17032 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
17034 if test X"$with_rpath" = X"yes"; then
17036 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17038 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17042 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
17044 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17045 blibpath_add="${blibpath_add}:${with_skey}/lib"
17049 if test X"$with_rpath" = X"yes"; then
17051 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17053 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17057 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
17059 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17060 blibpath_add="${blibpath_add}:${with_skey}/lib"
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17067 if ac_fn_c_try_cpp "$LINENO"; then :
17072 rm -f conftest.err conftest.$ac_ext
17075 O_CPPFLAGS="$CPPFLAGS"
17076 for dir in "" "/usr/local" "/usr/contrib"; do
17077 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h. */
17082 if ac_fn_c_try_cpp "$LINENO"; then :
17085 rm -f conftest.err conftest.$ac_ext
17087 if test "$found" = "no" -o -z "$dir"; then
17088 CPPFLAGS="$O_CPPFLAGS"
17091 if test X"$with_rpath" = X"yes"; then
17093 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17095 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17099 LDFLAGS="${LDFLAGS} -L${dir}/lib"
17101 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17102 blibpath_add="${blibpath_add}:${dir}/lib"
17106 if test X"$with_rpath" = X"yes"; then
17108 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17110 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17114 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17116 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17117 blibpath_add="${blibpath_add}:${dir}/lib"
17122 if test "$found" = "no"; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
17124 $as_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;}
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
17127 $as_echo_n "checking for main in -lskey... " >&6; }
17128 if test "${ac_cv_lib_skey_main+set}" = set; then :
17129 $as_echo_n "(cached) " >&6
17131 ac_check_lib_save_LIBS=$LIBS
17132 LIBS="-lskey $LIBS"
17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134 /* end confdefs.h. */
17145 if ac_fn_c_try_link "$LINENO"; then :
17146 ac_cv_lib_skey_main=yes
17148 ac_cv_lib_skey_main=no
17150 rm -f core conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17152 LIBS=$ac_check_lib_save_LIBS
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
17155 $as_echo "$ac_cv_lib_skey_main" >&6; }
17156 if test "x$ac_cv_lib_skey_main" = x""yes; then :
17159 { $as_echo "$as_me:${as_lineno-$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
17160 $as_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;}
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
17164 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
17165 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then :
17166 $as_echo_n "(cached) " >&6
17168 ac_check_lib_save_LIBS=$LIBS
17169 LIBS="-lskey $LIBS"
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17173 /* Override any GCC internal prototype to avoid an error.
17174 Use char because int might match the return type of a GCC
17175 builtin and then its argument prototype would still apply. */
17179 char skeyaccess ();
17183 return skeyaccess ();
17188 if ac_fn_c_try_link "$LINENO"; then :
17189 ac_cv_lib_skey_skeyaccess=yes
17191 ac_cv_lib_skey_skeyaccess=no
17193 rm -f core conftest.err conftest.$ac_objext \
17194 conftest$ac_exeext conftest.$ac_ext
17195 LIBS=$ac_check_lib_save_LIBS
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
17198 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
17199 if test "x$ac_cv_lib_skey_skeyaccess" = x""yes; then :
17200 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
17204 LDFLAGS="$O_LDFLAGS"
17205 SUDO_LIBS="${SUDO_LIBS} -lskey"
17206 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17209 if test ${with_opie-'no'} = "yes"; then
17210 O_LDFLAGS="$LDFLAGS"
17211 if test "$with_opie" != "yes"; then
17212 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17214 if test X"$with_rpath" = X"yes"; then
17216 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17218 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17222 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
17224 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17225 blibpath_add="${blibpath_add}:${with_opie}/lib"
17229 if test X"$with_rpath" = X"yes"; then
17231 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17233 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17237 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
17239 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17240 blibpath_add="${blibpath_add}:${with_opie}/lib"
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17247 if ac_fn_c_try_cpp "$LINENO"; then :
17252 rm -f conftest.err conftest.$ac_ext
17255 O_CPPFLAGS="$CPPFLAGS"
17256 for dir in "" "/usr/local" "/usr/contrib"; do
17257 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17262 if ac_fn_c_try_cpp "$LINENO"; then :
17265 rm -f conftest.err conftest.$ac_ext
17267 if test "$found" = "no" -o -z "$dir"; then
17268 CPPFLAGS="$O_CPPFLAGS"
17271 if test X"$with_rpath" = X"yes"; then
17273 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17275 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17279 LDFLAGS="${LDFLAGS} -L${dir}/lib"
17281 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17282 blibpath_add="${blibpath_add}:${dir}/lib"
17286 if test X"$with_rpath" = X"yes"; then
17288 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17290 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17294 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17296 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17297 blibpath_add="${blibpath_add}:${dir}/lib"
17302 if test "$found" = "no"; then
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
17304 $as_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;}
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
17307 $as_echo_n "checking for main in -lopie... " >&6; }
17308 if test "${ac_cv_lib_opie_main+set}" = set; then :
17309 $as_echo_n "(cached) " >&6
17311 ac_check_lib_save_LIBS=$LIBS
17312 LIBS="-lopie $LIBS"
17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h. */
17325 if ac_fn_c_try_link "$LINENO"; then :
17326 ac_cv_lib_opie_main=yes
17328 ac_cv_lib_opie_main=no
17330 rm -f core conftest.err conftest.$ac_objext \
17331 conftest$ac_exeext conftest.$ac_ext
17332 LIBS=$ac_check_lib_save_LIBS
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
17335 $as_echo "$ac_cv_lib_opie_main" >&6; }
17336 if test "x$ac_cv_lib_opie_main" = x""yes; then :
17339 { $as_echo "$as_me:${as_lineno-$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
17340 $as_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;}
17343 LDFLAGS="$O_LDFLAGS"
17344 SUDO_LIBS="${SUDO_LIBS} -lopie"
17345 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17348 if test ${with_passwd-'no'} != "no"; then
17349 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17351 $as_echo_n "checking for library containing crypt... " >&6; }
17352 if test "${ac_cv_search_crypt+set}" = set; then :
17353 $as_echo_n "(cached) " >&6
17355 ac_func_search_save_LIBS=$LIBS
17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357 /* end confdefs.h. */
17359 /* Override any GCC internal prototype to avoid an error.
17360 Use char because int might match the return type of a GCC
17361 builtin and then its argument prototype would still apply. */
17374 for ac_lib in '' crypt crypt_d ufc; do
17375 if test -z "$ac_lib"; then
17376 ac_res="none required"
17379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17381 if ac_fn_c_try_link "$LINENO"; then :
17382 ac_cv_search_crypt=$ac_res
17384 rm -f core conftest.err conftest.$ac_objext \
17386 if test "${ac_cv_search_crypt+set}" = set; then :
17390 if test "${ac_cv_search_crypt+set}" = set; then :
17393 ac_cv_search_crypt=no
17395 rm conftest.$ac_ext
17396 LIBS=$ac_func_search_save_LIBS
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17399 $as_echo "$ac_cv_search_crypt" >&6; }
17400 ac_res=$ac_cv_search_crypt
17401 if test "$ac_res" != no; then :
17402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17403 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17408 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
17410 LIBS="$LIBS $shadow_libs"
17412 for ac_func in $shadow_funcs
17414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17416 eval as_val=\$$as_ac_var
17417 if test "x$as_val" = x""yes; then :
17418 cat >>confdefs.h <<_ACEOF
17419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17425 if test "$found" = "yes"; then
17426 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
17427 elif test -n "$shadow_libs_optional"; then
17428 LIBS="$LIBS $shadow_libs_optional"
17429 for ac_func in $shadow_funcs
17431 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17432 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17433 eval as_val=\$$as_ac_var
17434 if test "x$as_val" = x""yes; then :
17435 cat >>confdefs.h <<_ACEOF
17436 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17442 if test "$found" = "yes"; then
17443 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
17446 if test "$found" = "yes"; then
17447 case "$shadow_funcs" in
17448 *getprpwnam*) SECUREWARE=1;;
17450 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
17456 if test "$CHECKSHADOW" = "true"; then
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
17458 $as_echo_n "checking for library containing getspnam... " >&6; }
17459 if test "${ac_cv_search_getspnam+set}" = set; then :
17460 $as_echo_n "(cached) " >&6
17462 ac_func_search_save_LIBS=$LIBS
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17476 return getspnam ();
17481 for ac_lib in '' gen; do
17482 if test -z "$ac_lib"; then
17483 ac_res="none required"
17486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17488 if ac_fn_c_try_link "$LINENO"; then :
17489 ac_cv_search_getspnam=$ac_res
17491 rm -f core conftest.err conftest.$ac_objext \
17493 if test "${ac_cv_search_getspnam+set}" = set; then :
17497 if test "${ac_cv_search_getspnam+set}" = set; then :
17500 ac_cv_search_getspnam=no
17502 rm conftest.$ac_ext
17503 LIBS=$ac_func_search_save_LIBS
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
17506 $as_echo "$ac_cv_search_getspnam" >&6; }
17507 ac_res=$ac_cv_search_getspnam
17508 if test "$ac_res" != no; then :
17509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17510 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
17511 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17515 if test "$CHECKSHADOW" = "true"; then
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
17517 $as_echo_n "checking for library containing getprpwnam... " >&6; }
17518 if test "${ac_cv_search_getprpwnam+set}" = set; then :
17519 $as_echo_n "(cached) " >&6
17521 ac_func_search_save_LIBS=$LIBS
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17525 /* Override any GCC internal prototype to avoid an error.
17526 Use char because int might match the return type of a GCC
17527 builtin and then its argument prototype would still apply. */
17531 char getprpwnam ();
17535 return getprpwnam ();
17540 for ac_lib in '' sec security prot; do
17541 if test -z "$ac_lib"; then
17542 ac_res="none required"
17545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17547 if ac_fn_c_try_link "$LINENO"; then :
17548 ac_cv_search_getprpwnam=$ac_res
17550 rm -f core conftest.err conftest.$ac_objext \
17552 if test "${ac_cv_search_getprpwnam+set}" = set; then :
17556 if test "${ac_cv_search_getprpwnam+set}" = set; then :
17559 ac_cv_search_getprpwnam=no
17561 rm conftest.$ac_ext
17562 LIBS=$ac_func_search_save_LIBS
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
17565 $as_echo "$ac_cv_search_getprpwnam" >&6; }
17566 ac_res=$ac_cv_search_getprpwnam
17567 if test "$ac_res" != no; then :
17568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17569 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
17570 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17574 if test -n "$SECUREWARE"; then
17575 for ac_func in bigcrypt set_auth_parameters initprivs
17577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17579 eval as_val=\$$as_ac_var
17580 if test "x$as_val" = x""yes; then :
17581 cat >>confdefs.h <<_ACEOF
17582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17588 AUTH_OBJS="$AUTH_OBJS secureware.o"
17592 if test ${with_ldap-'no'} != "no"; then
17593 _LDFLAGS="$LDFLAGS"
17594 if test "$with_ldap" != "yes"; then
17596 if test X"$with_rpath" = X"yes"; then
17598 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
17600 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
17604 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
17606 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17607 blibpath_add="${blibpath_add}:${with_ldap}/lib"
17611 if test X"$with_rpath" = X"yes"; then
17613 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
17615 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
17619 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
17621 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17622 blibpath_add="${blibpath_add}:${with_ldap}/lib"
17625 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
17628 SUDO_OBJS="${SUDO_OBJS} ldap.o"
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
17632 $as_echo_n "checking for LDAP libraries... " >&6; }
17636 for l in -lldap -llber '-lssl -lcrypto'; do
17638 LDAP_LIBS="${LDAP_LIBS} $l"
17639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17640 /* end confdefs.h. */
17641 #include <sys/types.h>
17647 (void)ldap_init(0, 0)
17652 if ac_fn_c_try_link "$LINENO"; then :
17655 rm -f core conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
17658 if test "$found" = "no"; then
17659 LIBS="${_LIBS} -lldap"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
17662 $as_echo "not found, using -lldap" >&6; }
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
17665 $as_echo "$LDAP_LIBS" >&6; }
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
17669 $as_echo_n "checking for library containing ber_set_option... " >&6; }
17670 if test "${ac_cv_search_ber_set_option+set}" = set; then :
17671 $as_echo_n "(cached) " >&6
17673 ac_func_search_save_LIBS=$LIBS
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17677 /* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17683 char ber_set_option ();
17687 return ber_set_option ();
17692 for ac_lib in '' lber; do
17693 if test -z "$ac_lib"; then
17694 ac_res="none required"
17697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17699 if ac_fn_c_try_link "$LINENO"; then :
17700 ac_cv_search_ber_set_option=$ac_res
17702 rm -f core conftest.err conftest.$ac_objext \
17704 if test "${ac_cv_search_ber_set_option+set}" = set; then :
17708 if test "${ac_cv_search_ber_set_option+set}" = set; then :
17711 ac_cv_search_ber_set_option=no
17713 rm conftest.$ac_ext
17714 LIBS=$ac_func_search_save_LIBS
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
17717 $as_echo "$ac_cv_search_ber_set_option" >&6; }
17718 ac_res=$ac_cv_search_ber_set_option
17719 if test "$ac_res" != no; then :
17720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17726 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
17727 LDAP_LIBS="$LDAP_LIBS -llber"
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
17730 $as_echo_n "checking whether lber.h is needed... " >&6; }
17731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h. */
17733 #include <sys/types.h>
17738 (void)ldap_init(0, 0)
17743 if ac_fn_c_try_link "$LINENO"; then :
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17745 $as_echo "no" >&6; }
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17749 $as_echo "yes" >&6; }
17750 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
17753 rm -f core conftest.err conftest.$ac_objext \
17754 conftest$ac_exeext conftest.$ac_ext
17756 for ac_header in sasl/sasl.h sasl.h
17758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17759 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17760 eval as_val=\$$as_ac_Header
17761 if test "x$as_val" = x""yes; then :
17762 cat >>confdefs.h <<_ACEOF
17763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17765 for ac_func in ldap_sasl_interactive_bind_s
17767 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
17768 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = x""yes; then :
17769 cat >>confdefs.h <<_ACEOF
17770 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
17782 for ac_header in ldap_ssl.h mps/ldap_ssl.h
17784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17785 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
17787 eval as_val=\$$as_ac_Header
17788 if test "x$as_val" = x""yes; then :
17789 cat >>confdefs.h <<_ACEOF
17790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17797 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
17799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17800 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17801 eval as_val=\$$as_ac_var
17802 if test "x$as_val" = x""yes; then :
17803 cat >>confdefs.h <<_ACEOF
17804 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17811 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
17813 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
17814 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then :
17815 $as_echo_n "(cached) " >&6
17817 ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-lgssapi $LIBS"
17819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17820 /* end confdefs.h. */
17822 /* Override any GCC internal prototype to avoid an error.
17823 Use char because int might match the return type of a GCC
17824 builtin and then its argument prototype would still apply. */
17828 char gss_krb5_ccache_name ();
17832 return gss_krb5_ccache_name ();
17837 if ac_fn_c_try_link "$LINENO"; then :
17838 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
17840 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
17842 rm -f core conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
17844 LIBS=$ac_check_lib_save_LIBS
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
17847 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
17848 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = x""yes; then :
17849 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
17851 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
17854 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
17855 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then :
17856 $as_echo_n "(cached) " >&6
17858 ac_check_lib_save_LIBS=$LIBS
17859 LIBS="-lgssapi_krb5 $LIBS"
17860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861 /* end confdefs.h. */
17863 /* Override any GCC internal prototype to avoid an error.
17864 Use char because int might match the return type of a GCC
17865 builtin and then its argument prototype would still apply. */
17869 char gss_krb5_ccache_name ();
17873 return gss_krb5_ccache_name ();
17878 if ac_fn_c_try_link "$LINENO"; then :
17879 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
17881 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
17883 rm -f core conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17885 LIBS=$ac_check_lib_save_LIBS
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
17888 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
17889 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = x""yes; then :
17890 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
17892 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
17899 # gssapi headers may be separate or part of Kerberos V
17901 O_CPPFLAGS="$CPPFLAGS"
17902 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
17903 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17906 #include <gssapi/gssapi.h>
17908 if ac_fn_c_try_cpp "$LINENO"; then :
17909 found="gssapi/gssapi.h"; break
17911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17913 #include <gssapi.h>
17915 if ac_fn_c_try_cpp "$LINENO"; then :
17916 found="gssapi.h"; break
17918 rm -f conftest.err conftest.$ac_ext
17920 rm -f conftest.err conftest.$ac_ext
17922 if test X"$found" != X"no"; then
17923 for ac_header in $found
17925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17926 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17927 eval as_val=\$$as_ac_Header
17928 if test "x$as_val" = x""yes; then :
17929 cat >>confdefs.h <<_ACEOF
17930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17937 if test X"$found" = X"gssapi/gssapi.h"; then
17938 for ac_header in gssapi/gssapi_krb5.h
17940 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
17941 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = x""yes; then :
17942 cat >>confdefs.h <<_ACEOF
17943 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
17952 CPPFLAGS="$O_CPPFLAGS"
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
17954 $as_echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&2;}
17958 SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
17960 LDFLAGS="$_LDFLAGS"
17963 if test X"$LIBVAS_RPATH" != X""; then
17964 if test -n "$blibpath"; then
17965 blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
17968 *-*-hpux*) LDFLAGS="$LDFLAGS -Wl,+b,$LIBVAS_RPATH"
17970 *) LDFLAGS="$LDFLAGS -Wl,-R$LIBVAS_RPATH"
17976 if test -n "$blibpath"; then
17977 if test -n "$blibpath_add"; then
17978 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
17979 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
17980 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
17985 $as_echo_n "checking for log file location... " >&6; }
17986 if test -n "$with_logpath"; then
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
17988 $as_echo "$with_logpath" >&6; }
17989 cat >>confdefs.h <<EOF
17990 #define _PATH_SUDO_LOGFILE "$with_logpath"
17993 elif test -d "/var/log"; then
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
17995 $as_echo "/var/log/sudo.log" >&6; }
17996 cat >>confdefs.h <<\EOF
17997 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
18000 elif test -d "/var/adm"; then
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
18002 $as_echo "/var/adm/sudo.log" >&6; }
18003 cat >>confdefs.h <<\EOF
18004 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
18007 elif test -d "/usr/adm"; then
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
18009 $as_echo "/usr/adm/sudo.log" >&6; }
18010 cat >>confdefs.h <<\EOF
18011 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
18016 $as_echo "unknown" >&6; }
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
18020 $as_echo_n "checking for timestamp file location... " >&6; }
18021 timedir="$with_timedir"
18022 if test -z "$timedir"; then
18023 for d in /var/db /var/lib /var/adm /usr/adm; do
18024 if test -d "$d"; then
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
18031 $as_echo "$timedir" >&6; }
18032 cat >>confdefs.h <<EOF
18033 #define _PATH_SUDO_TIMEDIR "$timedir"
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
18039 $as_echo_n "checking for I/O log dir location... " >&6; }
18040 if test "${with_iologdir-yes}" != "yes"; then
18042 elif test -d "/var/log"; then
18043 with_iologdir="/var/log/sudo-io"
18044 elif test -d "/var/adm"; then
18045 with_iologdir="/var/adm/sudo-io"
18047 with_iologdir="/usr/adm/sudo-io"
18049 if test "${with_iologdir-yes}" != "no"; then
18050 cat >>confdefs.h <<EOF
18051 #define _PATH_SUDO_IO_LOGDIR "$with_iologdir"
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_iologdir" >&5
18056 $as_echo "$with_iologdir" >&6; }
18059 if test "${with_iologdir-yes}" != "no"; then
18060 # Require POSIX job control for I/O log support
18061 for ac_func in tcsetpgrp
18063 ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
18064 if test "x$ac_cv_func_tcsetpgrp" = x""yes; then :
18065 cat >>confdefs.h <<_ACEOF
18066 #define HAVE_TCSETPGRP 1
18069 SUDO_OBJS="${SUDO_OBJS} exec_pty.o get_pty.o iolog.o"
18070 PROGS="$PROGS sudoreplay"
18073 # Check whether --enable-zlib was given.
18074 if test "${enable_zlib+set}" = set; then :
18075 enableval=$enable_zlib; case "$enable_zlib" in
18076 yes) $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18081 *) $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18083 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
18085 if test X"$with_rpath" = X"yes"; then
18087 *-*-hpux*) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18089 *) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18093 ZLIB="${ZLIB} -L$enable_zlib/lib"
18095 if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18096 blibpath_add="${blibpath_add}:$enable_zlib/lib"
18105 if test X"$enable_zlib" = X""; then
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18107 $as_echo_n "checking for gzdopen in -lz... " >&6; }
18108 if test "${ac_cv_lib_z_gzdopen+set}" = set; then :
18109 $as_echo_n "(cached) " >&6
18111 ac_check_lib_save_LIBS=$LIBS
18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18116 /* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18131 if ac_fn_c_try_link "$LINENO"; then :
18132 ac_cv_lib_z_gzdopen=yes
18134 ac_cv_lib_z_gzdopen=no
18136 rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18138 LIBS=$ac_check_lib_save_LIBS
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18141 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18142 if test "x$ac_cv_lib_z_gzdopen" = x""yes; then :
18144 for ac_header in zlib.h
18146 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18147 if test "x$ac_cv_header_zlib_h" = x""yes; then :
18148 cat >>confdefs.h <<_ACEOF
18149 #define HAVE_ZLIB_H 1
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&5
18164 $as_echo "$as_me: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&2;}
18172 case "$with_passwd" in
18174 AUTH_OBJS="$AUTH_OBJS passwd.o"
18177 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
18179 if test -z "$AUTH_OBJS"; then
18180 as_fn_error "no authentication methods defined." "$LINENO" 5
18184 AUTH_OBJS=${AUTH_OBJS# }
18185 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
18187 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
18189 if test -n "$LIBS"; then
18194 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
18195 test $l = $sl && dupe=1
18197 test $dupe = 0 && LIBS="${LIBS} $l"
18201 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
18203 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
18204 oexec_prefix="$exec_prefix"
18205 if test "$exec_prefix" = '$(prefix)'; then
18206 if test "$prefix" = "NONE"; then
18207 exec_prefix="$ac_default_prefix"
18209 exec_prefix="$prefix"
18212 if test X"$with_noexec" != X"no"; then
18213 PROGS="${PROGS} libsudo_noexec.la"
18214 INSTALL_NOEXEC="install-noexec"
18216 eval noexec_file="$with_noexec"
18217 cat >>confdefs.h <<EOF
18218 #define _PATH_SUDO_NOEXEC "$noexec_file"
18222 if test X"$with_selinux" != X"no"; then
18223 eval sesh_file="$libexecdir/sesh"
18224 cat >>confdefs.h <<EOF
18225 #define _PATH_SUDO_SESH "$sesh_file"
18229 exec_prefix="$oexec_prefix"
18232 if test X"$prefix" = X"NONE"; then
18233 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
18235 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
18237 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
18238 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
18239 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
18240 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
18241 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
18242 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
18243 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
18245 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h"
18247 cat >confcache <<\_ACEOF
18248 # This file is a shell script that caches the results of configure
18249 # tests run on this system so they can be shared between configure
18250 # scripts and configure runs, see configure's option --config-cache.
18251 # It is not useful on other systems. If it contains results you don't
18252 # want to keep, you may remove or edit it.
18254 # config.status only pays attention to the cache file if you give it
18255 # the --recheck option to rerun configure.
18257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18259 # following values.
18263 # The following way of writing the cache mishandles newlines in values,
18264 # but we know of no workaround that is simple, portable, and efficient.
18265 # So, we kill variables containing newlines.
18266 # Ultrix sh set writes to stderr and can't be redirected directly,
18267 # and sets the high bit in the cache file unless we assign to the vars.
18269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18270 eval ac_val=\$$ac_var
18274 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18278 _ | IFS | as_nl) ;; #(
18279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18280 *) { eval $ac_var=; unset $ac_var;} ;;
18286 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18287 *${as_nl}ac_space=\ *)
18288 # `set' does not quote correctly, so add quotes: double-quote
18289 # substitution turns \\\\ into \\, and sed turns \\ into \.
18292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18295 # `set' quotes correctly as required by POSIX, so do not add quotes.
18296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18310 if test -w "$cache_file"; then
18311 test "x$cache_file" != "x/dev/null" &&
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18313 $as_echo "$as_me: updating cache $cache_file" >&6;}
18314 cat confcache >$cache_file
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18317 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18323 # Let make expand exec_prefix.
18324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18326 DEFS=-DHAVE_CONFIG_H
18330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18331 # 1. Remove the extension, and $U if already installed.
18332 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18333 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18334 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18335 # will be set to the directory where LIBOBJS objects are built.
18336 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18337 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18339 LIBOBJS=$ac_libobjs
18341 LTLIBOBJS=$ac_ltlibobjs
18345 : ${CONFIG_STATUS=./config.status}
18347 ac_clean_files_save=$ac_clean_files
18348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18352 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18354 # Generated by $as_me.
18355 # Run this file to recreate the current configuration.
18356 # Compiler output produced by configure, useful for debugging
18357 # configure, is in config.log if it exists.
18360 ac_cs_recheck=false
18363 SHELL=\${CONFIG_SHELL-$SHELL}
18366 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18367 ## -------------------- ##
18368 ## M4sh Initialization. ##
18369 ## -------------------- ##
18371 # Be more Bourne compatible
18372 DUALCASE=1; export DUALCASE # for MKS sh
18373 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18376 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18377 # is contrary to our usage. Disable this feature.
18378 alias -g '${1+"$@"}'='"$@"'
18379 setopt NO_GLOB_SUBST
18381 case `(set -o) 2>/dev/null` in #(
18393 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18394 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18397 # Prefer a ksh shell builtin over an external printf program on Solaris,
18398 # but without wasting forks for bash or zsh.
18399 if test -z "$BASH_VERSION$ZSH_VERSION" \
18400 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18401 as_echo='print -r --'
18402 as_echo_n='print -rn --'
18403 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18404 as_echo='printf %s\n'
18405 as_echo_n='printf %s'
18407 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18408 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18409 as_echo_n='/usr/ucb/echo -n'
18411 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18412 as_echo_n_body='eval
18416 expr "X$arg" : "X\\(.*\\)$as_nl";
18417 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18419 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18421 export as_echo_n_body
18422 as_echo_n='sh -c $as_echo_n_body as_echo'
18424 export as_echo_body
18425 as_echo='sh -c $as_echo_body as_echo'
18428 # The user is always right.
18429 if test "${PATH_SEPARATOR+set}" != set; then
18431 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18432 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18439 # We need space, tab and new line, in precisely that order. Quoting is
18440 # there to prevent editors from complaining about space-tab.
18441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18442 # splitting by setting IFS to empty value.)
18445 # Find who we are. Look in the path if we contain no directory separator.
18447 *[\\/]* ) as_myself=$0 ;;
18448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18449 for as_dir in $PATH
18452 test -z "$as_dir" && as_dir=.
18453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18459 # We did not find ourselves, most probably we were run as `sh COMMAND'
18460 # in which case we are not to be found in the path.
18461 if test "x$as_myself" = x; then
18464 if test ! -f "$as_myself"; then
18465 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18469 # Unset variables that we do not need and which cause bugs (e.g. in
18470 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18471 # suppresses any "Segmentation fault" message there. '((' could
18472 # trigger a bug in pdksh 5.2.14.
18473 for as_var in BASH_ENV ENV MAIL MAILPATH
18474 do eval test x\${$as_var+set} = xset \
18475 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18488 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18491 # as_fn_error ERROR [LINENO LOG_FD]
18492 # ---------------------------------
18493 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18494 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18495 # script with status $?, using 1 if that was 0.
18498 as_status=$?; test $as_status -eq 0 && as_status=1
18500 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18501 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18503 $as_echo "$as_me: error: $1" >&2
18504 as_fn_exit $as_status
18508 # as_fn_set_status STATUS
18509 # -----------------------
18510 # Set $? to STATUS, without forking.
18511 as_fn_set_status ()
18514 } # as_fn_set_status
18516 # as_fn_exit STATUS
18517 # -----------------
18518 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18522 as_fn_set_status $1
18528 # Portably unset VAR.
18531 { eval $1=; unset $1;}
18533 as_unset=as_fn_unset
18534 # as_fn_append VAR VALUE
18535 # ----------------------
18536 # Append the text in VALUE to the end of the definition contained in VAR. Take
18537 # advantage of any shell optimizations that allow amortized linear growth over
18538 # repeated appends, instead of the typical quadratic growth present in naive
18540 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18541 eval 'as_fn_append ()
18552 # as_fn_arith ARG...
18553 # ------------------
18554 # Perform arithmetic evaluation on the ARGs, and store the result in the
18555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18556 # must be portable across $(()) and expr.
18557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18558 eval 'as_fn_arith ()
18565 as_val=`expr "$@" || test $? -eq 1`
18570 if expr a : '\(a\)' >/dev/null 2>&1 &&
18571 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18578 as_basename=basename
18583 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18589 as_me=`$as_basename -- "$0" ||
18590 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18591 X"$0" : 'X\(//\)$' \| \
18592 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18594 sed '/^.*\/\([^/][^/]*\)\/*$/{
18608 # Avoid depending upon Character Ranges.
18609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18612 as_cr_digits='0123456789'
18613 as_cr_alnum=$as_cr_Letters$as_cr_digits
18615 ECHO_C= ECHO_N= ECHO_T=
18616 case `echo -n x` in #(((((
18618 case `echo 'xy\c'` in
18619 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18621 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18628 rm -f conf$$ conf$$.exe conf$$.file
18629 if test -d conf$$.dir; then
18630 rm -f conf$$.dir/conf$$.file
18633 mkdir conf$$.dir 2>/dev/null
18635 if (echo >conf$$.file) 2>/dev/null; then
18636 if ln -s conf$$.file conf$$ 2>/dev/null; then
18638 # ... but there are two gotchas:
18639 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18640 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18641 # In both cases, we have to default to `cp -p'.
18642 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18644 elif ln conf$$.file conf$$ 2>/dev/null; then
18652 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18653 rmdir conf$$.dir 2>/dev/null
18658 # Create "$as_dir" as a directory, including parents if necessary.
18663 -*) as_dir=./$as_dir;;
18665 test -d "$as_dir" || eval $as_mkdir_p || {
18669 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18670 *) as_qdir=$as_dir;;
18672 as_dirs="'$as_qdir' $as_dirs"
18673 as_dir=`$as_dirname -- "$as_dir" ||
18674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18675 X"$as_dir" : 'X\(//\)[^/]' \| \
18676 X"$as_dir" : 'X\(//\)$' \| \
18677 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18678 $as_echo X"$as_dir" |
18679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18683 /^X\(\/\/\)[^/].*/{
18696 test -d "$as_dir" && break
18698 test -z "$as_dirs" || eval "mkdir $as_dirs"
18699 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18703 if mkdir -p . 2>/dev/null; then
18704 as_mkdir_p='mkdir -p "$as_dir"'
18706 test -d ./-p && rmdir ./-p
18710 if test -x / >/dev/null 2>&1; then
18711 as_test_x='test -x'
18713 if ls -dL / >/dev/null 2>&1; then
18720 if test -d "$1"; then
18726 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18727 ???[sx]*):;;*)false;;esac;fi
18731 as_executable_p=$as_test_x
18733 # Sed expression to map a string onto a valid CPP name.
18734 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18736 # Sed expression to map a string onto a valid variable name.
18737 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18741 ## ----------------------------------- ##
18742 ## Main body of $CONFIG_STATUS script. ##
18743 ## ----------------------------------- ##
18745 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18748 # Save the log message, to keep $0 and so on meaningful, and to
18749 # report actual input values of CONFIG_FILES etc. instead of their
18750 # values after options handling.
18752 This file was extended by sudo $as_me 1.7.4, which was
18753 generated by GNU Autoconf 2.65. Invocation command line was
18755 CONFIG_FILES = $CONFIG_FILES
18756 CONFIG_HEADERS = $CONFIG_HEADERS
18757 CONFIG_LINKS = $CONFIG_LINKS
18758 CONFIG_COMMANDS = $CONFIG_COMMANDS
18761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18766 case $ac_config_files in *"
18767 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18770 case $ac_config_headers in *"
18771 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18776 # Files that config.status was made for.
18777 config_files="$ac_config_files"
18778 config_headers="$ac_config_headers"
18779 config_commands="$ac_config_commands"
18783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18785 \`$as_me' instantiates files and other configuration actions
18786 from templates according to the current configuration. Unless the files
18787 and actions are specified as TAGs, all are instantiated by default.
18789 Usage: $0 [OPTION]... [TAG]...
18791 -h, --help print this help, then exit
18792 -V, --version print version number and configuration settings, then exit
18793 --config print configuration, then exit
18794 -q, --quiet, --silent
18795 do not print progress messages
18796 -d, --debug don't remove temporary files
18797 --recheck update $as_me by reconfiguring in the same conditions
18798 --file=FILE[:TEMPLATE]
18799 instantiate the configuration file FILE
18800 --header=FILE[:TEMPLATE]
18801 instantiate the configuration header FILE
18803 Configuration files:
18806 Configuration headers:
18809 Configuration commands:
18812 Report bugs to <http://www.sudo.ws/bugs/>."
18815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18818 sudo config.status 1.7.4
18819 configured by $0, generated by GNU Autoconf 2.65,
18820 with options \\"\$ac_cs_config\\"
18822 Copyright (C) 2009 Free Software Foundation, Inc.
18823 This config.status script is free software; the Free Software Foundation
18824 gives unlimited permission to copy, distribute and modify it."
18828 test -n "\$AWK" || AWK=awk
18831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18832 # The default lists apply if the user does not specify any file.
18838 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18839 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18850 # Handling of the options.
18851 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18853 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18854 $as_echo "$ac_cs_version"; exit ;;
18855 --config | --confi | --conf | --con | --co | --c )
18856 $as_echo "$ac_cs_config"; exit ;;
18857 --debug | --debu | --deb | --de | --d | -d )
18859 --file | --fil | --fi | --f )
18862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18864 as_fn_append CONFIG_FILES " '$ac_optarg'"
18865 ac_need_defaults=false;;
18866 --header | --heade | --head | --hea )
18869 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18871 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18872 ac_need_defaults=false;;
18874 # Conflict between --help and --header
18875 as_fn_error "ambiguous option: \`$1'
18876 Try \`$0 --help' for more information.";;
18877 --help | --hel | -h )
18878 $as_echo "$ac_cs_usage"; exit ;;
18879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18880 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18883 # This is an error.
18884 -*) as_fn_error "unrecognized option: \`$1'
18885 Try \`$0 --help' for more information." ;;
18887 *) as_fn_append ac_config_targets " $1"
18888 ac_need_defaults=false ;;
18894 ac_configure_extra_args=
18896 if $ac_cs_silent; then
18898 ac_configure_extra_args="$ac_configure_extra_args --silent"
18902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18903 if \$ac_cs_recheck; then
18904 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18906 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18907 CONFIG_SHELL='$SHELL'
18908 export CONFIG_SHELL
18913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18918 ## Running $as_me. ##
18924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18930 # The HP-UX ksh and POSIX shell print the target directory to stdout
18931 # if CDPATH is set.
18932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18934 sed_quote_subst='$sed_quote_subst'
18935 double_quote_subst='$double_quote_subst'
18936 delay_variable_subst='$delay_variable_subst'
18937 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18938 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18939 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18940 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18941 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18942 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18943 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18944 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18945 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18946 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18947 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18948 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18949 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18950 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18951 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18952 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18953 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18954 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18955 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18956 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18957 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18958 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18959 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18960 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18961 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18962 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18963 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18964 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18965 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18966 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18967 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18968 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18969 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18970 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18971 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18972 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18973 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18974 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18975 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18976 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18977 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18978 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18979 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18980 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18981 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18982 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18983 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18984 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18985 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18986 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18987 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18988 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18989 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18990 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18991 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18992 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18993 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18994 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18995 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18996 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18997 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18998 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18999 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19000 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19001 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19002 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19003 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19004 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19005 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19006 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19007 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19008 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19009 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19010 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19011 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19012 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19013 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19014 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19015 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19016 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19017 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19018 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19019 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19020 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19021 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19022 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19023 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19024 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19025 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19026 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19027 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19028 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19029 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19030 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19031 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19032 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19033 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19034 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19035 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19036 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19037 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19038 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19039 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19040 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19041 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19042 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19043 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19044 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19045 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19046 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19047 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19048 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19049 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19050 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19051 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19052 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19053 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19054 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19057 LTCFLAGS='$LTCFLAGS'
19058 compiler='$compiler_DEFAULT'
19060 # Quote evaled strings.
19072 deplibs_check_method \
19081 lt_cv_sys_global_symbol_pipe \
19082 lt_cv_sys_global_symbol_to_cdecl \
19083 lt_cv_sys_global_symbol_to_c_name_address \
19084 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19087 lt_prog_compiler_no_builtin_flag \
19088 lt_prog_compiler_wl \
19089 lt_prog_compiler_pic \
19090 lt_prog_compiler_static \
19091 lt_cv_prog_compiler_c_o \
19099 export_dynamic_flag_spec \
19100 whole_archive_flag_spec \
19101 compiler_needs_object \
19103 allow_undefined_flag \
19104 no_undefined_flag \
19105 hardcode_libdir_flag_spec \
19106 hardcode_libdir_flag_spec_ld \
19107 hardcode_libdir_separator \
19112 variables_saved_for_relink \
19114 library_names_spec \
19119 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19120 *[\\\\\\\`\\"\\\$]*)
19121 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19124 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19129 # Double-quote double-evaled strings.
19130 for var in reload_cmds \
19131 old_postinstall_cmds \
19132 old_postuninstall_cmds \
19134 extract_expsyms_cmds \
19135 old_archive_from_new_cmds \
19136 old_archive_from_expsyms_cmds \
19138 archive_expsym_cmds \
19140 module_expsym_cmds \
19141 export_symbols_cmds \
19144 postuninstall_cmds \
19146 sys_lib_search_path_spec \
19147 sys_lib_dlsearch_path_spec; do
19148 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19149 *[\\\\\\\`\\"\\\$]*)
19150 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19153 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19158 # Fix-up fallback echo if it was mangled by the above quoting rules.
19160 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19164 ac_aux_dir='$ac_aux_dir'
19165 xsi_shell='$xsi_shell'
19166 lt_shell_append='$lt_shell_append'
19168 # See if we are running on zsh, and set the options which allow our
19169 # commands through without removal of \ escapes INIT.
19170 if test -n "\${ZSH_VERSION+set}" ; then
19171 setopt NO_GLOB_SUBST
19177 TIMESTAMP='$TIMESTAMP'
19186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19188 # Handling of arguments.
19189 for ac_config_target in $ac_config_targets
19191 case $ac_config_target in
19192 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19193 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
19194 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19195 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19196 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
19197 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
19198 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
19199 "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
19200 "sudoreplay.man") CONFIG_FILES="$CONFIG_FILES sudoreplay.man" ;;
19201 "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
19203 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19208 # If the user did not use the arguments to specify the items to instantiate,
19209 # then the envvar interface is used. Set only those that are not.
19210 # We use the long form for the default assignment because of an extremely
19211 # bizarre bug on SunOS 4.1.3.
19212 if $ac_need_defaults; then
19213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19215 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19218 # Have a temporary directory for convenience. Make it in the build tree
19219 # simply because there is no reason against having it here, and in addition,
19220 # creating and moving files from /tmp can sometimes cause problems.
19221 # Hook for its removal unless debugging.
19222 # Note that there is a small window in which the directory will not be cleaned:
19223 # after its creation but before its name has been assigned to `$tmp'.
19227 trap 'exit_status=$?
19228 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19230 trap 'as_fn_exit 1' 1 2 13 15
19232 # Create a (secure) tmp directory for tmp files.
19235 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19236 test -n "$tmp" && test -d "$tmp"
19239 tmp=./conf$$-$RANDOM
19240 (umask 077 && mkdir "$tmp")
19241 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19243 # Set up the scripts for CONFIG_FILES section.
19244 # No need to generate them if there are no CONFIG_FILES.
19245 # This happens for instance with `./config.status config.h'.
19246 if test -n "$CONFIG_FILES"; then
19249 ac_cr=`echo X | tr X '\015'`
19250 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19251 # But we know of no other shell where ac_cr would be empty at this
19252 # point, so we can use a bashism as a fallback.
19253 if test "x$ac_cr" = x; then
19254 eval ac_cr=\$\'\\r\'
19256 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19257 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19260 ac_cs_awk_cr=$ac_cr
19263 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19268 echo "cat >conf$$subs.awk <<_ACEOF" &&
19269 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19271 } >conf$$subs.sh ||
19272 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19273 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19275 for ac_last_try in false false false false false :; do
19276 . ./conf$$subs.sh ||
19277 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19279 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19280 if test $ac_delim_n = $ac_delim_num; then
19282 elif $ac_last_try; then
19283 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19288 rm -f conf$$subs.sh
19290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19291 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19295 s/^/S["/; s/!.*/"]=/
19305 s/\(.\{148\}\)..*/\1/
19307 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19319 s/\(.\{148\}\)..*/\1/
19321 s/["\\]/\\&/g; s/^/"/; s/$/"/
19325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19330 ' <conf$$subs.awk | sed '
19335 ' >>$CONFIG_STATUS || ac_write_fail=1
19336 rm -f conf$$subs.awk
19337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19339 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19340 for (key in S) S_is_set[key] = 1
19346 nfields = split(line, field, "@")
19348 len = length(field[1])
19349 for (i = 2; i < nfields; i++) {
19351 keylen = length(key)
19352 if (S_is_set[key]) {
19354 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19355 len += length(value) + length(field[++i])
19366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19367 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19368 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19371 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19372 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19375 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19376 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19377 # trailing colons and then remove the whole line if VPATH becomes empty
19378 # (actually we leave an empty line to preserve line numbers).
19379 if test "x$srcdir" = x.; then
19380 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19381 s/:*\$(srcdir):*/:/
19382 s/:*\${srcdir}:*/:/
19384 s/^\([^=]*=[ ]*\):*/\1/
19390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19391 fi # test -n "$CONFIG_FILES"
19393 # Set up the scripts for CONFIG_HEADERS section.
19394 # No need to generate them if there are no CONFIG_HEADERS.
19395 # This happens for instance with `./config.status Makefile'.
19396 if test -n "$CONFIG_HEADERS"; then
19397 cat >"$tmp/defines.awk" <<\_ACAWK ||
19401 # Transform confdefs.h into an awk script `defines.awk', embedded as
19402 # here-document in config.status, that substitutes the proper values into
19403 # config.h.in to produce config.h.
19405 # Create a delimiter string that does not exist in confdefs.h, to ease
19406 # handling of long lines.
19408 for ac_last_try in false false :; do
19409 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19410 if test -z "$ac_t"; then
19412 elif $ac_last_try; then
19413 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19419 # For the awk script, D is an array of macro values keyed by name,
19420 # likewise P contains macro parameters if any. Preserve backslash
19421 # newline sequences.
19423 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19425 s/.\{148\}/&'"$ac_delim"'/g
19428 s/^[ ]*#[ ]*define[ ][ ]*/ /
19435 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19437 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19441 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19442 D["\1"]=" \3\\\\\\n"\\/p
19444 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19449 s/.\{148\}/&'"$ac_delim"'/g
19454 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19457 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19459 ' <confdefs.h | sed '
19460 s/'"$ac_delim"'/"\\\
19461 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19464 for (key in D) D_is_set[key] = 1
19467 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19469 split(line, arg, " ")
19470 if (arg[1] == "#") {
19474 defundef = substr(arg[1], 2)
19477 split(mac1, mac2, "(") #)
19479 prefix = substr(line, 1, index(line, defundef) - 1)
19480 if (D_is_set[macro]) {
19481 # Preserve the white space surrounding the "#".
19482 print prefix "define", macro P[macro] D[macro]
19485 # Replace #undef with comments. This is necessary, for example,
19486 # in the case of _POSIX_SOURCE, which is predefined and required
19487 # on some systems where configure will not decide to define it.
19488 if (defundef == "undef") {
19489 print "/*", prefix defundef, macro, "*/"
19497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19498 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19499 fi # test -n "$CONFIG_HEADERS"
19502 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19507 :[FHLC]) ac_mode=$ac_tag; continue;;
19509 case $ac_mode$ac_tag in
19511 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19512 :[FH]-) ac_tag=-:-;;
19513 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19530 -) ac_f="$tmp/stdin";;
19531 *) # Look for the file first in the build tree, then in the source tree
19532 # (if the path is not absolute). The absolute path cannot be DOS-style,
19533 # because $ac_f cannot contain `:'.
19537 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19539 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19541 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19542 as_fn_append ac_file_inputs " '$ac_f'"
19545 # Let's still pretend it is `configure' which instantiates (i.e., don't
19546 # use $as_me), people would be surprised to read:
19547 # /* config.h. Generated by config.status. */
19548 configure_input='Generated from '`
19549 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19551 if test x"$ac_file" != x-; then
19552 configure_input="$ac_file. $configure_input"
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19554 $as_echo "$as_me: creating $ac_file" >&6;}
19556 # Neutralize special characters interpreted by sed in replacement strings.
19557 case $configure_input in #(
19558 *\&* | *\|* | *\\* )
19559 ac_sed_conf_input=`$as_echo "$configure_input" |
19560 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19561 *) ac_sed_conf_input=$configure_input;;
19565 *:-:* | *:-) cat >"$tmp/stdin" \
19566 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19571 ac_dir=`$as_dirname -- "$ac_file" ||
19572 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19573 X"$ac_file" : 'X\(//\)[^/]' \| \
19574 X"$ac_file" : 'X\(//\)$' \| \
19575 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19576 $as_echo X"$ac_file" |
19577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19581 /^X\(\/\/\)[^/].*/{
19594 as_dir="$ac_dir"; as_fn_mkdir_p
19598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19601 # A ".." for each directory in $ac_dir_suffix.
19602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19603 case $ac_top_builddir_sub in
19604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19608 ac_abs_top_builddir=$ac_pwd
19609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19610 # for backward compatibility:
19611 ac_top_builddir=$ac_top_build_prefix
19614 .) # We are building in place.
19616 ac_top_srcdir=$ac_top_builddir_sub
19617 ac_abs_top_srcdir=$ac_pwd ;;
19618 [\\/]* | ?:[\\/]* ) # Absolute name.
19619 ac_srcdir=$srcdir$ac_dir_suffix;
19620 ac_top_srcdir=$srcdir
19621 ac_abs_top_srcdir=$srcdir ;;
19622 *) # Relative name.
19623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19624 ac_top_srcdir=$ac_top_build_prefix$srcdir
19625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19639 # If the template does not know about datarootdir, expand it.
19640 # FIXME: This hack should be removed a few years after 2.60.
19641 ac_datarootdir_hack=; ac_datarootdir_seen=
19652 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19653 *datarootdir*) ac_datarootdir_seen=yes;;
19654 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19656 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19659 ac_datarootdir_hack='
19660 s&@datadir@&$datadir&g
19661 s&@docdir@&$docdir&g
19662 s&@infodir@&$infodir&g
19663 s&@localedir@&$localedir&g
19664 s&@mandir@&$mandir&g
19665 s&\\\${datarootdir}&$datarootdir&g' ;;
19669 # Neutralize VPATH when `$srcdir' = `.'.
19670 # Shell code in configure.ac might set extrasub.
19671 # FIXME: do we really want to maintain this feature?
19672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19673 ac_sed_extra="$ac_vpsub
19676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19679 s|@configure_input@|$ac_sed_conf_input|;t t
19680 s&@top_builddir@&$ac_top_builddir_sub&;t t
19681 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19682 s&@srcdir@&$ac_srcdir&;t t
19683 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19684 s&@top_srcdir@&$ac_top_srcdir&;t t
19685 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19686 s&@builddir@&$ac_builddir&;t t
19687 s&@abs_builddir@&$ac_abs_builddir&;t t
19688 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19689 $ac_datarootdir_hack
19691 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19692 || as_fn_error "could not create $ac_file" "$LINENO" 5
19694 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19695 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19696 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19698 which seems to be undefined. Please make sure it is defined." >&5
19699 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19700 which seems to be undefined. Please make sure it is defined." >&2;}
19704 -) cat "$tmp/out" && rm -f "$tmp/out";;
19705 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19707 || as_fn_error "could not create $ac_file" "$LINENO" 5
19713 if test x"$ac_file" != x-; then
19715 $as_echo "/* $configure_input */" \
19716 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19717 } >"$tmp/config.h" \
19718 || as_fn_error "could not create $ac_file" "$LINENO" 5
19719 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19721 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19724 mv "$tmp/config.h" "$ac_file" \
19725 || as_fn_error "could not create $ac_file" "$LINENO" 5
19728 $as_echo "/* $configure_input */" \
19729 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19730 || as_fn_error "could not create -" "$LINENO" 5
19734 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19735 $as_echo "$as_me: executing $ac_file commands" >&6;}
19740 case $ac_file$ac_mode in
19743 # See if we are running on zsh, and set the options which allow our
19744 # commands through without removal of \ escapes.
19745 if test -n "${ZSH_VERSION+set}" ; then
19746 setopt NO_GLOB_SUBST
19749 cfgfile="${ofile}T"
19750 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19753 cat <<_LT_EOF >> "$cfgfile"
19756 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19757 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19759 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19761 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19762 # 2006, 2007, 2008 Free Software Foundation, Inc.
19763 # Written by Gordon Matzigkeit, 1996
19765 # This file is part of GNU Libtool.
19767 # GNU Libtool is free software; you can redistribute it and/or
19768 # modify it under the terms of the GNU General Public License as
19769 # published by the Free Software Foundation; either version 2 of
19770 # the License, or (at your option) any later version.
19772 # As a special exception to the GNU General Public License,
19773 # if you distribute this file as part of a program or library that
19774 # is built using GNU Libtool, you may include this file under the
19775 # same distribution terms that you use for the rest of that program.
19777 # GNU Libtool is distributed in the hope that it will be useful,
19778 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19780 # GNU General Public License for more details.
19782 # You should have received a copy of the GNU General Public License
19783 # along with GNU Libtool; see the file COPYING. If not, a copy
19784 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19785 # obtained by writing to the Free Software Foundation, Inc.,
19786 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19789 # The names of the tagged configurations supported by this script.
19792 # ### BEGIN LIBTOOL CONFIG
19794 # Which release of libtool.m4 was used?
19795 macro_version=$macro_version
19796 macro_revision=$macro_revision
19798 # Whether or not to build shared libraries.
19799 build_libtool_libs=$enable_shared
19801 # Whether or not to build static libraries.
19802 build_old_libs=$enable_static
19804 # What type of objects to build.
19807 # Whether or not to optimize for fast installation.
19808 fast_install=$enable_fast_install
19811 host_alias=$host_alias
19815 # The build system.
19816 build_alias=$build_alias
19820 # A sed program that does not truncate output.
19823 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19824 Xsed="\$SED -e 1s/^X//"
19826 # A grep program that handles long lines.
19832 # A literal string matcher.
19835 # A BSD- or MS-compatible name lister.
19838 # Whether we need soft or hard links.
19841 # What is the maximum length of a command?
19842 max_cmd_len=$max_cmd_len
19844 # Object file suffix (normally "o").
19847 # Executable file suffix (normally "").
19850 # whether the shell understands "unset".
19853 # turn spaces into newlines.
19856 # turn newlines into spaces.
19859 # How to create reloadable object files.
19860 reload_flag=$lt_reload_flag
19861 reload_cmds=$lt_reload_cmds
19863 # An object symbol dumper.
19864 OBJDUMP=$lt_OBJDUMP
19866 # Method to check whether dependent libraries are shared objects.
19867 deplibs_check_method=$lt_deplibs_check_method
19869 # Command to use when deplibs_check_method == "file_magic".
19870 file_magic_cmd=$lt_file_magic_cmd
19874 AR_FLAGS=$lt_AR_FLAGS
19876 # A symbol stripping program.
19879 # Commands used to install an old-style archive.
19881 old_postinstall_cmds=$lt_old_postinstall_cmds
19882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19887 # LTCC compiler flags.
19888 LTCFLAGS=$lt_CFLAGS
19890 # Take the output of nm and produce a listing of raw symbols and C names.
19891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19893 # Transform the output of nm in a proper C declaration.
19894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19896 # Transform the output of nm in a C name address pair.
19897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19899 # Transform the output of nm in a C name address pair when lib prefix is needed.
19900 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19902 # The name of the directory that contains temporary libtool files.
19905 # Shell to use when invoking shell scripts.
19908 # An echo program that does not interpret backslashes.
19911 # Used to examine libraries when file_magic_cmd begins with "file".
19912 MAGIC_CMD=$MAGIC_CMD
19914 # Must we lock files when doing compilation?
19915 need_locks=$lt_need_locks
19917 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19918 DSYMUTIL=$lt_DSYMUTIL
19920 # Tool to change global to local symbols on Mac OS X.
19923 # Tool to manipulate fat objects and archives on Mac OS X.
19926 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19929 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19930 OTOOL64=$lt_OTOOL64
19932 # Old archive suffix (normally "a").
19935 # Shared library suffix (normally ".so").
19936 shrext_cmds=$lt_shrext_cmds
19938 # The commands to extract the exported symbol list from a shared archive.
19939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19941 # Variables whose values should be saved in libtool wrapper scripts and
19942 # restored at link time.
19943 variables_saved_for_relink=$lt_variables_saved_for_relink
19945 # Do we need the "lib" prefix for modules?
19946 need_lib_prefix=$need_lib_prefix
19948 # Do we need a version for libraries?
19949 need_version=$need_version
19951 # Library versioning type.
19952 version_type=$version_type
19954 # Shared library runtime path variable.
19955 runpath_var=$runpath_var
19957 # Shared library path variable.
19958 shlibpath_var=$shlibpath_var
19960 # Is shlibpath searched before the hard-coded library search path?
19961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19963 # Format of library name prefix.
19964 libname_spec=$lt_libname_spec
19966 # List of archive names. First name is the real one, the rest are links.
19967 # The last name is the one that the linker finds with -lNAME
19968 library_names_spec=$lt_library_names_spec
19970 # The coded name of the library, if different from the real name.
19971 soname_spec=$lt_soname_spec
19973 # Command to use after installation of a shared archive.
19974 postinstall_cmds=$lt_postinstall_cmds
19976 # Command to use after uninstallation of a shared archive.
19977 postuninstall_cmds=$lt_postuninstall_cmds
19979 # Commands used to finish a libtool library installation in a directory.
19980 finish_cmds=$lt_finish_cmds
19982 # As "finish_cmds", except a single script fragment to be evaled but
19984 finish_eval=$lt_finish_eval
19986 # Whether we should hardcode library paths into libraries.
19987 hardcode_into_libs=$hardcode_into_libs
19989 # Compile-time system search path for libraries.
19990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19992 # Run-time system search path for libraries.
19993 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19995 # Whether dlopen is supported.
19996 dlopen_support=$enable_dlopen
19998 # Whether dlopen of programs is supported.
19999 dlopen_self=$enable_dlopen_self
20001 # Whether dlopen of statically linked programs is supported.
20002 dlopen_self_static=$enable_dlopen_self_static
20004 # Commands to strip libraries.
20005 old_striplib=$lt_old_striplib
20006 striplib=$lt_striplib
20009 # The linker used to build libraries.
20012 # Commands used to build an old-style archive.
20013 old_archive_cmds=$lt_old_archive_cmds
20015 # A language specific compiler.
20018 # Is the compiler the GNU compiler?
20021 # Compiler flag to turn off builtin functions.
20022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20024 # How to pass a linker flag through the compiler.
20025 wl=$lt_lt_prog_compiler_wl
20027 # Additional compiler flags for building library objects.
20028 pic_flag=$lt_lt_prog_compiler_pic
20030 # Compiler flag to prevent dynamic linking.
20031 link_static_flag=$lt_lt_prog_compiler_static
20033 # Does compiler simultaneously support -c and -o options?
20034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20036 # Whether or not to add -lc for building shared libraries.
20037 build_libtool_need_lc=$archive_cmds_need_lc
20039 # Whether or not to disallow shared libs when runtime libs are static.
20040 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20042 # Compiler flag to allow reflexive dlopens.
20043 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20045 # Compiler flag to generate shared objects directly from archives.
20046 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20048 # Whether the compiler copes with passing no objects directly.
20049 compiler_needs_object=$lt_compiler_needs_object
20051 # Create an old-style archive from a shared archive.
20052 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20054 # Create a temporary old-style archive to link instead of a shared archive.
20055 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20057 # Commands used to build a shared archive.
20058 archive_cmds=$lt_archive_cmds
20059 archive_expsym_cmds=$lt_archive_expsym_cmds
20061 # Commands used to build a loadable module if different from building
20062 # a shared archive.
20063 module_cmds=$lt_module_cmds
20064 module_expsym_cmds=$lt_module_expsym_cmds
20066 # Whether we are building with GNU ld or not.
20067 with_gnu_ld=$lt_with_gnu_ld
20069 # Flag that allows shared libraries with undefined symbols to be built.
20070 allow_undefined_flag=$lt_allow_undefined_flag
20072 # Flag that enforces no undefined symbols.
20073 no_undefined_flag=$lt_no_undefined_flag
20075 # Flag to hardcode \$libdir into a binary during linking.
20076 # This must work even if \$libdir does not exist
20077 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20079 # If ld is used when linking, flag to hardcode \$libdir into a binary
20080 # during linking. This must work even if \$libdir does not exist.
20081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20083 # Whether we need a single "-rpath" flag with a separated argument.
20084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20087 # DIR into the resulting binary.
20088 hardcode_direct=$hardcode_direct
20090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20091 # DIR into the resulting binary and the resulting library dependency is
20092 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20093 # library is relocated.
20094 hardcode_direct_absolute=$hardcode_direct_absolute
20096 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20097 # into the resulting binary.
20098 hardcode_minus_L=$hardcode_minus_L
20100 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20101 # into the resulting binary.
20102 hardcode_shlibpath_var=$hardcode_shlibpath_var
20104 # Set to "yes" if building a shared library automatically hardcodes DIR
20105 # into the library and all subsequent libraries and executables linked
20107 hardcode_automatic=$hardcode_automatic
20109 # Set to yes if linker adds runtime paths of dependent libraries
20110 # to runtime path list.
20111 inherit_rpath=$inherit_rpath
20113 # Whether libtool must link a program against all its dependency libraries.
20114 link_all_deplibs=$link_all_deplibs
20116 # Fix the shell variable \$srcfile for the compiler.
20117 fix_srcfile_path=$lt_fix_srcfile_path
20119 # Set to "yes" if exported symbols are required.
20120 always_export_symbols=$always_export_symbols
20122 # The commands to list exported symbols.
20123 export_symbols_cmds=$lt_export_symbols_cmds
20125 # Symbols that should not be listed in the preloaded symbols.
20126 exclude_expsyms=$lt_exclude_expsyms
20128 # Symbols that must always be exported.
20129 include_expsyms=$lt_include_expsyms
20131 # Commands necessary for linking programs (against libraries) with templates.
20132 prelink_cmds=$lt_prelink_cmds
20134 # Specify filename containing input files.
20135 file_list_spec=$lt_file_list_spec
20137 # How to hardcode a shared library path into an executable.
20138 hardcode_action=$hardcode_action
20140 # ### END LIBTOOL CONFIG
20146 cat <<\_LT_EOF >> "$cfgfile"
20147 # AIX sometimes has problems with the GCC collect2 program. For some
20148 # reason, if we set the COLLECT_NAMES environment variable, the problems
20149 # vanish in a puff of smoke.
20150 if test "X${COLLECT_NAMES+set}" != Xset; then
20152 export COLLECT_NAMES
20159 ltmain="$ac_aux_dir/ltmain.sh"
20162 # We use sed instead of cat because bash on DJGPP gets confused if
20163 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20164 # text mode, it properly converts lines to CR/LF. This bash problem
20165 # is reportedly fixed, but why not run on old versions too?
20166 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20167 || (rm -f "$cfgfile"; exit 1)
20171 cat << \_LT_EOF >> "$cfgfile"
20173 # func_dirname file append nondir_replacement
20174 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20175 # otherwise set result to NONDIR_REPLACEMENT.
20179 */*) func_dirname_result="${1%/*}${2}" ;;
20180 * ) func_dirname_result="${3}" ;;
20184 # func_basename file
20187 func_basename_result="${1##*/}"
20190 # func_dirname_and_basename file append nondir_replacement
20191 # perform func_basename and func_dirname in a single function
20193 # dirname: Compute the dirname of FILE. If nonempty,
20194 # add APPEND to the result, otherwise set result
20195 # to NONDIR_REPLACEMENT.
20196 # value returned in "$func_dirname_result"
20197 # basename: Compute filename of FILE.
20198 # value retuned in "$func_basename_result"
20199 # Implementation must be kept synchronized with func_dirname
20200 # and func_basename. For efficiency, we do not delegate to
20201 # those functions but instead duplicate the functionality here.
20202 func_dirname_and_basename ()
20205 */*) func_dirname_result="${1%/*}${2}" ;;
20206 * ) func_dirname_result="${3}" ;;
20208 func_basename_result="${1##*/}"
20211 # func_stripname prefix suffix name
20212 # strip PREFIX and SUFFIX off of NAME.
20213 # PREFIX and SUFFIX must not contain globbing or regex special
20214 # characters, hashes, percent signs, but SUFFIX may contain a leading
20215 # dot (in which case that matches only a dot).
20218 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20219 # positional parameters, so assign one to ordinary parameter first.
20220 func_stripname_result=${3}
20221 func_stripname_result=${func_stripname_result#"${1}"}
20222 func_stripname_result=${func_stripname_result%"${2}"}
20228 func_opt_split_opt=${1%%=*}
20229 func_opt_split_arg=${1#*=}
20236 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20237 *) func_lo2o_result=${1} ;;
20241 # func_xform libobj-or-source
20244 func_xform_result=${1%.*}.lo
20247 # func_arith arithmetic-term...
20250 func_arith_result=$(( $* ))
20254 # STRING may not start with a hyphen.
20257 func_len_result=${#1}
20262 *) # Bourne compatible functions.
20263 cat << \_LT_EOF >> "$cfgfile"
20265 # func_dirname file append nondir_replacement
20266 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20267 # otherwise set result to NONDIR_REPLACEMENT.
20270 # Extract subdirectory from the argument.
20271 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20272 if test "X$func_dirname_result" = "X${1}"; then
20273 func_dirname_result="${3}"
20275 func_dirname_result="$func_dirname_result${2}"
20279 # func_basename file
20282 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20286 # func_stripname prefix suffix name
20287 # strip PREFIX and SUFFIX off of NAME.
20288 # PREFIX and SUFFIX must not contain globbing or regex special
20289 # characters, hashes, percent signs, but SUFFIX may contain a leading
20290 # dot (in which case that matches only a dot).
20291 # func_strip_suffix prefix name
20295 .*) func_stripname_result=`$ECHO "X${3}" \
20296 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20297 *) func_stripname_result=`$ECHO "X${3}" \
20298 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20303 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20304 my_sed_long_arg='1s/^-[^=]*=//'
20309 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20310 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20316 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20319 # func_xform libobj-or-source
20322 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20325 # func_arith arithmetic-term...
20328 func_arith_result=`expr "$@"`
20332 # STRING may not start with a hyphen.
20335 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20341 case $lt_shell_append in
20343 cat << \_LT_EOF >> "$cfgfile"
20345 # func_append var value
20346 # Append VALUE to the end of shell variable VAR.
20354 cat << \_LT_EOF >> "$cfgfile"
20356 # func_append var value
20357 # Append VALUE to the end of shell variable VAR.
20368 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20369 || (rm -f "$cfgfile"; exit 1)
20371 mv -f "$cfgfile" "$ofile" ||
20372 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20383 ac_clean_files=$ac_clean_files_save
20385 test $ac_write_fail = 0 ||
20386 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20389 # configure is writing to config.log, and then calls config.status.
20390 # config.status does its own redirection, appending to config.log.
20391 # Unfortunately, on DOS this fails, as config.log is still kept open
20392 # by configure, so config.status won't be able to write to it; its
20393 # output is simply discarded. So we exec the FD to /dev/null,
20394 # effectively closing config.log, so it can be properly (re)opened and
20395 # appended to by config.status. When coming back to configure, we
20396 # need to make the FD available again.
20397 if test "$no_create" != yes; then
20399 ac_config_status_args=
20400 test "$silent" = yes &&
20401 ac_config_status_args="$ac_config_status_args --quiet"
20403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20406 # would make configure fail if this is the last instruction.
20407 $ac_cs_success || as_fn_exit $?
20409 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20411 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20415 if test "$with_pam" = "yes"; then
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
20419 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}